This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $scope.purchaseOrderCheckChange = function(purorderobj){ | |
| if($scope.itemList.length>0) | |
| { | |
| var found = $scope.itemList.some(function(o){ | |
| return purorderobj.PUR_REQ_NO === o.PUR_REQ_NO; | |
| }) | |
| if(!found){ | |
| $scope.itemList.push(purorderobj); | |
| }else{ | |
| var index = $scope.itemList.indexOf(purorderobj); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| in js : $(event.target).parent().addClass('selected_requisition'); | |
| in view : markAsSelected($event) | |
| ng-class="{largeWidth: myVar == 'ok', smallWidth: myVar != 'ok'}" | |
| $scope.markAsSelected = function(event){ | |
| console.log(event.target); | |
| console.log($('tr.selected_requisition').parent()); | |
| $('tr.selected_requisition').parent().find('.selected_requisition').removeClass('selected_requisition'); | |
| if(event.target.type=='checkbox'){ | |
| $(event.target).parent().parent().addClass('selected_requisition'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sublime Text : | |
| 1. Column Select : shif + mouse right [ubuntu] | |
| 2. select extra ctrl | |
| 3. deselect alt | |
| Eclipse : | |
| 1. Column Select : alt + shift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tail -f /opt/tomcat/logs/catalina.out | |
| extends SpringBootServletInitializer [in application] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- curl -s "https://get.sdkman.io" | bash | |
| -- source "$HOME/.sdkman/bin/sdkman-init.sh" | |
| -- sdk install grails 2.5.6 | |
| Go to directory where you want to create grail application | |
| -- grails create-app | |
| -- give a name of the application | |
| -- grails run-app | |
| -- connect to mysql database | |
| Datasource : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pom | |
| <dependency> | |
| <groupId>com.oracle</groupId> | |
| <artifactId>ojdbc6</artifactId> | |
| <version>11.2.0</version> | |
| </dependency> | |
| terminal : | |
| mvn install:install-file -Dfile= [pathof downloaded jar ]ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add plugin in dependency plugin : compile "org.grails.plugins:rest-client-builder:2.1.1" | |
| def sms(){ | |
| def rest = new RestBuilder() | |
| MultiValueMap<String, String> form = new LinkedMultiValueMap<String, String>() | |
| form.add("UserID", "****") | |
| form.add("Passwor", "******") | |
| form.add("stuID", "*******") | |
| def resp = rest.post("http://localhost:8087/bankapi/student/CheckId") { | |
| accept JSONObject, 'application/json' | |
| contentType("application/x-www-form-urlencoded") |
OlderNewer