Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
鲁鑫
topsun-bpm
Commits
8b55e918
Commit
8b55e918
authored
Mar 15, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用报销相关页面入口调整
parent
391e8afb
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
676 additions
and
40 deletions
+676
-40
advancePayment.js
...webapp/biz/topsun/sap/costReimbursement/advancePayment.js
+7
-7
advancePaymentList.js
...pp/biz/topsun/sap/costReimbursement/advancePaymentList.js
+124
-0
advancePaymentList.jsp
...p/biz/topsun/sap/costReimbursement/advancePaymentList.jsp
+24
-0
costReimbursement.js
...app/biz/topsun/sap/costReimbursement/costReimbursement.js
+7
-6
costReimbursementList.js
...biz/topsun/sap/costReimbursement/costReimbursementList.js
+1
-14
costReimbursementList.jsp
...iz/topsun/sap/costReimbursement/costReimbursementList.jsp
+1
-5
employeeLoan.jsp
.../webapp/biz/topsun/sap/costReimbursement/employeeLoan.jsp
+1
-1
employeeLoanList.js
...bapp/biz/topsun/sap/costReimbursement/employeeLoanList.js
+123
-0
employeeLoanList.jsp
...app/biz/topsun/sap/costReimbursement/employeeLoanList.jsp
+24
-0
payApply.js
.../main/webapp/biz/topsun/sap/costReimbursement/payApply.js
+16
-3
payApplyList.js
...n/webapp/biz/topsun/sap/costReimbursement/payApplyList.js
+123
-0
payApplyList.jsp
.../webapp/biz/topsun/sap/costReimbursement/payApplyList.jsp
+24
-0
refundApply.js
...in/webapp/biz/topsun/sap/costReimbursement/refundApply.js
+16
-3
refundApplyList.js
...ebapp/biz/topsun/sap/costReimbursement/refundApplyList.js
+123
-0
refundApplyList.jsp
...bapp/biz/topsun/sap/costReimbursement/refundApplyList.jsp
+24
-0
SapCostReimbursementApplicationImpl.java
...application/impl/SapCostReimbursementApplicationImpl.java
+18
-1
SapCostReimbursementController.java
...mbursement/controller/SapCostReimbursementController.java
+16
-0
SapCostReimbursementDetail.java
.../costReimbursement/domain/SapCostReimbursementDetail.java
+3
-0
costReimbursement.xml
...config/topsun/sap/costReimbursement/costReimbursement.xml
+1
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/advancePayment.js
View file @
8b55e918
...
...
@@ -210,23 +210,23 @@ var tableArray = [
columns
:
[
{
display
:
"EP流程子序号"
,
name
:
"zepItemno"
,
width
:
80
,
minwidth
:
80
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"原因代码"
,
name
:
"rstgr"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
/*
editor: {
display
:
"原因代码"
,
name
:
"rstgr
Name
"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return {fieldName: "RSTGR"}
return
{
fieldName
:
"RSTGR"
,
filterValue
:
$
(
"#bukrs"
).
val
()
}
},
back
:
{
RSTGR
:
"rstgr"
,
TXT40
:
"rstgrName"
,
}
},
}*/
editor
:
{
type
:
'text'
}
},
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/advancePaymentList.js
0 → 100644
View file @
8b55e918
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initializateUI
();
loadGrid
();
})
function
initializateUI
()
{
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
}
function
loadGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addAdvancePayment
:
{
id
:
'advancePayment'
,
img
:
'fa-cog'
,
text
:
'添加预付款申请'
,
click
:
function
(){
addAdvancePayment
();
}},
});
gridManager
=
UICtrl
.
grid
(
"#advancePaymentListGrid"
,
{
columns
:
[
{
display
:
"EP付款申请类别"
,
name
:
"zepFtype"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP付款申请类别名称"
,
name
:
"zepFtypename"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码"
,
name
:
"bukrs"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码名称"
,
name
:
"butxt"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP部门代码"
,
name
:
"zepDepart"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP部门名称"
,
name
:
"zepDepartname"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程申请人代码"
,
name
:
"zepAppli"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程申请人"
,
name
:
"zepAppliname"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"付款申请创建日期"
,
name
:
"zepFcrdate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程单号"
,
name
:
"zepNo"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"付款申请内容"
,
name
:
"zepTxt"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"填报日期"
,
name
:
"fillinDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/slicedSapCostReimbursementList.ajax'
,
parms
:{
zepFtype
:
"D"
},
pageSize
:
20
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"100%"
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
doView
(
data
.
id
,
data
.
zepFtype
);
}
});
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
function
query
(
obj
)
{
var
param
=
$
(
obj
).
formToJSON
();
UICtrl
.
gridSearch
(
gridManager
,
param
);
}
function
reloadGrid
()
{
gridManager
.
loadData
();
}
function
resetForm
(
obj
)
{
$
(
obj
).
formClean
();
}
//重写DataUtil的getUpdateRowId函数、它默认取行的id列
DataUtil
.
getUpdateRowId
=
function
(
gridManager
)
{
var
result
=
DataUtil
.
getUpdateRow
(
gridManager
);
if
(
result
)
{
return
result
.
proofingMakeId
;
}
return
result
;
}
function
addAdvancePayment
(){
UICtrl
.
addTabItem
({
tabid
:
'advanceApply'
,
text
:
"预付款申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=advance'
});
}
//删除按钮
function
deleteHandler
()
{
DataUtil
.
del
({
action
:
'sapCostReimbursement/deleteStatsIndicators.ajax'
,
gridManager
:
gridManager
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
reloadGrid
();
}
});
}
function
doView
(
id
,
zepFtype
)
{
var
title
=
"费用报销详情"
;
if
(
zepFtype
==
"E"
){
title
=
"客户退款申请详情"
;
}
if
(
zepFtype
==
"B"
){
title
=
"员工借款申请详情"
;
}
if
(
zepFtype
==
"D"
){
title
=
"预付款申请详情"
;
}
if
(
zepFtype
==
"C"
){
title
=
"付款申请详情"
;
}
UICtrl
.
addTabItem
({
tabid
:
'showCostReimbursement'
+
id
,
text
:
title
,
url
:
web_app
.
name
+
'/sapCostReimbursement/showSapCostReimbursement.job?bizId='
+
id
+
"&isDetailPage=true"
});
}
// function sendSapData(bizId){
// Public.ajax(web_app.name + '/sapStatsIndicators/againSendSapDate.ajax',{bizId:bizId},function (data){
// reloadGrid();
// })
// }
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/advancePaymentList.jsp
0 → 100644
View file @
8b55e918
<%@ page
contentType=
"text/html; charset=utf-8"
language=
"java"
%>
<%@ taglib
uri=
"/WEB-INF/taglib.tld"
prefix=
"x"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<html>
<head>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree"
/>
<x:script
src=
'/biz/topsun/sap/costReimbursement/advancePaymentList.js'
/>
</head>
<body>
<div
class=
"container-fluid"
>
<div
id=
"layout"
>
<div
position=
"center"
title=
"预付款申请查询"
>
<x:title
title=
"common.button.search"
hideTable=
"queryMainForm"
isHide=
"true"
/>
<form
class=
"hg-form ui-hide"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:inputC
name=
"billCode"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
<x:searchButtons/>
</form>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"advancePaymentListGrid"
style=
"margin: 2px;"
></div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursement.js
View file @
8b55e918
...
...
@@ -354,22 +354,23 @@ var tableArray = [
columns
:
[
{
display
:
"EP流程子序号"
,
name
:
"zepItemno"
,
width
:
80
,
minwidth
:
80
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"原因代码"
,
name
:
"rstgr"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
/*
editor: {
display
:
"原因代码"
,
name
:
"rstgr
Name
"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return {fieldName: "RSTGR"}
return
{
fieldName
:
"RSTGR"
,
filterValue
:
$
(
"#bukrs"
).
val
()
}
},
back
:
{
RSTGR
:
"rstgr"
,
TXT40
:
"rstgrName"
,
}
},
}*/
editor
:
{
type
:
'text'
}
},
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursementList.js
View file @
8b55e918
...
...
@@ -15,20 +15,6 @@ function loadGrid() {
addCostReimbursement
:
{
id
:
'costReimbursement'
,
img
:
'fa-cog'
,
text
:
'添加费用报销申请'
,
click
:
function
(){
addCostReimbursement
();
}},
addBorrowApply
:
{
id
:
'borrowApply'
,
img
:
'fa-cog'
,
text
:
'添加员工借款申请'
,
click
:
function
(){
addBorrowApply
();
}},
addAdvancePayment
:
{
id
:
'advancePayment'
,
img
:
'fa-cog'
,
text
:
'添加预付款申请'
,
click
:
function
(){
addAdvancePayment
();
}},
addPayApply
:
{
id
:
'payApply'
,
img
:
'fa-cog'
,
text
:
'添加付款申请'
,
click
:
function
(){
addPayApply
();
}},
addRefundApply
:
{
id
:
'refundApply'
,
img
:
'fa-cog'
,
text
:
'添加客户退款申请'
,
click
:
function
(){
addRefundApply
();
}},
deleteHandler
:
deleteHandler
,
});
gridManager
=
UICtrl
.
grid
(
"#costReimbursementListGrid"
,
{
columns
:
[
...
...
@@ -48,6 +34,7 @@ function loadGrid() {
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/slicedSapCostReimbursementList.ajax'
,
parms
:{
zepFtype
:
"A"
},
pageSize
:
20
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursementList.jsp
View file @
8b55e918
...
...
@@ -8,15 +8,11 @@
</head>
<body>
<div
class=
"container-fluid"
>
<div
class=
"ui-hide"
>
<x:select
name=
"processType"
dictionary=
"processType"
/>
<x:select
name=
"yesorno"
dictionary=
"yesorno"
/>
</div>
<div
id=
"layout"
>
<div
position=
"center"
title=
"费用报销申请查询"
>
<x:title
title=
"common.button.search"
hideTable=
"queryMainForm"
isHide=
"true"
/>
<form
class=
"hg-form ui-hide"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:inputC
name=
"
proofingApplyNo
"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
<x:inputC
name=
"
billCode
"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
<x:searchButtons/>
</form>
<div
class=
"blank_div clearfix"
></div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/employeeLoan.jsp
View file @
8b55e918
...
...
@@ -28,7 +28,7 @@
<div
class=
"hg-form-row"
>
<x:inputC
name=
"zepFtypename"
required=
"false"
readonly=
"true"
label=
"EP付款申请类别名称"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"bukrs"
required=
"
fals
e"
label=
"公司代码"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"bukrs"
required=
"
tru
e"
label=
"公司代码"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"butxt"
required=
"false"
readonly=
"true"
label=
"公司代码名称"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
<div
class=
"hg-form-row"
>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/employeeLoanList.js
0 → 100644
View file @
8b55e918
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initializateUI
();
loadGrid
();
})
function
initializateUI
()
{
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
}
function
loadGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addBorrowApply
:
{
id
:
'borrowApply'
,
img
:
'fa-cog'
,
text
:
'添加员工借款申请'
,
click
:
function
(){
addBorrowApply
();
}},
});
gridManager
=
UICtrl
.
grid
(
"#employeeLoanListGrid"
,
{
columns
:
[
{
display
:
"EP付款申请类别"
,
name
:
"zepFtype"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP付款申请类别名称"
,
name
:
"zepFtypename"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码"
,
name
:
"bukrs"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码名称"
,
name
:
"butxt"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP部门代码"
,
name
:
"zepDepart"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP部门名称"
,
name
:
"zepDepartname"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程申请人代码"
,
name
:
"zepAppli"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程申请人"
,
name
:
"zepAppliname"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"付款申请创建日期"
,
name
:
"zepFcrdate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程单号"
,
name
:
"zepNo"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"付款申请内容"
,
name
:
"zepTxt"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"填报日期"
,
name
:
"fillinDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/slicedSapCostReimbursementList.ajax'
,
parms
:{
zepFtype
:
"B"
},
pageSize
:
20
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"100%"
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
doView
(
data
.
id
,
data
.
zepFtype
);
}
});
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
function
query
(
obj
)
{
var
param
=
$
(
obj
).
formToJSON
();
UICtrl
.
gridSearch
(
gridManager
,
param
);
}
function
reloadGrid
()
{
gridManager
.
loadData
();
}
function
resetForm
(
obj
)
{
$
(
obj
).
formClean
();
}
//重写DataUtil的getUpdateRowId函数、它默认取行的id列
DataUtil
.
getUpdateRowId
=
function
(
gridManager
)
{
var
result
=
DataUtil
.
getUpdateRow
(
gridManager
);
if
(
result
)
{
return
result
.
proofingMakeId
;
}
return
result
;
}
function
addBorrowApply
(){
UICtrl
.
addTabItem
({
tabid
:
'borrowApply'
,
text
:
"员工借款申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=borrow'
});
}
//删除按钮
function
deleteHandler
()
{
DataUtil
.
del
({
action
:
'sapCostReimbursement/deleteStatsIndicators.ajax'
,
gridManager
:
gridManager
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
reloadGrid
();
}
});
}
function
doView
(
id
,
zepFtype
)
{
var
title
=
"费用报销详情"
;
if
(
zepFtype
==
"E"
){
title
=
"客户退款申请详情"
;
}
if
(
zepFtype
==
"B"
){
title
=
"员工借款申请详情"
;
}
if
(
zepFtype
==
"D"
){
title
=
"预付款申请详情"
;
}
if
(
zepFtype
==
"C"
){
title
=
"付款申请详情"
;
}
UICtrl
.
addTabItem
({
tabid
:
'showCostReimbursement'
+
id
,
text
:
title
,
url
:
web_app
.
name
+
'/sapCostReimbursement/showSapCostReimbursement.job?bizId='
+
id
+
"&isDetailPage=true"
});
}
// function sendSapData(bizId){
// Public.ajax(web_app.name + '/sapStatsIndicators/againSendSapDate.ajax',{bizId:bizId},function (data){
// reloadGrid();
// })
// }
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/employeeLoanList.jsp
0 → 100644
View file @
8b55e918
<%@ page
contentType=
"text/html; charset=utf-8"
language=
"java"
%>
<%@ taglib
uri=
"/WEB-INF/taglib.tld"
prefix=
"x"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<html>
<head>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree"
/>
<x:script
src=
'/biz/topsun/sap/costReimbursement/employeeLoanList.js'
/>
</head>
<body>
<div
class=
"container-fluid"
>
<div
id=
"layout"
>
<div
position=
"center"
title=
"员工借款申请查询"
>
<x:title
title=
"common.button.search"
hideTable=
"queryMainForm"
isHide=
"true"
/>
<form
class=
"hg-form ui-hide"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:inputC
name=
"billCode"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
<x:searchButtons/>
</form>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"employeeLoanListGrid"
style=
"margin: 2px;"
></div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApply.js
View file @
8b55e918
...
...
@@ -197,10 +197,23 @@ var tableArray = [
columns
:
[
{
display
:
"EP流程子序号"
,
name
:
"zepItemno"
,
width
:
80
,
minwidth
:
80
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"原因代码"
,
name
:
"rstgr"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
display
:
"原因代码"
,
name
:
"rstgr
Name
"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
required
:
true
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"RSTGR"
,
filterValue
:
$
(
"#bukrs"
).
val
()
}
},
back
:
{
RSTGR
:
"rstgr"
,
TXT40
:
"rstgrName"
,
}
},
}
},
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApplyList.js
0 → 100644
View file @
8b55e918
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initializateUI
();
loadGrid
();
})
function
initializateUI
()
{
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
}
function
loadGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addPayApply
:
{
id
:
'payApply'
,
img
:
'fa-cog'
,
text
:
'添加付款申请'
,
click
:
function
(){
addPayApply
();
}},
});
gridManager
=
UICtrl
.
grid
(
"#payApplyListGrid"
,
{
columns
:
[
{
display
:
"EP付款申请类别"
,
name
:
"zepFtype"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP付款申请类别名称"
,
name
:
"zepFtypename"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码"
,
name
:
"bukrs"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码名称"
,
name
:
"butxt"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP部门代码"
,
name
:
"zepDepart"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP部门名称"
,
name
:
"zepDepartname"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程申请人代码"
,
name
:
"zepAppli"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程申请人"
,
name
:
"zepAppliname"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"付款申请创建日期"
,
name
:
"zepFcrdate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程单号"
,
name
:
"zepNo"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"付款申请内容"
,
name
:
"zepTxt"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"填报日期"
,
name
:
"fillinDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/slicedSapCostReimbursementList.ajax'
,
parms
:{
zepFtype
:
"C"
},
pageSize
:
20
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"100%"
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
doView
(
data
.
id
,
data
.
zepFtype
);
}
});
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
function
query
(
obj
)
{
var
param
=
$
(
obj
).
formToJSON
();
UICtrl
.
gridSearch
(
gridManager
,
param
);
}
function
reloadGrid
()
{
gridManager
.
loadData
();
}
function
resetForm
(
obj
)
{
$
(
obj
).
formClean
();
}
//重写DataUtil的getUpdateRowId函数、它默认取行的id列
DataUtil
.
getUpdateRowId
=
function
(
gridManager
)
{
var
result
=
DataUtil
.
getUpdateRow
(
gridManager
);
if
(
result
)
{
return
result
.
proofingMakeId
;
}
return
result
;
}
function
addPayApply
(){
UICtrl
.
addTabItem
({
tabid
:
'payApply'
,
text
:
"付款申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=pay'
});
}
//删除按钮
function
deleteHandler
()
{
DataUtil
.
del
({
action
:
'sapCostReimbursement/deleteStatsIndicators.ajax'
,
gridManager
:
gridManager
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
reloadGrid
();
}
});
}
function
doView
(
id
,
zepFtype
)
{
var
title
=
"费用报销详情"
;
if
(
zepFtype
==
"E"
){
title
=
"客户退款申请详情"
;
}
if
(
zepFtype
==
"B"
){
title
=
"员工借款申请详情"
;
}
if
(
zepFtype
==
"D"
){
title
=
"预付款申请详情"
;
}
if
(
zepFtype
==
"C"
){
title
=
"付款申请详情"
;
}
UICtrl
.
addTabItem
({
tabid
:
'showCostReimbursement'
+
id
,
text
:
title
,
url
:
web_app
.
name
+
'/sapCostReimbursement/showSapCostReimbursement.job?bizId='
+
id
+
"&isDetailPage=true"
});
}
// function sendSapData(bizId){
// Public.ajax(web_app.name + '/sapStatsIndicators/againSendSapDate.ajax',{bizId:bizId},function (data){
// reloadGrid();
// })
// }
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApplyList.jsp
0 → 100644
View file @
8b55e918
<%@ page
contentType=
"text/html; charset=utf-8"
language=
"java"
%>
<%@ taglib
uri=
"/WEB-INF/taglib.tld"
prefix=
"x"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<html>
<head>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree"
/>
<x:script
src=
'/biz/topsun/sap/costReimbursement/payApplyList.js'
/>
</head>
<body>
<div
class=
"container-fluid"
>
<div
id=
"layout"
>
<div
position=
"center"
title=
"付款申请查询"
>
<x:title
title=
"common.button.search"
hideTable=
"queryMainForm"
isHide=
"true"
/>
<form
class=
"hg-form ui-hide"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:inputC
name=
"billCode"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
<x:searchButtons/>
</form>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"payApplyListGrid"
style=
"margin: 2px;"
></div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/refundApply.js
View file @
8b55e918
...
...
@@ -116,10 +116,23 @@ var tableArray = [
columns
:
[
{
display
:
"EP流程子序号"
,
name
:
"zepItemno"
,
width
:
80
,
minwidth
:
80
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"原因代码"
,
name
:
"rstgr"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
display
:
"原因代码"
,
name
:
"rstgr
Name
"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
required
:
true
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"RSTGR"
,
filterValue
:
$
(
"#bukrs"
).
val
()
}
},
back
:
{
RSTGR
:
"rstgr"
,
TXT40
:
"rstgrName"
,
}
},
}
},
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/refundApplyList.js
0 → 100644
View file @
8b55e918
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initializateUI
();
loadGrid
();
})
function
initializateUI
()
{
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
}
function
loadGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addRefundApply
:
{
id
:
'refundApply'
,
img
:
'fa-cog'
,
text
:
'添加客户退款申请'
,
click
:
function
(){
addRefundApply
();
}},
});
gridManager
=
UICtrl
.
grid
(
"#refundApplyListGrid"
,
{
columns
:
[
{
display
:
"EP付款申请类别"
,
name
:
"zepFtype"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP付款申请类别名称"
,
name
:
"zepFtypename"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码"
,
name
:
"bukrs"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码名称"
,
name
:
"butxt"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP部门代码"
,
name
:
"zepDepart"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP部门名称"
,
name
:
"zepDepartname"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程申请人代码"
,
name
:
"zepAppli"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程申请人"
,
name
:
"zepAppliname"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"付款申请创建日期"
,
name
:
"zepFcrdate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程单号"
,
name
:
"zepNo"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"付款申请内容"
,
name
:
"zepTxt"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"填报日期"
,
name
:
"fillinDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/slicedSapCostReimbursementList.ajax'
,
parms
:{
zepFtype
:
"E"
},
pageSize
:
20
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"100%"
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
doView
(
data
.
id
,
data
.
zepFtype
);
}
});
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
function
query
(
obj
)
{
var
param
=
$
(
obj
).
formToJSON
();
UICtrl
.
gridSearch
(
gridManager
,
param
);
}
function
reloadGrid
()
{
gridManager
.
loadData
();
}
function
resetForm
(
obj
)
{
$
(
obj
).
formClean
();
}
//重写DataUtil的getUpdateRowId函数、它默认取行的id列
DataUtil
.
getUpdateRowId
=
function
(
gridManager
)
{
var
result
=
DataUtil
.
getUpdateRow
(
gridManager
);
if
(
result
)
{
return
result
.
proofingMakeId
;
}
return
result
;
}
function
addRefundApply
(){
UICtrl
.
addTabItem
({
tabid
:
'refundApply'
,
text
:
"客户退款申请单"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/forwardCostReimbursement.job?type=refund'
});
}
//删除按钮
function
deleteHandler
()
{
DataUtil
.
del
({
action
:
'sapCostReimbursement/deleteStatsIndicators.ajax'
,
gridManager
:
gridManager
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
reloadGrid
();
}
});
}
function
doView
(
id
,
zepFtype
)
{
var
title
=
"费用报销详情"
;
if
(
zepFtype
==
"E"
){
title
=
"客户退款申请详情"
;
}
if
(
zepFtype
==
"B"
){
title
=
"员工借款申请详情"
;
}
if
(
zepFtype
==
"D"
){
title
=
"预付款申请详情"
;
}
if
(
zepFtype
==
"C"
){
title
=
"付款申请详情"
;
}
UICtrl
.
addTabItem
({
tabid
:
'showCostReimbursement'
+
id
,
text
:
title
,
url
:
web_app
.
name
+
'/sapCostReimbursement/showSapCostReimbursement.job?bizId='
+
id
+
"&isDetailPage=true"
});
}
// function sendSapData(bizId){
// Public.ajax(web_app.name + '/sapStatsIndicators/againSendSapDate.ajax',{bizId:bizId},function (data){
// reloadGrid();
// })
// }
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/refundApplyList.jsp
0 → 100644
View file @
8b55e918
<%@ page
contentType=
"text/html; charset=utf-8"
language=
"java"
%>
<%@ taglib
uri=
"/WEB-INF/taglib.tld"
prefix=
"x"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<html>
<head>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree"
/>
<x:script
src=
'/biz/topsun/sap/costReimbursement/refundApplyList.js'
/>
</head>
<body>
<div
class=
"container-fluid"
>
<div
id=
"layout"
>
<div
position=
"center"
title=
"客户退款申请查询"
>
<x:title
title=
"common.button.search"
hideTable=
"queryMainForm"
isHide=
"true"
/>
<form
class=
"hg-form ui-hide"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:inputC
name=
"billCode"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
<x:searchButtons/>
</form>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"refundApplyListGrid"
style=
"margin: 2px;"
></div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/application/impl/SapCostReimbursementApplicationImpl.java
View file @
8b55e918
...
...
@@ -21,6 +21,7 @@ import com.huigou.topsun.util.MyBaseUtil;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.bpm.FlowBroker
;
import
com.huigou.util.ClassHelper
;
import
com.huigou.util.DateUtil
;
import
com.huigou.util.SDO
;
import
lombok.SneakyThrows
;
import
org.activiti.engine.delegate.DelegateExecution
;
...
...
@@ -176,16 +177,32 @@ public class SapCostReimbursementApplicationImpl extends FlowBroker implements S
Map
<
String
,
Object
>
map
=
MyBaseUtil
.
convertToMap
(
sapCostReimbursement
,
true
);
map
.
remove
(
"ZEP_FTYPE"
);
map
.
remove
(
"ZEP_NO"
);
if
(
sapCostReimbursement
.
getZepFcrdate
()
!=
null
){
String
dateFormat
=
DateUtil
.
getDateFormat
(
sapCostReimbursement
.
getZepFcrdate
(),
"yyyyMMdd"
);
map
.
put
(
"ZEP_FCRDATE"
,
dateFormat
);
}
// 封装参数
for
(
SapCostReimbursementDetail
costReimbursementDetail
:
all
)
{
Map
<
String
,
Object
>
detailMap
=
MyBaseUtil
.
convertToMap
(
costReimbursementDetail
,
true
);
if
(
costReimbursementDetail
.
getZepFpldate
()
!=
null
){
String
dateFormat
=
DateUtil
.
getDateFormat
(
costReimbursementDetail
.
getZepFpldate
(),
"yyyyMMdd"
);
detailMap
.
put
(
"ZEP_FPLDATE"
,
dateFormat
);
}
String
budat
=
DateUtil
.
getDateFormat
(
new
Date
(),
"yyyyMMdd"
);
detailMap
.
put
(
"BUDAT"
,
budat
);
detailMap
.
put
(
"BLDAT"
,
budat
);
detailMap
.
putAll
(
map
);
itemList
.
add
(
detailMap
);
costReimbursementDetail
.
setBudat
(
new
Date
());
costReimbursementDetail
.
setBldat
(
new
Date
());
costReimbursementDetailRepository
.
save
(
costReimbursementDetail
);
}
paramMap
.
put
(
"ITEM"
,
itemList
);
paramMap
.
put
(
"MANDT"
,
"300"
);
paramMap
.
put
(
"ZEP_FTYPE"
,
sapCostReimbursement
.
getZepFtype
());
paramMap
.
put
(
"ZEP_NO"
,
sapCostReimbursement
.
get
ZepNo
());
paramMap
.
put
(
"ZEP_NO"
,
sapCostReimbursement
.
get
BillCode
());
paramList
.
add
(
paramMap
);
String
url
=
"cud_fi012/cud_fi012"
;
...
...
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/controller/SapCostReimbursementController.java
View file @
8b55e918
...
...
@@ -44,6 +44,22 @@ public class SapCostReimbursementController extends CommonController {
return
forward
(
"costReimbursementList"
);
}
public
String
forwardAdvancePaymentList
(){
return
forward
(
"advancePaymentList"
);
}
public
String
forwardEmployeeLoanList
(){
return
forward
(
"employeeLoanList"
);
}
public
String
forwardPayApplyList
(){
return
forward
(
"payApplyList"
);
}
public
String
forwardRefundApplyList
(){
return
forward
(
"refundApplyList"
);
}
public
String
forwardCostReimbursement
(){
//定义流程
this
.
putAttribute
(
"processDefinitionKey"
,
SapCostReimbursementApplication
.
PROCESS_DEFINITION_KEY
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/domain/SapCostReimbursementDetail.java
View file @
8b55e918
...
...
@@ -373,6 +373,9 @@ public class SapCostReimbursementDetail implements Serializable {
@Column
(
name
=
"RSTGR"
)
private
String
rstgr
;
@Column
(
name
=
"rstgr_name"
)
private
String
rstgrName
;
/**
* 付款附言
*/
...
...
topsun/src/main/resources/config/topsun/sap/costReimbursement/costReimbursement.xml
View file @
8b55e918
...
...
@@ -8,5 +8,6 @@
where 1=1
</sql-query>
<condition
column=
"id"
name=
"id"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
<condition
column=
"zep_ftype"
name=
"zepFtype"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
</query>
</query-mappings>
\ No newline at end of file
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