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
7499eb0b
Commit
7499eb0b
authored
Feb 27, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
固定资产接口调试;费用报销SAP数据字典
parent
6e39b724
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
243 additions
and
136 deletions
+243
-136
costReimbursement.js
...app/biz/topsun/sap/costReimbursement/costReimbursement.js
+183
-75
costReimbursement.jsp
...pp/biz/topsun/sap/costReimbursement/costReimbursement.jsp
+2
-2
sapFixedAssetsList.js
...n/webapp/biz/topsun/sap/fixedAssets/sapFixedAssetsList.js
+4
-2
SapFixedAssetsApplicationImpl.java
...ssets/application/impl/SapFixedAssetsApplicationImpl.java
+13
-8
SapFixedAssets.java
.../huigou/topsun/sap/fixedAssets/domain/SapFixedAssets.java
+27
-32
SapFixedAssetsReturnVo.java
...sun/sap/fixedAssets/domain/vo/SapFixedAssetsReturnVo.java
+11
-11
easy-search-costCenter.xml
...rces/config/content/easysearch/easy-search-costCenter.xml
+3
-6
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursement.js
View file @
7499eb0b
This diff is collapsed.
Click to expand it.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursement.jsp
View file @
7499eb0b
...
...
@@ -33,8 +33,8 @@
/>
<x:inputC
name=
"zepFtypename"
required=
"false"
readonly=
"true"
label=
"EP付款申请类别名称"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"bukrs"
required=
"
false"
label=
"公司代码"
labelCol=
"2"
fieldCol=
"2
"
/>
<x:inputC
name=
"butxt"
required=
"false"
label=
"公司代码名称"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"bukrs"
required=
"
true"
label=
"公司代码"
labelCol=
"2"
fieldCol=
"2"
wrapper=
"select
"
/>
<x:inputC
name=
"butxt"
required=
"false"
readonly=
"true"
label=
"公司代码名称"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepDepart"
required=
"false"
readonly=
"true"
label=
"EP部门代码"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepDepartname"
required=
"false"
readonly=
"true"
label=
"EP部门名称"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"zepAppli"
required=
"false"
readonly=
"true"
label=
"EP流程申请人代码"
labelCol=
"2"
fieldCol=
"2"
/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/fixedAssets/sapFixedAssetsList.js
View file @
7499eb0b
...
...
@@ -22,8 +22,8 @@ function loadCostCenterListGrid() {
});
gridManager
=
UICtrl
.
grid
(
"#sapFixedAssetsListGrid"
,
{
columns
:
[
{
display
:
"BPM单号"
,
name
:
"z
bpmn
"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"创建标识"
,
name
:
"zflg"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"BPM单号"
,
name
:
"z
fibpmnr
"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"创建标识"
,
name
:
"zf
if
lg"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"主资产号"
,
name
:
"anln1"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"资产分类"
,
name
:
"anlkl"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"公司代码"
,
name
:
"bukrs"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
...
...
@@ -37,6 +37,8 @@ function loadCostCenterListGrid() {
{
display
:
"单据编号"
,
name
:
"billCode"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"流程状态"
,
name
:
"statusId"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"人员名称"
,
name
:
"personMemberName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"消息类型"
,
name
:
"type"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"消息文本"
,
name
:
"message"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
dataAction
:
"server"
,
...
...
topsun/src/main/java/com/huigou/topsun/sap/fixedAssets/application/impl/SapFixedAssetsApplicationImpl.java
View file @
7499eb0b
package
com
.
huigou
.
topsun
.
sap
.
fixedAssets
.
application
.
impl
;
import
com.
fasterxml.jackson.core.JsonProcessingException
;
import
com.
alibaba.fastjson.JSONObject
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.huigou.cache.SystemCache
;
import
com.huigou.context.Operator
;
...
...
@@ -67,14 +67,14 @@ public class SapFixedAssetsApplicationImpl extends FlowBroker implements SapFixe
if
(
StringUtil
.
isNotBlank
(
sapFixedAssets
.
getId
()))
{
// 修改
// 将标识修改为2
sapFixedAssets
.
setZflg
(
2
);
sapFixedAssets
.
setZf
if
lg
(
2
);
sapFixedAssets
=
sapFixedAssetsRepository
.
saveAndFlush
(
sapFixedAssets
);
}
else
{
// 新增
// 封装填报时间
BeanUtils
.
copyProperties
(
operator
,
sapFixedAssets
);
// sapFixedAssets.setStatusId(BizBillStatus.APPLYING.getId());
sapFixedAssets
.
setZflg
(
1
);
sapFixedAssets
.
setZf
if
lg
(
1
);
sapFixedAssets
=
sapFixedAssetsRepository
.
saveAndFlush
(
sapFixedAssets
);
}
return
SapFixedAssetsVo
.
getSapFixedAssetsVo
(
sapFixedAssets
);
...
...
@@ -94,11 +94,16 @@ public class SapFixedAssetsApplicationImpl extends FlowBroker implements SapFixe
SapFixedAssets
message
;
try
{
String
execute
=
httpClient
.
execute
(
sapFixedAssetsReturnVoList
,
url
);
message
=
new
ObjectMapper
().
readValue
(
execute
,
SapFixedAssets
.
class
);
List
<
SapFixedAssets
>
sapFixedAssets
=
JSONObject
.
parseArray
(
execute
,
SapFixedAssets
.
class
);
SapFixedAssets
assets
=
sapFixedAssets
.
get
(
0
);
if
(!
"S"
.
equals
(
assets
.
getType
()))
{
throw
new
RuntimeException
(
"数据传输失败,"
+
assets
.
getMessage
());
}
fixedAssets
.
setType
(
assets
.
getType
());
fixedAssets
.
setMessage
(
assets
.
getMessage
());
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
}
BeanUtils
.
copyProperties
(
message
,
fixedAssets
);
sapFixedAssetsRepository
.
save
(
fixedAssets
);
}
...
...
@@ -146,11 +151,11 @@ public class SapFixedAssetsApplicationImpl extends FlowBroker implements SapFixe
Operator
operator
=
this
.
getOperator
();
if
(
sapFixedAssets
.
isNew
())
{
sapFixedAssets
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
sapFixedAssets
.
setZflg
(
1
);
sapFixedAssets
.
setZf
if
lg
(
1
);
BeanUtils
.
copyProperties
(
operator
,
sapFixedAssets
);
sapFixedAssets
.
setZ
bpmn
(
sapFixedAssets
.
getBillCode
());
sapFixedAssets
.
setZ
fibpmnr
(
sapFixedAssets
.
getBillCode
());
}
else
{
sapFixedAssets
.
setZflg
(
2
);
sapFixedAssets
.
setZf
if
lg
(
2
);
sapFixedAssets
=
(
SapFixedAssets
)
commonDomainService
.
loadAndFillinProperties
(
sapFixedAssets
);
}
sapFixedAssets
=
sapFixedAssetsRepository
.
save
(
sapFixedAssets
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/fixedAssets/domain/SapFixedAssets.java
View file @
7499eb0b
...
...
@@ -19,15 +19,15 @@ public class SapFixedAssets extends FlowBillAbstractEntity {
/**
* BPM单号
*/
@Column
(
name
=
"z
bpmn
"
)
private
String
z
bpmn
;
@Column
(
name
=
"z
fibpmnr
"
)
private
String
z
fibpmnr
;
/**
* 创建标识
* 用于标识数据是新增或修改,1为新增,2为修改。(必填)
*/
@Column
(
name
=
"zflg"
)
private
Integer
zflg
;
@Column
(
name
=
"zf
if
lg"
)
private
Integer
zf
if
lg
;
/**
* 主资产号
...
...
@@ -92,13 +92,13 @@ public class SapFixedAssets extends FlowBillAbstractEntity {
/**
* 消息类型
*/
@Column
(
name
=
"
MSGTY
"
)
private
String
MSGTY
;
@Column
(
name
=
"
TYPE
"
)
private
String
type
;
/**
* 消息文本
*/
@Column
(
name
=
"M
SGTX
"
)
private
String
MSGTX
;
@Column
(
name
=
"M
ESSAGE
"
)
private
String
message
;
@Override
protected
String
getCodeRuleId
()
{
...
...
@@ -108,9 +108,9 @@ public class SapFixedAssets extends FlowBillAbstractEntity {
public
SapFixedAssets
()
{
}
public
SapFixedAssets
(
String
z
bpmn
,
Integer
z
flg
,
String
anln1
,
String
anlkl
,
String
bukrs
,
String
txt50
,
String
invnr
,
BigDecimal
menge
,
String
meins
,
String
kostl
,
String
kostlv
)
{
this
.
z
bpmn
=
zbpmn
;
this
.
zf
lg
=
z
flg
;
public
SapFixedAssets
(
String
z
fibpmnr
,
Integer
zfi
flg
,
String
anln1
,
String
anlkl
,
String
bukrs
,
String
txt50
,
String
invnr
,
BigDecimal
menge
,
String
meins
,
String
kostl
,
String
kostlv
)
{
this
.
z
fibpmnr
=
zfibpmnr
;
this
.
zf
iflg
=
zfi
flg
;
this
.
anln1
=
anln1
;
this
.
anlkl
=
anlkl
;
this
.
bukrs
=
bukrs
;
...
...
@@ -122,25 +122,20 @@ public class SapFixedAssets extends FlowBillAbstractEntity {
this
.
kostlv
=
kostlv
;
}
public
SapFixedAssets
(
String
MSGTY
,
String
MSGTX
)
{
this
.
MSGTY
=
MSGTY
;
this
.
MSGTX
=
MSGTX
;
public
String
getZfibpmnr
()
{
return
zfibpmnr
;
}
public
String
getZbpmn
(
)
{
return
zbpmn
;
public
void
setZfibpmnr
(
String
zfibpmnr
)
{
this
.
zfibpmnr
=
zfibpmnr
;
}
public
void
setZbpmn
(
String
zbpmn
)
{
this
.
zbpmn
=
zbpmn
;
public
Integer
getZfiflg
(
)
{
return
zfiflg
;
}
public
Integer
getZflg
()
{
return
zflg
;
}
public
void
setZflg
(
Integer
zflg
)
{
this
.
zflg
=
zflg
;
public
void
setZfiflg
(
Integer
zfiflg
)
{
this
.
zfiflg
=
zfiflg
;
}
public
String
getAnln1
()
{
...
...
@@ -215,19 +210,19 @@ public class SapFixedAssets extends FlowBillAbstractEntity {
this
.
kostlv
=
kostlv
;
}
public
String
get
MSGTY
()
{
return
MSGTY
;
public
String
get
Type
()
{
return
type
;
}
public
void
set
MSGTY
(
String
MSGTY
)
{
this
.
MSGTY
=
MSGTY
;
public
void
set
Type
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getM
SGTX
()
{
return
MSGTX
;
public
String
getM
essage
()
{
return
message
;
}
public
void
setM
SGTX
(
String
MSGTX
)
{
this
.
MSGTX
=
MSGTX
;
public
void
setM
essage
(
String
message
)
{
this
.
message
=
message
;
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/fixedAssets/domain/vo/SapFixedAssetsReturnVo.java
View file @
7499eb0b
...
...
@@ -18,15 +18,15 @@ public class SapFixedAssetsReturnVo implements Serializable {
/**
* BPM单号
*/
@JsonProperty
(
"Z
BPMN
"
)
private
String
z
bpmn
;
@JsonProperty
(
"Z
FIBPMNR
"
)
private
String
z
fibpmnr
;
/**
* 创建标识
* 用于标识数据是新增或修改,1为新增,2为修改。(必填)
*/
@JsonProperty
(
"ZFLG"
)
private
Integer
zflg
;
@JsonProperty
(
"ZF
IF
LG"
)
private
Integer
zf
if
lg
;
/**
* 主资产号
...
...
@@ -84,20 +84,20 @@ public class SapFixedAssetsReturnVo implements Serializable {
@JsonProperty
(
value
=
"KOSTLV"
,
required
=
true
)
private
String
kostlv
;
public
String
getZ
bpmn
()
{
return
z
bpmn
;
public
String
getZ
fibpmnr
()
{
return
z
fibpmnr
;
}
public
void
setZ
bpmn
(
String
zbpmn
)
{
this
.
z
bpmn
=
zbpmn
;
public
void
setZ
fibpmnr
(
String
zfibpmnr
)
{
this
.
z
fibpmnr
=
zfibpmnr
;
}
public
Integer
getZflg
()
{
return
zflg
;
return
zf
if
lg
;
}
public
void
setZf
lg
(
Integer
z
flg
)
{
this
.
zf
lg
=
z
flg
;
public
void
setZf
iflg
(
Integer
zfi
flg
)
{
this
.
zf
iflg
=
zfi
flg
;
}
public
String
getAnln1
()
{
...
...
topsun/src/main/resources/config/content/easysearch/easy-search-costCenter.xml
View file @
7499eb0b
...
...
@@ -10,13 +10,10 @@
scc.ltext,
scc.verak,
scc.kosar,
scc.prctr,
scc.t
scc.prctr
FROM
( SELECT *,NOW() AS t FROM sap_cost_center ) AS scc
WHERE
scc.t
>
= scc.datab
AND scc.t
<
= scc.datbi
sap_cost_center scc
WHERE scc.is_enable = 1 and scc.is_delete = 0
</sql>
<field
name=
"成本中心编码"
title=
"成本中心编码"
code=
"kostl"
width=
"200"
/>
<field
name=
"名称"
title=
"名称"
code=
"ktext"
width=
"200"
/>
...
...
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