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
d4659581
Commit
d4659581
authored
Feb 20, 2025
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用报销 选择人之后自动选择成本中心
parent
d3936be1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
0 deletions
+44
-0
costReimbursement.js
...app/biz/topsun/sap/costReimbursement/costReimbursement.js
+13
-0
SapCostReimbursementApplication.java
...ursement/application/SapCostReimbursementApplication.java
+2
-0
SapCostReimbursementApplicationImpl.java
...application/impl/SapCostReimbursementApplicationImpl.java
+7
-0
SapCostReimbursementController.java
...mbursement/controller/SapCostReimbursementController.java
+10
-0
costReimbursement.xml
...config/topsun/sap/costReimbursement/costReimbursement.xml
+12
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursement.js
View file @
d4659581
...
@@ -780,6 +780,19 @@ function loadGrid(obj) {
...
@@ -780,6 +780,19 @@ function loadGrid(obj) {
}
}
})
})
}
}
//报销 选择人之后自动选择成本中心
if
(
item
.
column
.
name
==
"partner"
){
var
value
=
item
.
value
;
Public
.
ajax
(
web_app
.
name
+
"/sapCostReimbursement/queryKostlByPersonCode.ajax"
,{
personCode
:
value
},
function
(
data
){
var
_grid
=
UICtrl
.
getGridManager
(
'#reimbursementApplierGrid'
);
_grid
.
updateRow
(
item
.
record
,{
kostl
:
data
.
kostl
,
ktext1
:
data
.
ktext1
,
})
})
}
return
item
;
return
item
;
},
},
onAfterShowData
:
function
(){
onAfterShowData
:
function
(){
...
...
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/application/SapCostReimbursementApplication.java
View file @
d4659581
...
@@ -34,4 +34,6 @@ public interface SapCostReimbursementApplication {
...
@@ -34,4 +34,6 @@ public interface SapCostReimbursementApplication {
String
queryTaskByBizId
(
String
bizId
);
String
queryTaskByBizId
(
String
bizId
);
Integer
checkzyl06
(
String
zyl06
);
Integer
checkzyl06
(
String
zyl06
);
Map
<
String
,
Object
>
queryKostlByPersonCode
(
String
personCode
);
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/application/impl/SapCostReimbursementApplicationImpl.java
View file @
d4659581
...
@@ -373,6 +373,13 @@ public class SapCostReimbursementApplicationImpl extends FlowBroker implements S
...
@@ -373,6 +373,13 @@ public class SapCostReimbursementApplicationImpl extends FlowBroker implements S
return
i
;
return
i
;
}
}
@Override
public
Map
<
String
,
Object
>
queryKostlByPersonCode
(
String
personCode
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"queryKostlByPersonCode"
);
String
sql
=
queryDescriptor
.
getSql
();
return
this
.
sqlExecutorDao
.
queryToMap
(
sql
,
personCode
);
}
public
void
makeACopyFor
(
SapCostReimbursement
reimbursement
)
{
public
void
makeACopyFor
(
SapCostReimbursement
reimbursement
)
{
// 流程结束给申请人发送抄送
// 流程结束给申请人发送抄送
List
<
String
>
executorIds
=
new
ArrayList
<>(
1
);
List
<
String
>
executorIds
=
new
ArrayList
<>(
1
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/controller/SapCostReimbursementController.java
View file @
d4659581
...
@@ -206,4 +206,14 @@ public class SapCostReimbursementController extends CommonController {
...
@@ -206,4 +206,14 @@ public class SapCostReimbursementController extends CommonController {
Integer
count
=
costReimbursementApplication
.
checkzyl06
(
zyl06
);
Integer
count
=
costReimbursementApplication
.
checkzyl06
(
zyl06
);
return
success
(
count
);
return
success
(
count
);
}
}
public
String
queryKostlByPersonCode
(){
SDO
sdo
=
this
.
getSDO
();
String
personCode
=
sdo
.
getString
(
"personCode"
);
if
(
StringUtil
.
isNotBlank
(
personCode
)){
personCode
=
personCode
.
replaceFirst
(
"^0*"
,
""
);
}
Map
<
String
,
Object
>
map
=
costReimbursementApplication
.
queryKostlByPersonCode
(
personCode
);
return
toResult
(
map
);
}
}
}
\ No newline at end of file
topsun/src/main/resources/config/topsun/sap/costReimbursement/costReimbursement.xml
View file @
d4659581
...
@@ -63,4 +63,16 @@
...
@@ -63,4 +63,16 @@
WHERE e.BUSINESS_KEY_ = ?
WHERE e.BUSINESS_KEY_ = ?
</sql-query>
</sql-query>
</query>
</query>
<query
name=
"queryKostlByPersonCode"
>
<sql-query>
SELECT
o.CODE,
op.PROPERTY_VALUE AS kostl,
op.PROPERTY_DISPLAY AS ktext1
FROM sa_opperson p
LEFT JOIN sa_oporg o ON p.MAIN_ORG_ID = o.POSITION_ID AND p.id = o.PERSON_ID
LEFT JOIN sa_oporgproperty op ON o.DEPT_ID = op.ORG_ID where p.CODE =?
</sql-query>
</query>
</query-mappings>
</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