Commit 9f4a406112d21a601a20ee312348e8e0b79d8d43

Authored by Ronan Tavares Camargo
1 parent 3de32588
Exists in master

Atendimento #4999

cit-core/src/main/java/br/com/centralit/framework/util/UtilDate.java
@@ -838,6 +838,12 @@ public class UtilDate { @@ -838,6 +838,12 @@ public class UtilDate {
838 calendar.setTime(data); 838 calendar.setTime(data);
839 return calendar; 839 return calendar;
840 } 840 }
  841 +
  842 + public static Calendar getCalendarDoTimestamp(Timestamp timestamp){
  843 + Calendar calendar = Calendar.getInstance();
  844 + calendar.setTimeInMillis(timestamp.getTime());
  845 + return calendar;
  846 + }
841 847
842 public static boolean isDataDoMesAtual(Date data) { 848 public static boolean isDataDoMesAtual(Date data) {
843 return isDataDoMes(data, getCalendarDaDataAtual().get(2)); 849 return isDataDoMes(data, getCalendarDaDataAtual().get(2));
cit-portal-web/src/main/webapp/assets/js/angular/custom/directive/LabelInputDecimalDirective.js
@@ -13,6 +13,7 @@ citApp.directive("labelInputDecimal", ["$translate", function($translate) { @@ -13,6 +13,7 @@ citApp.directive("labelInputDecimal", ["$translate", function($translate) {
13 model : "=ngModel", 13 model : "=ngModel",
14 form : "=form", 14 form : "=form",
15 eventoChange : "&ngEventoChange", 15 eventoChange : "&ngEventoChange",
  16 + eventoKeyup : "&ngEventoKeyup",
16 eventoBlur: "=ngEventoBlur", 17 eventoBlur: "=ngEventoBlur",
17 precisao : "@ngPrecisao", 18 precisao : "@ngPrecisao",
18 labelAlertTooltip: '@', 19 labelAlertTooltip: '@',
@@ -24,7 +25,7 @@ citApp.directive("labelInputDecimal", ["$translate", function($translate) { @@ -24,7 +25,7 @@ citApp.directive("labelInputDecimal", ["$translate", function($translate) {
24 restrict : 'E', 25 restrict : 'E',
25 template : "<div class='form-group' ng-class=\"{'has-error': form[id].$error.required && (!form[id].$pristine || form.$submitted)}\">" + 26 template : "<div class='form-group' ng-class=\"{'has-error': form[id].$error.required && (!form[id].$pristine || form.$submitted)}\">" +
26 " <label for='{{id}}' class='control-label' ng-if='labelRender'><translate>{{label}}</translate> <span class='red' ng-show='obrigatorio'>*</span> <i ng-if='obrigatorio' ng-show='form[id].$error.required && (!form[id].$pristine || form.$submitted)' class='fa fa-warning red' tooltip='{{labelAlertTooltipCopy}}' tooltip-placement='top'></i> <i ng-if='labelInfoTooltipRender' class='fa fa-info-circle blue' tooltip='{{labelInfoTooltip}}' tooltip-placement='top'></i> <i ng-if='labelQuestionTooltipRender' class='fa fa-question-circle green' tooltip='{{labelQuestionTooltip}}' tooltip-placement='top'></i></label>"+ 27 " <label for='{{id}}' class='control-label' ng-if='labelRender'><translate>{{label}}</translate> <span class='red' ng-show='obrigatorio'>*</span> <i ng-if='obrigatorio' ng-show='form[id].$error.required && (!form[id].$pristine || form.$submitted)' class='fa fa-warning red' tooltip='{{labelAlertTooltipCopy}}' tooltip-placement='top'></i> <i ng-if='labelInfoTooltipRender' class='fa fa-info-circle blue' tooltip='{{labelInfoTooltip}}' tooltip-placement='top'></i> <i ng-if='labelQuestionTooltipRender' class='fa fa-question-circle green' tooltip='{{labelQuestionTooltip}}' tooltip-placement='top'></i></label>"+
27 - " <input type='text' class='form-control' ng-change='eventoChange()' ng-blur='eventoBlur(this)' ng-keydown='removeModel($event)' id='{{id}}' name='{{id}}' ng-model='model' ng-disabled='disabled' maxlength='{{maxlength ? maxlength : 23}}' ng-required='obrigatorio' ui-number-mask='{{precisao}}'/>" + 28 + " <input type='text' class='form-control' ng-keyup='eventoKeyup()' ng-change='eventoChange()' ng-blur='eventoBlur(this)' ng-keydown='removeModel($event)' id='{{id}}' name='{{id}}' ng-model='model' ng-disabled='disabled' maxlength='{{maxlength ? maxlength : 23}}' ng-required='obrigatorio' ui-number-mask='{{precisao}}'/>" +
28 "</div>", 29 "</div>",
29 30
30 controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) { 31 controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {