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
d4cf5f97
Commit
d4cf5f97
authored
Mar 02, 2019
by
gary
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_mysql' into dev_mysql
parents
72475254
b75d1cec
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
282 additions
and
216 deletions
+282
-216
CitImportExcelController.java
...pwc/taxtech/atms/controller/CitImportExcelController.java
+1
-1
TemplateGroupController.java
.../pwc/taxtech/atms/controller/TemplateGroupController.java
+13
-0
CitImportExcelServiceImpl.java
.../taxtech/atms/service/impl/CitImportExcelServiceImpl.java
+8
-4
EbsApiServiceImpl.java
...java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
+0
-0
TemplateGroupServiceImpl.java
...c/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
+22
-2
EbsApiServiceImplTest.java
.../pwc/taxtech/atms/service/impl/EbsApiServiceImplTest.java
+0
-0
CitSalaryAdvanceMapper.java
...ain/java/pwc/taxtech/atms/dao/CitSalaryAdvanceMapper.java
+2
-1
CitBSPrcAdjustExtendsMapper.xml
.../taxtech/atms/dao/extends/CitBSPrcAdjustExtendsMapper.xml
+1
-1
CitProfitPrcAdjustExtendsMapper.xml
...tech/atms/dao/extends/CitProfitPrcAdjustExtendsMapper.xml
+1
-1
CitSalaryAdvanceExtendsMapper.xml
...axtech/atms/dao/extends/CitSalaryAdvanceExtendsMapper.xml
+2
-2
TemplateExtendsMapper.xml
...es/pwc/taxtech/atms/dao/extends/TemplateExtendsMapper.xml
+2
-2
declaration-form-configuration.ctrl.js
...nFormConfiguration/declaration-form-configuration.ctrl.js
+75
-60
declaration-form-configuration.html
...tionFormConfiguration/declaration-form-configuration.html
+8
-8
declaration-form-configuration.less
...tionFormConfiguration/declaration-form-configuration.less
+3
-3
edit-template-modal.ctrl.js
.../controls/edit-template-modal/edit-template-modal.ctrl.js
+0
-0
edit-template-modal.html
...mon/controls/edit-template-modal/edit-template-modal.html
+0
-0
edit-template-modal.js
...ommon/controls/edit-template-modal/edit-template-modal.js
+31
-30
edit-template-modal.less
...mon/controls/edit-template-modal/edit-template-modal.less
+98
-93
import-cit-bs-prc-adjust.ctrl.js
...import-cit-bs-prc-adjust/import-cit-bs-prc-adjust.ctrl.js
+9
-2
import-cit-draft-account-mapping.ctrl.js
...-account-mapping/import-cit-draft-account-mapping.ctrl.js
+1
-1
import-cit-eam-assets-disposal.ctrl.js
...am-assets-disposal/import-cit-eam-assets-disposal.ctrl.js
+1
-1
import-cit-profit-prc-adjust.ctrl.js
...it-profit-prc-adjust/import-cit-profit-prc-adjust.ctrl.js
+1
-1
import-cit-salary-advance.ctrl.js
...port-cit-salary-advance/import-cit-salary-advance.ctrl.js
+1
-1
import-cit-trial-balance.ctrl.js
...import-cit-trial-balance/import-cit-trial-balance.ctrl.js
+1
-1
templateGroup.svc.js
...c/main/webapp/app/common/webservices/templateGroup.svc.js
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/CitImportExcelController.java
View file @
d4cf5f97
...
@@ -31,7 +31,7 @@ public class CitImportExcelController {
...
@@ -31,7 +31,7 @@ public class CitImportExcelController {
@RequestMapping
(
value
=
"/citImportExcel"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/citImportExcel"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
public
@ResponseBody
OperationResultDto
citImportExcel
(
@RequestParam
MultipartFile
file
,
@RequestParam
String
orgIds
,
OperationResultDto
citImportExcel
(
@RequestParam
MultipartFile
file
,
@RequestParam
(
required
=
false
)
String
orgIds
,
@RequestParam
String
periodDate
,
@RequestParam
String
periodDate
,
@RequestParam
Integer
importType
,
@RequestParam
Integer
importType
,
@RequestParam
Integer
importFileType
){
@RequestParam
Integer
importFileType
){
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/TemplateGroupController.java
View file @
d4cf5f97
...
@@ -156,4 +156,17 @@ public class TemplateGroupController {
...
@@ -156,4 +156,17 @@ public class TemplateGroupController {
return
OperationResultDto
.
error
(
ErrorMessage
.
SystemError
);
return
OperationResultDto
.
error
(
ErrorMessage
.
SystemError
);
}
}
@RequestMapping
(
value
=
"withoutTemplate"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
OperationResultDto
withoutTemplate
(
@RequestBody
TemplateGroupDto
templateGroupDto
)
{
try
{
templateGroupService
.
addTemplateGroupWithoutTemplate
(
templateGroupDto
);
return
OperationResultDto
.
success
();
}
catch
(
ServiceException
e
)
{
return
OperationResultDto
.
error
(
e
.
getMessage
());
}
catch
(
Exception
e
)
{
logger
.
error
(
"withoutTemplate error."
,
e
);
}
return
OperationResultDto
.
error
(
ErrorMessage
.
SystemError
);
}
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitImportExcelServiceImpl.java
View file @
d4cf5f97
...
@@ -25,6 +25,7 @@ import java.math.BigDecimal;
...
@@ -25,6 +25,7 @@ import java.math.BigDecimal;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
@Service
@Service
public
class
CitImportExcelServiceImpl
extends
BaseService
{
public
class
CitImportExcelServiceImpl
extends
BaseService
{
...
@@ -537,7 +538,7 @@ public class CitImportExcelServiceImpl extends BaseService {
...
@@ -537,7 +538,7 @@ public class CitImportExcelServiceImpl extends BaseService {
List
<
CitDataImportLog
>
citDataImportLogList
=
new
ArrayList
<>();
List
<
CitDataImportLog
>
citDataImportLogList
=
new
ArrayList
<>();
// Integer period = CitCommonUtil.getPeriod();
// Integer period = CitCommonUtil.getPeriod();
String
companyName
=
CitCommonUtil
.
getValue
(
sheet
.
getRow
(
5
).
getCell
(
1
)).
toString
();
String
companyName
=
CitCommonUtil
.
getValue
(
sheet
.
getRow
(
5
).
getCell
(
1
)).
toString
();
List
<
Organization
>
organizations
=
getOrganizationByName
(
companyName
);
List
<
Organization
>
organizations
=
getOrganizationByName
(
companyName
)
.
stream
().
filter
(
r
->
r
.
getCode
()!=
null
&&!(
""
.
equals
(
r
.
getCode
()))).
collect
(
Collectors
.
toList
())
;
String
companyCode
=
""
;
String
companyCode
=
""
;
String
orgId
=
""
;
String
orgId
=
""
;
String
taxPayerId
=
""
;
String
taxPayerId
=
""
;
...
@@ -547,6 +548,7 @@ public class CitImportExcelServiceImpl extends BaseService {
...
@@ -547,6 +548,7 @@ public class CitImportExcelServiceImpl extends BaseService {
if
(!
orgList
.
contains
(
orgId
)){
if
(!
orgList
.
contains
(
orgId
)){
saveResult
.
setResult
(
false
);
saveResult
.
setResult
(
false
);
saveResult
.
setData
(
false
);
saveResult
.
setResultMsg
(
ErrorMessageCN
.
DoNotSelectCompany
);
saveResult
.
setResultMsg
(
ErrorMessageCN
.
DoNotSelectCompany
);
return
saveResult
;
return
saveResult
;
}
}
...
@@ -556,6 +558,7 @@ public class CitImportExcelServiceImpl extends BaseService {
...
@@ -556,6 +558,7 @@ public class CitImportExcelServiceImpl extends BaseService {
}
else
{
}
else
{
saveResult
.
setResult
(
false
);
saveResult
.
setResult
(
false
);
saveResult
.
setData
(
false
);
saveResult
.
setResultMsg
(
ErrorMessageCN
.
NoCompanyError
);
saveResult
.
setResultMsg
(
ErrorMessageCN
.
NoCompanyError
);
return
saveResult
;
return
saveResult
;
}
}
...
@@ -592,7 +595,6 @@ public class CitImportExcelServiceImpl extends BaseService {
...
@@ -592,7 +595,6 @@ public class CitImportExcelServiceImpl extends BaseService {
citDataImportLogList
.
add
(
citDataImportLogError
);
citDataImportLogList
.
add
(
citDataImportLogError
);
continue
;
continue
;
}
}
System
.
out
.
println
(
cellValue
);
citBSPrcAdjust
.
setBegBal
(
new
BigDecimal
(
cellValue
.
toString
().
replace
(
","
,
""
)));
citBSPrcAdjust
.
setBegBal
(
new
BigDecimal
(
cellValue
.
toString
().
replace
(
","
,
""
)));
...
@@ -888,7 +890,7 @@ public class CitImportExcelServiceImpl extends BaseService {
...
@@ -888,7 +890,7 @@ public class CitImportExcelServiceImpl extends BaseService {
citDataImportLogList
.
add
(
citDataImportLogError
);
citDataImportLogList
.
add
(
citDataImportLogError
);
continue
;
continue
;
}
}
String
companyCode
=
cellValueCode
.
toString
();
String
companyCode
=
cellValueCode
.
toString
()
.
replace
(
".0"
,
""
)
;
//根据code(主体)获取机构相关信息
//根据code(主体)获取机构相关信息
List
<
Organization
>
organizations
=
getOrganizationByCode
(
companyCode
);
List
<
Organization
>
organizations
=
getOrganizationByCode
(
companyCode
);
String
companyName
=
""
;
String
companyName
=
""
;
...
@@ -969,7 +971,9 @@ public class CitImportExcelServiceImpl extends BaseService {
...
@@ -969,7 +971,9 @@ public class CitImportExcelServiceImpl extends BaseService {
citSalaryAdvanceMapper
.
deleteByExample
(
example
);
citSalaryAdvanceMapper
.
deleteByExample
(
example
);
updateImportLog
(
EnumCitImportType
.
SalaryAdvance
.
getCode
());
updateImportLog
(
EnumCitImportType
.
SalaryAdvance
.
getCode
());
}
}
int
insertBatchNum
=
citSalaryAdvanceMapper
.
insertBatch
(
citSalaryAdvanceList
);
if
(
citSalaryAdvanceList
.
size
()>
0
){
int
insertBatchNum
=
citSalaryAdvanceMapper
.
insertBatch
(
citSalaryAdvanceList
);
}
//循环遍历成功导入的数据,组装日志记录实体并放入集合
//循环遍历成功导入的数据,组装日志记录实体并放入集合
for
(
Map
.
Entry
<
String
,
Integer
>
entry
:
companySuccessMap
.
entrySet
())
{
for
(
Map
.
Entry
<
String
,
Integer
>
entry
:
companySuccessMap
.
entrySet
())
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
View file @
d4cf5f97
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
View file @
d4cf5f97
...
@@ -38,10 +38,8 @@ import pwc.taxtech.atms.entity.TemplateGroup;
...
@@ -38,10 +38,8 @@ import pwc.taxtech.atms.entity.TemplateGroup;
import
pwc.taxtech.atms.entity.TemplateGroupExample
;
import
pwc.taxtech.atms.entity.TemplateGroupExample
;
import
pwc.taxtech.atms.exception.ServiceException
;
import
pwc.taxtech.atms.exception.ServiceException
;
import
pwc.taxtech.atms.vat.dao.PeriodDataSourceMapper
;
import
pwc.taxtech.atms.vat.dao.PeriodDataSourceMapper
;
import
pwc.taxtech.atms.vat.entity.PeriodCellData
;
import
pwc.taxtech.atms.vat.entity.PeriodDataSource
;
import
pwc.taxtech.atms.vat.entity.PeriodDataSource
;
import
java.io.ByteArrayInputStream
;
import
java.io.ByteArrayOutputStream
;
import
java.io.ByteArrayOutputStream
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -527,6 +525,28 @@ public class TemplateGroupServiceImpl extends AbstractService {
...
@@ -527,6 +525,28 @@ public class TemplateGroupServiceImpl extends AbstractService {
}
}
@Transactional
public
void
addTemplateGroupWithoutTemplate
(
TemplateGroupDto
templateGroupDto
)
throws
ServiceException
{
List
<
TemplateGroup
>
groupList
=
templateGroupDao
.
getByGroupName
(
templateGroupDto
.
getName
());
if
(
CollectionUtils
.
isNotEmpty
(
groupList
))
{
throw
new
ServiceException
(
TemplateMessage
.
TemplateGroupNameExist
);
}
try
{
TemplateGroup
templateGroup
=
new
TemplateGroup
();
CommonUtils
.
copyProperties
(
templateGroupDto
,
templateGroup
);
Long
newGroupId
=
distributedIdService
.
nextId
();
Date
now
=
new
Date
();
templateGroup
.
setId
(
newGroupId
);
templateGroup
.
setCreateTime
(
now
);
templateGroup
.
setUpdateTime
(
now
);
templateGroup
.
setName
(
templateGroupDto
.
getName
());
templateGroupMapper
.
insertSelective
(
templateGroup
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"addTemplateGroupWithoutTemplate error."
,
e
);
throw
new
ServiceException
(
ErrorMessage
.
SystemError
);
}
}
private
List
<
CellTemplateConfig
>
getByTemplateId
(
Long
id
)
{
private
List
<
CellTemplateConfig
>
getByTemplateId
(
Long
id
)
{
CellTemplateConfigExample
example
=
new
CellTemplateConfigExample
();
CellTemplateConfigExample
example
=
new
CellTemplateConfigExample
();
CellTemplateConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
CellTemplateConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
...
...
atms-api/src/test/java/pwc/taxtech/atms/service/impl/EbsApiServiceImplTest.java
View file @
d4cf5f97
This diff is collapsed.
Click to expand it.
atms-dao/src/main/java/pwc/taxtech/atms/dao/CitSalaryAdvanceMapper.java
View file @
d4cf5f97
...
@@ -106,5 +106,5 @@ public interface CitSalaryAdvanceMapper extends MyMapper {
...
@@ -106,5 +106,5 @@ public interface CitSalaryAdvanceMapper extends MyMapper {
*/
*/
int
updateByPrimaryKey
(
CitSalaryAdvance
record
);
int
updateByPrimaryKey
(
CitSalaryAdvance
record
);
int
insertBatch
(
List
<
CitSalaryAdvance
>
citSalaryAdvanceL
ist
);
int
insertBatch
(
List
<
CitSalaryAdvance
>
l
ist
);
}
}
\ No newline at end of file
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/CitBSPrcAdjustExtendsMapper.xml
View file @
d4cf5f97
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<otherwise>
0,
</otherwise>
<otherwise>
0,
</otherwise>
</choose>
</choose>
<choose>
<choose>
<when
test=
"item.createBy != null"
>
#{item.create
d
By,jdbcType=VARCHAR},
</when>
<when
test=
"item.createBy != null"
>
#{item.createBy,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
<otherwise>
'',
</otherwise>
</choose>
</choose>
<choose>
<choose>
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/CitProfitPrcAdjustExtendsMapper.xml
View file @
d4cf5f97
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<otherwise>
0,
</otherwise>
<otherwise>
0,
</otherwise>
</choose>
</choose>
<choose>
<choose>
<when
test=
"item.createBy != null"
>
#{item.create
d
By,jdbcType=VARCHAR},
</when>
<when
test=
"item.createBy != null"
>
#{item.createBy,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
<otherwise>
'',
</otherwise>
</choose>
</choose>
<choose>
<choose>
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/CitSalaryAdvanceExtendsMapper.xml
View file @
d4cf5f97
...
@@ -29,8 +29,8 @@
...
@@ -29,8 +29,8 @@
<otherwise>
'',
</otherwise>
<otherwise>
'',
</otherwise>
</choose>
</choose>
<choose>
<choose>
<when
test=
"item.poNo != null"
>
#{item.poNo,jdbcType=
INTEGE
R},
</when>
<when
test=
"item.poNo != null"
>
#{item.poNo,jdbcType=
VARCHA
R},
</when>
<otherwise>
0
,
</otherwise>
<otherwise>
''
,
</otherwise>
</choose>
</choose>
<choose>
<choose>
<when
test=
"item.poSubjectCode != null"
>
#{item.poSubjectCode,jdbcType=VARCHAR},
</when>
<when
test=
"item.poSubjectCode != null"
>
#{item.poSubjectCode,jdbcType=VARCHAR},
</when>
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/TemplateExtendsMapper.xml
View file @
d4cf5f97
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
<select
id=
"getTemplateUniqDtosByTemplateAndTemplateGroup"
parameterType=
"map"
resultMap=
"TemplateUniqDto"
>
<select
id=
"getTemplateUniqDtosByTemplateAndTemplateGroup"
parameterType=
"map"
resultMap=
"TemplateUniqDto"
>
SELECT
SELECT
P.id as ID,
P.id as ID,
p
.code as Code,
P
.code as Code,
p
.name as Name,
P
.name as Name,
P.report_type as ReportType,
P.report_type as ReportType,
Q.id AS TEMPLATE_GROUP_ID,
Q.id AS TEMPLATE_GROUP_ID,
Q.name AS TEMPLATE_GROUP_NAME,
Q.name AS TEMPLATE_GROUP_NAME,
...
...
atms-web/src/main/webapp/app/admin/systemConfiguration/declarationFormConfiguration/declaration-form-configuration.ctrl.js
View file @
d4cf5f97
...
@@ -120,18 +120,14 @@
...
@@ -120,18 +120,14 @@
defaultValue
=
find
;
defaultValue
=
find
;
$scope
.
templateGroupId
=
find
.
id
;
$scope
.
templateGroupId
=
find
.
id
;
}
}
else
{
$scope
.
curTemplateGroup
=
null
;
}
}
}
dxControl
.
renderTemplateGroupDropDown
(
templateGroupData
,
defaultValue
);
dxControl
.
renderTemplateGroupDropDown
(
templateGroupData
,
defaultValue
);
loadReportType
();
if
(
templateGroupData
&&
templateGroupData
.
length
>
0
)
{
loadReportType
();
}
else
{
$
(
'#dx-select-template-groups'
).
dxDropDownBox
(
'instance'
).
option
(
'dataSource'
,
[]);
$
(
'#dx-select-template'
).
dxDropDownBox
(
'instance'
).
option
(
'dataSource'
,
[]);
}
});
});
}
}
};
};
...
@@ -147,39 +143,48 @@
...
@@ -147,39 +143,48 @@
}
}
};
};
if
(
$scope
.
curTemplateGroup
&&
$scope
.
curTemplateGroup
.
id
)
{
if
(
$scope
.
curServiceTypeId
===
enums
.
serviceType
.
VAT
)
{
if
(
$scope
.
curServiceTypeId
===
enums
.
serviceType
.
CIT
)
{
$scope
.
detailReportTypeList
=
angular
.
copy
(
defaultReportTypeOpt
);
$scope
.
detailReportTypeList
=
angular
.
copy
(
defaultReportTypeOpt
);
var
ds
=
_
.
filter
(
citReportTypeList
,
function
(
item
)
{
return
item
.
value
==
1
||
item
.
value
==
3
||
item
.
value
==
4
});
$scope
.
detailReportTypeList
.
dataSource
=
new
DevExpress
.
data
.
ArrayStore
({
$scope
.
detailReportTypeList
.
dataSource
=
new
DevExpress
.
data
.
ArrayStore
({
data
:
citReportTypeList
data
:
ds
});
});
$scope
.
detailReportTypeList
.
value
=
citReportTypeList
[
0
].
name
;
$scope
.
detailReportTypeList
.
value
=
citReportTypeList
[
0
].
name
;
$
(
'#dx-select-report-type'
).
dxSelectBox
(
'instance'
).
option
(
$scope
.
detailReportTypeList
);
$
(
'#dx-select-report-type'
).
dxSelectBox
(
'instance'
).
option
(
$scope
.
detailReportTypeList
);
$scope
.
reportType
=
citReportTypeList
[
0
];
$scope
.
reportType
=
citReportTypeList
[
0
];
listTemplates
();
listTemplates
();
}
else
if
(
$scope
.
curServiceTypeId
===
enums
.
serviceType
.
CF
)
{
$scope
.
detailReportTypeList
=
angular
.
copy
(
defaultReportTypeOpt
);
}
else
if
(
$scope
.
curServiceTypeId
===
enums
.
serviceType
.
CIT
)
{
$scope
.
detailReportTypeList
.
dataSource
=
new
DevExpress
.
data
.
ArrayStore
({
$scope
.
detailReportTypeList
=
angular
.
copy
(
defaultReportTypeOpt
);
data
:
cfReportTypeList
$scope
.
detailReportTypeList
.
dataSource
=
new
DevExpress
.
data
.
ArrayStore
({
});
data
:
citReportTypeList
$scope
.
detailReportTypeList
.
value
=
cfReportTypeList
[
1
].
name
;
});
$
(
'#dx-select-report-type'
).
dxSelectBox
(
'instance'
).
option
(
$scope
.
detailReportTypeList
);
$scope
.
detailReportTypeList
.
value
=
citReportTypeList
[
0
].
name
;
$scope
.
reportType
=
cfReportTypeList
[
1
];
$
(
'#dx-select-report-type'
).
dxSelectBox
(
'instance'
).
option
(
$scope
.
detailReportTypeList
);
listTemplates
();
$scope
.
reportType
=
citReportTypeList
[
0
];
}
else
if
(
$scope
.
curServiceTypeId
===
enums
.
serviceType
.
Others
)
{
listTemplates
();
$scope
.
detailReportTypeList
=
angular
.
copy
(
defaultReportTypeOpt
);
}
else
if
(
$scope
.
curServiceTypeId
===
enums
.
serviceType
.
CF
)
{
$scope
.
detailReportTypeList
.
dataSource
=
new
DevExpress
.
data
.
ArrayStore
({
$scope
.
detailReportTypeList
=
angular
.
copy
(
defaultReportTypeOpt
);
data
:
citReportTypeList
$scope
.
detailReportTypeList
.
dataSource
=
new
DevExpress
.
data
.
ArrayStore
({
});
data
:
cfReportTypeList
$scope
.
detailReportTypeList
.
value
=
citReportTypeList
[
0
].
name
;
});
$
(
'#dx-select-report-type'
).
dxSelectBox
(
'instance'
).
option
(
$scope
.
detailReportTypeList
);
$scope
.
detailReportTypeList
.
value
=
cfReportTypeList
[
1
].
name
;
$scope
.
reportType
=
citReportTypeList
[
0
];
$
(
'#dx-select-report-type'
).
dxSelectBox
(
'instance'
).
option
(
$scope
.
detailReportTypeList
);
listTemplates
();
$scope
.
reportType
=
cfReportTypeList
[
1
];
}
else
{
listTemplates
();
$
(
'#dx-select-report-type'
).
dxSelectBox
(
'instance'
).
option
(
'dataSource'
,
[]);
}
else
if
(
$scope
.
curServiceTypeId
===
enums
.
serviceType
.
Others
)
{
$scope
.
reportType
=
null
;
$scope
.
detailReportTypeList
=
angular
.
copy
(
defaultReportTypeOpt
);
listTemplates
();
$scope
.
detailReportTypeList
.
dataSource
=
new
DevExpress
.
data
.
ArrayStore
({
}
data
:
citReportTypeList
});
$scope
.
detailReportTypeList
.
value
=
citReportTypeList
[
0
].
name
;
$
(
'#dx-select-report-type'
).
dxSelectBox
(
'instance'
).
option
(
$scope
.
detailReportTypeList
);
$scope
.
reportType
=
citReportTypeList
[
0
];
listTemplates
();
}
else
{
$
(
'#dx-select-report-type'
).
dxSelectBox
(
'instance'
).
option
(
'dataSource'
,
[]);
$scope
.
reportType
=
null
;
listTemplates
();
}
}
};
};
...
@@ -315,31 +320,41 @@
...
@@ -315,31 +320,41 @@
//加载'报表'源数据
//加载'报表'源数据
var
listTemplates
=
function
()
{
var
listTemplates
=
function
()
{
templateGroupService
.
getTemplateList
(
$scope
.
curTemplateGroup
.
id
,
$scope
.
reportType
&&
$scope
.
reportType
.
value
).
success
(
function
(
templateData
)
{
if
(
$scope
.
curTemplateGroup
&&
$scope
.
curTemplateGroup
.
id
)
{
templateGroupService
.
getTemplateList
(
$scope
.
curTemplateGroup
.
id
,
$scope
.
reportType
&&
$scope
.
reportType
.
value
).
success
(
function
(
templateData
)
{
templateData
=
_
.
filter
(
templateData
,
function
(
row
)
{
return
row
.
isActiveAssociation
;
});
var
defaultValue
=
templateData
[
0
];
templateData
=
_
.
filter
(
templateData
,
function
(
row
)
{
if
(
$scope
.
currentTemplate
&&
(
$scope
.
currentTemplate
.
name
||
$scope
.
currentTemplate
.
id
))
{
return
row
.
isActiveAssociation
;
var
find
=
_
.
find
(
templateData
,
function
(
row
)
{
return
row
.
name
===
$scope
.
currentTemplate
.
name
||
row
.
id
===
$scope
.
currentTemplate
;
});
});
if
(
find
)
{
var
defaultValue
=
templateData
[
0
];
defaultValue
=
find
;
if
(
$scope
.
currentTemplate
&&
(
$scope
.
currentTemplate
.
name
||
$scope
.
currentTemplate
.
id
))
{
var
find
=
_
.
find
(
templateData
,
function
(
row
)
{
return
row
.
name
===
$scope
.
currentTemplate
.
name
||
row
.
id
===
$scope
.
currentTemplate
;
});
if
(
find
)
{
defaultValue
=
find
;
}
else
{
$scope
.
currentTemplate
=
null
;
}
}
}
}
$scope
.
templates
=
templateData
;
//当前组下的所有模板数据
$scope
.
templates
=
templateData
;
//当前组下的所有模板数据
dxControl
.
renderTemplateDropDown
(
templateData
,
defaultValue
);
dxControl
.
renderTemplateDropDown
(
templateData
,
defaultValue
);
//配置报表下拉框
//配置报表下拉框
if
(
templateData
&&
templateData
.
length
>
0
)
{
if
(
templateData
&&
templateData
.
length
>
0
)
{
$scope
.
ToggleSaveAs
=
showSavebutton
();
$scope
.
ToggleSaveAs
=
showSavebutton
();
}
}
});
});
}
else
{
$
(
'#dx-select-template-groups'
).
dxDropDownBox
(
'instance'
).
option
(
'dataSource'
,
[]);
$scope
.
templates
.
length
=
0
;
$scope
.
currentTemplate
=
null
;
}
};
};
//模板不是默认模板才可以编辑和保存
//模板不是默认模板才可以编辑和保存
var
showSavebutton
=
function
()
{
var
showSavebutton
=
function
()
{
...
...
atms-web/src/main/webapp/app/admin/systemConfiguration/declarationFormConfiguration/declaration-form-configuration.html
View file @
d4cf5f97
...
@@ -28,15 +28,15 @@
...
@@ -28,15 +28,15 @@
<div
class=
"templates-top"
>
<div
class=
"templates-top"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<span
class=
"tab-content-select-lable"
ng-show=
"curServiceTypeId !=='12'"
>
{{'IndustryColon' | translate}}
</span>
<span
class=
"tab-content-select-lable"
ng-show=
"curServiceTypeId !=='12'"
>
{{'IndustryColon' | translate}}
</span>
<div
id=
"dx-select-industry"
class=
"tab-content-select industry col-md-2"
ng-show=
"curServiceTypeId !=='12'"
dx-select-box=
"dataSourceIndustryList"
<div
id=
"dx-select-industry"
class=
"tab-content-select industry col-md-2"
ng-show=
"curServiceTypeId !=='12'"
dx-item-alias=
"itemObj"
>
dx-select-box=
"dataSourceIndustryList"
dx-item-alias=
"itemObj"
>
<div
data-options=
"dxTemplate: { name: 'industryItem' }"
class=
"dx-item-content dx-list-item-content"
title=
"{{itemObj.name}}"
>
<div
data-options=
"dxTemplate: { name: 'industryItem' }"
class=
"dx-item-content dx-list-item-content"
title=
"{{itemObj.name}}"
>
{{itemObj.name}}
{{itemObj.name}}
</div>
</div>
</div>
</div>
<span
class=
"tab-content-select-lable"
translate=
"ReportType"
ng-show=
"curServiceTypeId === '2'"
>
</span>
<span
class=
"tab-content-select-lable"
ng-show=
"curServiceTypeId === '2'"
>
{{'Ratepayer' | translate}}:
</span>
<div
class=
"tab-content-select reportType col-md-2"
id=
"dx-select-pay-tax-type"
ng-show=
"curServiceTypeId === '2'"
dx-select-box=
"dataSourcePayTaxTypeList"
<div
class=
"tab-content-select reportType col-md-2"
id=
"dx-select-pay-tax-type"
ng-show=
"curServiceTypeId === '2'"
dx-item-alias=
"itemObj"
>
dx-select-box=
"dataSourcePayTaxTypeList"
dx-item-alias=
"itemObj"
>
<div
data-options=
"dxTemplate: { name: 'filingTypeItem' }"
class=
"dx-item-content dx-list-item-content"
title=
"{{itemObj.name}}"
>
<div
data-options=
"dxTemplate: { name: 'filingTypeItem' }"
class=
"dx-item-content dx-list-item-content"
title=
"{{itemObj.name}}"
>
{{itemObj.name}}
{{itemObj.name}}
</div>
</div>
...
@@ -44,9 +44,9 @@
...
@@ -44,9 +44,9 @@
<span
class=
"tab-content-select-lable"
>
{{'SelectTemplateGroup' | translate}}
</span>
<span
class=
"tab-content-select-lable"
>
{{'SelectTemplateGroup' | translate}}
</span>
<div
class=
"tab-content-select selectTemplateGroup col-md-2"
id=
"dx-select-template-groups"
>
<div
class=
"tab-content-select selectTemplateGroup col-md-2"
id=
"dx-select-template-groups"
>
</div>
</div>
<span
class=
"tab-content-select-lable"
translate=
"ReportType"
ng-show=
"curServiceTypeId === '6' || curServiceTypeId === '11' || curServiceTypeId === '99'"
></span>
<span
class=
"tab-content-select-lable"
translate=
"ReportType"
ng-show=
"curServiceTypeId === '
2' ||curServiceTypeId === '
6' || curServiceTypeId === '11' || curServiceTypeId === '99'"
></span>
<div
class=
"tab-content-select reportType col-md-2"
id=
"dx-select-report-type"
ng-show=
"curServiceTypeId === '6' || curServiceTypeId === '11' || curServiceTypeId === '99'"
<div
class=
"tab-content-select reportType col-md-2"
id=
"dx-select-report-type"
ng-show=
"curServiceTypeId === '
2' ||curServiceTypeId === '
6' || curServiceTypeId === '11' || curServiceTypeId === '99'"
dx-select-box=
"detailReportTypeList"
dx-item-alias=
"itemObj"
>
dx-select-box=
"detailReportTypeList"
dx-item-alias=
"itemObj"
>
<div
data-options=
"dxTemplate: { name: 'reportTypeItem' }"
class=
"dx-item-content dx-list-item-content"
title=
"{{itemObj.name}}"
>
<div
data-options=
"dxTemplate: { name: 'reportTypeItem' }"
class=
"dx-item-content dx-list-item-content"
title=
"{{itemObj.name}}"
>
{{itemObj.name}}
{{itemObj.name}}
</div>
</div>
...
...
atms-web/src/main/webapp/app/admin/systemConfiguration/declarationFormConfiguration/declaration-form-configuration.less
View file @
d4cf5f97
...
@@ -240,15 +240,15 @@
...
@@ -240,15 +240,15 @@
}
}
&.reportType {
&.reportType {
width: 1
3
0px;
width: 1
2
0px;
}
}
&.selectTemplateGroup {
&.selectTemplateGroup {
width:
20
0px;
width:
15
0px;
}
}
&.selectReport {
&.selectReport {
width:
20
0px;
width:
15
0px;
}
}
}
}
}
}
...
...
atms-web/src/main/webapp/app/common/controls/edit-template-modal/edit-template-modal.ctrl.js
View file @
d4cf5f97
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/common/controls/edit-template-modal/edit-template-modal.html
View file @
d4cf5f97
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/common/controls/edit-template-modal/edit-template-modal.js
View file @
d4cf5f97
commonModule
.
directive
(
'editTemplateModal'
,
[
'$log'
,
commonModule
.
directive
(
'editTemplateModal'
,
[
'$log'
,
function
(
$log
)
{
function
(
$log
)
{
'use strict'
;
'use strict'
;
$log
.
debug
(
'editUserModal.ctor()...'
);
$log
.
debug
(
'editUserModal.ctor()...'
);
return
{
return
{
restrict
:
'E'
,
restrict
:
'E'
,
templateUrl
:
'/app/common/controls/edit-template-modal/edit-template-modal.html'
+
'?_='
+
Math
.
random
(),
templateUrl
:
'/app/common/controls/edit-template-modal/edit-template-modal.html'
+
'?_='
+
Math
.
random
(),
replace
:
true
,
replace
:
true
,
controller
:
'editTemplateModalController'
,
controller
:
'editTemplateModalController'
,
scope
:
scope
:
{
{
operateType
:
'='
,
operateType
:
'='
,
templateModel
:
'=?'
,
templateModel
:
'=?'
,
isUpdate
:
'=?'
,
isUpdate
:
'=?'
,
onClosed
:
'&'
onClosed
:
'&'
}
}
//,
//,
//link: function (scope, element) {
//link: function (scope, element) {
// element.find('.selector-input').on('focus', function () {
// element.find('.selector-input').on('focus', function () {
// element.find('.org-tree-container').show();
// element.find('.org-tree-container').show();
// });
// });
// $(document).on('click', function () {
// $(document).on('click', function () {
// element.find('.org-tree-container').hide();
// element.find('.org-tree-container').hide();
// }).on('click', '.org-tree-wrapper', function (e) {
// }).on('click', '.org-tree-wrapper', function (e) {
// e.stopPropagation();
// e.stopPropagation();
// });
// });
//}
//}
};
};
}
}
]);
]);
\ No newline at end of file
atms-web/src/main/webapp/app/common/controls/edit-template-modal/edit-template-modal.less
View file @
d4cf5f97
@import "~/app-resources/css/admin-theme.less";
@import "~/app-resources/css/admin-theme.less";
.edit-template-modal-wrapper {
.edit-template-modal-wrapper {
.radio-wrapper {
.radio-wrapper {
margin-left: 0px;
margin-left: 0px;
}
}
.control-label {
.control-label {
width: 100px!important;
width: 100px!important;
font-weight: normal;
font-weight: normal;
padding-left: 15px!important;
padding-left: 15px!important;
padding-right: 0px!important;
padding-right: 0px!important;
text-align: left;
text-align: left;
}
}
.normal-label {
.normal-label {
font-weight: normal;
font-weight: normal;
padding-left: 0px!important;
padding-left: 0px!important;
padding-right: 0px!important;
padding-right: 0px!important;
input[type="radio"] {
input[type="radio"] {
margin: 0px 0.5em 0px 0px;
margin: 0px 0.5em 0px 0px;
}
}
}
}
.col-sm-5,
.col-sm-5,
.col-sm-7,
.col-sm-7,
col-sm-9 {
col-sm-9 {
padding-left: 0px!important;
padding-left: 0px!important;
padding-right: 0px!important;
padding-right: 0px!important;
}
}
.upload-sheet-wrapper {
.upload-sheet-wrapper {
padding-left: 0;
padding-left: 0;
padding-right: 32px;
padding-right: 32px;
}
}
}
.checkbox {
.edit-template-name-wrapper {
margin-left: 100px;
.modal-content {
}
width: 400px!important;
}
}
.edit-template-name-wrapper {
.must-input {
.modal-content {
color: red;
width: 400px!important;
}
}
.control-label {
width: 100px !important;
.must-input {
font-weight: normal;
color: red;
padding-left: 15px;
}
padding-right: 0px;
.control-label {
text-align: left;
width: 100px !important;
}
font-weight: normal;
padding-left: 15px;
.col-sm-8 {
padding-right: 0px;
padding-left: 0px;
text-align: left;
padding-right: 0px;
}
}
}
.col-sm-8 {
padding-left: 0px;
.margin-find{
padding-right: 0px;
margin: -10px -10px 10px -10px;
}
}
}
.margin-sheet{
.margin-find{
margin: -10px -10px 10px -20px;
margin: -10px -10px 10px -10px;
}
}
.tree-view-list {
.margin-sheet{
.dx-checkbox-container {
margin: -10px -10px 10px -20px;
padding: 4px;
}
.dx-checkbox-icon {
.tree-view-list {
height: 16px;
.dx-checkbox-container {
width: 16px;
padding: 4px;
}
.dx-checkbox-icon {
.dx-checkbox-icon {
height: 16px;
font-size: 14px;
width: 16px;
}
}
}
.dx-checkbox-icon {
.dx-checkbox-indeterminate .dx-checkbox-icon:before {
font-size: 14px;
width: 14px;
}
height: 14px;
}
left: 0px;
top: 0px;
.dx-checkbox-indeterminate .dx-checkbox-icon:before {
}
width: 14px;
}
height: 14px;
left: 0px;
.search-box {
top: 0px;
margin: 6px -10px -10px -10px;
}
}
.search-box {
margin: 6px -10px -10px -10px;
}
}
\ No newline at end of file
atms-web/src/main/webapp/app/common/controls/import/import-cit-bs-prc-adjust/import-cit-bs-prc-adjust.ctrl.js
View file @
d4cf5f97
...
@@ -170,16 +170,22 @@
...
@@ -170,16 +170,22 @@
}).
then
(
function
(
resp
)
{
}).
then
(
function
(
resp
)
{
$
(
'#busy-indicator-container'
).
hide
();
$
(
'#busy-indicator-container'
).
hide
();
deferred
.
resolve
();
deferred
.
resolve
();
if
(
resp
.
data
)
{
if
(
resp
.
data
||
resp
.
result
)
{
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
vatOperationLogService
.
addOperationLog
(
logDto
);
vatOperationLogService
.
addOperationLog
(
logDto
);
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
}
else
{
}
else
{
if
(
resp
.
message
&&
resp
.
message
.
length
>
0
)
{
if
(
resp
.
message
&&
resp
.
message
.
length
>
0
)
{
SweetAlert
.
warning
(
$translate
.
instant
(
resp
.
message
));
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'ImportFailed'
));
}
if
(
resp
.
resultMsg
&&
resp
.
resultMsg
.
length
>
0
)
{
SweetAlert
.
warning
(
$translate
.
instant
(
resp
.
resultMsg
));
SweetAlert
.
warning
(
$translate
.
instant
(
resp
.
resultMsg
));
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'ImportFailed'
));
SweetAlert
.
error
(
$translate
.
instant
(
'ImportFailed'
));
}
}
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportFail'
);
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportFail'
);
vatOperationLogService
.
addOperationLog
(
logDto
);
vatOperationLogService
.
addOperationLog
(
logDto
);
}
}
...
@@ -395,7 +401,7 @@
...
@@ -395,7 +401,7 @@
ele1
.
datepicker
(
"setDate"
,
$scope
.
selectedDate
);
ele1
.
datepicker
(
"setDate"
,
$scope
.
selectedDate
);
};
};
$scope
.
initCompanyList
=
function
()
{
var
initCompanyList
=
function
()
{
orgService
.
getOrgListByUserId
().
success
(
function
(
data
)
{
orgService
.
getOrgListByUserId
().
success
(
function
(
data
)
{
if
(
data
)
{
if
(
data
)
{
$scope
.
companyList
=
data
;
$scope
.
companyList
=
data
;
...
@@ -494,6 +500,7 @@
...
@@ -494,6 +500,7 @@
$scope
.
setGridStyle
=
setGridStyle
;
$scope
.
setGridStyle
=
setGridStyle
;
getUserPermission
();
getUserPermission
();
initCompanyList
();
loadImportInfoDataGrid
();
loadImportInfoDataGrid
();
initDatePicker
();
initDatePicker
();
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-draft-account-mapping/import-cit-draft-account-mapping.ctrl.js
View file @
d4cf5f97
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
}).
then
(
function
(
resp
)
{
}).
then
(
function
(
resp
)
{
$
(
'#busy-indicator-container'
).
hide
();
$
(
'#busy-indicator-container'
).
hide
();
deferred
.
resolve
();
deferred
.
resolve
();
if
(
resp
.
data
)
{
if
(
resp
.
data
||
resp
.
result
)
{
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
vatOperationLogService
.
addOperationLog
(
logDto
);
vatOperationLogService
.
addOperationLog
(
logDto
);
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-eam-assets-disposal/import-cit-eam-assets-disposal.ctrl.js
View file @
d4cf5f97
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
}).
then
(
function
(
resp
)
{
}).
then
(
function
(
resp
)
{
$
(
'#busy-indicator-container'
).
hide
();
$
(
'#busy-indicator-container'
).
hide
();
deferred
.
resolve
();
deferred
.
resolve
();
if
(
resp
.
data
)
{
if
(
resp
.
data
||
resp
.
result
)
{
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
vatOperationLogService
.
addOperationLog
(
logDto
);
vatOperationLogService
.
addOperationLog
(
logDto
);
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-profit-prc-adjust/import-cit-profit-prc-adjust.ctrl.js
View file @
d4cf5f97
...
@@ -170,7 +170,7 @@
...
@@ -170,7 +170,7 @@
}).
then
(
function
(
resp
)
{
}).
then
(
function
(
resp
)
{
$
(
'#busy-indicator-container'
).
hide
();
$
(
'#busy-indicator-container'
).
hide
();
deferred
.
resolve
();
deferred
.
resolve
();
if
(
resp
.
data
)
{
if
(
resp
.
data
||
resp
.
result
)
{
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
vatOperationLogService
.
addOperationLog
(
logDto
);
vatOperationLogService
.
addOperationLog
(
logDto
);
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-salary-advance/import-cit-salary-advance.ctrl.js
View file @
d4cf5f97
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
}).
then
(
function
(
resp
)
{
}).
then
(
function
(
resp
)
{
$
(
'#busy-indicator-container'
).
hide
();
$
(
'#busy-indicator-container'
).
hide
();
deferred
.
resolve
();
deferred
.
resolve
();
if
(
resp
.
data
)
{
if
(
resp
.
data
||
resp
.
result
)
{
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
vatOperationLogService
.
addOperationLog
(
logDto
);
vatOperationLogService
.
addOperationLog
(
logDto
);
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
...
...
atms-web/src/main/webapp/app/common/controls/import/import-cit-trial-balance/import-cit-trial-balance.ctrl.js
View file @
d4cf5f97
...
@@ -173,7 +173,7 @@
...
@@ -173,7 +173,7 @@
}).
then
(
function
(
resp
)
{
}).
then
(
function
(
resp
)
{
$
(
'#busy-indicator-container'
).
hide
();
$
(
'#busy-indicator-container'
).
hide
();
deferred
.
resolve
();
deferred
.
resolve
();
if
(
resp
.
data
)
{
if
(
resp
.
data
||
resp
.
result
)
{
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
logDto
.
UpdateState
=
$translate
.
instant
(
'ImportSuccess'
);
vatOperationLogService
.
addOperationLog
(
logDto
);
vatOperationLogService
.
addOperationLog
(
logDto
);
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
SweetAlert
.
success
(
$translate
.
instant
(
'ImportSuccess'
));
...
...
atms-web/src/main/webapp/app/common/webservices/templateGroup.svc.js
View file @
d4cf5f97
...
@@ -12,7 +12,7 @@ webservices.factory('templateGroupService', ['$http', 'apiConfig', 'httpCacheSer
...
@@ -12,7 +12,7 @@ webservices.factory('templateGroupService', ['$http', 'apiConfig', 'httpCacheSer
return
$http
.
post
(
'/templateGroup/addTemplateGroup'
,
templateGroup
,
apiConfig
.
create
());
return
$http
.
post
(
'/templateGroup/addTemplateGroup'
,
templateGroup
,
apiConfig
.
create
());
},
},
addTemplateGroupWithoutTemplate
:
function
(
templateGroup
)
{
addTemplateGroupWithoutTemplate
:
function
(
templateGroup
)
{
return
$http
.
post
(
'/templateGroup/
templateGroup/
withoutTemplate'
,
templateGroup
,
apiConfig
.
create
());
return
$http
.
post
(
'/templateGroup/withoutTemplate'
,
templateGroup
,
apiConfig
.
create
());
},
},
getTemplateList
:
function
(
templateGroupID
,
reportType
)
{
getTemplateList
:
function
(
templateGroupID
,
reportType
)
{
return
$http
.
get
(
'/template/get?templateGroupID='
+
templateGroupID
+
'&reportType='
+
reportType
,
apiConfig
.
create
());
return
$http
.
get
(
'/template/get?templateGroupID='
+
templateGroupID
+
'&reportType='
+
reportType
,
apiConfig
.
create
());
...
...
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