Commit e8bc7bfa authored by sherlock's avatar sherlock

Merge branch 'dev_oracle_sherlock' into 'dev_oracle'

dffs\jffs\gl export number format

See merge request root/atms!212
parents 6421b091 5358de9d
...@@ -174,12 +174,12 @@ ...@@ -174,12 +174,12 @@
}; };
function doConfirmEventHandler() { function doConfirmEventHandler() {
swal.close();
var r = /^00\d*|^\.\d+|\.$/; var r = /^00\d*|^\.\d+|\.$/;
if ($scope.detail.inputValue && (isNaN($scope.detail.inputValue) || r.test($scope.detail.inputValue))) { if ($scope.detail.inputValue && (isNaN($scope.detail.inputValue) || r.test($scope.detail.inputValue))) {
SweetAlert.warning($translate.instant('CheckInputValueFormat')); SweetAlert.warning($translate.instant('CheckInputValueFormat'));
return; return;
} } else if ($scope.detail.inputValue && parseFloat($scope.detail.inputValue).toFixed(2) > 9999999999999) {
if ($scope.detail.inputValue && parseFloat($scope.detail.inputValue).toFixed(2) > 9999999999999) {
SweetAlert.warning($translate.instant('CheckInputValueLength')); SweetAlert.warning($translate.instant('CheckInputValueLength'));
return; return;
} }
...@@ -240,6 +240,8 @@ ...@@ -240,6 +240,8 @@
}, },
function (isConfirm) { function (isConfirm) {
if (isConfirm) { if (isConfirm) {
doConfirmEventHandler(); doConfirmEventHandler();
} else { } else {
swal.close(); swal.close();
...@@ -554,6 +556,9 @@ ...@@ -554,6 +556,9 @@
column: 'cellName', column: 'cellName',
customizeText: function (data) { customizeText: function (data) {
$("#dataSourceGrid .dx-datagrid-total-footer").hide(); $("#dataSourceGrid .dx-datagrid-total-footer").hide();
if($scope.detail.cellType == enums.formulaDataSourceType.TrialBalanceSource) {
return $scope.detail.cellInfo.money;
}
return $scope.detail.summaryExp; return $scope.detail.summaryExp;
} }
}, /*{ }, /*{
...@@ -566,6 +571,9 @@ ...@@ -566,6 +571,9 @@
column: 'cellConditionName', column: 'cellConditionName',
customizeText: function (data) { customizeText: function (data) {
$("#dataSourceGrid .dx-datagrid-total-footer").hide(); $("#dataSourceGrid .dx-datagrid-total-footer").hide();
if($scope.detail.cellType == enums.formulaDataSourceType.TrialBalanceSource) {
return $scope.detail.cellInfo.money;
}
return $scope.detail.summaryExp; return $scope.detail.summaryExp;
} }
}/*, { }/*, {
...@@ -738,7 +746,7 @@ ...@@ -738,7 +746,7 @@
}, },
{ {
calculateCellValue: function(){ calculateCellValue: function(){
var formula = $scope.detail.config.formular; var formula = $scope.detail.config.formula;
return formula.match(/\"\d+\"/); return formula.match(/\"\d+\"/);
}, },
// dataField: 'description', // dataField: 'description',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment