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
4b53e064
Commit
4b53e064
authored
Jun 29, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
84393494
aa19b3ba
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
1519 additions
and
87 deletions
+1519
-87
ProcessManage.js
huigou-xt/src/main/webapp/system/configtool/ProcessManage.js
+10
-10
Org.js
huigou-xt/src/main/webapp/system/opm/organization/Org.js
+12
-3
nonOrderStorageDetail.jsp
.../biz/topsun/sap/nonOrderStorage/nonOrderStorageDetail.jsp
+1
-1
sapPurchaseDetail.js
.../main/webapp/biz/topsun/sap/purchase/sapPurchaseDetail.js
+185
-7
sapPurchaseList.jsp
...c/main/webapp/biz/topsun/sap/purchase/sapPurchaseList.jsp
+18
-0
sapZNE1PurchaseDetail.js
...n/webapp/biz/topsun/sap/purchase/sapZNE1PurchaseDetail.js
+17
-0
sapZNE2PurchaseDetail.js
...n/webapp/biz/topsun/sap/purchase/sapZNE2PurchaseDetail.js
+36
-31
sapPurchaseOrderDetail.js
...pp/biz/topsun/sap/purchaseOrder/sapPurchaseOrderDetail.js
+16
-0
sapPurchaseOrderDetail.jsp
...p/biz/topsun/sap/purchaseOrder/sapPurchaseOrderDetail.jsp
+2
-0
sapPurchaseOrderList.jsp
...app/biz/topsun/sap/purchaseOrder/sapPurchaseOrderList.jsp
+17
-0
suppliersDataDetail.jsp
...n/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.jsp
+3
-3
suppliersDataList.js
...main/webapp/biz/topsun/sap/suppliers/suppliersDataList.js
+32
-12
suppliersExtendDataDetail.js
...app/biz/topsun/sap/suppliers/suppliersExtendDataDetail.js
+648
-0
suppliersExtendDataDetail.jsp
...pp/biz/topsun/sap/suppliers/suppliersExtendDataDetail.jsp
+100
-0
ResourceSearchController.java
...om/huigou/topsun/controller/ResourceSearchController.java
+10
-0
SapPurchaseApplicationImpl.java
...purchase/application/impl/SapPurchaseApplicationImpl.java
+32
-0
SapPurchaseController.java
...topsun/sap/purchase/controller/SapPurchaseController.java
+2
-0
SapPurchaseQueryRequest.java
...un/sap/purchase/domain/query/SapPurchaseQueryRequest.java
+8
-0
SapPurchaseApprovalApplicationImpl.java
.../application/impl/SapPurchaseApprovalApplicationImpl.java
+19
-0
SapPurchaseOrderApplicationImpl.java
...der/application/impl/SapPurchaseOrderApplicationImpl.java
+19
-0
SapPurchaseOrderController.java
.../purchaseOrder/controller/SapPurchaseOrderController.java
+2
-0
SapPurchaseOrder.java
...gou/topsun/sap/purchaseOrder/domain/SapPurchaseOrder.java
+7
-0
SapPurchaseOrderQueryRequest.java
...chaseOrder/domain/query/SapPurchaseOrderQueryRequest.java
+7
-0
SuppliersDataApplication.java
...n/sap/suppliers/application/SuppliersDataApplication.java
+5
-0
SuppliersDataApplicationImpl.java
...pliers/application/impl/SuppliersDataApplicationImpl.java
+139
-15
SuppliersDataController.java
...sun/sap/suppliers/controller/SuppliersDataController.java
+31
-4
OrgSyncApplication.java
...huigou/topsun/syncOrg/application/OrgSyncApplication.java
+2
-0
OrgSyncApplicationImpl.java
...psun/syncOrg/application/impl/OrgSyncApplicationImpl.java
+11
-0
SyncOrgController.java
...m/huigou/topsun/syncOrg/controller/SyncOrgController.java
+8
-0
sapSupplierDataExtendProc.bpmn
...esources/config/bpm/topsun/sapSupplierDataExtendProc.bpmn
+111
-0
sapPurchase.xml
...n/resources/config/topsun/sap/sapPurchase/sapPurchase.xml
+4
-0
sapPurchaseInfoRecordItem.xml
...n/sap/sapPurchaseInfoRecord/sapPurchaseInfoRecordItem.xml
+1
-1
sapPurchaseOrder.xml
...s/config/topsun/sap/sapPurchaseOrder/sapPurchaseOrder.xml
+4
-0
No files found.
huigou-xt/src/main/webapp/system/configtool/ProcessManage.js
View file @
4b53e064
...
...
@@ -233,7 +233,7 @@ function initializeGrid() {
updateHandler
:
showUpdateDialog
,
moveHandler
:
moveHandler
,
deleteHandler
:
deleteHandler
,
saveSortIDHandler
:
updateSequence
,
//
saveSortIDHandler: updateSequence,
importProcUnit
:
{
id
:
'importProcUnit'
,
text
:
'导入流程环节'
,
...
...
@@ -272,13 +272,13 @@ function initializeGrid() {
type
:
"string"
,
align
:
"left"
},
{
display
:
"排序号"
,
name
:
"sequence"
,
width
:
60
,
minWidth
:
60
,
type
:
"int"
,
align
:
"left"
,
render
:
function
(
item
)
{
item
.
id
=
item
.
id
;
//只为了能够更新sequence
return
UICtrl
.
sequenceRender
(
item
);
}
},
//
{
//
display: "排序号", name: "sequence", width: 60, minWidth: 60, type: "int", align: "left",
//
render: function (item) {
//
item.id = item.id; //只为了能够更新sequence
//
return UICtrl.sequenceRender(item);
//
}
//
},
{
display
:
"状态"
,
name
:
"status"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
render
:
function
(
item
)
{
...
...
@@ -292,9 +292,9 @@ function initializeGrid() {
parms
:
{
parentId
:
1
,
inculdeProcUnit
:
1
},
usePager
:
fals
e
,
usePager
:
tru
e
,
sortName
:
"sequence"
,
S
ortOrder
:
"asc"
,
s
ortOrder
:
"asc"
,
toolbar
:
toolbarOptions
,
width
:
'99.8%'
,
height
:
'100%'
,
...
...
huigou-xt/src/main/webapp/system/opm/organization/Org.js
View file @
4b53e064
...
...
@@ -80,7 +80,13 @@ $(function () {
var
params
=
{};
params
.
personId
=
personData
.
personId
;
params
.
personMemberId
=
mainOrgData
.
id
;
Public
.
ajax
(
web_app
.
name
+
"/org/changePersonMainOrg.ajax"
,
params
);
Public
.
ajax
(
web_app
.
name
+
"/org/changePersonMainOrg.ajax"
,
params
,
function
()
{
Public
.
ajax
(
web_app
.
name
+
"/syncOrg/updatePersonToSap.ajax"
,
{
personIds
:
personData
.
personId
},
function
()
{
})
});
return
true
;
}
});
...
...
@@ -614,9 +620,12 @@ function doSavePerson() {
var
url
=
web_app
.
name
+
(
id
?
'/org/updatePerson.ajax'
:
'/org/insertPerson.ajax'
);
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
url
,
param
:
param
,
success
:
function
()
{
if
(
isSapPerson
==
"1"
){
Public
.
ajax
(
web_app
.
name
+
"/syncOrg/insertOrUpdatePersonToSap.ajax"
,{
code
:
$
(
"#code"
).
val
(),
flag
:
type
==
'S'
?
"U"
:
"I"
},
function
()
{
Public
.
ajax
(
web_app
.
name
+
"/syncOrg/insertOrUpdatePersonToSap.ajax"
,
{
code
:
$
(
"#code"
).
val
(),
flag
:
type
==
'S'
?
"U"
:
"I"
},
function
()
{
})}
})
}
refreshFlag
=
true
;
_self
.
close
();
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonOrderStorage/nonOrderStorageDetail.jsp
View file @
4b53e064
...
...
@@ -43,7 +43,7 @@
<x:inputC
name=
"storeName"
required=
"false"
label=
"库存地点"
labelCol=
"1"
wrapper=
"select"
fieldCol=
"2"
/>
<!--x:inputC name="supplier" required="true" label="供应商" labelCol="1" fieldCol="2"/-->
<x:hidden
name=
"supplier"
/>
<x:inputC
name=
"supplierName"
required=
"true"
label=
"供应商名称"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"supplierName"
label=
"供应商名称"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"amount"
required=
"false"
label=
"总价值"
labelCol=
"1"
fieldCol=
"2"
mask=
"positiveMoney"
/>
</div>
<div
class=
"hg-form-row"
>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchase/sapPurchaseDetail.js
View file @
4b53e064
...
...
@@ -39,7 +39,9 @@ function initAufnr(knttp){
columns
.
some
(
column
=>
{
if
(
column
.
name
==
"aufnr"
){
column
.
hide
=
knttp
==
'F'
?
false
:
true
;
if
(
typeof
(
getSubProcUnitId
)
==
'function'
&&
"financeNode"
==
getSubProcUnitId
()){
column
.
editor
.
required
=
knttp
==
'F'
?
true
:
false
;
}
return
true
;
}
return
false
;
...
...
@@ -77,7 +79,9 @@ function initItemGrid() {
pstyp
:
pstyp
,
badat
:
fillinDate
,
erdat
:
fillinDate
,
knttp
:
$
(
"#knttp"
).
val
()
knttp
:
$
(
"#knttp"
).
val
(),
ernam
:
$
(
"#personMemberName"
).
val
(),
afnam
:
$
(
"#personMemberName"
).
val
(),
});
}
},
...
...
@@ -93,6 +97,19 @@ function initItemGrid() {
}
});
},
copyHandler
:
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
var
row
=
itemGridManager
.
getSelectedRow
();
if
(
!
row
)
{
Public
.
tip
(
"请勾选一条数据"
);
return
;
}
var
newRow
=
JSON
.
parse
(
JSON
.
stringify
(
row
));
newRow
.
bnfpo
=
(
itemGridManager
.
getData
().
length
+
1
)
*
10
;
newRow
.
id
=
null
;
UICtrl
.
addGridRow
(
itemGridManager
,
newRow
);
}
}
})
itemGridManager
=
UICtrl
.
grid
(
'#maingrid'
,
{
columns
:
getGridColumns
(),
...
...
@@ -150,6 +167,126 @@ function initItemGrid() {
function
getGridColumns
()
{
var
columns
=
[];
if
(
typeof
(
getSubProcUnitId
)
==
'function'
&&
"financeNode"
==
getSubProcUnitId
()){
columns
.
push
({
display
:
"申购项次号"
,
name
:
"bnfpo"
,
width
:
"80"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"项次类别"
,
name
:
"pstyp"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
hide
:
true
},);
columns
.
push
({
display
:
"工厂"
,
name
:
"werks"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
},);
columns
.
push
({
display
:
"工厂名称"
,
name
:
"name1"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
});
// columns.push({
// display: "物料编号", name: "matnr", width: "300", align: "left", type: "string",
// editor: {
// required: false, type: "select",
// data: {
// type: 'system',
// name: "sapMaterialSelect",
// getParam: function (item) {
// return {
// filterValue: item.werks
// }
// },
// back: {
// MATNR: "matnr",
// MAKTX: "txz01",
// MATKL: "matkl",
// WGBEZ: "matklName",
// EKGRP: "ekgrp",
// EKNAM: "ekgrpName",
// PEINH: "peinh",
// MEINS: "meins",
// MSEHL: "meinsName",
// LGFSB: "lgort",
// LGOBE: "lgobe"
// }
// },
// }
// });
columns
.
push
({
display
:
"库存地点"
,
name
:
"lgort"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"库存地点名称"
,
name
:
"lgobe"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"短文本"
,
name
:
"txz01"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"物料组"
,
name
:
"matklName"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"申购数量"
,
name
:
"menge"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
,
},);
columns
.
push
({
display
:
"申购数量单位"
,
name
:
"meinsName"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
,
},);
columns
.
push
({
display
:
"采购组"
,
name
:
"ekgrpName"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
,
},);
columns
.
push
({
display
:
"批准日期"
,
name
:
"frgdt"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"要求交货日期"
,
name
:
"lfdat"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"创建者"
,
name
:
"ernam"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
},);
columns
.
push
({
display
:
"申请人"
,
name
:
"afnam"
,
width
:
"90"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"预估单价"
,
name
:
"preis"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"价格基数"
,
name
:
"ebanPeinh"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"币种"
,
name
:
"waersName"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"评估金额"
,
name
:
"ebanNetwr"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"成本中心"
,
name
:
"kostlName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"订单号"
,
name
:
"aufnr"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'text'
,
required
:
true
}
});
// columns.push({
// display: "审批处理状态", name: "banpr", width: "100", align: "left", type: "string",
// editor: {type: 'text'}
// },);
columns
.
push
({
display
:
"总账科目"
,
name
:
"sakto"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
true
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"SAKTO"
,
filterValue
:
'6600'
}
},
back
:
{
SAKNR
:
'sakto'
,
}
},
}
},);
columns
.
push
({
display
:
"申请日期"
,
name
:
"badat"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
},);
columns
.
push
({
display
:
"创建日期"
,
name
:
"erdat"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
},);
}
else
{
columns
.
push
({
display
:
"申购项次号"
,
name
:
"bnfpo"
,
width
:
"80"
,
align
:
"left"
,
type
:
"string"
,
//editor: {type: 'spinner', min: 10, max: 200, mask: 'nnn'}
...
...
@@ -375,7 +512,6 @@ function getGridColumns() {
},);
columns
.
push
({
display
:
"订单号"
,
name
:
"aufnr"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'text'
,
required
:
false
,}
// editor: {
// required: false, type: "select",
// data: {
...
...
@@ -397,6 +533,25 @@ function getGridColumns() {
// display: "审批处理状态", name: "banpr", width: "100", align: "left", type: "string",
// editor: {type: 'text'}
// },);
columns
.
push
({
display
:
"总账科目"
,
name
:
"sakto"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
// editor: {
// required: true, type: "select",
// data: {
// type: 'system',
// name: "dictionary",
// getParam: function (item) {
// return {
// fieldName: "SAKTO",
// filterValue:'6600'
// }
// },
// back: {
// SAKNR:'sakto',
// }
// },
// }
},);
columns
.
push
({
display
:
"申请日期"
,
name
:
"badat"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
false
,
type
:
"date"
}
...
...
@@ -405,6 +560,8 @@ function getGridColumns() {
display
:
"创建日期"
,
name
:
"erdat"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
//editor: {required: false, type: "date"}
},);
}
return
columns
;
}
...
...
@@ -427,16 +584,20 @@ function getExtendedData(processAction) {
if
(
!
datas
)
{
return
false
;
}
if
(
datas
.
length
==
0
){
Public
.
tip
(
"采购项次不能为空"
);
return
false
;
}
var
checked6
=
false
;
datas
.
forEach
(
data
=>
{
if
(
"F"
==
data
.
knttp
&&
Public
.
isBlank
(
data
.
aufnr
)){
checked6
=
true
;
}
})
if
(
checked6
)
{
Public
.
tip
(
"订单号不能为空"
)
return
false
;
}
//
if (checked6) {
//
Public.tip("订单号不能为空")
//
return false;
//
}
extendedData
.
sapPurchaseItems
=
Public
.
encodeJSONURI
(
datas
);
}
return
extendedData
;
...
...
@@ -465,4 +626,21 @@ function getGridData() {
return
datas
;
}
//UICtrl中校验是否允许编辑
function
businessJudgmentUnit
()
{
var
isApply
=
isApplyProcUnit
();
if
(
isApply
)
{
return
true
;
}
else
{
//财务节点
if
(
typeof
(
getSubProcUnitId
)
==
'function'
&&
"financeNode"
===
getSubProcUnitId
()){
UICtrl
.
disable
(
"#knttp"
);
return
true
;
}
return
false
;
}
return
true
;
}
topsun-xt/src/main/webapp/biz/topsun/sap/purchase/sapPurchaseList.jsp
View file @
4b53e064
...
...
@@ -17,6 +17,24 @@
<form
class=
"hg-form ui-show"
method=
"post"
action=
""
id=
"queryMainForm"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"billCode"
label=
"需求跟踪编号"
labelCol=
"1"
/>
<x:inputC
name=
"banfn"
label=
"采购申请编号"
labelCol=
"1"
/>
</div>
<div
class=
"hg-form-row"
>
<div
class=
"col-xs-4 col-sm-1"
>
<label
class=
"hg-form-label"
>
申请日期起
:
</label>
</div>
<div
class=
"col-xs-4 col-sm-2 col-white-bg"
>
<x:input
name=
"fillinBeginDate"
required=
"false"
wrapper=
"date"
/>
</div>
<div
class=
"col-xs-4 col-sm-1"
>
<label
class=
"hg-form-label"
>
申请日期止
:
</label>
</div>
<div
class=
"col-xs-4 col-sm-2 col-white-bg"
>
<x:input
name=
"fillinEndDate"
label=
"至"
required=
"false"
wrapper=
"date"
/>
</div>
</div>
<div
class=
"hg-form-row"
>
<x:checkboxListC
name=
"statusKind"
label=
"common.field.status"
list=
"statusKindsList"
labelCol=
"1"
fieldCol=
"3"
/>
</div>
<x:searchButtons/>
</form>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchase/sapZNE1PurchaseDetail.js
View file @
4b53e064
...
...
@@ -54,6 +54,19 @@ function initItemGrid() {
}
});
},
copyHandler
:
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
var
row
=
itemGridManager
.
getSelectedRow
();
if
(
!
row
)
{
Public
.
tip
(
"请勾选一条数据"
);
return
;
}
var
newRow
=
JSON
.
parse
(
JSON
.
stringify
(
row
));
newRow
.
bnfpo
=
(
itemGridManager
.
getData
().
length
+
1
)
*
10
;
newRow
.
id
=
null
;
UICtrl
.
addGridRow
(
itemGridManager
,
newRow
);
}
}
})
itemGridManager
=
UICtrl
.
grid
(
'#maingrid'
,
{
columns
:
getGridColumns
(),
...
...
@@ -321,6 +334,10 @@ function getExtendedData(processAction) {
if
(
!
datas
)
{
return
false
;
}
if
(
datas
.
length
==
0
){
Public
.
tip
(
"采购项次不能为空"
);
return
false
;
}
extendedData
.
sapPurchaseItems
=
Public
.
encodeJSONURI
(
datas
);
}
return
extendedData
;
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchase/sapZNE2PurchaseDetail.js
View file @
4b53e064
...
...
@@ -36,16 +36,18 @@ function initAufnr(knttp){
knttp
=
$
(
'#knttp'
).
val
();
}
var
columns
=
itemGridManager
.
columns
;
//内部订单
columns
.
some
(
column
=>
{
if
(
column
.
name
==
"aufnr"
){
column
.
hide
=
knttp
==
'F'
?
false
:
true
;
if
(
isApplyProcUnit
()){
if
(
typeof
(
getSubProcUnitId
)
==
'function'
&&
"financeNode"
==
getSubProcUnitId
()){
column
.
editor
.
required
=
knttp
==
'F'
?
true
:
false
;
}
return
true
;
}
return
false
;
})
//成本中心
columns
.
some
(
column
=>
{
if
(
column
.
name
==
"kostlName"
){
//column.hide = knttp == 'F'? false:true;
...
...
@@ -91,7 +93,9 @@ function initItemGrid() {
pstyp
:
pstyp
,
badat
:
fillinDate
,
erdat
:
fillinDate
,
knttp
:
$
(
"#knttp"
).
val
()
knttp
:
$
(
"#knttp"
).
val
(),
ernam
:
$
(
"#personMemberName"
).
val
(),
afnam
:
$
(
"#personMemberName"
).
val
(),
});
}
},
...
...
@@ -107,6 +111,19 @@ function initItemGrid() {
}
});
},
copyHandler
:
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
var
row
=
itemGridManager
.
getSelectedRow
();
if
(
!
row
)
{
Public
.
tip
(
"请勾选一条数据"
);
return
;
}
var
newRow
=
JSON
.
parse
(
JSON
.
stringify
(
row
));
newRow
.
bnfpo
=
(
itemGridManager
.
getData
().
length
+
1
)
*
10
;
newRow
.
id
=
null
;
UICtrl
.
addGridRow
(
itemGridManager
,
newRow
);
}
}
})
itemGridManager
=
UICtrl
.
grid
(
'#maingrid'
,
{
columns
:
getGridColumns
(),
...
...
@@ -227,6 +244,7 @@ function getGridColumns() {
//填订单类型是Z01或者Z02的
columns
.
push
({
display
:
"订单号"
,
name
:
"aufnr"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'text'
,
required
:
true
,}
});
columns
.
push
({
display
:
"总账科目"
,
name
:
"sakto"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
...
...
@@ -463,42 +481,25 @@ function getGridColumns() {
},);
columns
.
push
({
display
:
"订单号"
,
name
:
"aufnr"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'text'
,
required
:
false
,}
});
columns
.
push
({
display
:
"总账科目"
,
name
:
"sakto"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
// editor: {
// required:
fals
e, type: "select",
// required:
tru
e, type: "select",
// data: {
// type: 'system',
// name: "
getCompanyOrders
",
// name: "
dictionary
",
// getParam: function (item) {
// return {
// BUKRS: '1000'
// fieldName: "SAKTO",
// filterValue:'6600'
// }
// },
// back: {
// AUFNR: "aufnr",
// KTEXT: "ktext"
// SAKNR:'sakto',
// }
// },
// }
});
columns
.
push
({
display
:
"总账科目"
,
name
:
"sakto"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
true
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"SAKTO"
,
filterValue
:
'6600'
}
},
back
:
{
SAKNR
:
'sakto'
,
}
},
}
},);
columns
.
push
({
display
:
"申请日期"
,
name
:
"badat"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
...
...
@@ -531,16 +532,20 @@ function getExtendedData(processAction) {
if
(
!
datas
)
{
return
false
;
}
if
(
datas
.
length
==
0
){
Public
.
tip
(
"采购项次不能为空"
);
return
false
;
}
var
checked6
=
false
;
datas
.
forEach
(
data
=>
{
if
(
"F"
==
data
.
knttp
&&
Public
.
isBlank
(
data
.
aufnr
)){
checked6
=
true
;
}
})
if
(
checked6
)
{
Public
.
tip
(
"订单号不能为空"
)
return
false
;
}
//
if (checked6) {
//
Public.tip("订单号不能为空")
//
return false;
//
}
extendedData
.
sapPurchaseItems
=
Public
.
encodeJSONURI
(
datas
);
}
return
extendedData
;
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseOrder/sapPurchaseOrderDetail.js
View file @
4b53e064
...
...
@@ -22,6 +22,9 @@ function initItemGrid() {
usePager
:
true
,
rownumbers
:
true
,
// fixedCellHeight: true,
onAfterShowData
:
function
(){
initTotalMoney
();
}
}
);
UICtrl
.
setSearchAreaToggle
(
itemGridManager
);
...
...
@@ -60,6 +63,19 @@ function getGridColumns() {
}
function
initTotalMoney
(){
var
_grid
=
UICtrl
.
getGridManager
(
'#maingrid'
);
if
(
_grid
!=
null
){
var
data
=
_grid
.
currentData
.
Rows
;
var
totalMoney
=
0
;
$
.
each
(
data
,
function
(
i
,
o
)
{
var
_netwr
=
o
[
'netwr'
]
+
''
;
totalMoney
=
MathUtil
.
add
(
totalMoney
,
_netwr
);
$
(
'#totalMoney'
).
val
(
totalMoney
);
});
}
}
function
getId
()
{
return
$
(
'#id'
).
val
();
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseOrder/sapPurchaseOrderDetail.jsp
View file @
4b53e064
...
...
@@ -37,6 +37,8 @@
<x:inputC
name=
"waers"
label=
"币种"
readonly=
"true"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"fillinDate"
label=
"创建日期"
readonly=
"true"
wrapper=
"date"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"totalMoney"
label=
"订单总金额"
readonly=
"true"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
</div>
</div>
<x:title
title=
"sap回执"
name=
"group"
/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseOrder/sapPurchaseOrderList.jsp
View file @
4b53e064
...
...
@@ -19,6 +19,23 @@
<x:inputC
name=
"billCode"
label=
"需求跟踪编号"
labelCol=
"1"
/>
<x:inputC
name=
"ebeln"
label=
"采购订单号码"
labelCol=
"1"
/>
</div>
<div
class=
"hg-form-row"
>
<div
class=
"col-xs-4 col-sm-1"
>
<label
class=
"hg-form-label"
>
申请日期起
:
</label>
</div>
<div
class=
"col-xs-4 col-sm-2 col-white-bg"
>
<x:input
name=
"fillinBeginDate"
required=
"false"
wrapper=
"date"
/>
</div>
<div
class=
"col-xs-4 col-sm-1"
>
<label
class=
"hg-form-label"
>
申请日期止
:
</label>
</div>
<div
class=
"col-xs-4 col-sm-2 col-white-bg"
>
<x:input
name=
"fillinEndDate"
label=
"至"
required=
"false"
wrapper=
"date"
/>
</div>
</div>
<div
class=
"hg-form-row"
>
<x:checkboxListC
name=
"statusKind"
label=
"common.field.status"
list=
"statusKindsList"
labelCol=
"1"
fieldCol=
"3"
/>
</div>
<x:searchButtons/>
</form>
<x:title
title=
""
hideTable=
"#purchaseOrderGrid"
name=
"list"
/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.jsp
View file @
4b53e064
...
...
@@ -86,14 +86,14 @@
<!--x:selectC name="ktokk" label="供应商帐户组" labelCol="1" fieldCol="2" required="true" dictionary="buGroup"/-->
<x:inputC
name=
"kunnr"
label=
"客户编号"
labelCol=
"1"
fieldCol=
"2"
/>
<%--<x:inputC name="vbund" label="贸易伙伴" labelCol="1" fieldCol="2"/>--%>
<x:inputC
name=
"stenr"
label=
"
责任税务部门的税收编号"
labelCol=
"2"
fieldCol=
"2"
required=
"true
"
/>
<x:inputC
name=
"stenr"
label=
"
税号"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
maxLength=
"18
"
/>
<x:selectC
name=
"sperr"
label=
"中心记帐冻结"
labelCol=
"1"
fieldCol=
"
1
"
dictionary=
"sperr"
/>
<x:selectC
name=
"sperr"
label=
"中心记帐冻结"
labelCol=
"1"
fieldCol=
"
2
"
dictionary=
"sperr"
/>
<x:selectC
name=
"sperm"
label=
"集中设置的采购冻结"
labelCol=
"2"
fieldCol=
"1"
dictionary=
"sperrB"
/>
</div>
</div>
<div
style=
"padding-top: 15px;"
>
<x:fileList
bizCode=
"supplier"
bizId=
"attbizId"
id=
"supplierList"
title=
"
供应商
资料"
/>
<x:fileList
bizCode=
"supplier"
bizId=
"attbizId"
id=
"supplierList"
title=
"
营业执照/开票
资料"
/>
</div>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"sapSuppliersBuyerGrid"
style=
"margin: 2px;"
></div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersDataList.js
View file @
4b53e064
...
...
@@ -15,7 +15,9 @@ function loadSuppliersDataListGrid() {
addHandler
()
},
updateHandler
:
showUpdateDialog
,
deleteHandler
:
deleteHandler
extendHandler
:
{
id
:
'extendHandler'
,
text
:
'扩展'
,
img
:
'fa-music'
,
className
:
'btn-gray'
,
click
:
function
()
{
extendHandler
();
}}
/* testHandler: {id: 'basicInfoMaintenance', text: '基本信息维护', img: 'fa-music', className: 'btn-gray',
click: function () {
...
...
@@ -38,16 +40,16 @@ function loadSuppliersDataListGrid() {
{
display
:
"申请单编号"
,
name
:
"billCode"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请状态"
,
name
:
"statusTextView"
,
width
:
60
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请日期"
,
name
:
"fillinDate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"操作类型"
,
name
:
"applyType"
,
width
:
80
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
render
:
function
(
record
,
rowindex
,
value
,
column
)
{
if
(
value
!=
null
&&
value
==
"0"
)
{
return
"新增"
;
}
else
if
(
value
!=
null
&&
value
==
"1"
){
return
"修改"
;
}
else
{
return
"删除"
;
}
}
{
display
:
"操作类型"
,
name
:
"applyType
TextView
"
,
width
:
80
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
//
,render : function (record, rowindex, value, column) {
//
if (value!=null&&value=="0") {
//
return "新增";
//
}else if (value!=null&&value=="1"){
//
return "修改";
// } else if ()
{
//
return "删除";
//
}
//
}
},
{
display
:
"业务伙伴分组"
,
name
:
"buGroup"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"业务伙伴编号"
,
name
:
"partner"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
...
...
@@ -202,7 +204,7 @@ function showUpdateDialog(id) {
UICtrl
.
addTabItem
({
tabid
:
'suppliersDataModi'
+
id
,
text
:
"供应商主数据修改详情"
,
url
:
web_app
.
name
+
'/sapSuppliersData/forwardSuppliersDataApply.job?bizId='
+
result
.
id
url
:
web_app
.
name
+
'/sapSuppliersData/forwardSuppliersDataApply.job?bizId='
+
result
.
id
+
'&flag='
+
'update'
});
}
...
...
@@ -215,6 +217,24 @@ function showUpdateDialog(id) {
// });
// }
function
extendHandler
(){
let
result
=
DataUtil
.
getUpdateRow
(
gridManager
);
if
(
result
.
applyType
==
"-1"
){
Public
.
tip
(
"已经删除的不能再扩展!"
)
return
false
;
}
if
(
result
.
status
!==
3
){
Public
.
tip
(
"请选择一条审核完成后数据!"
)
return
false
;
}
UICtrl
.
addTabItem
({
tabid
:
'suppliersDataModi'
+
result
.
id
,
text
:
"供应商主数据扩展详情"
,
url
:
web_app
.
name
+
'/sapSuppliersData/forwardSuppliersDataApply.job?bizId='
+
result
.
id
+
'&flag='
+
'extend'
});
}
// 关闭对话框
function
onDialogCloseHandler
()
{
if
(
refreshFlag
)
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersExtendDataDetail.js
0 → 100644
View file @
4b53e064
This diff is collapsed.
Click to expand it.
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersExtendDataDetail.jsp
0 → 100644
View file @
4b53e064
<%@ page
language=
"java"
contentType=
"text/html; charset=utf-8"
%>
<%@taglib
uri=
"/WEB-INF/taglib.tld"
prefix=
"x"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<html>
<head>
<script
type=
"text/javascript"
>
var
applyType
=
"${applyType}"
;
</script>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree,date,attachment"
/>
<x:script
src=
'/biz/topsun/sap/suppliers/suppliersExtendDataDetail.js'
/>
</head>
<body>
<x:billTitle
title=
"供应商主数据扩展申请表"
needStatus=
"false"
needPerson=
"true"
/>
<form
class=
"hg-form"
method=
"post"
action=
""
id=
"submitForm"
>
<x:hidden
name=
"id"
/>
<x:hidden
name=
"sId"
/>
<x:hidden
name=
"applyType"
/>
<%-- <x:hidden name="billCode"/>--%>
<%-- <x:hidden name="fillinDate" type="datetime"/>--%>
<x:hidden
name=
"fullId"
/>
<x:hidden
name=
"organId"
/>
<x:hidden
name=
"organName"
/>
<x:hidden
name=
"deptId"
/>
<%-- <x:hidden name="deptName"/>--%>
<x:hidden
name=
"positionId"
/>
<x:hidden
name=
"positionName"
/>
<x:hidden
name=
"personMemberId"
/>
<x:hidden
name=
"statusId"
/>
<%-- <x:hidden name="personMemberName"/>--%>
<x:title
title=
"申请人填写区域"
name=
"group"
/>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"billCode"
label=
"申请单编号"
labelCol=
"1"
readonly=
"true"
fieldCol=
"2"
/>
<x:inputC
name=
"personMemberName"
label=
"申请人"
readonly=
"true"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"deptName"
label=
"申请部门"
readonly=
"true"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"fillinDate"
label=
"申请日期"
readonly=
"true"
wrapper=
"date"
labelCol=
"1"
fieldCol=
"2"
/>
</div>
</div>
<x:title
title=
"供应商主数据"
name=
"group"
/>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"rltgr"
label=
"业务伙伴角色"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
readonly=
"true"
/>
<x:selectC
name=
"buGroup"
label=
"业务伙伴分组"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
dictionary=
"buGroup"
disabled=
"true"
/>
<x:inputC
name=
"partner"
label=
"供应商编码"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
readonly=
"true"
/>
<x:selectC
name=
"title"
label=
"称谓代码"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"title"
disabled=
"true"
/>
<x:inputC
name=
"nameOrg1"
label=
"供应商名称1"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
readonly=
"true"
/>
<x:inputC
name=
"nameOrg2"
label=
"供应商名称2"
labelCol=
"1"
fieldCol=
"2"
readonly=
"true"
/>
<%--<x:inputC name="nameOrg3" label="组织名称3" labelCol="1" fieldCol="2"/>
<x:inputC name="nameOrg4" label="组织名称4" labelCol="1" fieldCol="2"/>--%>
<x:inputC
name=
"buSort1"
label=
"搜索词1"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
readonly=
"true"
/>
<x:inputC
name=
"buSort2"
label=
"搜索词2"
labelCol=
"1"
fieldCol=
"2"
readonly=
"true"
/>
<%--<x:inputC name="strSuppl1" label="街道2" labelCol="1" fieldCol="2"/>
<x:inputC name="strSuppl2" label="街道3" labelCol="1" fieldCol="2"/>
<x:inputC name="strSuppl3" label="街道4" labelCol="1" fieldCol="2"/>--%>
<x:inputC
name=
"land1Name"
label=
"国家"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
wrapper=
"select"
readonly=
"true"
/>
<x:hidden
name=
"land1"
/>
<x:inputC
name=
"regionName"
label=
"地区"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
wrapper=
"select"
readonly=
"true"
/>
<x:hidden
name=
"region"
/>
<x:inputC
name=
"city1"
label=
"城市"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
readonly=
"true"
/>
<x:inputC
name=
"street"
label=
"街道地址"
labelCol=
"1"
fieldCol=
"2"
maxLength=
"35"
readonly=
"true"
/>
<x:inputC
name=
"strSuppl1"
label=
"街道2"
labelCol=
"1"
fieldCol=
"2"
maxLength=
"35"
readonly=
"true"
/>
<x:inputC
name=
"strSuppl2"
label=
"街道3"
labelCol=
"1"
fieldCol=
"2"
maxLength=
"35"
readonly=
"true"
/>
<x:inputC
name=
"strSuppl3"
label=
"街道4"
labelCol=
"1"
fieldCol=
"2"
maxLength=
"35"
readonly=
"true"
/>
<x:inputC
name=
"strSuppl4"
label=
"街道5"
labelCol=
"1"
fieldCol=
"2"
maxLength=
"35"
readonly=
"true"
/>
<x:selectC
name=
"langu"
label=
"语言"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
dictionary=
"langu"
disabled=
"true"
/>
<x:inputC
name=
"smtpAddr"
label=
"电子邮件地址"
labelCol=
"1"
fieldCol=
"2"
maxLength=
"30"
readonly=
"true"
/>
<x:inputC
name=
"postCode1"
label=
"城市邮政编码"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
maxLength=
"6"
readonly=
"true"
/>
<x:inputC
name=
"telNumber"
label=
"电话"
labelCol=
"1"
fieldCol=
"2"
readonly=
"true"
/>
<%--<x:inputC name="telExtens" label="第一个电话号码分机" labelCol="1" fieldCol="2"/>--%>
<x:inputC
name=
"mobNumber"
label=
"移动电话"
labelCol=
"1"
fieldCol=
"2"
readonly=
"true"
/>
<%--<x:inputC name="mobExtens" label="第一个移动电话号码分机" labelCol="1" fieldCol="2"/>--%>
<x:inputC
name=
"faxNumber"
label=
"传真"
labelCol=
"1"
fieldCol=
"2"
maxLength=
"30"
readonly=
"true"
/>
<%--<x:inputC name="faxExtens" label="第一个传真号分机号" labelCol="1" fieldCol="2"/>--%>
<!--x:selectC name="ktokk" label="供应商帐户组" labelCol="1" fieldCol="2" required="true" dictionary="buGroup"/-->
<x:inputC
name=
"kunnr"
label=
"客户编号"
labelCol=
"1"
fieldCol=
"2"
readonly=
"true"
/>
<%--<x:inputC name="vbund" label="贸易伙伴" labelCol="1" fieldCol="2"/>--%>
<x:inputC
name=
"stenr"
label=
"税号"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
maxLength=
"18"
readonly=
"true"
/>
<x:selectC
name=
"sperr"
label=
"中心记帐冻结"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"sperr"
disabled=
"true"
/>
<x:selectC
name=
"sperm"
label=
"集中设置的采购冻结"
labelCol=
"2"
fieldCol=
"1"
dictionary=
"sperrB"
disabled=
"true"
/>
</div>
</div>
<div
style=
"padding-top: 15px;"
>
<x:fileList
bizCode=
"supplier"
bizId=
"attbizId"
id=
"supplierList"
title=
"营业执照/开票资料"
/>
</div>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"sapSuppliersBuyerGrid"
style=
"margin: 2px;"
></div>
<div
id=
"cashierGrid"
>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"sapSuppliersPayGrid"
style=
"margin: 2px;"
></div>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"sapSuppliersBankGrid"
style=
"margin: 2px;"
></div>
</div>
</form>
</body>
</html>
topsun/src/main/java/com/huigou/topsun/controller/ResourceSearchController.java
View file @
4b53e064
...
...
@@ -409,8 +409,18 @@ public class ResourceSearchController {
public
Map
<
String
,
Object
>
getBankInfo
(
SDO
sdo
)
throws
IOException
{
String
param
=
sdo
.
getString
(
"paramValue"
);
String
BANKS
=
sdo
.
getString
(
"BANKS"
);
String
noContain
=
sdo
.
getString
(
"noContain"
);
List
<
Map
<
String
,
String
>>
mapList
=
new
ArrayList
<>();
mapList
=
sapBankInfoApplication
.
getBankInfo
(
BANKS
);
if
(
StringUtil
.
isNotBlank
(
noContain
)){
//固定条件过滤,不包含
String
[]
split
=
noContain
.
split
(
","
);
for
(
String
s
:
split
)
{
mapList
=
mapList
.
stream
()
.
filter
(
map
->
map
.
values
().
stream
().
noneMatch
(
value
->
value
.
contains
(
s
)))
.
collect
(
Collectors
.
toList
());
}
}
return
sapDictionaryApplication
.
initEasySearchModel
(
mapList
,
param
,
sdo
);
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchase/application/impl/SapPurchaseApplicationImpl.java
View file @
4b53e064
...
...
@@ -23,6 +23,7 @@ import com.huigou.topsun.sap.purchase.domain.vo.SapPurchaseVo;
import
com.huigou.topsun.sap.purchase.repository.SapPurchaseRepository
;
import
com.huigou.topsun.sap.common.domain.SapResult
;
import
com.huigou.topsun.sap.purchaseOrder.domain.SapPurchaseOrder
;
import
com.huigou.topsun.sap.suppliers.domain.SuppliersInfo
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.bmp.fn.CodeGenerator
;
import
com.huigou.uasp.bmp.operator.OperatorApplication
;
...
...
@@ -32,6 +33,7 @@ import com.huigou.uasp.bpm.ProcessStartModel;
import
com.huigou.uasp.bpm.engine.application.WorkflowApplication
;
import
com.huigou.util.ClassHelper
;
import
com.huigou.util.Constants
;
import
com.huigou.util.DateUtil
;
import
com.huigou.util.SDO
;
import
org.activiti.engine.delegate.DelegateExecution
;
import
org.activiti.engine.delegate.DelegateTask
;
...
...
@@ -91,6 +93,36 @@ public class SapPurchaseApplicationImpl extends FlowBroker implements SapPurchas
}
/**
* 设置任务名称
*/
@Override
protected
void
setTaskDescription
(
DelegateTask
delegateTask
)
{
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
delegateTask
.
setDescription
(
this
.
getApprovalSubjectName
(
bizId
));
}
/**
* 获取任务标题
*
* @param bizId
* @return
*/
private
String
getApprovalSubjectName
(
String
bizId
)
{
SapPurchase
sapPurchase
=
this
.
sapPurchaseRepository
.
findOne
(
bizId
);
//查询 单据日期
String
fillinDateStr
=
DateUtil
.
getDateFormat
(
"yyyy-MM-dd HH:mm:ss"
,
sapPurchase
.
getFillinDate
());
//设置标题
switch
(
sapPurchase
.
getBsart
()){
case
"ZNE1"
:
//固定资产采购申请
return
String
.
format
(
"%s-%s(%s)"
,
"固定资产采购申请"
,
""
,
fillinDateStr
);
case
"ZFW"
:
//服务类采购申请
return
String
.
format
(
"%s-%s(%s)"
,
"服务类采购申请"
,
""
,
fillinDateStr
);
case
"ZNE2"
:
//非资产类消耗性采购申请
return
String
.
format
(
"%s-%s(%s)"
,
"非资产类消耗性采购申请"
,
""
,
fillinDateStr
);
}
return
null
;
}
@Override
protected
Map
<
String
,
Object
>
getProcessBizParams
(
String
bizId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchase/controller/SapPurchaseController.java
View file @
4b53e064
...
...
@@ -2,6 +2,7 @@ package com.huigou.topsun.sap.purchase.controller;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.topsun.common.BillStatus
;
import
com.huigou.topsun.demo.application.LeaveApplication
;
import
com.huigou.topsun.demo.domain.model.Leave
;
import
com.huigou.topsun.sap.purchase.application.SapPurchaseApplication
;
...
...
@@ -33,6 +34,7 @@ public class SapPurchaseController extends CommonController {
private
SapPurchaseApplication
sapPurchaseApplication
;
public
String
forwardSapPurchaseList
(){
this
.
putAttribute
(
"statusKindsList"
,
BillStatus
.
getValidMap
());
return
forward
(
"sapPurchaseList"
);
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchase/domain/query/SapPurchaseQueryRequest.java
View file @
4b53e064
...
...
@@ -3,6 +3,8 @@ package com.huigou.topsun.sap.purchase.domain.query;
import
com.huigou.data.domain.query.QueryAbstractRequest
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @Auther: xin.lu
* @Date: 2023/12/27/10:45
...
...
@@ -23,4 +25,10 @@ public class SapPurchaseQueryRequest extends QueryAbstractRequest {
* 采购申请编号
*/
private
String
banfn
;
protected
Date
fillinBeginDate
;
protected
Date
fillinEndDate
;
private
String
statusKind
;
}
topsun/src/main/java/com/huigou/topsun/sap/purchaseApproval/application/impl/SapPurchaseApprovalApplicationImpl.java
View file @
4b53e064
...
...
@@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
import
com.alibaba.fastjson.JSON
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.cache.SystemCache
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
...
...
@@ -92,7 +93,25 @@ public class SapPurchaseApprovalApplicationImpl extends FlowBroker implements Sa
return
sapPurchaseApproval
.
getId
();
}
@Override
protected
void
setTaskDescription
(
DelegateTask
delegateTask
)
{
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
delegateTask
.
setDescription
(
this
.
getApprovalSubjectName
(
bizId
));
}
/**
* 获取任务标题
*
* @param bizId
* @return
*/
private
String
getApprovalSubjectName
(
String
bizId
)
{
SapPurchaseApproval
sapPurchaseApproval
=
this
.
sapPurchaseApprovalRepository
.
findOne
(
bizId
);
//查询 单据日期
String
fillinDateStr
=
DateUtil
.
getDateFormat
(
"yyyy-MM-dd HH:mm:ss"
,
sapPurchaseApproval
.
getFillinDate
());
//设置标题
return
String
.
format
(
"%s-%s(%s)"
,
sapPurchaseApproval
.
getBatxt
(),
sapPurchaseApproval
.
getBanfn
(),
fillinDateStr
);
}
@Override
protected
Map
<
String
,
Object
>
getProcessBizParams
(
String
bizId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseOrder/application/impl/SapPurchaseOrderApplicationImpl.java
View file @
4b53e064
...
...
@@ -92,6 +92,25 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
return
sapPurchaseOrder
.
getId
();
}
@Override
protected
void
setTaskDescription
(
DelegateTask
delegateTask
)
{
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
delegateTask
.
setDescription
(
this
.
getApprovalSubjectName
(
bizId
));
}
/**
* 获取任务标题
*
* @param bizId
* @return
*/
private
String
getApprovalSubjectName
(
String
bizId
)
{
SapPurchaseOrder
sapPurchaseOrder
=
this
.
sapPurchaseOrderRepository
.
findOne
(
bizId
);
//查询 单据日期
String
fillinDateStr
=
DateUtil
.
getDateFormat
(
"yyyy-MM-dd HH:mm:ss"
,
sapPurchaseOrder
.
getFillinDate
());
//设置标题
return
String
.
format
(
"%s-%s(%s)"
,
sapPurchaseOrder
.
getBatxt
(),
sapPurchaseOrder
.
getEbeln
(),
fillinDateStr
);
}
@Override
protected
Map
<
String
,
Object
>
getProcessBizParams
(
String
bizId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseOrder/controller/SapPurchaseOrderController.java
View file @
4b53e064
package
com
.
huigou
.
topsun
.
sap
.
purchaseOrder
.
controller
;
import
com.huigou.topsun.common.BillStatus
;
import
com.huigou.topsun.sap.purchaseOrder.application.SapPurchaseOrderApplication
;
import
com.huigou.topsun.sap.purchaseOrder.application.SapPurchaseOrderItemApplication
;
import
com.huigou.topsun.sap.purchaseOrder.domain.SapPurchaseOrder
;
...
...
@@ -62,6 +63,7 @@ public class SapPurchaseOrderController extends CommonController {
public
String
forwardSapPurchaseOrderList
(){
this
.
putAttribute
(
"statusKindsList"
,
BillStatus
.
getValidMap
());
return
forward
(
"sapPurchaseOrderList"
);
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseOrder/domain/SapPurchaseOrder.java
View file @
4b53e064
...
...
@@ -6,6 +6,7 @@ import lombok.Data;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
...
...
@@ -53,6 +54,12 @@ public class SapPurchaseOrder extends FlowBillAbstractEntity {
@Column
(
name
=
"WAERS"
)
private
String
waers
;
/**
* 订单总金额
*/
@Column
(
name
=
"total_money"
)
private
BigDecimal
totalMoney
;
// /**
// * 创建日期
// */
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseOrder/domain/query/SapPurchaseOrderQueryRequest.java
View file @
4b53e064
...
...
@@ -4,6 +4,7 @@ import com.huigou.data.domain.query.QueryAbstractRequest;
import
lombok.Data
;
import
javax.persistence.Column
;
import
java.util.Date
;
/**
* @Auther: xin.lu
...
...
@@ -28,4 +29,10 @@ public class SapPurchaseOrderQueryRequest extends QueryAbstractRequest {
* 采购订单类型描述
*/
private
String
batxt
;
protected
Date
fillinBeginDate
;
protected
Date
fillinEndDate
;
private
String
statusKind
;
}
topsun/src/main/java/com/huigou/topsun/sap/suppliers/application/SuppliersDataApplication.java
View file @
4b53e064
...
...
@@ -21,6 +21,7 @@ public interface SuppliersDataApplication {
String
PROCESS_DEFINITION_KEY
=
"sapSuppliersDataProc"
;
String
PROCESS_DEFINITION_KEY2
=
"sapSuppliersDataModiProc"
;
String
PROCESS_DEFINITION_KEY3
=
"sapSuppliersDataDeleProc"
;
String
PROCESS_DEFINITION_KEY4
=
"sapSuppliersDataExteProc"
;
String
QUERY_XML_FILE_PATH
=
"config/topsun/sap/sapSuppliersData/suppliersData.xml"
;
...
...
@@ -46,4 +47,8 @@ public interface SuppliersDataApplication {
void
deleteSuppliersBankByIds
(
List
<
String
>
ids
);
List
<
Map
<
String
,
String
>>
selectSuppliersDatas
(
String
types
);
String
checkApprovalStatus
(
String
partner
);
Map
<
String
,
String
>
getSupplierNowItemList
(
String
partner
);
}
topsun/src/main/java/com/huigou/topsun/sap/suppliers/application/impl/SuppliersDataApplicationImpl.java
View file @
4b53e064
This diff is collapsed.
Click to expand it.
topsun/src/main/java/com/huigou/topsun/sap/suppliers/controller/SuppliersDataController.java
View file @
4b53e064
...
...
@@ -70,9 +70,11 @@ public class SuppliersDataController extends CommonController {
this
.
putAttribute
(
"applyType"
,
"0"
);
SDO
sdo
=
this
.
getSDO
();
String
bizId
=
sdo
.
getString
(
"bizId"
);
String
flag
=
sdo
.
getString
(
"flag"
);
SuppliersInfo
suppliersInfo
=
new
SuppliersInfo
();
suppliersInfo
.
setApplyType
(
"0"
);
String
isDel
=
sdo
.
getString
(
"isDel"
);
String
page
=
"suppliersDataDetail"
;
if
(
StringUtil
.
isNotBlank
(
isDel
)){
//删除流程
suppliersInfo
=
suppliersDataApplication
.
loadSuppliersDataById
(
bizId
);
this
.
putAttribute
(
"processDefinitionKey"
,
SuppliersDataApplication
.
PROCESS_DEFINITION_KEY3
);
...
...
@@ -98,9 +100,17 @@ public class SuppliersDataController extends CommonController {
if
(
deletedList
.
size
()>
0
){
throw
new
RuntimeException
(
"该供应商已经执行删除,不能再次修改了!"
);
}
if
(
"update"
.
equals
(
flag
)){
this
.
putAttribute
(
"processDefinitionKey"
,
SuppliersDataApplication
.
PROCESS_DEFINITION_KEY2
);
this
.
putAttribute
(
"applyType"
,
"1"
);
suppliersInfo
.
setApplyType
(
"1"
);
}
else
if
(
"extend"
.
equals
(
flag
))
{
this
.
putAttribute
(
"processDefinitionKey"
,
SuppliersDataApplication
.
PROCESS_DEFINITION_KEY4
);
this
.
putAttribute
(
"applyType"
,
"2"
);
//扩展
suppliersInfo
.
setApplyType
(
"2"
);
page
=
"suppliersExtendDataDetail"
;
}
suppliersInfo
.
setBillCode
(
""
);
suppliersInfo
.
setId
(
""
);
// suppliersInfo.setSId(bizId);
...
...
@@ -117,7 +127,7 @@ public class SuppliersDataController extends CommonController {
Operator
operator
=
getOperator
();
//获取当前操作员的详情信息
suppliersInfo
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
return
forward
(
"suppliersDataDetail"
,
suppliersInfo
);
return
forward
(
page
,
suppliersInfo
);
}
public
String
showSuppliersData
()
{
...
...
@@ -130,6 +140,9 @@ public class SuppliersDataController extends CommonController {
if
(!(
suppliersInfo
.
getApplyType
().
equals
(
"0"
))){
this
.
putAttribute
(
"sId"
,
id
);
this
.
putAttribute
(
"applyType"
,
suppliersInfo
.
getApplyType
());
if
(
"2"
.
equals
(
suppliersInfo
.
getApplyType
())){
return
forward
(
"suppliersExtendDataDetail"
,
suppliersInfo
);
}
}
return
forward
(
"suppliersDataDetail"
,
suppliersInfo
);
}
...
...
@@ -190,4 +203,18 @@ public class SuppliersDataController extends CommonController {
impDataFromXLS
.
readFile
();
return
success
();
}
public
String
checkApprovalStatus
(){
SDO
sdo
=
this
.
getSDO
();
String
partner
=
sdo
.
getString
(
"partner"
);
suppliersDataApplication
.
checkApprovalStatus
(
partner
);
return
success
();
}
public
String
getSupplierNowItemList
(){
SDO
sdo
=
this
.
getSDO
();
String
partner
=
sdo
.
getString
(
"partner"
);
Map
<
String
,
String
>
map
=
suppliersDataApplication
.
getSupplierNowItemList
(
partner
);
return
toResult
(
map
);
}
}
topsun/src/main/java/com/huigou/topsun/syncOrg/application/OrgSyncApplication.java
View file @
4b53e064
...
...
@@ -72,4 +72,6 @@ public interface OrgSyncApplication {
List
<
SapPersonVo
>
querySapPersonVoByFullId
(
String
fullId
);
void
syncAllPersonToSap
();
List
<
String
>
getCodeById
(
List
<
String
>
personIds
);
}
topsun/src/main/java/com/huigou/topsun/syncOrg/application/impl/OrgSyncApplicationImpl.java
View file @
4b53e064
...
...
@@ -282,6 +282,17 @@ public class OrgSyncApplicationImpl extends BaseApplication implements OrgSyncAp
this
.
buildSapPerson
(
"I"
,
sapPersonVos
);
}
@Override
public
List
<
String
>
getCodeById
(
List
<
String
>
personIds
)
{
List
<
Person
>
personList
=
personRepository
.
findAll
(
personIds
);
List
<
String
>
list
=
personList
.
stream
()
.
filter
(
person
->
"1"
.
equals
(
person
.
getIsSapPerson
()))
.
map
(
Person:
:
getCode
)
.
collect
(
Collectors
.
toList
());
return
list
;
}
/**
* 字符串转hashcode
* @param value
...
...
topsun/src/main/java/com/huigou/topsun/syncOrg/controller/SyncOrgController.java
View file @
4b53e064
...
...
@@ -53,6 +53,14 @@ public class SyncOrgController extends CommonController {
return
success
();
}
public
String
updatePersonToSap
(){
SDO
sdo
=
this
.
getSDO
();
List
<
String
>
personIds
=
sdo
.
getStringList
(
"personIds"
);
List
<
String
>
codes
=
orgSyncApplication
.
getCodeById
(
personIds
);
orgSyncApplication
.
syncPersonToSap
(
"U"
,
codes
);
return
success
();
}
public
String
initAllPersonToSap
(){
SDO
sdo
=
this
.
getSDO
();
orgSyncApplication
.
syncAllPersonToSap
();
...
...
topsun/src/main/resources/config/bpm/topsun/sapSupplierDataExtendProc.bpmn
0 → 100644
View file @
4b53e064
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:omgdc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:omgdi=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
typeLanguage=
"http://www.w3.org/2001/XMLSchema"
expressionLanguage=
"http://www.w3.org/1999/XPath"
targetNamespace=
"http://www.activiti.org/test"
>
<process
id=
"sapSuppliersDataExteProc"
name=
"供应商主数据扩展"
isExecutable=
"true"
>
<extensionElements>
<activiti:executionListener
event=
"start"
delegateExpression=
"#{suppliersDataApplication}"
></activiti:executionListener>
<activiti:executionListener
event=
"end"
delegateExpression=
"#{suppliersDataApplication}"
></activiti:executionListener>
</extensionElements>
<startEvent
id=
"startevent1"
name=
"Start"
></startEvent>
<endEvent
id=
"endevent1"
name=
"End"
></endEvent>
<userTask
id=
"Apply"
name=
"供应商主数据扩展申请"
activiti:formKey=
"sapSuppliersData/showSuppliersData.job"
>
<extensionElements>
<activiti:taskListener
event=
"all"
delegateExpression=
"#{suppliersDataApplication}"
></activiti:taskListener>
<activiti:taskListener
event=
"saveBizData"
delegateExpression=
"#{suppliersDataApplication}"
></activiti:taskListener>
</extensionElements>
</userTask>
<userTask
id=
"Approve"
name=
"供应商主数据扩展审批"
activiti:assignee=
"${assignee} "
activiti:formKey=
"sapSuppliersData/showSuppliersData.job"
>
<extensionElements>
<activiti:taskListener
event=
"all"
delegateExpression=
"#{suppliersDataApplication}"
></activiti:taskListener>
<activiti:taskListener
event=
"saveBizData"
delegateExpression=
"#{suppliersDataApplication}"
></activiti:taskListener>
</extensionElements>
<multiInstanceLoopCharacteristics
isSequential=
"false"
activiti:collection=
"handlerList"
activiti:elementVariable=
"assignee"
>
<completionCondition>
${chiefApprovePassed}
</completionCondition>
</multiInstanceLoopCharacteristics>
</userTask>
<sequenceFlow
id=
"flow1"
sourceRef=
"startevent1"
targetRef=
"Apply"
></sequenceFlow>
<sequenceFlow
id=
"flow2"
sourceRef=
"Apply"
targetRef=
"Approve"
></sequenceFlow>
<exclusiveGateway
id=
"ApproveFinished"
name=
"审批结束"
></exclusiveGateway>
<sequenceFlow
id=
"flow3"
name=
"审批通过"
sourceRef=
"ApprovePassed"
targetRef=
"ApproveFinished"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${approvePassed}]]>
</conditionExpression>
</sequenceFlow>
<sequenceFlow
id=
"flow4"
name=
"审批结束"
sourceRef=
"ApproveFinished"
targetRef=
"endevent1"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${approveFinished}]]>
</conditionExpression>
</sequenceFlow>
<sequenceFlow
id=
"flow5"
name=
"审批未结束"
sourceRef=
"ApproveFinished"
targetRef=
"Approve"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${!approveFinished}]]>
</conditionExpression>
</sequenceFlow>
<exclusiveGateway
id=
"ApprovePassed"
name=
"审批通过"
></exclusiveGateway>
<sequenceFlow
id=
"flow6"
sourceRef=
"Approve"
targetRef=
"ApprovePassed"
></sequenceFlow>
<sequenceFlow
id=
"flow9"
name=
"审批未通过"
sourceRef=
"ApprovePassed"
targetRef=
"Apply"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${!approvePassed}]]>
</conditionExpression>
</sequenceFlow>
</process>
<bpmndi:BPMNDiagram
id=
"BPMNDiagram_sapSuppliersDataProc"
>
<bpmndi:BPMNPlane
bpmnElement=
"sapSuppliersDataProc"
id=
"BPMNPlane_sapSuppliersDataProc"
>
<bpmndi:BPMNShape
bpmnElement=
"startevent1"
id=
"BPMNShape_startevent1"
>
<omgdc:Bounds
height=
"35.0"
width=
"35.0"
x=
"355.0"
y=
"50.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"endevent1"
id=
"BPMNShape_endevent1"
>
<omgdc:Bounds
height=
"35.0"
width=
"35.0"
x=
"355.0"
y=
"550.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"Apply"
id=
"BPMNShape_Apply"
>
<omgdc:Bounds
height=
"55.0"
width=
"161.0"
x=
"292.0"
y=
"140.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"Approve"
id=
"BPMNShape_Approve"
>
<omgdc:Bounds
height=
"55.0"
width=
"161.0"
x=
"292.0"
y=
"240.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"ApproveFinished"
id=
"BPMNShape_ApproveFinished"
>
<omgdc:Bounds
height=
"40.0"
width=
"40.0"
x=
"352.0"
y=
"440.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"ApprovePassed"
id=
"BPMNShape_ApprovePassed"
>
<omgdc:Bounds
height=
"40.0"
width=
"40.0"
x=
"352.0"
y=
"349.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge
bpmnElement=
"flow1"
id=
"BPMNEdge_flow1"
>
<omgdi:waypoint
x=
"372.0"
y=
"85.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"140.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow2"
id=
"BPMNEdge_flow2"
>
<omgdi:waypoint
x=
"372.0"
y=
"195.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"240.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow3"
id=
"BPMNEdge_flow3"
>
<omgdi:waypoint
x=
"372.0"
y=
"389.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"440.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"48.0"
x=
"320.0"
y=
"396.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow4"
id=
"BPMNEdge_flow4"
>
<omgdi:waypoint
x=
"372.0"
y=
"480.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"550.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"48.0"
x=
"382.0"
y=
"489.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow5"
id=
"BPMNEdge_flow5"
>
<omgdi:waypoint
x=
"392.0"
y=
"460.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"459.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"317.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"267.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"489.0"
y=
"267.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"453.0"
y=
"267.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"60.0"
x=
"459.0"
y=
"411.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow6"
id=
"BPMNEdge_flow6"
>
<omgdi:waypoint
x=
"372.0"
y=
"295.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"349.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow9"
id=
"BPMNEdge_flow9"
>
<omgdi:waypoint
x=
"352.0"
y=
"369.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"231.0"
y=
"369.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"231.0"
y=
"167.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"292.0"
y=
"167.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"60.0"
x=
"257.0"
y=
"376.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
\ No newline at end of file
topsun/src/main/resources/config/topsun/sap/sapPurchase/sapPurchase.xml
View file @
4b53e064
...
...
@@ -5,6 +5,10 @@
select t.* from sap_purchase t
</sql-query>
<condition
column=
"bill_code"
name=
"billCode"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"banfn"
name=
"banfn"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"status"
name=
"statusKind"
type=
"java.lang.Integer"
symbol=
"in"
alias=
"t"
/>
<condition
column=
"fillin_date"
name=
"fillinBeginDate"
type=
"java.util.Date"
symbol=
">="
alias=
"t"
/>
<condition
column=
"fillin_date"
name=
"fillinEndDate"
type=
"java.util.Date"
symbol=
"<="
alias=
"t"
/>
</query>
</query-mappings>
\ No newline at end of file
topsun/src/main/resources/config/topsun/sap/sapPurchaseInfoRecord/sapPurchaseInfoRecordItem.xml
View file @
4b53e064
...
...
@@ -10,7 +10,7 @@
<query
name=
"sapPurchaseInfoRecordItemByIds"
label=
"根据id查询"
table=
"sap_purchase_info_record_item"
>
<sql-query>
select
t.
id,
'' as
id,
'' as sap_purchase_info_record_id,
t.ZYY,
t.LIFNR,
...
...
topsun/src/main/resources/config/topsun/sap/sapPurchaseOrder/sapPurchaseOrder.xml
View file @
4b53e064
...
...
@@ -5,6 +5,10 @@
select t.* from sap_purchase_order t
</sql-query>
<condition
column=
"bill_code"
name=
"billCode"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"ebeln"
name=
"ebeln"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"status"
name=
"statusKind"
type=
"java.lang.Integer"
symbol=
"in"
alias=
"t"
/>
<condition
column=
"fillin_date"
name=
"fillinBeginDate"
type=
"java.util.Date"
symbol=
">="
alias=
"t"
/>
<condition
column=
"fillin_date"
name=
"fillinEndDate"
type=
"java.util.Date"
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