Skip to content

Commit

Permalink
INITIAL DB MODEL
Browse files Browse the repository at this point in the history
  • Loading branch information
FairWindCo committed Oct 8, 2015
1 parent 17797bc commit eb49fb6
Show file tree
Hide file tree
Showing 29 changed files with 5,980 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/libraries/Gradle__javax_servlet_jstl_1_2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions DocumentsDB.iml
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,7 @@
<orderEntry type="library" exported="" name="Gradle: com.lmax:disruptor:3.2.1" level="project" />
<orderEntry type="library" exported="" name="Gradle: io.gatling:jsr166e:1.0" level="project" />
<orderEntry type="library" exported="" name="Gradle: com.goldmansachs:gs-collections-api:5.1.0" level="project" />
<orderEntry type="library" exported="" name="Gradle: javax.servlet:javax.servlet-api:3.0.1" level="project" />
<orderEntry type="library" exported="" name="Gradle: javax.servlet:jstl:1.2" level="project" />
</component>
</module>
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ repositories {

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'javax.servlet:javax.servlet-api'
compile 'javax.servlet:jstl'
//SPIRNG основная + дополнения для ВЕБ
compile 'org.springframework:spring-core'
compile 'org.springframework:spring-webmvc'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package ua.pp.fairwind.favorid.internalDB.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpRequest;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
Expand All @@ -13,6 +12,8 @@
import ua.pp.fairwind.favorid.internalDB.model.directories.ContactType;
import ua.pp.fairwind.favorid.internalDB.repository.ContactTypeRepository;

import javax.servlet.http.HttpServletRequest;


/**
* Created by Ñåðãåé on 07.10.2015.
Expand All @@ -32,7 +33,7 @@ public String list(Model model) {
@Transactional(readOnly = true)
@RequestMapping(value = "/listing", method = RequestMethod.POST)
@ResponseBody
public JGridRowsResponse<ContactType> getTable(HttpRequest request){
public JGridRowsResponse<ContactType> getTable(HttpServletRequest request){
return new JGridRowsResponse<ContactType>(repositoryContactType.findAll());
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/jsp/contact_type_list.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<script type="text/javascript">
$(document).ready(function () {
$("#jqGrid").jqGrid({
$("#jqGrid").jqxGrid({
url: '${pageContext.request.contextPath}/contacttypes/listing',
mtype: "POST",
styleUI : 'Bootstrap',
Expand Down
4 changes: 4 additions & 0 deletions src/main/webapp/resources/mydemo/jquery-1.11.1.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit eb49fb6

Please sign in to comment.