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
e1ad8dcb
Commit
e1ad8dcb
authored
May 21, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
付款申请(无PO)修改BUG
parent
47bf80b9
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
46 additions
and
27 deletions
+46
-27
costReimbursement.js
...app/biz/topsun/sap/costReimbursement/costReimbursement.js
+1
-1
costReimbursementList.js
...biz/topsun/sap/costReimbursement/costReimbursementList.js
+1
-0
payApplyNoPO.js
...n/webapp/biz/topsun/sap/costReimbursement/payApplyNoPO.js
+7
-7
payApplyNoPO.jsp
.../webapp/biz/topsun/sap/costReimbursement/payApplyNoPO.jsp
+1
-1
payApplyNoPOList.js
...bapp/biz/topsun/sap/costReimbursement/payApplyNoPOList.js
+3
-3
addPurchaseInfoRecordDetail.js
...sun/sap/purchaseInfoRecord/addPurchaseInfoRecordDetail.js
+11
-1
addPurchaseInfoRecordDetail.jsp
...un/sap/purchaseInfoRecord/addPurchaseInfoRecordDetail.jsp
+1
-0
purchaseInfoRecordDetail.js
...topsun/sap/purchaseInfoRecord/purchaseInfoRecordDetail.js
+5
-4
sapStockTransfersDetail.js
...ebapp/biz/topsun/sap/transfers/sapStockTransfersDetail.js
+1
-1
SapCostReimbursementApplicationImpl.java
...application/impl/SapCostReimbursementApplicationImpl.java
+8
-2
SapCostReimbursementController.java
...mbursement/controller/SapCostReimbursementController.java
+2
-2
SapPurchaseInfoRecordController.java
...nfoRecord/controller/SapPurchaseInfoRecordController.java
+5
-5
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursement.js
View file @
e1ad8dcb
...
@@ -567,7 +567,7 @@ function loadGrid(obj) {
...
@@ -567,7 +567,7 @@ function loadGrid(obj) {
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
()
{
addHandler
:
function
()
{
tableArray
.
forEach
((
item
)
=>
{
tableArray
.
forEach
((
item
)
=>
{
UICtrl
.
addGridRow
(
item
.
gridManager
,
{
zepItemno
:
getZepItemNo
(),
waers
:
'CNY'
,
kursf
:
1.00
});
UICtrl
.
addGridRow
(
item
.
gridManager
,
{
zepItemno
:
getZepItemNo
(),
zepBptype
:
"E"
,
zepBptypename
:
"员工客户"
,
waers
:
'CNY'
,
kursf
:
1.00
});
});
});
},
},
deleteHandler
:
function
()
{
deleteHandler
:
function
()
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursementList.js
View file @
e1ad8dcb
...
@@ -30,6 +30,7 @@ function loadGrid() {
...
@@ -30,6 +30,7 @@ function loadGrid() {
{
display
:
"EP流程单号"
,
name
:
"zepNo"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"EP流程单号"
,
name
:
"zepNo"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"付款申请内容"
,
name
:
"zepTxt"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"付款申请内容"
,
name
:
"zepTxt"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"填报日期"
,
name
:
"fillinDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"填报日期"
,
name
:
"fillinDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"状态"
,
name
:
"statusTextView"
,
width
:
"80"
,
align
:
"left"
,
type
:
"string"
}
],
],
dataAction
:
"server"
,
dataAction
:
"server"
,
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApplyNoPO.js
View file @
e1ad8dcb
...
@@ -36,8 +36,8 @@ var tableArray = [
...
@@ -36,8 +36,8 @@ var tableArray = [
},
},
{
{
display
:
"BP标识"
,
name
:
"zepBptype"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
display
:
"BP标识"
,
name
:
"zepBptype"
,
width
:
80
,
minwidth
:
60
,
type
:
"string"
,
align
:
"left"
editor
:
{
/* ,
editor: {
required: false, type: "select",
required: false, type: "select",
data: {
data: {
type: 'system',
type: 'system',
...
@@ -50,13 +50,13 @@ var tableArray = [
...
@@ -50,13 +50,13 @@ var tableArray = [
ZEP_BPTYPENAME: "zepBptypename"
ZEP_BPTYPENAME: "zepBptypename"
}
}
},
},
}
}
*/
},
},
{
{
display
:
"BP标识描述"
,
name
:
"zepBptypename"
,
width
:
1
20
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
display
:
"BP标识描述"
,
name
:
"zepBptypename"
,
width
:
1
00
,
minwidth
:
80
,
type
:
"string"
,
align
:
"left"
editor
:
{
/*,
editor: {
type: 'text'
type: 'text'
}
}
*/
},
},
{
{
display
:
"BP(合作伙伴)"
,
name
:
"partner"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
display
:
"BP(合作伙伴)"
,
name
:
"partner"
,
width
:
120
,
minwidth
:
120
,
type
:
"string"
,
align
:
"left"
,
...
@@ -567,7 +567,7 @@ function loadGrid(obj) {
...
@@ -567,7 +567,7 @@ function loadGrid(obj) {
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
()
{
addHandler
:
function
()
{
tableArray
.
forEach
((
item
)
=>
{
tableArray
.
forEach
((
item
)
=>
{
UICtrl
.
addGridRow
(
item
.
gridManager
,
{
zepItemno
:
getZepItemNo
(),
waers
:
'CNY'
,
kursf
:
1.00
});
UICtrl
.
addGridRow
(
item
.
gridManager
,
{
zepItemno
:
getZepItemNo
(),
zepBptype
:
"K"
,
zepBptypename
:
"供应商"
,
waers
:
'CNY'
,
kursf
:
1.00
});
});
});
},
},
deleteHandler
:
function
()
{
deleteHandler
:
function
()
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApplyNoPO.jsp
View file @
e1ad8dcb
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"zepAppliname"
required=
"false"
readonly=
"true"
label=
"EP流程申请人"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepAppliname"
required=
"false"
readonly=
"true"
label=
"EP流程申请人"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepTxt"
required=
"false"
label=
"付款申请内容"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepTxt"
required=
"false"
label=
"付款申请内容"
labelCol=
"2"
fieldCol=
"2"
/>
<
x:inputC
name=
"employeeLoanBillCode"
required=
"false"
label=
"员工借款编号"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"select"
/
>
<
!--x:inputC name="employeeLoanBillCode" required="false" label="员工借款编号" labelCol="2" fieldCol="2" wrapper="select" /--
>
</div>
</div>
<div
id=
"capitalPost"
>
<div
id=
"capitalPost"
>
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApplyNoPOList.js
View file @
e1ad8dcb
...
@@ -12,7 +12,7 @@ function initializateUI() {
...
@@ -12,7 +12,7 @@ function initializateUI() {
function
loadGrid
()
{
function
loadGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addCostReimbursement
:
{
id
:
'costReimbursement'
,
img
:
'fa-cog'
,
text
:
'添加付款申请(无)'
,
click
:
function
(){
addCostReimbursement
:
{
id
:
'costReimbursement'
,
img
:
'fa-cog'
,
text
:
'添加付款申请(无
PO
)'
,
click
:
function
(){
addCostReimbursement
();
addCostReimbursement
();
}},
}},
});
});
...
@@ -34,7 +34,7 @@ function loadGrid() {
...
@@ -34,7 +34,7 @@ function loadGrid() {
],
],
dataAction
:
"server"
,
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapCostReimbursement/slicedSapCostReimbursementList.ajax'
,
url
:
web_app
.
name
+
'/sapCostReimbursement/slicedSapCostReimbursementList.ajax'
,
parms
:{
zepFtype
:
"
N
"
},
parms
:{
zepFtype
:
"
H
"
},
pageSize
:
20
,
pageSize
:
20
,
usePager
:
true
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
toolbar
:
toolbarOptions
,
...
@@ -133,7 +133,7 @@ function doView(id,zepFtype) {
...
@@ -133,7 +133,7 @@ function doView(id,zepFtype) {
if
(
zepFtype
==
"E"
){
if
(
zepFtype
==
"E"
){
title
=
"客户退款申请详情"
;
title
=
"客户退款申请详情"
;
}
}
if
(
zepFtype
==
"
N
"
){
if
(
zepFtype
==
"
H
"
){
title
=
"付款申请(无PO)详情"
;
title
=
"付款申请(无PO)详情"
;
}
}
if
(
zepFtype
==
"B"
){
if
(
zepFtype
==
"B"
){
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseInfoRecord/addPurchaseInfoRecordDetail.js
View file @
e1ad8dcb
...
@@ -11,7 +11,17 @@ function initialize(){
...
@@ -11,7 +11,17 @@ function initialize(){
// if (isDetailPage) {
// if (isDetailPage) {
// $("#jobPageTop").hide();
// $("#jobPageTop").hide();
// }
// }
if
(
$
(
"#isReadOnly"
).
val
()
==
"true"
)
{
disableForm
(
"infoRecord"
,
"disable"
);
}
else
{
var
readwriteList
=
UICtrl
.
getUIElementPermissions
(
UIPO
.
READWRITE
,
UIPK
.
DETAIL
);
if
((
$
(
"#statusId"
).
val
()
==
1
&&
readwriteList
.
length
>
0
))
{
disableForm
(
"infoRecord"
,
"disable"
);
$
.
each
(
readwriteList
,
function
(
i
,
o
)
{
$
(
"#"
+
o
).
removeAttr
(
'disabled'
);
});
}
}
}
}
/**
/**
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseInfoRecord/addPurchaseInfoRecordDetail.jsp
View file @
e1ad8dcb
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:hidden
name=
"id"
/>
<x:hidden
name=
"id"
/>
<x:hidden
name=
"rowId"
/>
<x:hidden
name=
"rowId"
/>
<x:hidden
name=
"isReadOnly"
/>
<x:inputC
name=
"infnr"
label=
"信息记录编号"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
readonly=
"false"
/>
<x:inputC
name=
"infnr"
label=
"信息记录编号"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
readonly=
"false"
/>
<x:hidden
name=
"werks"
/>
<x:hidden
name=
"werks"
/>
<x:inputC
name=
"werksName"
required=
"true"
label=
"工厂"
labelCol=
"1"
wrapper=
"select"
fieldCol=
"2"
/>
<x:inputC
name=
"werksName"
required=
"true"
label=
"工厂"
labelCol=
"1"
wrapper=
"select"
fieldCol=
"2"
/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseInfoRecord/purchaseInfoRecordDetail.js
View file @
e1ad8dcb
...
@@ -29,7 +29,7 @@ function initItemGrid() {
...
@@ -29,7 +29,7 @@ function initItemGrid() {
});
});
},
},
deleteHandler
:
function
(){
deleteHandler
:
function
(){
debugger
//
debugger
var
row
=
DataUtil
.
getSelectedRow
(
itemGridManager
);
var
row
=
DataUtil
.
getSelectedRow
(
itemGridManager
);
for
(
var
r
=
0
;
r
<
row
.
length
;
r
++
)
{
for
(
var
r
=
0
;
r
<
row
.
length
;
r
++
)
{
if
(
itemGridManager
.
rows
[
u
].
id
==
"undefined"
)
{
if
(
itemGridManager
.
rows
[
u
].
id
==
"undefined"
)
{
...
@@ -687,10 +687,11 @@ function viewHandler(data){
...
@@ -687,10 +687,11 @@ function viewHandler(data){
//debugger
//debugger
var
param
=
JSON
.
stringify
(
data
);
var
param
=
JSON
.
stringify
(
data
);
var
rowId
=
data
.
__id
;
var
rowId
=
data
.
__id
;
if
(
$
(
"#isReadOnly"
).
val
()
==
"true"
||
$
(
"#statusId"
).
val
()
!=
0
)
{
var
readwriteList
=
UICtrl
.
getUIElementPermissions
(
UIPO
.
READWRITE
,
UIPK
.
DETAIL
);
if
(
$
(
"#isReadOnly"
).
val
()
==
"true"
||
(
$
(
"#statusId"
).
val
()
==
1
&&
readwriteList
.
length
==
0
))
{
UICtrl
.
showAjaxDialog
({
UICtrl
.
showAjaxDialog
({
title
:
"
添加
采购信息记录"
,
title
:
"
查看
采购信息记录"
,
url
:
web_app
.
name
+
'/sapPurchaseInfoRecord/addSapPurchaseInfoRecordDetail.load?id='
+
data
.
id
+
'&rowId='
+
rowId
,
url
:
web_app
.
name
+
'/sapPurchaseInfoRecord/addSapPurchaseInfoRecordDetail.load?id='
+
data
.
id
+
'&rowId='
+
rowId
+
'&isReadOnly=true'
,
param
:
{
param
:
{
param
param
},
},
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/transfers/sapStockTransfersDetail.js
View file @
e1ad8dcb
...
@@ -137,7 +137,7 @@ function loadGrid() {
...
@@ -137,7 +137,7 @@ function loadGrid() {
},
},
{
display
:
"物料名称"
,
name
:
"matnrName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"物料名称"
,
name
:
"matnrName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"数量"
,
name
:
"menge"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
{
display
:
"数量"
,
name
:
"menge"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
"text"
,
mask
:
'nnnn'
,
required
:
true
}
editor
:
{
type
:
"text"
,
mask
:
'nnnn
nn
'
,
required
:
true
}
},
},
{
display
:
"单位"
,
name
:
"meinsName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
{
display
:
"单位"
,
name
:
"meinsName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
editor
:
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/application/impl/SapCostReimbursementApplicationImpl.java
View file @
e1ad8dcb
...
@@ -4,8 +4,10 @@ package com.huigou.topsun.sap.costReimbursement.application.impl;
...
@@ -4,8 +4,10 @@ package com.huigou.topsun.sap.costReimbursement.application.impl;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.data.domain.model.CommonDomainConstants
;
import
com.huigou.data.domain.model.CommonDomainConstants
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.data.query.model.QueryModel
;
import
com.huigou.topsun.sap.common.DefaultHttpClient
;
import
com.huigou.topsun.sap.common.DefaultHttpClient
;
import
com.huigou.topsun.sap.common.domain.SapResult
;
import
com.huigou.topsun.sap.common.domain.SapResult
;
import
com.huigou.topsun.sap.costReimbursement.application.SapCostReimbursementApplication
;
import
com.huigou.topsun.sap.costReimbursement.application.SapCostReimbursementApplication
;
...
@@ -145,7 +147,7 @@ public class SapCostReimbursementApplicationImpl extends FlowBroker implements S
...
@@ -145,7 +147,7 @@ public class SapCostReimbursementApplicationImpl extends FlowBroker implements S
}
}
@Transactional
@Transactional
pr
ivate
void
updateStatus
(
String
bizId
,
BizBillStatus
status
)
{
pr
otected
void
updateStatus
(
String
bizId
,
BizBillStatus
status
)
{
Assert
.
hasText
(
bizId
,
CommonDomainConstants
.
ID_NOT_BLANK
);
Assert
.
hasText
(
bizId
,
CommonDomainConstants
.
ID_NOT_BLANK
);
this
.
commonDomainService
.
updateStatus
(
SapCostReimbursement
.
class
,
bizId
,
status
.
getId
());
this
.
commonDomainService
.
updateStatus
(
SapCostReimbursement
.
class
,
bizId
,
status
.
getId
());
}
}
...
@@ -198,7 +200,11 @@ public class SapCostReimbursementApplicationImpl extends FlowBroker implements S
...
@@ -198,7 +200,11 @@ public class SapCostReimbursementApplicationImpl extends FlowBroker implements S
@Override
@Override
public
Map
<
String
,
Object
>
slicedSapCostReimbursementQuery
(
SapCostReimbursementQueryRequest
query
)
{
public
Map
<
String
,
Object
>
slicedSapCostReimbursementQuery
(
SapCostReimbursementQueryRequest
query
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"slicedSapCostReimbursementQuery"
);
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"slicedSapCostReimbursementQuery"
);
return
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryDescriptor
,
query
);
QueryModel
model
=
this
.
sqlExecutorDao
.
getQueryModel
(
queryDescriptor
,
query
);
model
.
putDictionary
(
"status"
,
DictUtil
.
getDictionary
(
"bizBillStatus"
));
model
.
addCriteria
(
" order by bill_code desc "
);
// return this.sqlExecutorDao.executeSlicedQuery(queryDescriptor, query);
return
this
.
sqlExecutorDao
.
executeSlicedQuery
(
model
);
}
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/controller/SapCostReimbursementController.java
View file @
e1ad8dcb
...
@@ -84,7 +84,7 @@ public class SapCostReimbursementController extends CommonController {
...
@@ -84,7 +84,7 @@ public class SapCostReimbursementController extends CommonController {
sapCostReimbursement
.
setZepFtypename
(
"费用报销流程"
);
sapCostReimbursement
.
setZepFtypename
(
"费用报销流程"
);
return
forward
(
"costReimbursement"
,
sapCostReimbursement
);
return
forward
(
"costReimbursement"
,
sapCostReimbursement
);
case
"payNoPo"
:
case
"payNoPo"
:
sapCostReimbursement
.
setZepFtype
(
"
N
"
);
sapCostReimbursement
.
setZepFtype
(
"
H
"
);
sapCostReimbursement
.
setZepFtypename
(
"付款申请(无PO)流程"
);
sapCostReimbursement
.
setZepFtypename
(
"付款申请(无PO)流程"
);
return
forward
(
"payApplyNoPO"
,
sapCostReimbursement
);
return
forward
(
"payApplyNoPO"
,
sapCostReimbursement
);
case
"borrow"
:
case
"borrow"
:
...
@@ -142,7 +142,7 @@ public class SapCostReimbursementController extends CommonController {
...
@@ -142,7 +142,7 @@ public class SapCostReimbursementController extends CommonController {
switch
(
zepFtype
)
{
switch
(
zepFtype
)
{
case
"A"
:
case
"A"
:
return
forward
(
"costReimbursement"
,
sapCostReimbursement
);
return
forward
(
"costReimbursement"
,
sapCostReimbursement
);
case
"
N
"
:
case
"
H
"
:
return
forward
(
"payApplyNoPO"
,
sapCostReimbursement
);
return
forward
(
"payApplyNoPO"
,
sapCostReimbursement
);
case
"B"
:
case
"B"
:
return
forward
(
"employeeLoan"
,
sapCostReimbursement
);
return
forward
(
"employeeLoan"
,
sapCostReimbursement
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseInfoRecord/controller/SapPurchaseInfoRecordController.java
View file @
e1ad8dcb
...
@@ -73,11 +73,6 @@ public class SapPurchaseInfoRecordController extends CommonController {
...
@@ -73,11 +73,6 @@ public class SapPurchaseInfoRecordController extends CommonController {
//String edit=sdo.getString("edit");
//String edit=sdo.getString("edit");
String
rowId
=
sdo
.
getString
(
"rowId"
);
String
rowId
=
sdo
.
getString
(
"rowId"
);
SapPurchaseInfoRecordItem
item
=
(
SapPurchaseInfoRecordItem
)
com
.
alibaba
.
fastjson
.
JSONObject
.
parseObject
(
sdo
.
getString
(
"param"
),
SapPurchaseInfoRecordItem
.
class
);
SapPurchaseInfoRecordItem
item
=
(
SapPurchaseInfoRecordItem
)
com
.
alibaba
.
fastjson
.
JSONObject
.
parseObject
(
sdo
.
getString
(
"param"
),
SapPurchaseInfoRecordItem
.
class
);
if
(
StringUtil
.
isNotBlank
(
id
)&&
id
.
length
()>
30
){
//编辑明细
// item=this.sapPurchaseInfoRecordItemRepository.findOne(id);
}
else
{
// item = (SapPurchaseInfoRecordItem) com.alibaba.fastjson.JSONObject.parseObject(sdo.getString("param"), SapPurchaseInfoRecordItem.class);
}
if
(
item
!=
null
){
if
(
item
!=
null
){
item
.
setRowId
(
rowId
);
item
.
setRowId
(
rowId
);
if
(
id
.
equals
(
rowId
)){
if
(
id
.
equals
(
rowId
)){
...
@@ -86,6 +81,7 @@ public class SapPurchaseInfoRecordController extends CommonController {
...
@@ -86,6 +81,7 @@ public class SapPurchaseInfoRecordController extends CommonController {
item
.
setId
(
id
);
item
.
setId
(
id
);
}
}
}
}
this
.
putAttribute
(
"isReadOnly"
,
sdo
.
getString
(
"isReadOnly"
));
// SapPurchaseInfoRecord sapPurchaseInfoRecord = sapPurchaseInfoRecordApplication.loadSapPurchaseInfoRecord(id);
// SapPurchaseInfoRecord sapPurchaseInfoRecord = sapPurchaseInfoRecordApplication.loadSapPurchaseInfoRecord(id);
return
forward
(
"addPurchaseInfoRecordDetail"
,
item
);
return
forward
(
"addPurchaseInfoRecordDetail"
,
item
);
}
}
...
@@ -103,6 +99,10 @@ public class SapPurchaseInfoRecordController extends CommonController {
...
@@ -103,6 +99,10 @@ public class SapPurchaseInfoRecordController extends CommonController {
String
id
=
sdo
.
getBizId
();
String
id
=
sdo
.
getBizId
();
SapPurchaseInfoRecord
sapPurchaseInfoRecord
=
sapPurchaseInfoRecordApplication
.
loadSapPurchaseInfoRecord
(
id
);
SapPurchaseInfoRecord
sapPurchaseInfoRecord
=
sapPurchaseInfoRecordApplication
.
loadSapPurchaseInfoRecord
(
id
);
this
.
putAttribute
(
"isReadOnly"
,
sdo
.
getString
(
"isReadOnly"
));
this
.
putAttribute
(
"isReadOnly"
,
sdo
.
getString
(
"isReadOnly"
));
if
(
sapPurchaseInfoRecord
!=
null
&&(
BizBillStatus
.
COMPLETED
.
getId
()==
sapPurchaseInfoRecord
.
getStatusId
()||
BizBillStatus
.
ABORTED
.
getId
()==
sapPurchaseInfoRecord
.
getStatusId
())){
this
.
putAttribute
(
"isReadOnly"
,
"true"
);
}
return
forward
(
"purchaseInfoRecordDetail"
,
sapPurchaseInfoRecord
);
return
forward
(
"purchaseInfoRecordDetail"
,
sapPurchaseInfoRecord
);
}
}
...
...
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