Browse Source

Last changes before my notebook die

ailton 8 years ago
parent
commit
07be99ebb3

+ 36 - 36
.classpath

1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<classpath>
3
-	<classpathentry kind="src" output="target/classes" path="src/main/java">
4
-		<attributes>
5
-			<attribute name="optional" value="true"/>
6
-			<attribute name="maven.pomderived" value="true"/>
7
-		</attributes>
8
-	</classpathentry>
9
-	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10
-		<attributes>
11
-			<attribute name="maven.pomderived" value="true"/>
12
-		</attributes>
13
-	</classpathentry>
14
-	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
15
-		<attributes>
16
-			<attribute name="optional" value="true"/>
17
-			<attribute name="maven.pomderived" value="true"/>
18
-		</attributes>
19
-	</classpathentry>
20
-	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
21
-		<attributes>
22
-			<attribute name="maven.pomderived" value="true"/>
23
-		</attributes>
24
-	</classpathentry>
25
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
26
-		<attributes>
27
-			<attribute name="maven.pomderived" value="true"/>
28
-		</attributes>
29
-	</classpathentry>
30
-	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
31
-		<attributes>
32
-			<attribute name="maven.pomderived" value="true"/>
33
-		</attributes>
34
-	</classpathentry>
35
-	<classpathentry kind="output" path="target/classes"/>
36
-</classpath>
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<classpath>
3
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
4
+		<attributes>
5
+			<attribute name="optional" value="true"/>
6
+			<attribute name="maven.pomderived" value="true"/>
7
+		</attributes>
8
+	</classpathentry>
9
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10
+		<attributes>
11
+			<attribute name="maven.pomderived" value="true"/>
12
+		</attributes>
13
+	</classpathentry>
14
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
15
+		<attributes>
16
+			<attribute name="optional" value="true"/>
17
+			<attribute name="maven.pomderived" value="true"/>
18
+		</attributes>
19
+	</classpathentry>
20
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
21
+		<attributes>
22
+			<attribute name="maven.pomderived" value="true"/>
23
+		</attributes>
24
+	</classpathentry>
25
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
26
+		<attributes>
27
+			<attribute name="maven.pomderived" value="true"/>
28
+		</attributes>
29
+	</classpathentry>
30
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
31
+		<attributes>
32
+			<attribute name="maven.pomderived" value="true"/>
33
+		</attributes>
34
+	</classpathentry>
35
+	<classpathentry kind="output" path="target/classes"/>
36
+</classpath>

+ 6 - 0
.settings/org.eclipse.core.resources.prefs

1
+eclipse.preferences.version=1
2
+encoding//src/main/java=UTF-8
3
+encoding//src/main/resources=UTF-8
4
+encoding//src/test/java=UTF-8
5
+encoding//src/test/resources=UTF-8
6
+encoding/<project>=UTF-8

+ 0 - 0
mvnw


+ 13 - 0
src/main/java/org/develop/officialjournal/controllers/SearchController.java

1
 package org.develop.officialjournal.controllers;
1
 package org.develop.officialjournal.controllers;
2
 
2
 
3
+import java.util.List;
4
+
3
 import org.develop.officialjournal.services.Database;
5
 import org.develop.officialjournal.services.Database;
4
 import org.springframework.web.bind.annotation.RequestMapping;
6
 import org.springframework.web.bind.annotation.RequestMapping;
5
 import org.springframework.web.bind.annotation.RequestParam;
7
 import org.springframework.web.bind.annotation.RequestParam;
29
 		daoJudge =  Database.get().getDaoJudge();
31
 		daoJudge =  Database.get().getDaoJudge();
30
 		daoEntity =  Database.get().getDaoEntity();
32
 		daoEntity =  Database.get().getDaoEntity();
31
 		daoSearch = Database.get().getDaoSearch();
33
 		daoSearch = Database.get().getDaoSearch();
34
+	}
32
 		
35
 		
36
+	
37
+	
38
+	
39
+	/**returns lawyer by id*/
40
+	@RequestMapping("/search/autocomplete")
41
+	public List<Entity> autoComplete(@RequestParam String text ) {
42
+		
43
+		return daoSearch.autoComplete(text);
44
+	
33
 	}
45
 	}
46
+
34
 	
47
 	
35
 	
48
 	
36
 	/**returns lawyer by id*/
49
 	/**returns lawyer by id*/

+ 3 - 3
src/main/resources/static/index.html

73
 	        		<label>Busque Aqui</label>
73
 	        		<label>Busque Aqui</label>
74
 					<input type="text" ng-model="entity.text" size="50">
74
 					<input type="text" ng-model="entity.text" size="50">
75
 	      		</md-input-container>
75
 	      		</md-input-container>
76
-				<div style="position: relative; top: -5px; display: inline-block; ">
76
+				<div style="position: relative; top: -8px; display: inline-block; ">
77
 					<md-button ng-click="search()" class="md-raised md-warn">Buscar</md-button>
77
 					<md-button ng-click="search()" class="md-raised md-warn">Buscar</md-button>
78
 				</div>
78
 				</div>
79
 			</layout>
79
 			</layout>
120
 				<tr ng-repeat="process in processList">
120
 				<tr ng-repeat="process in processList">
121
 					<td><div > {{process.processDate}} </div></td>
121
 					<td><div > {{process.processDate}} </div></td>
122
 					<td><a   ng-click="getProcessNumber(process.processNumber)"  >{{process.processNumber}}</a> </td>
122
 					<td><a   ng-click="getProcessNumber(process.processNumber)"  >{{process.processNumber}}</a> </td>
123
-					<td><div >{{process.typeVerdict.name}} </div></td>
123
+					<td><div >{{process.processType.type}} </div></td>
124
 					<td >
124
 					<td >
125
 						<md-button class="md-primary md-raised" ng-click="showVerdict(this)"   >
125
 						<md-button class="md-primary md-raised" ng-click="showVerdict(this)"   >
126
-						     Sentença
126
+						     {{process.typeVerdict.name}}
127
     					</md-button>
127
     					</md-button>
128
 					</td>
128
 					</td>
129
 					<td >
129
 					<td >

+ 2 - 0
src/main/resources/static/script/module/search.js

1
 mainApp.controller("searchController", function($scope, $http, $mdDialog ) {
1
 mainApp.controller("searchController", function($scope, $http, $mdDialog ) {
2
 
2
 
3
 	var urlBase = "http://localhost:8080"
3
 	var urlBase = "http://localhost:8080"
4
+		
5
+	//var urlBase = "http://200.239.133.32:8080"
4
 
6
 
5
 
7
 
6
 
8