Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
e8bc7bfa
Commit
e8bc7bfa
authored
Nov 27, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_oracle_sherlock' into 'dev_oracle'
dffs\jffs\gl export number format See merge request root/atms!212
parents
6421b091
5358de9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
tax-report-cell-detail-modal.ctrl.js
...rt-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
+11
-3
No files found.
atms-web/src/main/webapp/app/common/controls/tax-report-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
View file @
e8bc7bfa
...
...
@@ -174,12 +174,12 @@
};
function
doConfirmEventHandler
()
{
swal
.
close
();
var
r
=
/^00
\d
*|^
\.\d
+|
\.
$/
;
if
(
$scope
.
detail
.
inputValue
&&
(
isNaN
(
$scope
.
detail
.
inputValue
)
||
r
.
test
(
$scope
.
detail
.
inputValue
)))
{
SweetAlert
.
warning
(
$translate
.
instant
(
'CheckInputValueFormat'
));
return
;
}
if
(
$scope
.
detail
.
inputValue
&&
parseFloat
(
$scope
.
detail
.
inputValue
).
toFixed
(
2
)
>
9999999999999
)
{
}
else
if
(
$scope
.
detail
.
inputValue
&&
parseFloat
(
$scope
.
detail
.
inputValue
).
toFixed
(
2
)
>
9999999999999
)
{
SweetAlert
.
warning
(
$translate
.
instant
(
'CheckInputValueLength'
));
return
;
}
...
...
@@ -240,6 +240,8 @@
},
function
(
isConfirm
)
{
if
(
isConfirm
)
{
doConfirmEventHandler
();
}
else
{
swal
.
close
();
...
...
@@ -554,6 +556,9 @@
column
:
'cellName'
,
customizeText
:
function
(
data
)
{
$
(
"#dataSourceGrid .dx-datagrid-total-footer"
).
hide
();
if
(
$scope
.
detail
.
cellType
==
enums
.
formulaDataSourceType
.
TrialBalanceSource
)
{
return
$scope
.
detail
.
cellInfo
.
money
;
}
return
$scope
.
detail
.
summaryExp
;
}
},
/*{
...
...
@@ -566,6 +571,9 @@
column
:
'cellConditionName'
,
customizeText
:
function
(
data
)
{
$
(
"#dataSourceGrid .dx-datagrid-total-footer"
).
hide
();
if
(
$scope
.
detail
.
cellType
==
enums
.
formulaDataSourceType
.
TrialBalanceSource
)
{
return
$scope
.
detail
.
cellInfo
.
money
;
}
return
$scope
.
detail
.
summaryExp
;
}
}
/*, {
...
...
@@ -738,7 +746,7 @@
},
{
calculateCellValue
:
function
(){
var
formula
=
$scope
.
detail
.
config
.
formula
r
;
var
formula
=
$scope
.
detail
.
config
.
formula
;
return
formula
.
match
(
/
\"\d
+
\"
/
);
},
// dataField: 'description',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment