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
281e5c4d
Commit
281e5c4d
authored
Mar 21, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CIT--fixbug
parent
d06e561c
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
680 additions
and
603 deletions
+680
-603
TemplateController.java
.../java/pwc/taxtech/atms/controller/TemplateController.java
+3
-0
CitImportExcelServiceImpl.java
.../taxtech/atms/service/impl/CitImportExcelServiceImpl.java
+1
-0
TemplateGroupServiceImpl.java
...c/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
+6
-0
cit.json
atms-web/src/main/webapp/app-resources/i18n/en-us/cit.json
+3
-0
cit.json
atms-web/src/main/webapp/app-resources/i18n/zh-CN/cit.json
+3
-0
cit-layout.ctrl.js
...web/src/main/webapp/app/cit/cit-layout/cit-layout.ctrl.js
+618
-558
cit-import-layout.ctrl.js
...pp/cit/import/cit-import-layout/cit-import-layout.ctrl.js
+20
-20
cit-preview-tb-generate-ver.ctrl.js
...eview-tb-generate-ver/cit-preview-tb-generate-ver.ctrl.js
+1
-1
cit-preview-tb-mapping-ver.ctrl.js
...preview-tb-mapping-ver/cit-preview-tb-mapping-ver.ctrl.js
+1
-1
cit-asset-eam-mapping.ctrl.js
...ction/cit-asset-eam-mapping/cit-asset-eam-mapping.ctrl.js
+3
-3
cit-asset-eam-mapping.html
...eduction/cit-asset-eam-mapping/cit-asset-eam-mapping.html
+3
-2
cit-report-view.html
...ebapp/app/cit/report/cit-report-view/cit-report-view.html
+8
-8
constant.js
atms-web/src/main/webapp/app/common/utils/constant.js
+10
-10
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/TemplateController.java
View file @
281e5c4d
...
...
@@ -90,6 +90,9 @@ public class TemplateController extends BaseController {
Sheet
sheet
=
workbook
.
getSheetAt
(
i
);
for
(
int
r
=
sheet
.
getFirstRowNum
();
r
<=
sheet
.
getLastRowNum
();
r
++)
{
Row
row
=
sheet
.
getRow
(
r
);
if
(
row
==
null
){
continue
;
}
for
(
int
c
=
row
.
getFirstCellNum
();
c
<=
row
.
getLastCellNum
();
c
++)
{
if
(
c
<
0
){
continue
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitImportExcelServiceImpl.java
View file @
281e5c4d
...
...
@@ -1277,6 +1277,7 @@ public class CitImportExcelServiceImpl extends BaseService {
beanUtil
.
copyProperties
(
trialBalance
,
citTbam
);
citTbam
.
setId
(
idService
.
nextId
());
citTbam
.
setAttribute
(
daMapping
.
getAttribute
());
citTbam
.
setAccountDescription
(
citJournal
.
getSubjectName
());
citTbamList
.
add
(
citTbam
);
}
// citDraftAccountMappings.stream().forEach(daMapping -> {
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
View file @
281e5c4d
...
...
@@ -370,6 +370,9 @@ public class TemplateGroupServiceImpl extends AbstractService {
Sheet
temp
=
wtemp
.
getSheetAt
(
0
);
for
(
int
j
=
temp
.
getFirstRowNum
();
j
<
temp
.
getLastRowNum
();
j
++){
Row
row
=
temp
.
getRow
(
j
);
if
(
row
==
null
){
continue
;
}
for
(
int
k
=
row
.
getFirstCellNum
();
k
<
row
.
getLastCellNum
();
k
++){
Cell
cell
=
row
.
getCell
(
k
);
if
(
cell
==
null
)
{
...
...
@@ -405,6 +408,9 @@ public class TemplateGroupServiceImpl extends AbstractService {
List
<
PeriodDataSource
>
periodDataSourceList
=
Lists
.
newArrayList
();
for
(
int
r
=
sheet
.
getFirstRowNum
();
r
<=
sheet
.
getLastRowNum
();
r
++)
{
Row
row
=
sheet
.
getRow
(
r
);
if
(
row
==
null
){
continue
;
}
for
(
int
c
=
row
.
getFirstCellNum
();
c
<=
row
.
getLastCellNum
();
c
++)
{
if
(
c
<
0
){
continue
;
...
...
atms-web/src/main/webapp/app-resources/i18n/en-us/cit.json
View file @
281e5c4d
...
...
@@ -34,8 +34,10 @@
"AssetGroupName"
:
"Asset GroupName"
,
"AssetGroupNameValidation"
:
"Pleas Enter Asset GroupName"
,
"AssetDescription"
:
"Asset Description"
,
"AssetName"
:
"Asset Name"
,
"BuyDate"
:
"Buy Date"
,
"DepreciationDate"
:
"Depreciation Start Date"
,
"DepreciationDate2"
:
"Depreciation Date"
,
"DepreciationPeriod"
:
"Depreciation Period"
,
"AcquisitionValue"
:
"Acquisition Value"
,
"TotalAccountAcquisitionValue"
:
"Total Account Acquisition Value:"
,
...
...
@@ -45,6 +47,7 @@
"AdjustmentValue"
:
"Adjustment Value"
,
"DisposedDate"
:
"Disposed Date"
,
"ResidualRate"
:
"Residual Rate"
,
"ResidualValue"
:
"Residual Value"
,
"TaxMonthDepreciationAmount"
:
"Monthly Depreciation Amount(Tax)"
,
"TaxToCurrentYearDepreciationAmount"
:
"Up To Current Year Depreciation Amount(Tax)"
,
"ReportExportConfirm"
:
"The Report Data Has not Been Saved, and the Operation Result May be Inconsistent With the Actual.Confirm to perform this operation??"
,
...
...
atms-web/src/main/webapp/app-resources/i18n/zh-CN/cit.json
View file @
281e5c4d
...
...
@@ -34,8 +34,10 @@
"AssetGroupName"
:
"资产类别"
,
"AssetGroupNameValidation"
:
"请输入资产类别"
,
"AssetDescription"
:
"资产描述"
,
"AssetName"
:
"资产名称"
,
"BuyDate"
:
"购入日期"
,
"DepreciationDate"
:
"开始折旧日期"
,
"DepreciationDate2"
:
"报废日期"
,
"DepreciationPeriod"
:
"折旧期限"
,
"AcquisitionValue"
:
"原值"
,
"TotalAccountAcquisitionValue"
:
"资产原值:"
,
...
...
@@ -45,6 +47,7 @@
"AdjustmentValue"
:
"原值调整值"
,
"DisposedDate"
:
"报废日期"
,
"ResidualRate"
:
"残值率"
,
"ResidualValue"
:
"残值"
,
"TaxMonthDepreciationAmount"
:
"每月折旧额(税务)"
,
"TaxToCurrentYearDepreciationAmount"
:
"截止本年累计折旧额(税务)"
,
"ReportExportConfirm"
:
"报表数据还未保存,操作结果可能和实际不一致,确定要执行这个操作吗?"
,
...
...
atms-web/src/main/webapp/app/cit/cit-layout/cit-layout.ctrl.js
View file @
281e5c4d
citModule
.
controller
(
'citLayoutController'
,
[
'$scope'
,
'$rootScope'
,
'$location'
,
'$q'
,
'$log'
,
'$timeout'
,
'$state'
,
'$translate'
,
'projectService'
,
'SweetAlert'
,
'loginContext'
,
'citSessionService'
,
'vatSessionService'
,
'vatCommonService'
,
'vatWorkflowService'
,
'application'
,
'enums'
,
'$uibModal'
,
function
(
$scope
,
$rootScope
,
$location
,
$q
,
$log
,
$timeout
,
$state
,
$translate
,
projectService
,
SweetAlert
,
loginContext
,
citSessionService
,
vatSessionService
,
vatCommonService
,
vatWorkflowService
,
application
,
enums
,
$uibModal
)
{
'use strict'
;
$log
.
debug
(
'citLayoutController.ctor()...'
);
$scope
.
dateFormat
=
$translate
.
instant
(
'dateFormat4Year'
);
$scope
.
showSubMenu
=
true
;
$scope
.
projectName
=
vatSessionService
.
project
.
organizationName
+
'('
+
vatSessionService
.
project
.
year
+
')'
;
$scope
.
selectedDate
=
new
Date
(
citSessionService
.
year
,
0
,
1
);
$scope
.
startDate
=
new
Date
(
citSessionService
.
year
-
10
,
0
,
1
);
$scope
.
endDate
=
new
Date
(
citSessionService
.
year
+
10
,
0
,
1
);
var
subMenus
=
[];
// 应该根据权限去设置,这里先写死
//var subMenus = [
// {
// name: 'importData.balanceSheet', state: 'importData.balanceSheet', num: 1,
// permission: constant.vatPermission.dataImport.balanceSheet.queryCode, url: '#/cit/importData/balanceSheet'
// },
// {
// name: 'previewData.balanceSheet', state: 'previewData.balanceSheet', num: 2,
// permission: constant.vatPermission.dataPreview.balanceSheet.queryCode, url: '#/cit/previewData/balanceSheet'
// },
// {
// name: 'reductionData.caculateData', state: 'reductionData.caculateData', num: 3,
// permission: constant.vatPermission.dataManage.caculateDataCode, url: '#/cit/reductionData/caculateData'
// },
// {
// name: 'generateReport', state: 'generateReport', num: 4,
// permission: constant.vatPermission.reportView.reportViewCode, url: '#/cit/generateReport'
// },
// {
// name: 'analyzeLayout.analyzeReport', state: 'analyzeLayout.analyzeReport', num: 5,
// permission: constant.vatPermission.dataAnalysis.modelAnalysisCode, url: '#/cit/analyzeLayout/analyzeReport'
// }
//];
//$scope.menus = [{ name: 'importData', state: 'importData', num: 1, permission: '02.001', url: '#/cit/importData/balanceSheet' },
// { name: 'previewData', state: 'previewData', num: 2, permission: '02.002', url: '#/cit/previewData/balanceSheet' },
// { name: 'reductionData', state: 'reductionData', num: 3, permission: '02.003', url: '#/cit/reductionData/caculateData' },
// { name: 'generateReport', state: 'generateReport', num: 4, permission: '02.004', url: '#/cit/generateReport' },
// { name: 'analyzeReport', state: 'analyzeLayout', num: 5, permission: '02.005', url: '#/cit/citAanalyzeLayout/citAnalyzeReport' }];
var
subStatusDto
=
{
dispalyIndex
:
-
1
,
name
:
''
,
isImported
:
false
};
var
msgboxOptions
=
{
title
:
$translate
.
instant
(
'UnsavedChange'
),
text
:
$translate
.
instant
(
'ComfirmIgnoreUnsavedChanges'
),
type
:
"warning"
,
showCancelButton
:
true
,
confirmButtonColor
:
"#e0301e"
,
confirmButtonText
:
$translate
.
instant
(
'ConfirmYes'
),
cancelButtonText
:
$translate
.
instant
(
'ConfirmNo'
),
closeOnConfirm
:
true
,
closeOnCancel
:
true
};
$scope
.
changeDate
=
function
(
e
)
{
if
(
e
&&
e
.
date
)
{
var
tempYear
=
e
.
date
.
getFullYear
();
var
temp
=
enums
.
wholeYearPeriod
.
import
;
if
(
citSessionService
.
year
!=
tempYear
)
{
//年份切换,库也跟着改变
var
newProject
=
_
.
find
(
vatSessionService
.
projects
,
function
(
m
)
{
return
m
.
year
==
tempYear
&&
m
.
organizationID
==
vatSessionService
.
project
.
organizationID
&&
m
.
serviceTypeID
==
vatSessionService
.
project
.
serviceTypeID
&&
m
.
enterpriseAccountSetID
==
vatSessionService
.
project
.
enterpriseAccountSetID
});
function
(
$scope
,
$rootScope
,
$location
,
$q
,
$log
,
$timeout
,
$state
,
$translate
,
projectService
,
SweetAlert
,
loginContext
,
citSessionService
,
vatSessionService
,
vatCommonService
,
vatWorkflowService
,
application
,
enums
,
$uibModal
)
{
'use strict'
;
$log
.
debug
(
'citLayoutController.ctor()...'
);
$scope
.
dateFormat
=
$translate
.
instant
(
'dateFormat4Year'
);
$scope
.
showSubMenu
=
true
;
$scope
.
projectName
=
vatSessionService
.
project
.
organizationName
+
'('
+
vatSessionService
.
project
.
year
+
')'
;
$scope
.
selectedDate
=
new
Date
(
citSessionService
.
year
,
0
,
1
);
$scope
.
startDate
=
new
Date
(
citSessionService
.
year
-
10
,
0
,
1
);
$scope
.
endDate
=
new
Date
(
citSessionService
.
year
+
10
,
0
,
1
);
var
subMenus
=
[];
// 应该根据权限去设置,这里先写死
//var subMenus = [
// {
// name: 'importData.balanceSheet', state: 'importData.balanceSheet', num: 1,
// permission: constant.vatPermission.dataImport.balanceSheet.queryCode, url: '#/cit/importData/balanceSheet'
// },
// {
// name: 'previewData.balanceSheet', state: 'previewData.balanceSheet', num: 2,
// permission: constant.vatPermission.dataPreview.balanceSheet.queryCode, url: '#/cit/previewData/balanceSheet'
// },
// {
// name: 'reductionData.caculateData', state: 'reductionData.caculateData', num: 3,
// permission: constant.vatPermission.dataManage.caculateDataCode, url: '#/cit/reductionData/caculateData'
// },
// {
// name: 'generateReport', state: 'generateReport', num: 4,
// permission: constant.vatPermission.reportView.reportViewCode, url: '#/cit/generateReport'
// },
// {
// name: 'analyzeLayout.analyzeReport', state: 'analyzeLayout.analyzeReport', num: 5,
// permission: constant.vatPermission.dataAnalysis.modelAnalysisCode, url: '#/cit/analyzeLayout/analyzeReport'
// }
//];
//$scope.menus = [{ name: 'importData', state: 'importData', num: 1, permission: '02.001', url: '#/cit/importData/balanceSheet' },
// { name: 'previewData', state: 'previewData', num: 2, permission: '02.002', url: '#/cit/previewData/balanceSheet' },
// { name: 'reductionData', state: 'reductionData', num: 3, permission: '02.003', url: '#/cit/reductionData/caculateData' },
// { name: 'generateReport', state: 'generateReport', num: 4, permission: '02.004', url: '#/cit/generateReport' },
// { name: 'analyzeReport', state: 'analyzeLayout', num: 5, permission: '02.005', url: '#/cit/citAanalyzeLayout/citAnalyzeReport' }];
var
subStatusDto
=
{
dispalyIndex
:
-
1
,
name
:
''
,
isImported
:
false
};
if
(
newProject
&&
newProject
.
haveCreateProject
)
{
vatSessionService
.
project
=
newProject
;
citSessionService
.
year
=
tempYear
;
vatSessionService
.
year
=
tempYear
;
$scope
.
projectName
=
vatSessionService
.
project
.
organizationName
+
'('
+
vatSessionService
.
project
.
year
+
')'
;
}
else
{
SweetAlert
.
warning
(
$translate
.
instant
(
'NoProjet'
));
// $location.path('/summary');
return
;
}
var
msgboxOptions
=
{
title
:
$translate
.
instant
(
'UnsavedChange'
),
text
:
$translate
.
instant
(
'ComfirmIgnoreUnsavedChanges'
),
type
:
"warning"
,
showCancelButton
:
true
,
confirmButtonColor
:
"#e0301e"
,
confirmButtonText
:
$translate
.
instant
(
'ConfirmYes'
),
cancelButtonText
:
$translate
.
instant
(
'ConfirmNo'
),
closeOnConfirm
:
true
,
closeOnCancel
:
true
};
$timeout
(
function
()
{
$log
.
debug
(
$scope
.
changeDate
);
projectService
.
isProjectStatusExisted
(
vatSessionService
.
project
.
dbName
,
temp
).
success
(
function
(
or
)
{
if
(
or
.
result
)
{
//如果当前期间还没有导入任何数据的话,就添加一条未开始状态的记录
if
(
_
.
isNull
(
or
.
data
))
{
projectService
.
setProjectStatus
(
vatSessionService
.
project
.
dbName
,
temp
,
constant
.
ProjectStatusEnum
.
UnStarted
).
success
(
function
(
or
)
{
if
(
or
.
result
)
{
vatSessionService
.
updateObjectProperty
(
'project'
,
'projectStatusList.'
+
temp
,
constant
.
ProjectStatusEnum
.
UnStarted
);
initStatus
(
vatSessionService
.
project
.
dbName
,
vatSessionService
.
project
.
id
,
temp
);
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'SetProjectStatusError'
));
}
});
}
else
{
//已经导入的话,更新最新项目状态
vatSessionService
.
updateObjectProperty
(
'project'
,
'projectStatusList.'
+
temp
,
or
.
data
.
status
);
initStatus
(
vatSessionService
.
project
.
dbName
,
vatSessionService
.
project
.
id
,
temp
);
$scope
.
changeDate
=
function
(
e
)
{
if
(
e
&&
e
.
date
)
{
var
tempYear
=
e
.
date
.
getFullYear
();
var
temp
=
enums
.
wholeYearPeriod
.
import
;
if
(
citSessionService
.
year
!=
tempYear
)
{
//年份切换,库也跟着改变
var
newProject
=
_
.
find
(
vatSessionService
.
projects
,
function
(
m
)
{
return
m
.
year
==
tempYear
&&
m
.
organizationID
==
vatSessionService
.
project
.
organizationID
&&
m
.
serviceTypeID
==
vatSessionService
.
project
.
serviceTypeID
&&
m
.
enterpriseAccountSetID
==
vatSessionService
.
project
.
enterpriseAccountSetID
});
if
(
newProject
&&
newProject
.
haveCreateProject
)
{
vatSessionService
.
project
=
newProject
;
citSessionService
.
year
=
tempYear
;
vatSessionService
.
year
=
tempYear
;
$scope
.
projectName
=
vatSessionService
.
project
.
organizationName
+
'('
+
vatSessionService
.
project
.
year
+
')'
;
}
else
{
SweetAlert
.
warning
(
$translate
.
instant
(
'NoProjet'
));
// $location.path('/summary');
return
;
}
$timeout
(
function
()
{
$log
.
debug
(
$scope
.
changeDate
);
projectService
.
isProjectStatusExisted
(
vatSessionService
.
project
.
dbName
,
temp
).
success
(
function
(
or
)
{
if
(
or
.
result
)
{
//如果当前期间还没有导入任何数据的话,就添加一条未开始状态的记录
if
(
_
.
isNull
(
or
.
data
))
{
projectService
.
setProjectStatus
(
vatSessionService
.
project
.
dbName
,
temp
,
constant
.
ProjectStatusEnum
.
UnStarted
).
success
(
function
(
or
)
{
if
(
or
.
result
)
{
vatSessionService
.
updateObjectProperty
(
'project'
,
'projectStatusList.'
+
temp
,
constant
.
ProjectStatusEnum
.
UnStarted
);
initStatus
(
vatSessionService
.
project
.
dbName
,
vatSessionService
.
project
.
id
,
temp
);
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'SetProjectStatusError'
));
}
});
}
else
{
//已经导入的话,更新最新项目状态
vatSessionService
.
updateObjectProperty
(
'project'
,
'projectStatusList.'
+
temp
,
or
.
data
.
status
);
initStatus
(
vatSessionService
.
project
.
dbName
,
vatSessionService
.
project
.
id
,
temp
);
}
}
});
citSessionService
.
month
=
temp
;
citSessionService
.
year
=
tempYear
;
$scope
.
selectedDate
=
new
Date
(
citSessionService
.
year
,
0
,
1
);
//查看报表时路由为三层结构,特殊处理,其他逻辑不变
if
(
$state
.
$current
.
parent
&&
$state
.
$current
.
parent
.
self
.
name
===
'cit.generateReport'
)
{
$scope
.
$broadcast
(
'refreshCitGenerateReport'
,
{
templateId
:
$state
.
params
.
templateid
});
}
else
{
$state
.
reload
(
$state
.
$current
);
}
});
citSessionService
.
month
=
temp
;
citSessionService
.
year
=
tempYear
;
$scope
.
selectedDate
=
new
Date
(
citSessionService
.
year
,
0
,
1
);
//查看报表时路由为三层结构,特殊处理,其他逻辑不变
if
(
$state
.
$current
.
parent
&&
$state
.
$current
.
parent
.
self
.
name
===
'cit.generateReport'
)
{
$scope
.
$broadcast
(
'refreshCitGenerateReport'
,
{
templateId
:
$state
.
params
.
templateid
});
}
else
{
$state
.
reload
(
$state
.
$current
);
}
},
100
);
}
},
100
);
}
var
periodTemp
=
e
.
date
.
getMonth
()
+
1
;
var
sessionProject
=
vatSessionService
.
getProperty
(
"project"
);
if
(
citSessionService
.
month
!=
periodTemp
)
{
sessionProject
.
period
=
periodTemp
;
var
periodTemp
=
e
.
date
.
getMonth
()
+
1
;
var
sessionProject
=
vatSessionService
.
getProperty
(
"project"
);
if
(
citSessionService
.
month
!=
periodTemp
)
{
sessionProject
.
period
=
periodTemp
;
}
}
}
};
$scope
.
setPermissionMenu
=
function
()
{
$scope
.
menus
=
[];
var
menuList
=
constant
.
citMenuList
;
};
$scope
.
$root
.
checkUserOrganizationPermissionList
(
menuList
).
success
(
function
(
data
)
{
if
(
data
)
{
if
(
data
[
constant
.
citPermission
.
dataImport
.
balanceSheet
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'importData'
,
state
:
'importData'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
dataImportCode
,
url
:
'#/cit/importData'
});
subMenus
.
push
({
name
:
'importData.balanceSheet'
,
state
:
'importData.balanceSheet'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
balanceSheet
.
queryCode
,
url
:
'#/cit/importData/balanceSheet'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataImport
.
journalEntry
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'importData'
,
state
:
'importData'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
dataImportCode
,
url
:
'#/cit/importData'
});
subMenus
.
push
({
name
:
'importData.journalEntry'
,
state
:
'importData.journalEntry'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
journalEntry
.
queryCode
,
url
:
'#/cit/importData/journalEntry'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataImport
.
erpImport
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'importData'
,
state
:
'importData'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
dataImportCode
,
url
:
'#/cit/importData'
});
subMenus
.
push
({
name
:
'importData.erpData'
,
state
:
'importData.erpData'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
erpImport
.
queryCode
,
url
:
'#/cit/importData/erpData'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataImport
.
auditAdjust
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'importData'
,
state
:
'importData'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
dataImportCode
,
url
:
'#/cit/importData'
});
subMenus
.
push
({
name
:
'importData.auditAdjust'
,
state
:
'importData.auditAdjust'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
auditAdjust
.
queryCode
,
url
:
'#/cit/importData/auditAdjust'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataImport
.
documentList
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'importData'
,
state
:
'importData'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
dataImportCode
,
url
:
'#/cit/importData'
});
subMenus
.
push
({
name
:
'importData.documentList'
,
state
:
'importData.documentList'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
documentList
.
queryCode
,
url
:
'#/cit/importData/documentList'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataImport
.
assetList
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'importData'
,
state
:
'importData'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
dataImportCode
,
url
:
'#/cit/importData'
});
subMenus
.
push
({
name
:
'importData.assetList'
,
state
:
'importData.assetList'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
assetList
.
queryCode
,
url
:
'#/cit/importData/assetList'
});
}
//有万能导入数据菜单
else
if
(
vatSessionService
.
tableInfoList
.
length
>
0
)
{
var
importMenu
=
vatSessionService
.
tableInfoList
[
0
];
$scope
.
menus
.
push
({
name
:
'importData'
,
state
:
'importData'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
dataImportCode
,
url
:
'#/cit/importData'
});
subMenus
.
push
({
name
:
'importData.importDataView'
,
state
:
'importData.importDataView'
,
num
:
1
,
permission
:
importMenu
.
citQueryCode
,
url
:
'#/cit/importData'
});
}
$scope
.
setPermissionMenu
=
function
()
{
$scope
.
menus
=
[];
var
menuList
=
constant
.
citMenuList
;
$scope
.
$root
.
checkUserOrganizationPermissionList
(
menuList
).
success
(
function
(
data
)
{
if
(
data
)
{
// if (data[constant.citPermission.dataImport.balanceSheet.queryCode]) {
// $scope.menus.push({
// name: 'importData', state: 'importData', num: 1,
// permission: constant.citPermission.dataImport.dataImportCode, url: '#/cit/importData'
// });
// subMenus.push({
// name: 'importData.balanceSheet', state: 'importData.balanceSheet', num: 1,
// permission: constant.citPermission.dataImport.balanceSheet.queryCode, url: '#/cit/importData/balanceSheet'
// });
// }
// else if (data[constant.citPermission.dataImport.journalEntry.queryCode]) {
// $scope.menus.push({
// name: 'importData', state: 'importData', num: 1,
// permission: constant.citPermission.dataImport.dataImportCode, url: '#/cit/importData'
// });
// subMenus.push({
// name: 'importData.journalEntry', state: 'importData.journalEntry', num: 1,
// permission: constant.citPermission.dataImport.journalEntry.queryCode, url: '#/cit/importData/journalEntry'
// });
// }
// else if (data[constant.citPermission.dataImport.erpImport.queryCode]) {
// $scope.menus.push({
// name: 'importData', state: 'importData', num: 1,
// permission: constant.citPermission.dataImport.dataImportCode, url: '#/cit/importData'
// });
// subMenus.push({
// name: 'importData.erpData', state: 'importData.erpData', num: 1,
// permission: constant.citPermission.dataImport.erpImport.queryCode, url: '#/cit/importData/erpData'
// });
// }
// else if (data[constant.citPermission.dataImport.auditAdjust.queryCode]) {
// $scope.menus.push({
// name: 'importData', state: 'importData', num: 1,
// permission: constant.citPermission.dataImport.dataImportCode, url: '#/cit/importData'
// });
// subMenus.push({
// name: 'importData.auditAdjust', state: 'importData.auditAdjust', num: 1,
// permission: constant.citPermission.dataImport.auditAdjust.queryCode, url: '#/cit/importData/auditAdjust'
// });
// }
// else if (data[constant.citPermission.dataImport.documentList.queryCode]) {
// $scope.menus.push({
// name: 'importData', state: 'importData', num: 1,
// permission: constant.citPermission.dataImport.dataImportCode, url: '#/cit/importData'
// });
// subMenus.push({
// name: 'importData.documentList', state: 'importData.documentList', num: 1,
// permission: constant.citPermission.dataImport.documentList.queryCode, url: '#/cit/importData/documentList'
// });
// }
// else
if
(
data
[
constant
.
citPermission
.
dataImport
.
assetList
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'importData'
,
state
:
'importData'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
dataImportCode
,
url
:
'#/cit/importData'
});
subMenus
.
push
({
name
:
'importData.assetList'
,
state
:
'importData.assetList'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
assetList
.
queryCode
,
url
:
'#/cit/importData/assetList'
});
}
//有万能导入数据菜单
else
if
(
vatSessionService
.
tableInfoList
.
length
>
0
)
{
var
importMenu
=
vatSessionService
.
tableInfoList
[
0
];
$scope
.
menus
.
push
({
name
:
'importData'
,
state
:
'importData'
,
num
:
1
,
permission
:
constant
.
citPermission
.
dataImport
.
dataImportCode
,
url
:
'#/cit/importData'
});
subMenus
.
push
({
name
:
'importData.importDataView'
,
state
:
'importData.importDataView'
,
num
:
1
,
permission
:
importMenu
.
citQueryCode
,
url
:
'#/cit/importData'
});
}
// if (data[constant.citPermission.dataPreview.balanceSheet.queryCode]) {
// $scope.menus.push({
// name: 'previewData', state: 'previewData', num: 2,
// permission: constant.citPermission.dataPreview.dataPreviewCode, url: '#/cit/previewData'
// });
// subMenus.push({
// name: 'previewData.balanceSheet', state: 'previewData.balanceSheet', num: 2,
// permission: constant.citPermission.dataPreview.balanceSheet.queryCode, url: '#/cit/previewData/balanceSheet'
// });
// }
// else if (data[constant.citPermission.dataPreview.accountVoucher.queryCode]) {
// $scope.menus.push({
// name: 'previewData', state: 'previewData', num: 2,
// permission: constant.citPermission.dataPreview.dataPreviewCode, url: '#/cit/previewData'
// });
// subMenus.push({
// name: 'previewData.accountVoucher', state: 'previewData.accountVoucher', num: 2,
// permission: constant.citPermission.dataPreview.accountVoucher.queryCode, url: '#/cit/previewData/accountVoucher'
// });
// }
// else
// if (data[constant.citPermission.dataPreview.balanceSheet.queryCode]) {
// $scope.menus.push({
// name: 'previewData', state: 'previewData', num: 2,
// permission: constant.citPermission.dataPreview.dataPreviewCode, url: '#/cit/previewData'
// });
// subMenus.push({
// name: 'previewData.balanceSheet', state: 'previewData.balanceSheet', num: 2,
// permission: constant.citPermission.dataPreview.balanceSheet.queryCode, url: '#/cit/previewData/balanceSheet'
// });
// }
// else if (data[constant.citPermission.dataPreview.accountVoucher.queryCode]) {
// $scope.menus.push({
// name: 'previewData', state: 'previewData', num: 2,
// permission: constant.citPermission.dataPreview.dataPreviewCode, url: '#/cit/previewData'
// });
// subMenus.push({
// name: 'previewData.accountVoucher', state: 'previewData.accountVoucher', num: 2,
// permission: constant.citPermission.dataPreview.accountVoucher.queryCode, url: '#/cit/previewData/accountVoucher'
// });
// }
// else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
journalMerge
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.journalMerge'
,
state
:
'previewData.journalMerge'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
journalMerge
.
queryCode
,
url
:
'#/cit/previewData/journalMerge'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
bsGenerateVer
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.bsGenerateVer'
,
state
:
'previewData.bsGenerateVer'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
bsGenerateVer
.
queryCode
,
url
:
'#/cit/previewData/bsGenerateVer'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
bsMappingVer
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.bsMappingVer'
,
state
:
'previewData.bsMappingVer'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
bsMappingVer
.
queryCode
,
url
:
'#/cit/previewData/bsMappingVer'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
assetsList
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.assetsList'
,
state
:
'previewData.assetsList'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
assetsList
.
queryCode
,
url
:
'#/cit/previewData/assetsList'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
salaryAdvance
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.salaryAdvance'
,
state
:
'previewData.salaryAdvance'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
salaryAdvance
.
queryCode
,
url
:
'#/cit/previewData/salaryAdvance'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
eamDisposal
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.eamDisposal'
,
state
:
'previewData.eamDisposal'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
eamDisposal
.
queryCode
,
url
:
'#/cit/previewData/eamDisposal'
});
}
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.journalMerge'
,
state
:
'previewData.journalMerge'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
journalMerge
.
queryCode
,
url
:
'#/cit/previewData/journalMerge'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
bsGenerateVer
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.bsGenerateVer'
,
state
:
'previewData.bsGenerateVer'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
bsGenerateVer
.
queryCode
,
url
:
'#/cit/previewData/bsGenerateVer'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
bsMappingVer
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.bsMappingVer'
,
state
:
'previewData.bsMappingVer'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
bsMappingVer
.
queryCode
,
url
:
'#/cit/previewData/bsMappingVer'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
assetsList
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.assetsList'
,
state
:
'previewData.assetsList'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
assetsList
.
queryCode
,
url
:
'#/cit/previewData/assetsList'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
salaryAdvance
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.salaryAdvance'
,
state
:
'previewData.salaryAdvance'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
salaryAdvance
.
queryCode
,
url
:
'#/cit/previewData/salaryAdvance'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataPreview
.
eamDisposal
.
queryCode
])
{
$scope
.
menus
.
push
({
name
:
'previewData'
,
state
:
'previewData'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
dataPreviewCode
,
url
:
'#/cit/previewData'
});
subMenus
.
push
({
name
:
'previewData.eamDisposal'
,
state
:
'previewData.eamDisposal'
,
num
:
2
,
permission
:
constant
.
citPermission
.
dataPreview
.
eamDisposal
.
queryCode
,
url
:
'#/cit/previewData/eamDisposal'
});
}
if
(
data
[
constant
.
citPermission
.
dataManage
.
caculateDataCode
])
{
$scope
.
menus
.
push
({
name
:
'reductionData'
,
state
:
'reductionData'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
dataManageCode
,
url
:
'#/cit/reductionData'
});
subMenus
.
push
({
name
:
'reductionData.caculateData'
,
state
:
'reductionData.caculateData'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
caculateDataCode
,
url
:
'#/cit/reductionData/caculateData'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataManage
.
accountMappingCode
])
{
$scope
.
menus
.
push
({
name
:
'reductionData'
,
state
:
'reductionData'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
dataManageCode
,
url
:
'#/cit/reductionData'
});
subMenus
.
push
({
name
:
'reductionData.accountMapping'
,
state
:
'reductionData.accountMapping'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
accountMappingCode
,
url
:
'#/cit/reductionData/accountMapping'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataManage
.
assetEamMapping
])
{
$scope
.
menus
.
push
({
name
:
'reductionData'
,
state
:
'reductionData'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
dataManageCode
,
url
:
'#/cit/reductionData'
});
subMenus
.
push
({
name
:
'reductionData.assetEamMapping'
,
state
:
'reductionData.assetEamMapping'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
assetEamMapping
,
url
:
'#/cit/reductionData/assetEamMapping'
});
}
if
(
data
[
constant
.
citPermission
.
dataManage
.
caculateDataCode
])
{
$scope
.
menus
.
push
({
name
:
'reductionData'
,
state
:
'reductionData'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
dataManageCode
,
url
:
'#/cit/reductionData'
});
subMenus
.
push
({
name
:
'reductionData.caculateData'
,
state
:
'reductionData.caculateData'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
caculateDataCode
,
url
:
'#/cit/reductionData/caculateData'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataManage
.
accountMappingCode
])
{
$scope
.
menus
.
push
({
name
:
'reductionData'
,
state
:
'reductionData'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
dataManageCode
,
url
:
'#/cit/reductionData'
});
subMenus
.
push
({
name
:
'reductionData.accountMapping'
,
state
:
'reductionData.accountMapping'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
accountMappingCode
,
url
:
'#/cit/reductionData/accountMapping'
});
}
else
if
(
data
[
constant
.
citPermission
.
dataManage
.
assetEamMapping
])
{
$scope
.
menus
.
push
({
name
:
'reductionData'
,
state
:
'reductionData'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
dataManageCode
,
url
:
'#/cit/reductionData'
});
subMenus
.
push
({
name
:
'reductionData.assetEamMapping'
,
state
:
'reductionData.assetEamMapping'
,
num
:
3
,
permission
:
constant
.
citPermission
.
dataManage
.
assetEamMapping
,
url
:
'#/cit/reductionData/assetEamMapping'
});
}
if
(
data
[
constant
.
citPermission
.
reportView
.
bsplCode
]
||
data
[
constant
.
citPermission
.
reportView
.
quarterlyFilingReturnTypeCode
]
||
data
[
constant
.
citPermission
.
reportView
.
workingPaperTypeCode
]
||
data
[
constant
.
citPermission
.
reportView
.
taxReturnCode
]
||
data
[
constant
.
citPermission
.
reportView
.
otherReportCode
]
if
(
data
[
constant
.
citPermission
.
reportView
.
bsplCode
]
||
data
[
constant
.
citPermission
.
reportView
.
quarterlyFilingReturnTypeCode
]
||
data
[
constant
.
citPermission
.
reportView
.
workingPaperTypeCode
]
||
data
[
constant
.
citPermission
.
reportView
.
taxReturnCode
]
||
data
[
constant
.
citPermission
.
reportView
.
otherReportCode
]
)
{
$scope
.
menus
.
push
({
name
:
'generateReport'
,
state
:
'generateReport'
,
num
:
4
,
permission
:
constant
.
citPermission
.
reportView
.
reportViewCode
,
url
:
'#/cit/generateReport'
});
subMenus
.
push
({
name
:
'generateReport'
,
state
:
'generateReport'
,
num
:
4
,
permission
:
constant
.
citPermission
.
reportView
.
reportViewCode
,
url
:
'#/cit/generateReport'
});
$scope
.
menus
.
push
({
name
:
'generateReport'
,
state
:
'generateReport'
,
num
:
4
,
permission
:
constant
.
citPermission
.
reportView
.
reportViewCode
,
url
:
'#/cit/generateReport'
});
subMenus
.
push
({
name
:
'generateReport'
,
state
:
'generateReport'
,
num
:
4
,
permission
:
constant
.
citPermission
.
reportView
.
reportViewCode
,
url
:
'#/cit/generateReport'
});
}
// if (data[constant.citPermission.dataAnalysis.modelAnalysisCode]) {
// $scope.menus.push({
// name: 'analyzeReport', state: 'analyzeLayout', num: 5,
// permission: constant.citPermission.dataAnalysis.dataAnalysisCode, url: '#/cit/citAnalyzeLayout'
// });
// subMenus.push({
// name: 'analyzeLayout.analyzeReport', state: 'analyzeLayout.analyzeReport', num: 5,
// permission: constant.citPermission.dataAnalysis.modelAnalysisCode, url: '#/cit/citAnalyzeLayout/citAnalyzeReport'
// });
// }
// else if (data[constant.citPermission.dataAnalysis.dashboard.dashboardCode]) {
// $scope.menus.push({
// name: 'analyzeReport', state: 'analyzeLayout', num: 5,
// permission: constant.citPermission.dataAnalysis.dataAnalysisCode, url: '#/cit/citAnalyzeLayout'
// });
// subMenus.push({
// name: 'analyzeLayout.analyzeOrganizeDashboard', state: 'analyzeLayout.analyzeOrganizeDashboard', num: 5,
// permission: constant.citPermission.dataAnalysis.dashboard.dashboardCode, url: '#/cit/citAnalyzeLayout/citOrganizeDashboard'
// });
// }
}
});
// if (data[constant.citPermission.dataAnalysis.modelAnalysisCode]) {
// $scope.menus.push({
// name: 'analyzeReport', state: 'analyzeLayout', num: 5,
// permission: constant.citPermission.dataAnalysis.dataAnalysisCode, url: '#/cit/citAnalyzeLayout'
// });
// subMenus.push({
// name: 'analyzeLayout.analyzeReport', state: 'analyzeLayout.analyzeReport', num: 5,
// permission: constant.citPermission.dataAnalysis.modelAnalysisCode, url: '#/cit/citAnalyzeLayout/citAnalyzeReport'
// });
// }
// else if (data[constant.citPermission.dataAnalysis.dashboard.dashboardCode]) {
// $scope.menus.push({
// name: 'analyzeReport', state: 'analyzeLayout', num: 5,
// permission: constant.citPermission.dataAnalysis.dataAnalysisCode, url: '#/cit/citAnalyzeLayout'
// });
// subMenus.push({
// name: 'analyzeLayout.analyzeOrganizeDashboard', state: 'analyzeLayout.analyzeOrganizeDashboard', num: 5,
// permission: constant.citPermission.dataAnalysis.dashboard.dashboardCode, url: '#/cit/citAnalyzeLayout/citOrganizeDashboard'
// });
// }
}
$scope
.
$on
(
application
.
events
.
showSubMenu
,
function
(
event
,
data
)
{
if
(
data
)
{
$scope
.
showSubMenu
=
data
.
show
;
}
});
}
$scope
.
$on
(
application
.
events
.
showSubMenu
,
function
(
event
,
data
)
{
if
(
data
)
{
$scope
.
showSubMenu
=
data
.
show
;
}
});
$scope
.
showProjectStatus
=
function
()
{
var
modalInstance
=
$uibModal
.
open
({
animation
:
false
,
//appendTo: angular.element(document.querySelector('#imgProjectStatus')),//把弹出框加到imgProjectStatus下面
ariaLabelledBy
:
'modal-title'
,
ariaDescribedBy
:
'modal-body'
,
templateUrl
:
'model-project-status.html'
,
scope
:
$scope
,
windowClass
:
"model-project-status"
});
$scope
.
showProjectStatus
=
function
()
{
var
modalInstance
=
$uibModal
.
open
({
animation
:
false
,
//appendTo: angular.element(document.querySelector('#imgProjectStatus')),//把弹出框加到imgProjectStatus下面
ariaLabelledBy
:
'modal-title'
,
ariaDescribedBy
:
'modal-body'
,
templateUrl
:
'model-project-status.html'
,
scope
:
$scope
,
windowClass
:
"model-project-status"
});
modalInstance
.
rendered
.
then
(
function
()
{
$log
.
debug
(
"modalInstance.rendered"
);
// Grab target element
var
element
=
document
.
querySelector
(
'#imgProjectStatus'
),
// Get target position and size
rect
=
element
.
getBoundingClientRect
(),
// Grab modal element
modal
=
document
.
querySelector
(
'.model-project-status'
);
$log
.
debug
(
rect
);
// Set style
modal
.
style
.
margin
=
0
;
//modal.style.width = rect.width + 'px';
modal
.
style
.
top
=
rect
.
top
+
'px'
;
modal
.
style
.
left
=
rect
.
left
+
'px'
;
modalInstance
.
rendered
.
then
(
function
()
{
$log
.
debug
(
"modalInstance.rendered"
);
// Grab target element
var
element
=
document
.
querySelector
(
'#imgProjectStatus'
),
// Get target position and size
rect
=
element
.
getBoundingClientRect
(),
// Grab modal element
modal
=
document
.
querySelector
(
'.model-project-status'
);
$log
.
debug
(
rect
);
// Set style
modal
.
style
.
margin
=
0
;
//modal.style.width = rect.width + 'px';
modal
.
style
.
top
=
rect
.
top
+
'px'
;
modal
.
style
.
left
=
rect
.
left
+
'px'
;
});
});
$scope
.
closeModal
=
function
()
{
modalInstance
.
dismiss
(
'cancel'
);
};
$scope
.
closeModal
=
function
()
{
modalInstance
.
dismiss
(
'cancel'
);
};
setSubStatusDto
();
//setApproveDetailDto();
setSubmitDetailDto
();
setStartStatusText
(
citSessionService
.
month
);
}
$scope
.
showSubStatus
=
function
()
{
var
temp
=
$scope
.
displaySubStatus
;
$scope
.
displaySubStatus
=
!
temp
;
}
//设置项目状态Title
function
setLayoutStatusTitle
(
statusId
)
{
$log
.
debug
(
"setLayoutStatusTitle"
);
$scope
.
statusTitle
=
$translate
.
instant
(
'ProjectStatusTitle'
);
switch
(
statusId
)
{
case
constant
.
ProjectStatusEnum
.
UnStarted
:
$scope
.
statusTitle
+=
$translate
.
instant
(
'ProjectStatusUnStarted'
);
break
;
case
constant
.
ProjectStatusEnum
.
Imported
:
$scope
.
statusTitle
+=
$translate
.
instant
(
'ProjectStatusImported'
);
break
;
case
constant
.
ProjectStatusEnum
.
AccountMapSubmitted
:
$scope
.
statusTitle
+=
$translate
.
instant
(
'ProjectStatusAcccountMapSubmitted'
);
break
;
case
constant
.
ProjectStatusEnum
.
Generated
:
$scope
.
statusTitle
+=
$translate
.
instant
(
'ProjectStatusGenerated'
);
break
;
case
constant
.
ProjectStatusEnum
.
Completed
:
$scope
.
statusTitle
+=
$translate
.
instant
(
'ProejctStatusCompleted'
);
break
;
setSubStatusDto
();
//setApproveDetailDto();
setSubmitDetailDto
();
setStartStatusText
(
citSessionService
.
month
);
}
// START: For --->> Edmond Meng, CIT Demo
if
(
vatSessionService
.
project
.
id
===
"9cdb8cff-6183-4c1e-b417-398fe58b8bc9"
&&
vatSessionService
.
project
.
code
===
"10000"
&&
vatSessionService
.
project
.
periodDate
===
'2016'
||
vatSessionService
.
project
.
id
===
"a4ed628f-d9ae-49cb-956c-e9de1d6b70fb"
&&
vatSessionService
.
project
.
code
===
"10000"
&&
vatSessionService
.
project
.
periodDate
===
'2017'
)
{
$scope
.
statusTitle
=
$translate
.
instant
(
'ProjectStatusTitle'
)
+
$translate
.
instant
(
'ProjectStatusGenerated'
);
}
// END: For --->> Edmond Meng, CIT Demo
}
function
setSubStatusDto
()
{
$log
.
debug
(
"setSubStatusDto"
);
$scope
.
subStatusList
=
[];
var
tbStatus
=
{
dispalyIndex
:
1
,
name
:
$translate
.
instant
(
'balanceSheet'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isTbImport
};
var
entryStatus
=
{
dispalyIndex
:
2
,
name
:
$translate
.
instant
(
'JournalEntryTitle'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isEntryImport
};
var
erpStatus
=
{
dispalyIndex
:
3
,
name
:
$translate
.
instant
(
'erpData'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isErpImport
};
var
outputInvoiceStatus
=
{
dispalyIndex
:
4
,
name
:
$translate
.
instant
(
'outputInvoice'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isOutputInvoiceImport
};
var
inputInvoiceStatus
=
{
dispalyIndex
:
5
,
name
:
$translate
.
instant
(
'inputInvoice'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isInputInvoiceImport
};
var
customStatus
=
{
dispalyIndex
:
6
,
name
:
$translate
.
instant
(
'customInvoice'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isCustomInvoiceImport
};
var
voucherMapStatus
=
{
dispalyIndex
:
7
,
name
:
$translate
.
instant
(
'voucherMapping'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isVoucherMapImport
};
var
invoiceMapStatus
=
{
dispalyIndex
:
8
,
name
:
$translate
.
instant
(
'invoiceMapping'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isInvoiceMapImport
};
var
adjustStatus
=
{
dispalyIndex
:
9
,
name
:
$translate
.
instant
(
'auditAdjust'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isAdjustImport
};
$scope
.
subStatusList
.
push
(
tbStatus
);
$scope
.
subStatusList
.
push
(
entryStatus
);
$scope
.
subStatusList
.
push
(
erpStatus
);
$scope
.
subStatusList
.
push
(
outputInvoiceStatus
);
$scope
.
subStatusList
.
push
(
inputInvoiceStatus
);
$scope
.
subStatusList
.
push
(
customStatus
);
$scope
.
subStatusList
.
push
(
voucherMapStatus
);
$scope
.
subStatusList
.
push
(
invoiceMapStatus
);
$scope
.
subStatusList
.
push
(
adjustStatus
);
$log
.
debug
(
$scope
.
subStatusList
);
}
function
setSubmitDetailDto
()
{
$log
.
debug
(
"setSubmitDetailDto"
);
$scope
.
submitDetailDto
=
{
userId
:
""
,
userName
:
""
,
finishedDateTime
:
""
,
finishedData
:
""
,
isDone
:
false
}
var
wf
=
vatSessionService
.
project
.
workflow
;
if
(
_
.
isNull
(
wf
))
{
return
;
$scope
.
showSubStatus
=
function
()
{
var
temp
=
$scope
.
displaySubStatus
;
$scope
.
displaySubStatus
=
!
temp
;
}
var
viewReportNode
=
_
.
where
(
wf
.
workflowNodeList
,
{
dictionaryKey
:
constant
.
DictionaryDictKey
.
ViewReport
})[
0
];
if
(
!
_
.
isNull
(
viewReportNode
)
&&
!
_
.
isUndefined
(
viewReportNode
))
{
var
submitTask
=
_
.
where
(
viewReportNode
.
workflowTaskList
,
{
dictionaryKey
:
constant
.
DictionaryDictKey
.
WFSubmitReport
})[
0
];
if
(
!
_
.
isNull
(
submitTask
)
&&
!
_
.
isUndefined
(
submitTask
))
{
$scope
.
submitDetailDto
.
userId
=
submitTask
.
userId
;
$scope
.
submitDetailDto
.
userName
=
submitTask
.
userName
;
$scope
.
submitDetailDto
.
finishedDateTime
=
!
_
.
isNull
(
submitTask
.
createTime
)
?
(
new
Date
(
submitTask
.
createTime
)).
dateTimeToString
(
'yyyyMMdd'
)
:
""
;
$scope
.
submitDetailDto
.
isDone
=
submitTask
.
isDone
;
$scope
.
submitDetailDto
.
finishedData
=
$scope
.
submitDetailDto
.
userName
+
" "
+
$scope
.
submitDetailDto
.
finishedDateTime
;
//设置项目状态Title
function
setLayoutStatusTitle
(
statusId
)
{
$log
.
debug
(
"setLayoutStatusTitle"
);
$scope
.
statusTitle
=
$translate
.
instant
(
'ProjectStatusTitle'
);
switch
(
statusId
)
{
case
constant
.
ProjectStatusEnum
.
UnStarted
:
$scope
.
statusTitle
+=
$translate
.
instant
(
'ProjectStatusUnStarted'
);
break
;
case
constant
.
ProjectStatusEnum
.
Imported
:
$scope
.
statusTitle
+=
$translate
.
instant
(
'ProjectStatusImported'
);
break
;
case
constant
.
ProjectStatusEnum
.
AccountMapSubmitted
:
$scope
.
statusTitle
+=
$translate
.
instant
(
'ProjectStatusAcccountMapSubmitted'
);
break
;
case
constant
.
ProjectStatusEnum
.
Generated
:
$scope
.
statusTitle
+=
$translate
.
instant
(
'ProjectStatusGenerated'
);
break
;
case
constant
.
ProjectStatusEnum
.
Completed
:
$scope
.
statusTitle
+=
$translate
.
instant
(
'ProejctStatusCompleted'
);
break
;
}
// START: For --->> Edmond Meng, CIT Demo
if
(
vatSessionService
.
project
.
id
===
"9cdb8cff-6183-4c1e-b417-398fe58b8bc9"
&&
vatSessionService
.
project
.
code
===
"10000"
&&
vatSessionService
.
project
.
periodDate
===
'2016'
||
vatSessionService
.
project
.
id
===
"a4ed628f-d9ae-49cb-956c-e9de1d6b70fb"
&&
vatSessionService
.
project
.
code
===
"10000"
&&
vatSessionService
.
project
.
periodDate
===
'2017'
)
{
$scope
.
statusTitle
=
$translate
.
instant
(
'ProjectStatusTitle'
)
+
$translate
.
instant
(
'ProjectStatusGenerated'
);
}
// END: For --->> Edmond Meng, CIT Demo
}
function
setSubStatusDto
()
{
$log
.
debug
(
"setSubStatusDto"
);
$scope
.
subStatusList
=
[];
var
tbStatus
=
{
dispalyIndex
:
1
,
name
:
$translate
.
instant
(
'balanceSheet'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isTbImport
};
var
entryStatus
=
{
dispalyIndex
:
2
,
name
:
$translate
.
instant
(
'JournalEntryTitle'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isEntryImport
};
var
erpStatus
=
{
dispalyIndex
:
3
,
name
:
$translate
.
instant
(
'erpData'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isErpImport
};
var
outputInvoiceStatus
=
{
dispalyIndex
:
4
,
name
:
$translate
.
instant
(
'outputInvoice'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isOutputInvoiceImport
};
var
inputInvoiceStatus
=
{
dispalyIndex
:
5
,
name
:
$translate
.
instant
(
'inputInvoice'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isInputInvoiceImport
};
var
customStatus
=
{
dispalyIndex
:
6
,
name
:
$translate
.
instant
(
'customInvoice'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isCustomInvoiceImport
};
var
voucherMapStatus
=
{
dispalyIndex
:
7
,
name
:
$translate
.
instant
(
'voucherMapping'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isVoucherMapImport
};
var
invoiceMapStatus
=
{
dispalyIndex
:
8
,
name
:
$translate
.
instant
(
'invoiceMapping'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isInvoiceMapImport
};
var
adjustStatus
=
{
dispalyIndex
:
9
,
name
:
$translate
.
instant
(
'auditAdjust'
),
isImported
:
vatSessionService
.
project
.
importSubStatus
.
isAdjustImport
};
$scope
.
subStatusList
.
push
(
tbStatus
);
$scope
.
subStatusList
.
push
(
entryStatus
);
$scope
.
subStatusList
.
push
(
erpStatus
);
$scope
.
subStatusList
.
push
(
outputInvoiceStatus
);
$scope
.
subStatusList
.
push
(
inputInvoiceStatus
);
$scope
.
subStatusList
.
push
(
customStatus
);
$scope
.
subStatusList
.
push
(
voucherMapStatus
);
$scope
.
subStatusList
.
push
(
invoiceMapStatus
);
$scope
.
subStatusList
.
push
(
adjustStatus
);
$log
.
debug
(
$scope
.
subStatusList
);
}
}
//项目未开始时,第一个节点显示”未开始”,开始以后显示“开始”
function
setStartStatusText
(
period
)
{
var
curPeriodStatus
=
vatSessionService
.
project
.
projectStatusList
[
period
];
if
(
!
_
.
isUndefined
(
curPeriodStatus
))
{
if
(
_
.
isEqual
(
curPeriodStatus
,
constant
.
ProjectStatusEnum
.
UnStarted
))
{
$scope
.
startStatusText
=
$translate
.
instant
(
'ProjectStatusUnStarted'
);
function
setSubmitDetailDto
()
{
$log
.
debug
(
"setSubmitDetailDto"
);
$scope
.
submitDetailDto
=
{
userId
:
""
,
userName
:
""
,
finishedDateTime
:
""
,
finishedData
:
""
,
isDone
:
false
}
else
{
$scope
.
startStatusText
=
$translate
.
instant
(
'ProjectStatusStarted'
);
var
wf
=
vatSessionService
.
project
.
workflow
;
if
(
_
.
isNull
(
wf
))
{
return
;
}
}
}
function
initStatus
(
dbName
,
id
,
month
)
{
$q
.
all
([
projectService
.
getProjectStatus
(
dbName
,
id
,
month
),
vatWorkflowService
.
getWorkflowDetailByDb
(
dbName
,
month
)
]).
then
(
function
(
result
)
{
var
statusData
=
result
[
0
].
data
;
var
workflowData
=
result
[
1
].
data
;
if
(
statusData
.
result
)
{
$log
.
debug
(
"cit-layout.ctrl.js initStatus set project importSubStatus"
);
vatSessionService
.
updateObjectProperty
(
'project'
,
'importSubStatus'
,
statusData
.
data
.
importSubStatus
);
$scope
.
layoutVatSession
=
vatSessionService
;
$scope
.
period
=
citSessionService
.
month
;
setLayoutStatusTitle
(
vatSessionService
.
project
.
projectStatusList
[
month
]);
setStartStatusText
(
month
);
$log
.
debug
(
vatSessionService
.
project
.
importSubStatus
);
var
viewReportNode
=
_
.
where
(
wf
.
workflowNodeList
,
{
dictionaryKey
:
constant
.
DictionaryDictKey
.
ViewReport
})[
0
];
if
(
!
_
.
isNull
(
viewReportNode
)
&&
!
_
.
isUndefined
(
viewReportNode
))
{
var
submitTask
=
_
.
where
(
viewReportNode
.
workflowTaskList
,
{
dictionaryKey
:
constant
.
DictionaryDictKey
.
WFSubmitReport
})[
0
];
if
(
!
_
.
isNull
(
submitTask
)
&&
!
_
.
isUndefined
(
submitTask
))
{
$scope
.
submitDetailDto
.
userId
=
submitTask
.
userId
;
$scope
.
submitDetailDto
.
userName
=
submitTask
.
userName
;
$scope
.
submitDetailDto
.
finishedDateTime
=
!
_
.
isNull
(
submitTask
.
createTime
)
?
(
new
Date
(
submitTask
.
createTime
)).
dateTimeToString
(
'yyyyMMdd'
)
:
""
;
$scope
.
submitDetailDto
.
isDone
=
submitTask
.
isDone
;
$scope
.
submitDetailDto
.
finishedData
=
$scope
.
submitDetailDto
.
userName
+
" "
+
$scope
.
submitDetailDto
.
finishedDateTime
;
}
}
}
if
(
workflowData
.
result
)
{
$log
.
debug
(
"cit-layout.ctrl.js initStatus set project workflow"
);
vatSessionService
.
updateObjectProperty
(
'project'
,
'workflow'
,
workflowData
.
data
);
$log
.
debug
(
vatSessionService
.
project
.
workflow
);
//项目未开始时,第一个节点显示”未开始”,开始以后显示“开始”
function
setStartStatusText
(
period
)
{
var
curPeriodStatus
=
vatSessionService
.
project
.
projectStatusList
[
period
];
if
(
!
_
.
isUndefined
(
curPeriodStatus
))
{
if
(
_
.
isEqual
(
curPeriodStatus
,
constant
.
ProjectStatusEnum
.
UnStarted
))
{
$scope
.
startStatusText
=
$translate
.
instant
(
'ProjectStatusUnStarted'
);
}
else
{
$scope
.
startStatusText
=
$translate
.
instant
(
'ProjectStatusStarted'
);
}
}
});
}
var
goFirstSubMenu
=
function
(
toState
)
{
if
(
toState
&&
toState
.
name
&&
toState
.
name
.
length
>
4
&&
$scope
.
menus
)
{
var
to
=
toState
.
name
.
substring
(
4
);
var
state
=
_
.
find
(
subMenus
,
function
(
v
,
i
,
arr
)
{
if
(
v
&&
v
[
'state'
].
indexOf
(
to
+
'.'
)
>=
0
)
{
return
true
;
}
function
initStatus
(
dbName
,
id
,
month
)
{
$q
.
all
([
projectService
.
getProjectStatus
(
dbName
,
id
,
month
),
vatWorkflowService
.
getWorkflowDetailByDb
(
dbName
,
month
)
]).
then
(
function
(
result
)
{
var
statusData
=
result
[
0
].
data
;
var
workflowData
=
result
[
1
].
data
;
if
(
statusData
.
result
)
{
$log
.
debug
(
"cit-layout.ctrl.js initStatus set project importSubStatus"
);
vatSessionService
.
updateObjectProperty
(
'project'
,
'importSubStatus'
,
statusData
.
data
.
importSubStatus
);
$scope
.
layoutVatSession
=
vatSessionService
;
$scope
.
period
=
citSessionService
.
month
;
setLayoutStatusTitle
(
vatSessionService
.
project
.
projectStatusList
[
month
]);
setStartStatusText
(
month
);
$log
.
debug
(
vatSessionService
.
project
.
importSubStatus
);
}
if
(
workflowData
.
result
)
{
$log
.
debug
(
"cit-layout.ctrl.js initStatus set project workflow"
);
vatSessionService
.
updateObjectProperty
(
'project'
,
'workflow'
,
workflowData
.
data
);
$log
.
debug
(
vatSessionService
.
project
.
workflow
);
}
});
if
(
state
)
{
if
(
state
[
'state'
]
&&
state
[
'state'
].
indexOf
(
'importDataView'
)
>=
0
)
{
$state
.
go
(
'importDataView'
,
{
id
:
vatSessionService
.
tableInfoList
[
0
].
id
,
serviceType
:
enums
.
serviceType
.
CIT
});
}
else
{
$state
.
go
(
'cit.'
+
state
[
'state'
]);
}
}
else
{
$state
.
go
(
toState
);
};
}
}
$rootScope
.
$on
(
'$stateChangeStart'
,
function
(
event
,
toState
,
toParams
,
fromState
,
fromParams
,
options
)
{
// var mainMenu = ['cit.importData', 'cit.previewData', 'cit.reductionData', 'cit.citAnalyzeLayout'];
var
mainMenu
=
[
'cit.importData'
,
'cit.previewData'
,
'cit.reductionData'
];
if
(
citSessionService
.
dataChanged
)
{
event
.
preventDefault
();
SweetAlert
.
swal
(
msgboxOptions
,
function
(
isConfirm
)
{
if
(
isConfirm
)
{
citSessionService
.
dataChanged
=
false
;
if
(
_
.
contains
(
mainMenu
,
toState
.
name
))
{
goFirstSubMenu
(
toState
);
var
goFirstSubMenu
=
function
(
toState
)
{
if
(
toState
&&
toState
.
name
&&
toState
.
name
.
length
>
4
&&
$scope
.
menus
)
{
var
to
=
toState
.
name
.
substring
(
4
);
var
state
=
_
.
find
(
subMenus
,
function
(
v
,
i
,
arr
)
{
if
(
v
&&
v
[
'state'
].
indexOf
(
to
+
'.'
)
>=
0
)
{
return
true
;
}
else
{
$state
.
go
(
toState
,
toParams
,
options
);
};
};
});
});
if
(
state
)
{
if
(
state
[
'state'
]
&&
state
[
'state'
].
indexOf
(
'importDataView'
)
>=
0
)
{
$state
.
go
(
'importDataView'
,
{
id
:
vatSessionService
.
tableInfoList
[
0
].
id
,
serviceType
:
enums
.
serviceType
.
CIT
});
}
else
{
$state
.
go
(
'cit.'
+
state
[
'state'
]);
}
}
else
{
$state
.
go
(
toState
);
}
;
}
}
else
{
if
(
_
.
contains
(
mainMenu
,
toState
.
name
))
{
$rootScope
.
$on
(
'$stateChangeStart'
,
function
(
event
,
toState
,
toParams
,
fromState
,
fromParams
,
options
)
{
// var mainMenu = ['cit.importData', 'cit.previewData', 'cit.reductionData', 'cit.citAnalyzeLayout'];
var
mainMenu
=
[
'cit.importData'
,
'cit.previewData'
,
'cit.reductionData'
];
if
(
citSessionService
.
dataChanged
)
{
event
.
preventDefault
();
goFirstSubMenu
(
toState
);
};
};
});
(
function
initialize
()
{
$log
.
debug
(
"cit-layout-crtl.js initialize() "
);
$scope
.
displaySubStatus
=
false
;
//导入子状态是否显示
$scope
.
setPermissionMenu
();
initStatus
(
vatSessionService
.
project
.
dbName
,
vatSessionService
.
project
.
id
,
citSessionService
.
month
);
$rootScope
.
$on
(
'statusChanged'
,
function
(
event
,
args
)
{
$log
.
debug
(
"receive statusChanged"
);
$log
.
debug
(
args
.
status
);
setLayoutStatusTitle
(
args
.
status
);
SweetAlert
.
swal
(
msgboxOptions
,
function
(
isConfirm
)
{
if
(
isConfirm
)
{
citSessionService
.
dataChanged
=
false
;
if
(
_
.
contains
(
mainMenu
,
toState
.
name
))
{
goFirstSubMenu
(
toState
);
}
else
{
$state
.
go
(
toState
,
toParams
,
options
);
}
;
}
;
});
}
else
{
if
(
_
.
contains
(
mainMenu
,
toState
.
name
))
{
event
.
preventDefault
();
goFirstSubMenu
(
toState
);
}
;
}
;
});
})();
}]);
\ No newline at end of file
(
function
initialize
()
{
$log
.
debug
(
"cit-layout-crtl.js initialize() "
);
$scope
.
displaySubStatus
=
false
;
//导入子状态是否显示
$scope
.
setPermissionMenu
();
initStatus
(
vatSessionService
.
project
.
dbName
,
vatSessionService
.
project
.
id
,
citSessionService
.
month
);
$rootScope
.
$on
(
'statusChanged'
,
function
(
event
,
args
)
{
$log
.
debug
(
"receive statusChanged"
);
$log
.
debug
(
args
.
status
);
setLayoutStatusTitle
(
args
.
status
);
});
})();
}]);
\ No newline at end of file
atms-web/src/main/webapp/app/cit/import/cit-import-layout/cit-import-layout.ctrl.js
View file @
281e5c4d
...
...
@@ -92,26 +92,26 @@ function ($scope, $q, $log, $translate, $location, loginContext, enums, vatSessi
$scope
.
nodeDicKey
=
constant
.
DictionaryDictKey
.
DataImport
;
$scope
.
linkShort
=
enums
.
linkShort
.
ImportData
;
$scope
.
menus
=
[
{
name
:
'balanceSheet'
,
permission
:
constant
.
citPermission
.
dataImport
.
balanceSheet
.
queryCode
,
text
:
$translate
.
instant
(
'balanceSheet'
),
icon
:
'fa fa-bank'
},
{
name
:
'documentList'
,
permission
:
constant
.
citPermission
.
dataImport
.
documentList
.
queryCode
,
text
:
$translate
.
instant
(
'documentList'
),
icon
:
'fa fa-file-text-o'
},
{
name
:
'journalEntry'
,
permission
:
constant
.
citPermission
.
dataImport
.
journalEntry
.
queryCode
,
text
:
$translate
.
instant
(
'journalEntry'
),
icon
:
'fa fa-align-left'
},
{
name
:
'erpData'
,
permission
:
constant
.
citPermission
.
dataImport
.
erpImport
.
queryCode
,
text
:
$translate
.
instant
(
'erpData'
),
icon
:
'fa fa-list-ul'
},
{
name
:
'auditAdjust'
,
permission
:
constant
.
citPermission
.
dataImport
.
auditAdjust
.
queryCode
,
text
:
$translate
.
instant
(
'auditAdjust'
),
icon
:
'fa fa-adjust'
},
//
{
//
name: 'balanceSheet', permission: constant.citPermission.dataImport.balanceSheet.queryCode,
//
text: $translate.instant('balanceSheet'), icon: 'fa fa-bank'
//
},
//
{
//
name: 'documentList', permission: constant.citPermission.dataImport.documentList.queryCode,
//
text: $translate.instant('documentList'), icon: 'fa fa-file-text-o'
//
},
//
{
//
name: 'journalEntry', permission: constant.citPermission.dataImport.journalEntry.queryCode,
//
text: $translate.instant('journalEntry'), icon: 'fa fa-align-left'
//
},
//
{
//
name: 'erpData', permission: constant.citPermission.dataImport.erpImport.queryCode,
//
text: $translate.instant('erpData'), icon: 'fa fa-list-ul'
// },
//
{
//
name: 'auditAdjust', permission: constant.citPermission.dataImport.auditAdjust.queryCode,
//
text: $translate.instant('auditAdjust'), icon: 'fa fa-adjust'
// },
{
name
:
'assetList'
,
permission
:
constant
.
citPermission
.
dataImport
.
assetList
.
queryCode
,
text
:
$translate
.
instant
(
'AssetList'
),
icon
:
'fa fa-list-ul'
...
...
atms-web/src/main/webapp/app/cit/preview/cit-preview-tb-generate-ver/cit-preview-tb-generate-ver.ctrl.js
View file @
281e5c4d
...
...
@@ -312,7 +312,7 @@
{
name
:
$translate
.
instant
(
'AccountCode'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.accountCode}}<span></div>'
},
{
name
:
$translate
.
instant
(
'AccountDescription'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.accountDescription}}<span></div>'
},
{
name
:
$translate
.
instant
(
'AccountPeriod'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.accountPeriod}}</span></div>'
},
{
name
:
$translate
.
instant
(
'DebitAmount'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.debitAmount
| date:"yyyy-MM-dd"
}}</span></div>'
},
{
name
:
$translate
.
instant
(
'DebitAmount'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.debitAmount}}</span></div>'
},
{
name
:
$translate
.
instant
(
'CreditAmount'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.creditAmount}}</span></div>'
},
{
name
:
$translate
.
instant
(
'BeginningBalance'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.beginningBalance}}</span></div>'
},
{
name
:
$translate
.
instant
(
'EndingBalance'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.endingBalance}}</span></div>'
},
...
...
atms-web/src/main/webapp/app/cit/preview/cit-preview-tb-mapping-ver/cit-preview-tb-mapping-ver.ctrl.js
View file @
281e5c4d
...
...
@@ -316,7 +316,7 @@
{
name
:
$translate
.
instant
(
'AccountCode'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.accountCode}}<span></div>'
},
{
name
:
$translate
.
instant
(
'AccountDescription'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.accountDescription}}<span></div>'
},
{
name
:
$translate
.
instant
(
'AccountPeriod'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.accountPeriod}}</span></div>'
},
{
name
:
$translate
.
instant
(
'DebitAmount'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.debitAmount
| date:"yyyy-MM-dd"
}}</span></div>'
},
{
name
:
$translate
.
instant
(
'DebitAmount'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.debitAmount}}</span></div>'
},
{
name
:
$translate
.
instant
(
'CreditAmount'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.creditAmount}}</span></div>'
},
{
name
:
$translate
.
instant
(
'BeginningBalance'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.beginningBalance}}</span></div>'
},
{
name
:
$translate
.
instant
(
'EndingBalance'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.endingBalance}}</span></div>'
},
...
...
atms-web/src/main/webapp/app/cit/reduction/cit-asset-eam-mapping/cit-asset-eam-mapping.ctrl.js
View file @
281e5c4d
...
...
@@ -284,12 +284,12 @@
columnDefs
:
[
{
name
:
$translate
.
instant
(
'AssetType'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.assetType}}<span></div>'
},
{
name
:
$translate
.
instant
(
'AssetNumber'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.assetNumber}}<span></div>'
},
{
name
:
$translate
.
instant
(
'Asset
Description
'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.assetDescription}}</span></div>'
},
{
name
:
$translate
.
instant
(
'Asset
Name
'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.assetDescription}}</span></div>'
},
{
name
:
$translate
.
instant
(
'BuyDate'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.buyDate | date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'DepreciationDate'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.depreciationDate | date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'DepreciationDate
2
'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.depreciationDate | date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'AssetGroupName'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.assetGroupName}}</span></div>'
},
{
name
:
$translate
.
instant
(
'AcquisitionValue'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.acquisitionValue}}</span></div>'
},
{
name
:
$translate
.
instant
(
'Residual
Rat
e'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.residualRate}}</span></div>'
},
{
name
:
$translate
.
instant
(
'Residual
Valu
e'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.residualRate}}</span></div>'
},
{
name
:
$translate
.
instant
(
'YearEndValue'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.yearEndValue}}</span></div>'
},
{
name
:
$translate
.
instant
(
'CompensationSaleAmount'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.compensationSaleAmount}}</span></div>'
},
...
...
atms-web/src/main/webapp/app/cit/reduction/cit-asset-eam-mapping/cit-asset-eam-mapping.html
View file @
281e5c4d
<div
class=
"cit-asset-eam-mapping"
id=
"mainPreviewDiv"
>
<div
class=
"top-area-wrapper"
style=
"margin-top: 10px"
>
<span
translate=
"JournalTitle"
class=
"text-bold"
></span>
|
<span
class=
"text-bold"
translate=
"InvoiceQJ"
></span>
:
<input
type=
"text"
class=
"form-control input-width-middle periodInput"
style=
"position: relative; top: -30px; left: 180px;"
id=
"input-invoice-period-picker"
/>
<span
translate=
"JournalTitle"
class=
"text-bold"
></span>
|
<span
class=
"text-bold"
translate=
"InvoiceQJ"
style=
"display: none"
></span>
<input
type=
"text"
class=
"form-control input-width-middle periodInput"
style=
"position: relative; top: -30px; left: 180px;display: none"
id=
"input-invoice-period-picker"
/>
<span
ng-click=
"downloadJE()"
style=
"position: relative; top: -61px; left: 95%;"
><i
class=
"fa fa-file-excel-o"
aria-hidden=
"true"
></i>
{{'ExportBtn' | translate}}
</span>
</div>
...
...
atms-web/src/main/webapp/app/cit/report/cit-report-view/cit-report-view.html
View file @
281e5c4d
...
...
@@ -2,14 +2,14 @@
<!--Report SpreadJS-->
<div
ng-if=
"!isDocumentList"
class=
"row"
>
<span
ng-if=
"!isBSPL"
ng-click=
"openExportPop('export');"
><i
class=
"fa fa-download"
></i>
{{'ExportExcel' | translate}}
</span>
<
span
ng-if=
"!isBSPL"
ng-click=
"commitApprove();"
><i
class=
"fa fa-floppy-o"
></i>
{{'报表提审'}}
</span
>
<
span
ng-if=
"!isBSPL"
ng-click=
"doApprove();"
><i
class=
"fa fa-floppy-o"
></i>
{{'报表审批'}}
</span
>
<
span
ng-if=
"!isBSPL"
ng-click=
"upLoadManual();"
><i
class=
"fa fa-floppy-o"
></i>
{{'上传手工数据'}}
<
/span
>
<
span
ng-if=
"!isBSPL"
ng-click=
"openExportPop('upload');"
><i
class=
"fa fa-upload"
></i>
{{'UploadExcel' | translate}}
</span
>
<
!--<span ng-if="!isBSPL" ng-click="commitApprove();"><i-->
<!--class="fa fa-floppy-o"></i> {{'报表提审'}}</span>--
>
<
!--<span ng-if="!isBSPL" ng-click="doApprove();"><i-->
<!--class="fa fa-floppy-o"></i> {{'报表审批'}}</span>--
>
<
!--<span ng-if="!isBSPL" ng-click="upLoadManual();"><i-->
<!--class="fa fa-floppy-o"></i> {{'上传手工数据'}}-->
<
!--</span>--
>
<
!--<span ng-if="!isBSPL" ng-click="openExportPop('upload');"><i class="fa fa-upload"></i> {{'UploadExcel' | translate}}</span>--
>
<!--<span ng-if="!isBSPL" ng-click="saveReportCache();"><i-->
<!--class="fa fa-floppy-o"></i> {{'Save' | translate}}</span>-->
</div>
...
...
atms-web/src/main/webapp/app/common/utils/constant.js
View file @
281e5c4d
...
...
@@ -597,23 +597,23 @@ constant.citPermission = {
dataImportCode
:
'03.001'
,
balanceSheet
:
{
queryCode
:
'03.001.001'
,
importCode
:
'03.001.002'
//
importCode: '03.001.002'
},
journalEntry
:
{
queryCode
:
'03.001.003'
,
importCode
:
'03.001.004'
//
importCode: '03.001.004'
},
erpImport
:
{
queryCode
:
'03.001.005'
,
importCode
:
'03.001.006'
//
importCode: '03.001.006'
},
auditAdjust
:
{
queryCode
:
'03.001.007'
,
importCode
:
'03.001.008'
//
importCode: '03.001.008'
},
documentList
:
{
queryCode
:
'03.001.009'
,
importCode
:
'03.001.010'
//
importCode: '03.001.010'
},
assetList
:
{
queryCode
:
'03.001.011'
,
...
...
@@ -914,11 +914,11 @@ constant.analysisPermisson = {
};
constant
.
citMenuList
=
[
constant
.
citPermission
.
dataImport
.
balanceSheet
.
queryCode
,
constant
.
citPermission
.
dataImport
.
journalEntry
.
queryCode
,
constant
.
citPermission
.
dataImport
.
erpImport
.
queryCode
,
constant
.
citPermission
.
dataImport
.
auditAdjust
.
queryCode
,
constant
.
citPermission
.
dataImport
.
documentList
.
queryCode
,
//
constant.citPermission.dataImport.balanceSheet.queryCode,
//
constant.citPermission.dataImport.journalEntry.queryCode,
//
constant.citPermission.dataImport.erpImport.queryCode,
//
constant.citPermission.dataImport.auditAdjust.queryCode,
//
constant.citPermission.dataImport.documentList.queryCode,
constant
.
citPermission
.
dataImport
.
assetList
.
queryCode
,
constant
.
citPermission
.
dataPreview
.
balanceSheet
.
queryCode
,
...
...
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