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
a734948c
Commit
a734948c
authored
Jun 26, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品信息记录、供应商准入
parent
8ab0566a
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
281 additions
and
153 deletions
+281
-153
exceptionReportDetail.js
...p/biz/topsun/sap/exceptionReport/exceptionReportDetail.js
+154
-133
exceptionReportDetail.jsp
.../biz/topsun/sap/exceptionReport/exceptionReportDetail.jsp
+3
-0
nonOrderStorageList.js
...app/biz/topsun/sap/nonOrderStorage/nonOrderStorageList.js
+3
-3
produceSupplierReviewDetail.js
.../sap/produceSupplierReview/produceSupplierReviewDetail.js
+3
-0
produceSupplierReviewDetail.jsp
...sap/produceSupplierReview/produceSupplierReviewDetail.jsp
+4
-0
addPurchaseInfoRecordDetail.jsp
...un/sap/purchaseInfoRecord/addPurchaseInfoRecordDetail.jsp
+4
-0
MannualStartWorkApplicationImpl.java
...sage/appliction/impl/MannualStartWorkApplicationImpl.java
+2
-1
EpSaleOrderApplicationImpl.java
...ep/order/application/impl/EpSaleOrderApplicationImpl.java
+3
-2
EpSaleOrderCancelApplicationImpl.java
...er/application/impl/EpSaleOrderCancelApplicationImpl.java
+3
-2
NonProdApplyApplicationImpl.java
...odApply/application/impl/NonProdApplyApplicationImpl.java
+2
-1
NonProdApplyDeptApplicationImpl.java
...ply/application/impl/NonProdApplyDeptApplicationImpl.java
+0
-1
ProduceSupplierReviewController.java
...ierReview/controller/ProduceSupplierReviewController.java
+2
-0
ProduceSupplierReview.java
...p/produceSupplierReview/domain/ProduceSupplierReview.java
+2
-0
SapPurchaseApprovalApplicationImpl.java
.../application/impl/SapPurchaseApprovalApplicationImpl.java
+2
-1
SapPurchaseInfoRecordItem.java
.../purchaseInfoRecord/domain/SapPurchaseInfoRecordItem.java
+25
-0
SapPurchaseInfoRecordItemVo.java
...haseInfoRecord/domain/vo/SapPurchaseInfoRecordItemVo.java
+25
-0
SapPurchaseOrderApplicationImpl.java
...der/application/impl/SapPurchaseOrderApplicationImpl.java
+0
-1
ImpDataFromXLS.java
...uigou/topsun/sap/suppliers/controller/ImpDataFromXLS.java
+41
-8
SuppliersBankRepository.java
...sun/sap/suppliers/repository/SuppliersBankRepository.java
+2
-0
SuppliersInfoRepository.java
...sun/sap/suppliers/repository/SuppliersInfoRepository.java
+1
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/exceptionReport/exceptionReportDetail.js
View file @
a734948c
...
@@ -28,6 +28,7 @@ function initItemGrid() {
...
@@ -28,6 +28,7 @@ function initItemGrid() {
gridManager
:
_grid
,
gridManager
:
_grid
,
idFieldName
:
'id'
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
onSuccess
:
function
()
{
countSum
();
reloadGrid
();
reloadGrid
();
}
}
});
});
...
@@ -37,7 +38,7 @@ function initItemGrid() {
...
@@ -37,7 +38,7 @@ function initItemGrid() {
columns
:
getGridColumns
(),
columns
:
getGridColumns
(),
dataAction
:
'server'
,
dataAction
:
'server'
,
url
:
web_app
.
name
+
'/exceptionReport/slicedExceptionReportItemList.ajax'
,
url
:
web_app
.
name
+
'/exceptionReport/slicedExceptionReportItemList.ajax'
,
parms
:
{
exceptionReportId
:
getId
()},
parms
:
{
exceptionReportId
:
getId
()},
height
:
'300px'
,
height
:
'300px'
,
heightDiff
:
-
4
,
heightDiff
:
-
4
,
sortName
:
'id'
,
sortName
:
'id'
,
...
@@ -50,47 +51,46 @@ function initItemGrid() {
...
@@ -50,47 +51,46 @@ function initItemGrid() {
selectRowButtonOnly
:
true
,
selectRowButtonOnly
:
true
,
//autoApplyNextEditor:false,
//autoApplyNextEditor:false,
toolbar
:
toolbarOptions
,
toolbar
:
toolbarOptions
,
}
})
);
UICtrl
.
setSearchAreaToggle
(
itemGridManager
);
UICtrl
.
setSearchAreaToggle
(
itemGridManager
);
}
}
function
getGridColumns
()
{
function
getGridColumns
()
{
var
columns
=
[];
var
columns
=
[];
columns
=
[
columns
=
[
{
display
:
"生产单号"
,
name
:
"produceNo"
,
width
:
"160"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"生产单号"
,
name
:
"produceNo"
,
width
:
"160"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'text'
}
editor
:
{
type
:
'text'
}
},
},
{
display
:
"产品编码"
,
name
:
"productCode"
,
width
:
"160"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"产品编码"
,
name
:
"productCode"
,
width
:
"160"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'text'
}
editor
:
{
type
:
'text'
}
},
},
{
display
:
"产品名称"
,
name
:
"productName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"产品名称"
,
name
:
"productName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'text'
}
editor
:
{
type
:
'text'
}
},
},
{
display
:
"数量"
,
name
:
"number"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"数量"
,
name
:
"number"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
},
},
{
display
:
"单位"
,
name
:
"unitName"
,
width
:
"80"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"单位"
,
name
:
"unitName"
,
width
:
"80"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
}
editor
:
{
type
:
"text"
}
},
},
{
display
:
"币别"
,
name
:
"currencyName"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"币别"
,
name
:
"currencyName"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
}
editor
:
{
type
:
"text"
}
},
},
{
display
:
"金额"
,
name
:
"money"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"金额"
,
name
:
"money"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
},
},
{
display
:
"折算人民币金额"
,
name
:
"rmbMoney"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"折算人民币金额"
,
name
:
"rmbMoney"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
},
},
{
display
:
"出货日期"
,
name
:
"sendDate"
,
width
:
"140"
,
align
:
"left"
,
type
:
"date"
,
{
display
:
"出货日期"
,
name
:
"sendDate"
,
width
:
"140"
,
align
:
"left"
,
type
:
"date"
,
editor
:
{
type
:
"date"
}
editor
:
{
type
:
"date"
}
}
}
]
]
return
columns
;
return
columns
;
}
}
function
initDutyPersonGridGrid
()
{
function
initDutyPersonGridGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
(){
addHandler
:
function
(){
UICtrl
.
addGridRow
(
dutyPersonGridManager
);
UICtrl
.
addGridRow
(
dutyPersonGridManager
);
},
},
...
@@ -107,7 +107,7 @@ function initDutyPersonGridGrid() {
...
@@ -107,7 +107,7 @@ function initDutyPersonGridGrid() {
});
});
},
},
});
});
dutyPersonGridManager
=
UICtrl
.
grid
(
'#dutyPersonGrid'
,
{
dutyPersonGridManager
=
UICtrl
.
grid
(
'#dutyPersonGrid'
,
{
columns
:
getDutyPersonGridColumns
(),
columns
:
getDutyPersonGridColumns
(),
dataAction
:
'server'
,
dataAction
:
'server'
,
url
:
web_app
.
name
+
'/exceptionReport/slicedExceptionReportDutyPersonList.ajax'
,
url
:
web_app
.
name
+
'/exceptionReport/slicedExceptionReportDutyPersonList.ajax'
,
...
@@ -124,94 +124,115 @@ function initDutyPersonGridGrid() {
...
@@ -124,94 +124,115 @@ function initDutyPersonGridGrid() {
selectRowButtonOnly
:
true
,
selectRowButtonOnly
:
true
,
//autoApplyNextEditor:false,
//autoApplyNextEditor:false,
toolbar
:
toolbarOptions
,
toolbar
:
toolbarOptions
,
onAfterEdit
:
function
(
item
)
{
if
(
item
.
column
.
name
==
'dutyMoney'
){
countSum
();
}
},
onAfterShowData
(){
countSum
();
}
}
);
}
UICtrl
.
setSearchAreaToggle
(
dutyPersonGridManager
);
);
UICtrl
.
setSearchAreaToggle
(
dutyPersonGridManager
);
}
}
function
countSum
(){
var
row
=
dutyPersonGridManager
.
rows
;
var
zrow
=
itemGridManager
.
rows
;
var
money
=
0
;
for
(
var
r
=
0
;
r
<
zrow
.
length
;
r
++
){
money
=
MathUtil
.
add
(
zrow
[
r
].
rmbMoney
,
money
);
}
for
(
var
x
=
0
;
x
<
row
.
length
;
x
++
){
money
=
MathUtil
.
add
(
row
[
x
].
dutyMoney
,
money
);
}
$
(
'#payMoney'
).
val
(
money
);
}
function
getDutyPersonGridColumns
()
{
function
getDutyPersonGridColumns
()
{
var
columns
=
[];
var
columns
=
[];
columns
=
[
columns
=
[
{
display
:
"工号/供应商编码/客户编码"
,
name
:
"personNo"
,
width
:
"180"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"工号/供应商编码/客户编码"
,
name
:
"personNo"
,
width
:
"180"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'text'
}
editor
:
{
type
:
'text'
}
},
},
{
display
:
"姓名/供应商/客户"
,
name
:
"personName"
,
width
:
"180"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"姓名/供应商/客户"
,
name
:
"personName"
,
width
:
"180"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'text'
}
editor
:
{
type
:
'text'
}
},
},
{
display
:
"部门/供应名称/客户名称"
,
name
:
"deptName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"部门/供应名称/客户名称"
,
name
:
"deptName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'text'
}
editor
:
{
type
:
'text'
}
},
},
{
display
:
"定责比例(%)"
,
name
:
"dutyRate"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"定责比例(%)"
,
name
:
"dutyRate"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
mask
:
'999.99'
}
editor
:
{
type
:
"text"
,
mask
:
'999.99'
}
},
},
{
display
:
"个人责任比例(%)"
,
name
:
"personDutyRate"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"个人责任比例(%)"
,
name
:
"personDutyRate"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
mask
:
'999.99'
}
editor
:
{
type
:
"text"
,
mask
:
'999.99'
}
},
},
{
display
:
"责任金额"
,
name
:
"dutyMoney"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"责任金额"
,
name
:
"dutyMoney"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
editor
:
{
type
:
"text"
,
mask
:
'9999999.999'
}
},
},
{
display
:
"备注"
,
name
:
"remark"
,
width
:
"300"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"备注"
,
name
:
"remark"
,
width
:
"300"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
}
editor
:
{
type
:
"text"
}
},
},
]
]
return
columns
;
return
columns
;
}
}
//获取数据保存的参数
//获取数据保存的参数
function
getExtendedData
(
processAction
)
{
function
getExtendedData
(
processAction
)
{
//回退、打回、转交时,不需要验证必填项是否已经填写;
//回退、打回、转交时,不需要验证必填项是否已经填写;
if
(
processAction
==
ProcessAction
.
BACK
if
(
processAction
==
ProcessAction
.
BACK
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
TRANSMIT
)
{
||
processAction
==
ProcessAction
.
TRANSMIT
)
{
//不验证
//不验证
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
}
}
var
extendedData
=
{};
var
extendedData
=
{};
var
_grid
=
UICtrl
.
getGridManager
(
'#maingrid'
);
var
_grid
=
UICtrl
.
getGridManager
(
'#maingrid'
);
if
(
_grid
)
{
if
(
_grid
)
{
var
datas
=
DataUtil
.
getGridData
({
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_grid
,
gridManager
:
_grid
,
isAllData
:
true
isAllData
:
true
});
});
if
(
!
datas
)
{
if
(
!
datas
)
{
return
false
;
return
false
;
}
}
extendedData
.
exceptionReportItems
=
Public
.
encodeJSONURI
(
datas
);
extendedData
.
exceptionReportItems
=
Public
.
encodeJSONURI
(
datas
);
}
}
var
_dutyPersonGrid
=
UICtrl
.
getGridManager
(
'#dutyPersonGrid'
);
var
_dutyPersonGrid
=
UICtrl
.
getGridManager
(
'#dutyPersonGrid'
);
if
(
_dutyPersonGrid
)
{
if
(
_dutyPersonGrid
)
{
var
datas
=
DataUtil
.
getGridData
({
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_dutyPersonGrid
,
gridManager
:
_dutyPersonGrid
,
isAllData
:
true
isAllData
:
true
});
});
if
(
!
datas
)
{
if
(
!
datas
)
{
return
false
;
return
false
;
}
}
extendedData
.
personList
=
Public
.
encodeJSONURI
(
datas
);
extendedData
.
personList
=
Public
.
encodeJSONURI
(
datas
);
}
}
return
extendedData
;
return
extendedData
;
}
}
function
getId
()
{
function
getId
()
{
return
$
(
'#id'
).
val
();
return
$
(
'#id'
).
val
();
}
}
function
setId
(
value
)
{
function
setId
(
value
)
{
$
(
"#id"
).
val
(
value
);
$
(
"#id"
).
val
(
value
);
var
_grid
=
UICtrl
.
getGridManager
(
'#maingrid'
);
var
_grid
=
UICtrl
.
getGridManager
(
'#maingrid'
);
_grid
.
options
.
parms
.
exceptionReportId
=
value
;
_grid
.
options
.
parms
.
exceptionReportId
=
value
;
var
_dutyPersonGrid
=
UICtrl
.
getGridManager
(
'#dutyPersonGrid'
);
var
_dutyPersonGrid
=
UICtrl
.
getGridManager
(
'#dutyPersonGrid'
);
_dutyPersonGrid
.
options
.
parms
.
exceptionReportId
=
value
;
_dutyPersonGrid
.
options
.
parms
.
exceptionReportId
=
value
;
}
}
function
reloadGrid
()
{
function
reloadGrid
()
{
itemGridManager
.
loadData
();
itemGridManager
.
loadData
();
dutyPersonGridManager
.
loadData
();
dutyPersonGridManager
.
loadData
();
countSum
();
}
}
function
printPage
()
{
function
printPage
()
{
Public
.
openPostWindow
(
web_app
.
name
+
'/PDFViewer/PDFViewer.do'
,{
id
:
$
(
"#id"
).
val
(),
applicationType
:
"exceptionReport"
});
Public
.
openPostWindow
(
web_app
.
name
+
'/PDFViewer/PDFViewer.do'
,{
id
:
$
(
"#id"
).
val
(),
applicationType
:
"exceptionReport"
});
}
}
topsun-xt/src/main/webapp/biz/topsun/sap/exceptionReport/exceptionReportDetail.jsp
View file @
a734948c
...
@@ -79,6 +79,9 @@
...
@@ -79,6 +79,9 @@
</div>
</div>
<x:title
title=
"责任人信息"
name=
"group"
hideTable=
"#info"
/>
<x:title
title=
"责任人信息"
name=
"group"
hideTable=
"#info"
/>
<div
id=
"dutyPersonGrid"
></div>
<div
id=
"dutyPersonGrid"
></div>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"payMoney"
label=
"赔付金额"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
readonly=
"true"
/>
</div>
</form>
</form>
</div>
</div>
</body>
</body>
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/nonOrderStorage/nonOrderStorageList.js
View file @
a734948c
...
@@ -33,9 +33,9 @@ function loadCostCenterListGrid() {
...
@@ -33,9 +33,9 @@ function loadCostCenterListGrid() {
gridManager
=
UICtrl
.
grid
(
"#maingrid"
,
{
gridManager
=
UICtrl
.
grid
(
"#maingrid"
,
{
columns
:
[
columns
:
[
{
display
:
"品名"
,
name
:
"productName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"品名"
,
name
:
"productName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"数量"
,
name
:
"number"
,
width
:
10
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"数量"
,
name
:
"number"
,
width
:
8
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"单位"
,
name
:
"unitName"
,
width
:
10
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"单位"
,
name
:
"unitName"
,
width
:
8
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"是否收费"
,
name
:
"isChargeTextView"
,
width
:
10
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"是否收费"
,
name
:
"isChargeTextView"
,
width
:
8
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工厂"
,
name
:
"werksName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工厂"
,
name
:
"werksName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"库存地点"
,
name
:
"storeName"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"库存地点"
,
name
:
"storeName"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"供应商"
,
name
:
"supplierName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"供应商"
,
name
:
"supplierName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/produceSupplierReview/produceSupplierReviewDetail.js
View file @
a734948c
...
@@ -107,6 +107,9 @@ $(document).ready(function () {
...
@@ -107,6 +107,9 @@ $(document).ready(function () {
});
});
function
initialize
()
{
function
initialize
()
{
$
(
'#produceSupplierInfoList'
).
fileList
({
bizId
:
$
(
"#attbizId"
).
val
()
});
//获取数据源初始化表格
//获取数据源初始化表格
Public
.
ajax
(
web_app
.
name
+
'/produceSupplierReview/slicedNewSupplierReviewItemList.ajax'
,
{
newSupplierReviewId
:
getId
()},
function
(
data
)
{
Public
.
ajax
(
web_app
.
name
+
'/produceSupplierReview/slicedNewSupplierReviewItemList.ajax'
,
{
newSupplierReviewId
:
getId
()},
function
(
data
)
{
//根据定义列拆除实体对象,封装成每个table对应的数据集
//根据定义列拆除实体对象,封装成每个table对应的数据集
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/produceSupplierReview/produceSupplierReviewDetail.jsp
View file @
a734948c
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
<x:hidden
name=
"personMemberId"
/>
<x:hidden
name=
"personMemberId"
/>
<x:hidden
name=
"personMemberName"
/>
<x:hidden
name=
"personMemberName"
/>
<x:hidden
name=
"statusId"
/>
<x:hidden
name=
"statusId"
/>
<x:hidden
name=
"attbizId"
/>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<div
id=
"produceSupplierReview-ledger-tab"
>
<div
id=
"produceSupplierReview-ledger-tab"
>
<div
class=
"ui-tab-links"
>
<div
class=
"ui-tab-links"
>
...
@@ -115,6 +116,9 @@
...
@@ -115,6 +116,9 @@
<x:radioC
name=
"isOnsiteAudit"
title=
"是否安排实地考察"
dictionary=
"yesorno"
required=
"false"
label=
"是否安排实地考察"
labelCol=
"2"
fieldCol=
"2"
/>
<x:radioC
name=
"isOnsiteAudit"
title=
"是否安排实地考察"
dictionary=
"yesorno"
required=
"false"
label=
"是否安排实地考察"
labelCol=
"2"
fieldCol=
"2"
/>
<x:radioC
name=
"isApprovedSupplier"
title=
"是否录入合格供方"
dictionary=
"yesorno"
required=
"false"
label=
"是否录入合格供方"
labelCol=
"2"
fieldCol=
"2"
/>
<x:radioC
name=
"isApprovedSupplier"
title=
"是否录入合格供方"
dictionary=
"yesorno"
required=
"false"
label=
"是否录入合格供方"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
</div>
<div
style=
"padding-top: 15px;"
>
<x:fileList
bizCode=
"produceSupplierInfo"
bizId=
"attbizId"
id=
"produceSupplierInfoList"
title=
"相关资料"
/>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layout"
>
<div
class=
"layout"
>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseInfoRecord/addPurchaseInfoRecordDetail.jsp
View file @
a734948c
...
@@ -86,6 +86,10 @@
...
@@ -86,6 +86,10 @@
<x:inputC
name=
"kstbm3"
label=
"等级数量3"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
mask=
"9999999.99"
/>
<x:inputC
name=
"kstbm3"
label=
"等级数量3"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
mask=
"9999999.99"
/>
<x:inputC
name=
"kbetr3"
label=
"等级金额3"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
mask=
"9999999.99"
/>
<x:inputC
name=
"kbetr3"
label=
"等级金额3"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
mask=
"9999999.99"
/>
<x:inputC
name=
"kstbm4"
label=
"等级数量4"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
mask=
"9999999.99"
/>
<x:inputC
name=
"kbetr4"
label=
"等级金额4"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
mask=
"9999999.99"
/>
<x:inputC
name=
"kstbm5"
label=
"等级数量5"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
mask=
"9999999.99"
/>
<x:inputC
name=
"kbetr5"
label=
"等级金额5"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
mask=
"9999999.99"
/>
</div>
</div>
</div>
</div>
...
...
topsun/src/main/java/com/huigou/topsun/base/bsnMessage/appliction/impl/MannualStartWorkApplicationImpl.java
View file @
a734948c
package
com
.
huigou
.
topsun
.
base
.
bsnMessage
.
appliction
.
impl
;
package
com
.
huigou
.
topsun
.
base
.
bsnMessage
.
appliction
.
impl
;
import
com.huigou.cache.SystemCache
;
import
com.huigou.context.Operator
;
import
com.huigou.context.Operator
;
import
com.huigou.context.ThreadLocalUtil
;
import
com.huigou.context.ThreadLocalUtil
;
import
com.huigou.topsun.base.bsnMessage.appliction.MannualStartWorkApplication
;
import
com.huigou.topsun.base.bsnMessage.appliction.MannualStartWorkApplication
;
...
@@ -40,7 +41,7 @@ public class MannualStartWorkApplicationImpl extends BaseApplication implements
...
@@ -40,7 +41,7 @@ public class MannualStartWorkApplicationImpl extends BaseApplication implements
Operator
operator
=
null
;
Operator
operator
=
null
;
operator
=
ThreadLocalUtil
.
getOperator
();
operator
=
ThreadLocalUtil
.
getOperator
();
if
(
operator
==
null
)
{
if
(
operator
==
null
)
{
String
createdById
=
"5EEB2DC861694A65933CB4CE9A8D870A@C18E23AAAA6940E09DF7C122332C51E0"
;
String
createdById
=
SystemCache
.
getParameter
(
"adminPersonId"
,
String
.
class
)
;
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
ThreadLocalUtil
.
putOperator
(
operator
);
ThreadLocalUtil
.
putOperator
(
operator
);
}
}
...
...
topsun/src/main/java/com/huigou/topsun/ep/order/application/impl/EpSaleOrderApplicationImpl.java
View file @
a734948c
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.ep.order.application.impl;
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.ep.order.application.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.huigou.cache.SystemCache
;
import
com.huigou.context.Operator
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.context.ThreadLocalUtil
;
import
com.huigou.context.ThreadLocalUtil
;
...
@@ -202,7 +203,7 @@ public class EpSaleOrderApplicationImpl extends FlowBroker implements EpSaleOrde
...
@@ -202,7 +203,7 @@ public class EpSaleOrderApplicationImpl extends FlowBroker implements EpSaleOrde
BeanUtil
.
copyProperties
(
epSaleOrderVo
,
epSaleOrder
);
BeanUtil
.
copyProperties
(
epSaleOrderVo
,
epSaleOrder
);
//初始化用户信息
//初始化用户信息
String
createdById
=
"5EEB2DC861694A65933CB4CE9A8D870A@C18E23AAAA6940E09DF7C122332C51E0"
;
String
createdById
=
SystemCache
.
getParameter
(
"adminPersonId"
,
String
.
class
)
;
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
epSaleOrder
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
epSaleOrder
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
...
@@ -241,7 +242,7 @@ public class EpSaleOrderApplicationImpl extends FlowBroker implements EpSaleOrde
...
@@ -241,7 +242,7 @@ public class EpSaleOrderApplicationImpl extends FlowBroker implements EpSaleOrde
private
SDO
buildSDO
(
Map
<
String
,
Object
>
formData
)
{
private
SDO
buildSDO
(
Map
<
String
,
Object
>
formData
)
{
//String createdById = (String) formData.get("createdById");
//String createdById = (String) formData.get("createdById");
//暂定管理员id
//暂定管理员id
String
createdById
=
"5EEB2DC861694A65933CB4CE9A8D870A@C18E23AAAA6940E09DF7C122332C51E0"
;
String
createdById
=
SystemCache
.
getParameter
(
"adminPersonId"
,
String
.
class
)
;
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
SDO
localSdo
=
new
SDO
();
SDO
localSdo
=
new
SDO
();
// 将业务数据传递给工作流
// 将业务数据传递给工作流
...
...
topsun/src/main/java/com/huigou/topsun/ep/order/application/impl/EpSaleOrderCancelApplicationImpl.java
View file @
a734948c
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.ep.order.application.impl;
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.ep.order.application.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.huigou.cache.SystemCache
;
import
com.huigou.context.Operator
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.context.ThreadLocalUtil
;
import
com.huigou.context.ThreadLocalUtil
;
...
@@ -201,7 +202,7 @@ public class EpSaleOrderCancelApplicationImpl extends FlowBroker implements EpSa
...
@@ -201,7 +202,7 @@ public class EpSaleOrderCancelApplicationImpl extends FlowBroker implements EpSa
BeanUtil
.
copyProperties
(
epSaleOrderCancelVo
,
epSaleOrderCancel
);
BeanUtil
.
copyProperties
(
epSaleOrderCancelVo
,
epSaleOrderCancel
);
//初始化用户信息
//初始化用户信息
String
createdById
=
"5EEB2DC861694A65933CB4CE9A8D870A@C18E23AAAA6940E09DF7C122332C51E0"
;
String
createdById
=
SystemCache
.
getParameter
(
"adminPersonId"
,
String
.
class
)
;
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
epSaleOrderCancel
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
epSaleOrderCancel
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
...
@@ -240,7 +241,7 @@ public class EpSaleOrderCancelApplicationImpl extends FlowBroker implements EpSa
...
@@ -240,7 +241,7 @@ public class EpSaleOrderCancelApplicationImpl extends FlowBroker implements EpSa
private
SDO
buildSDO
(
Map
<
String
,
Object
>
formData
)
{
private
SDO
buildSDO
(
Map
<
String
,
Object
>
formData
)
{
//String createdById = (String) formData.get("createdById");
//String createdById = (String) formData.get("createdById");
//暂定管理员id
//暂定管理员id
String
createdById
=
"5EEB2DC861694A65933CB4CE9A8D870A@C18E23AAAA6940E09DF7C122332C51E0"
;
String
createdById
=
SystemCache
.
getParameter
(
"adminPersonId"
,
String
.
class
)
;
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
SDO
localSdo
=
new
SDO
();
SDO
localSdo
=
new
SDO
();
// 将业务数据传递给工作流
// 将业务数据传递给工作流
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyApplicationImpl.java
View file @
a734948c
...
@@ -6,6 +6,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
...
@@ -6,6 +6,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.cache.SystemCache
;
import
com.huigou.context.Operator
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.data.domain.model.CommonDomainConstants
;
import
com.huigou.data.domain.model.CommonDomainConstants
;
...
@@ -511,7 +512,7 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
...
@@ -511,7 +512,7 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
public
String
saveProdApplyFromSapVO
(
ProdApplyFromSapVO
prodApplyFromSapVO
)
{
public
String
saveProdApplyFromSapVO
(
ProdApplyFromSapVO
prodApplyFromSapVO
)
{
//初始化用户信息
//初始化用户信息
String
createdById
=
"5EEB2DC861694A65933CB4CE9A8D870A@C18E23AAAA6940E09DF7C122332C51E0"
;
String
createdById
=
SystemCache
.
getParameter
(
"adminPersonId"
,
String
.
class
)
;
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
String
message
=
""
;
String
message
=
""
;
try
{
try
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyDeptApplicationImpl.java
View file @
a734948c
...
@@ -399,7 +399,6 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -399,7 +399,6 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
throw
new
RuntimeException
(
backStr
);
throw
new
RuntimeException
(
backStr
);
}
finally
{
}
finally
{
sapMutualEpLogApplication
.
saveSapMutualEpLog
(
backMap
);
sapMutualEpLogApplication
.
saveSapMutualEpLog
(
backMap
);
// String createdById = "5EEB2DC861694A65933CB4CE9A8D870A@C18E23AAAA6940E09DF7C122332C51E0";
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
baseInfo
.
getPersonMemberId
());
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
baseInfo
.
getPersonMemberId
());
saveBsnMessageData
(
baseInfo
,
applyDept
,
operator
,
backMap
);
saveBsnMessageData
(
baseInfo
,
applyDept
,
operator
,
backMap
);
return
backStr
;
return
backStr
;
...
...
topsun/src/main/java/com/huigou/topsun/sap/produceSupplierReview/controller/ProduceSupplierReviewController.java
View file @
a734948c
...
@@ -11,6 +11,7 @@ import com.huigou.uasp.bmp.common.BizBillStatus;
...
@@ -11,6 +11,7 @@ import com.huigou.uasp.bmp.common.BizBillStatus;
import
com.huigou.uasp.bmp.doc.attachment.application.AttachmentApplication
;
import
com.huigou.uasp.bmp.doc.attachment.application.AttachmentApplication
;
import
com.huigou.uasp.bmp.doc.attachment.domain.model.Attachment
;
import
com.huigou.uasp.bmp.doc.attachment.domain.model.Attachment
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.util.CommonUtil
;
import
com.huigou.util.Constants
;
import
com.huigou.util.Constants
;
import
com.huigou.util.SDO
;
import
com.huigou.util.SDO
;
import
com.huigou.util.StringUtil
;
import
com.huigou.util.StringUtil
;
...
@@ -73,6 +74,7 @@ public class ProduceSupplierReviewController extends CommonController {
...
@@ -73,6 +74,7 @@ public class ProduceSupplierReviewController extends CommonController {
this
.
putAttribute
(
"procUnitId"
,
"Apply"
);
this
.
putAttribute
(
"procUnitId"
,
"Apply"
);
ProduceSupplierReview
produceSupplierReview
=
new
ProduceSupplierReview
();
ProduceSupplierReview
produceSupplierReview
=
new
ProduceSupplierReview
();
produceSupplierReview
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
produceSupplierReview
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
produceSupplierReview
.
setAttbizId
(
CommonUtil
.
createGUID
());
// 自动生成附件id
/**
/**
* 设置jsp页面初始化填充数据,如果不设置, 那么在jsp页面上填写完表单之后立即提交申请TaskDescription获取不到时间和相关人员信息
* 设置jsp页面初始化填充数据,如果不设置, 那么在jsp页面上填写完表单之后立即提交申请TaskDescription获取不到时间和相关人员信息
*/
*/
...
...
topsun/src/main/java/com/huigou/topsun/sap/produceSupplierReview/domain/ProduceSupplierReview.java
View file @
a734948c
...
@@ -270,6 +270,8 @@ public class ProduceSupplierReview extends FlowBillAbstractEntity {
...
@@ -270,6 +270,8 @@ public class ProduceSupplierReview extends FlowBillAbstractEntity {
@Column
(
name
=
"final_review_deal_result"
)
@Column
(
name
=
"final_review_deal_result"
)
private
String
finalReviewDealResult
;
private
String
finalReviewDealResult
;
@Column
(
name
=
"attbiz_id"
)
private
String
attbizId
;
@Override
@Override
protected
String
getCodeRuleId
()
{
protected
String
getCodeRuleId
()
{
return
"produceSupplierReview"
;
return
"produceSupplierReview"
;
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseApproval/application/impl/SapPurchaseApprovalApplicationImpl.java
View file @
a734948c
...
@@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
...
@@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.huigou.cache.SystemCache
;
import
com.huigou.context.Operator
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.context.ThreadLocalUtil
;
import
com.huigou.context.ThreadLocalUtil
;
...
@@ -393,7 +394,7 @@ public class SapPurchaseApprovalApplicationImpl extends FlowBroker implements Sa
...
@@ -393,7 +394,7 @@ public class SapPurchaseApprovalApplicationImpl extends FlowBroker implements Sa
private
SDO
buildSDO
(
Map
<
String
,
Object
>
formData
)
{
private
SDO
buildSDO
(
Map
<
String
,
Object
>
formData
)
{
//String createdById = (String) formData.get("createdById");
//String createdById = (String) formData.get("createdById");
//暂定管理员id
//暂定管理员id
String
createdById
=
"5EEB2DC861694A65933CB4CE9A8D870A@C18E23AAAA6940E09DF7C122332C51E0"
;
String
createdById
=
SystemCache
.
getParameter
(
"adminPersonId"
,
String
.
class
)
;
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
SDO
localSdo
=
new
SDO
();
SDO
localSdo
=
new
SDO
();
// 将业务数据传递给工作流
// 将业务数据传递给工作流
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseInfoRecord/domain/SapPurchaseInfoRecordItem.java
View file @
a734948c
...
@@ -317,6 +317,31 @@ public class SapPurchaseInfoRecordItem extends AbstractEntity {
...
@@ -317,6 +317,31 @@ public class SapPurchaseInfoRecordItem extends AbstractEntity {
@Column
(
name
=
"KBETR3"
)
@Column
(
name
=
"KBETR3"
)
private
BigDecimal
kbetr3
;
private
BigDecimal
kbetr3
;
/**
* 等级数量4
*/
@Column
(
name
=
"KSTBM4"
)
private
BigDecimal
kstbm4
;
/**
* 等级金额4
*/
@Column
(
name
=
"KBETR4"
)
private
BigDecimal
kbetr4
;
/**
* 等级数量5
*/
@Column
(
name
=
"KSTBM5"
)
private
BigDecimal
kstbm5
;
/**
* 等级金额5
*/
@Column
(
name
=
"KBETR5"
)
private
BigDecimal
kbetr5
;
/**
/**
* 消息类型
* 消息类型
*/
*/
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseInfoRecord/domain/vo/SapPurchaseInfoRecordItemVo.java
View file @
a734948c
...
@@ -144,6 +144,31 @@ public class SapPurchaseInfoRecordItemVo implements Serializable {
...
@@ -144,6 +144,31 @@ public class SapPurchaseInfoRecordItemVo implements Serializable {
@JsonProperty
(
"KBETR3"
)
@JsonProperty
(
"KBETR3"
)
private
BigDecimal
kbetr3
;
private
BigDecimal
kbetr3
;
/**
* 条件等级数量4
*/
@JsonProperty
(
"KSTBM4"
)
private
BigDecimal
kstbm4
;
/**
* 等级金额4
*/
@JsonProperty
(
"KBETR4"
)
private
BigDecimal
kbetr4
;
/**
* 条件等级数量5
*/
@JsonProperty
(
"KSTBM5"
)
private
BigDecimal
kstbm5
;
/**
* 等级金额5
*/
@JsonProperty
(
"KBETR5"
)
private
BigDecimal
kbetr5
;
/**
/**
* 销售员
* 销售员
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseOrder/application/impl/SapPurchaseOrderApplicationImpl.java
View file @
a734948c
...
@@ -219,7 +219,6 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
...
@@ -219,7 +219,6 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
}
else
{
}
else
{
//throw new RuntimeException("未找到采购订单创建人:" + ernam);
//throw new RuntimeException("未找到采购订单创建人:" + ernam);
}
}
//String createdById = "5EEB2DC861694A65933CB4CE9A8D870A@C18E23AAAA6940E09DF7C122332C51E0";
List
<
SapPurchaseOrderItemVo
>
ltItems
=
sapPurchaseOrderDto
.
getLtItems
();
List
<
SapPurchaseOrderItemVo
>
ltItems
=
sapPurchaseOrderDto
.
getLtItems
();
List
<
SapPurchaseOrderItem
>
purchaseOrderItems
=
new
ArrayList
<>();
List
<
SapPurchaseOrderItem
>
purchaseOrderItems
=
new
ArrayList
<>();
...
...
topsun/src/main/java/com/huigou/topsun/sap/suppliers/controller/ImpDataFromXLS.java
View file @
a734948c
package
com
.
huigou
.
topsun
.
sap
.
suppliers
.
controller
;
package
com
.
huigou
.
topsun
.
sap
.
suppliers
.
controller
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.cache.SystemCache
;
import
com.huigou.context.Operator
;
import
com.huigou.topsun.common.CommonUtils
;
import
com.huigou.topsun.common.CommonUtils
;
import
com.huigou.topsun.sap.suppliers.application.SuppliersDataApplication
;
import
com.huigou.topsun.sap.suppliers.application.SuppliersDataApplication
;
import
com.huigou.topsun.sap.suppliers.domain.SuppliersBank
;
import
com.huigou.topsun.sap.suppliers.domain.SuppliersBank
;
...
@@ -12,6 +14,8 @@ import com.huigou.topsun.sap.suppliers.repository.SuppliersBuyerRepository;
...
@@ -12,6 +14,8 @@ import com.huigou.topsun.sap.suppliers.repository.SuppliersBuyerRepository;
import
com.huigou.topsun.sap.suppliers.repository.SuppliersInfoRepository
;
import
com.huigou.topsun.sap.suppliers.repository.SuppliersInfoRepository
;
import
com.huigou.topsun.sap.suppliers.repository.SuppliersPayRepository
;
import
com.huigou.topsun.sap.suppliers.repository.SuppliersPayRepository
;
import
com.huigou.topsun.util.CommonUtil
;
import
com.huigou.topsun.util.CommonUtil
;
import
com.huigou.uasp.bmp.fn.CodeGenerator
;
import
com.huigou.uasp.bmp.operator.OperatorApplication
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.poi.hssf.usermodel.HSSFWorkbook
;
import
org.apache.poi.hssf.usermodel.HSSFWorkbook
;
import
org.apache.poi.ss.usermodel.Cell
;
import
org.apache.poi.ss.usermodel.Cell
;
...
@@ -22,13 +26,17 @@ import org.apache.poi.xssf.usermodel.XSSFCell;
...
@@ -22,13 +26,17 @@ import org.apache.poi.xssf.usermodel.XSSFCell;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.beans.Transient
;
import
java.io.FileInputStream
;
import
java.io.FileInputStream
;
import
java.io.FileNotFoundException
;
import
java.io.FileNotFoundException
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Iterator
;
import
java.util.Iterator
;
import
java.util.List
;
@Service
(
"impDataFromXLS"
)
@Service
(
"impDataFromXLS"
)
public
class
ImpDataFromXLS
{
public
class
ImpDataFromXLS
{
...
@@ -41,6 +49,10 @@ public class ImpDataFromXLS {
...
@@ -41,6 +49,10 @@ public class ImpDataFromXLS {
SuppliersBuyerRepository
suppliersBuyerRepository
;
SuppliersBuyerRepository
suppliersBuyerRepository
;
@Autowired
@Autowired
SuppliersBankRepository
suppliersBankRepository
;
SuppliersBankRepository
suppliersBankRepository
;
@Resource
private
OperatorApplication
operatorApplication
;
@Autowired
private
CodeGenerator
codeGenerator
;
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
ImpDataFromXLS
obj
=
new
ImpDataFromXLS
();
ImpDataFromXLS
obj
=
new
ImpDataFromXLS
();
...
@@ -78,6 +90,20 @@ public class ImpDataFromXLS {
...
@@ -78,6 +90,20 @@ public class ImpDataFromXLS {
//
//
SuppliersInfo
suppliersInfo
=
new
SuppliersInfo
();
SuppliersInfo
suppliersInfo
=
new
SuppliersInfo
();
suppliersInfo
.
setRltgr
(
"Z00001X"
);
suppliersInfo
.
setRltgr
(
"Z00001X"
);
suppliersInfo
.
setApplyType
(
"0"
);
suppliersInfo
.
setStatusId
(
3
);
// suppliersInfo.setBillCode();
String
createdById
=
SystemCache
.
getParameter
(
"adminPersonId"
,
String
.
class
);
Operator
operator
=
operatorApplication
.
createOperatorByPersonMemberId
(
createdById
);
suppliersInfo
.
setFullId
(
operator
.
getFullId
());
suppliersInfo
.
setPersonMemberId
(
createdById
);
suppliersInfo
.
setPersonMemberName
(
operator
.
getPersonMemberName
());
suppliersInfo
.
setFillinDate
(
new
Date
());
String
nextCode
=
codeGenerator
.
getNextCode
(
"sapSuppliersInfo"
);
suppliersInfo
.
setBillCode
(
nextCode
);
suppliersInfo
.
setOrganId
(
operator
.
getOrgId
());
suppliersInfo
.
setOrganName
(
operator
.
getOrgName
());
suppliersInfo
.
setDeptName
(
operator
.
getDeptName
());
SuppliersBank
bank
=
new
SuppliersBank
();
SuppliersBank
bank
=
new
SuppliersBank
();
SuppliersBuyer
buyer
=
new
SuppliersBuyer
();
SuppliersBuyer
buyer
=
new
SuppliersBuyer
();
...
@@ -90,7 +116,7 @@ public class ImpDataFromXLS {
...
@@ -90,7 +116,7 @@ public class ImpDataFromXLS {
assembleData
(
suppliersInfo
,
bank
,
buyer
,
pay
,
num
,
cellValue
);
assembleData
(
suppliersInfo
,
bank
,
buyer
,
pay
,
num
,
cellValue
);
System
.
out
.
print
(
num
+
"="
+
cellValue
+
" "
);
System
.
out
.
print
(
num
+
"="
+
cellValue
+
" "
);
}
}
//
saveData(suppliersInfo,bank,buyer,pay);
saveData
(
suppliersInfo
,
bank
,
buyer
,
pay
);
System
.
out
.
println
();
System
.
out
.
println
();
}
}
}
}
...
@@ -254,19 +280,26 @@ public class ImpDataFromXLS {
...
@@ -254,19 +280,26 @@ public class ImpDataFromXLS {
}
}
@Transactional
public
void
saveData
(
SuppliersInfo
suppliersInfo
,
SuppliersBank
bank
,
SuppliersBuyer
buyer
,
SuppliersPay
pay
){
public
void
saveData
(
SuppliersInfo
suppliersInfo
,
SuppliersBank
bank
,
SuppliersBuyer
buyer
,
SuppliersPay
pay
){
try
{
try
{
List
<
SuppliersInfo
>
list
=
suppliersInfoRepository
.
findByPartner
(
suppliersInfo
.
getPartner
());
if
(
list
.
size
()>
0
){
suppliersInfo
=
list
.
get
(
0
);
}
else
{
suppliersInfo
=
suppliersInfoRepository
.
save
(
suppliersInfo
);
suppliersInfo
=
suppliersInfoRepository
.
save
(
suppliersInfo
);
if
(
StringUtils
.
isNotBlank
(
bank
.
getBanks
())){
}
if
(
StringUtils
.
isNotBlank
(
bank
.
getBankn
())){
//银行代码存在
if
(
suppliersBankRepository
.
findByBankn
(
bank
.
getBankn
()).
size
()<
1
)
{
bank
.
setSId
(
suppliersInfo
.
getId
());
bank
.
setSId
(
suppliersInfo
.
getId
());
suppliersBankRepository
.
save
(
bank
);
suppliersBankRepository
.
save
(
bank
);
}
}
if
(
StringUtils
.
isNotBlank
(
buyer
.
getEkorg
()))
{
}
if
(
StringUtils
.
isNotBlank
(
buyer
.
getEkorg
()))
{
//采购组织存在
buyer
.
setSId
(
suppliersInfo
.
getId
());
buyer
.
setSId
(
suppliersInfo
.
getId
());
suppliersBuyerRepository
.
save
(
buyer
);
suppliersBuyerRepository
.
save
(
buyer
);
}
}
if
(
StringUtils
.
isNotBlank
(
pay
.
getBukrs
()))
{
if
(
StringUtils
.
isNotBlank
(
pay
.
getBukrs
()))
{
//公司代码
pay
.
setSId
(
suppliersInfo
.
getId
());
pay
.
setSId
(
suppliersInfo
.
getId
());
suppliersPayRepository
.
save
(
pay
);
suppliersPayRepository
.
save
(
pay
);
}
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/suppliers/repository/SuppliersBankRepository.java
View file @
a734948c
...
@@ -15,4 +15,6 @@ import java.util.List;
...
@@ -15,4 +15,6 @@ import java.util.List;
public
interface
SuppliersBankRepository
extends
JpaRepository
<
SuppliersBank
,
String
>
{
public
interface
SuppliersBankRepository
extends
JpaRepository
<
SuppliersBank
,
String
>
{
List
<
SuppliersBank
>
findAllBySId
(
String
sId
);
List
<
SuppliersBank
>
findAllBySId
(
String
sId
);
List
<
SuppliersBank
>
findByBankn
(
String
bankn
);
}
}
topsun/src/main/java/com/huigou/topsun/sap/suppliers/repository/SuppliersInfoRepository.java
View file @
a734948c
...
@@ -17,4 +17,5 @@ public interface SuppliersInfoRepository extends JpaRepository<SuppliersInfo,Str
...
@@ -17,4 +17,5 @@ public interface SuppliersInfoRepository extends JpaRepository<SuppliersInfo,Str
// @Query(" select t.* from sap_suppliers_info t where 1=1 and apply_type='-1' and status in (1,3) and id= #{id}")
// @Query(" select t.* from sap_suppliers_info t where 1=1 and apply_type='-1' and status in (1,3) and id= #{id}")
// List<SuppliersInfo> findDeletedById(String id);
// List<SuppliersInfo> findDeletedById(String id);
List
<
SuppliersInfo
>
findByPartner
(
String
partner
);
}
}
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