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
29ed012a
Commit
29ed012a
authored
Mar 01, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成本中心冻结接口
parent
f39c071b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
12 deletions
+16
-12
sapCostCenterDetail.jsp
.../webapp/biz/topsun/sap/costCenter/sapCostCenterDetail.jsp
+5
-5
sapCostCenterList.js
...ain/webapp/biz/topsun/sap/costCenter/sapCostCenterList.js
+2
-2
CostCenterController.java
...opsun/sap/costCenter/controller/CostCenterController.java
+4
-0
CostCenter.java
...a/com/huigou/topsun/sap/costCenter/domain/CostCenter.java
+2
-2
CostCenterVo.java
.../huigou/topsun/sap/costCenter/domain/vo/CostCenterVo.java
+2
-2
costCenter.xml
...ain/resources/config/topsun/sap/costCenter/costCenter.xml
+1
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costCenter/sapCostCenterDetail.jsp
View file @
29ed012a
...
...
@@ -35,13 +35,13 @@
<x:hidden
name=
"isDelete"
/>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"kostl"
required=
"true"
label=
"成本中心编码"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"4"
/>
<x:inputC
name=
"ktext"
required=
"
fals
e"
label=
"名称"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"4"
/>
<x:inputC
name=
"ktext"
required=
"
tru
e"
label=
"名称"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"4"
/>
<x:inputC
name=
"ltext"
required=
"false"
label=
"描述"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"4"
/>
<x:selectC
name=
"kosar"
required=
"
fals
e"
label=
"成本中心类型"
labelCol=
"2"
dictionary=
"KOSAR"
fieldCol=
"4"
/>
<x:inputC
name=
"datbi"
required=
"
fals
e"
label=
"有限期自"
labelCol=
"2"
wrapper=
"date"
fieldCol=
"4"
/>
<x:inputC
name=
"datab"
required=
"
fals
e"
label=
"有限截止日"
labelCol=
"2"
wrapper=
"date"
fieldCol=
"4"
/>
<x:selectC
name=
"kosar"
required=
"
tru
e"
label=
"成本中心类型"
labelCol=
"2"
dictionary=
"KOSAR"
fieldCol=
"4"
/>
<x:inputC
name=
"datbi"
required=
"
tru
e"
label=
"有限期自"
labelCol=
"2"
wrapper=
"date"
fieldCol=
"4"
/>
<x:inputC
name=
"datab"
required=
"
tru
e"
label=
"有限截止日"
labelCol=
"2"
wrapper=
"date"
fieldCol=
"4"
/>
<x:inputC
name=
"verak"
required=
"false"
label=
"负责人"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"4"
/>
<x:selectC
name=
"prctr"
required=
"
fals
e"
label=
"利润中心"
labelCol=
"2"
dictionary=
"PRCTR"
fieldCol=
"4"
/>
<x:selectC
name=
"prctr"
required=
"
tru
e"
label=
"利润中心"
labelCol=
"2"
dictionary=
"PRCTR"
fieldCol=
"4"
/>
<x:inputC
name=
"telePhone"
required=
"false"
label=
"联系方式"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"4"
/>
<x:inputC
name=
"reason"
required=
"false"
label=
"原因"
labelCol=
"2"
maxLength=
"255"
fieldCol=
"4"
/>
</div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costCenter/sapCostCenterList.js
View file @
29ed012a
...
...
@@ -113,8 +113,8 @@ function updateHandler(row) {
}
UICtrl
.
addTabItem
({
tabid
:
'CostCenterDetail'
,
text
:
"
修改
成本中心"
,
url
:
web_app
.
name
+
'/sapCostCenter/showCostCenterDetail.
do?
id='
+
row
.
id
text
:
"
查看
成本中心"
,
url
:
web_app
.
name
+
'/sapCostCenter/showCostCenterDetail.
job?isReadOnly=true&
id='
+
row
.
id
})
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/costCenter/controller/CostCenterController.java
View file @
29ed012a
...
...
@@ -14,12 +14,14 @@ import com.huigou.uasp.bmp.common.easysearch.domain.model.QuerySchemeField;
import
com.huigou.uasp.bmp.opm.application.MemEasySearcher
;
import
com.huigou.uasp.bmp.opm.application.impl.MemEasySearcherImpl
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.util.DateUtil
;
import
com.huigou.util.SDO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.stereotype.Controller
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -73,6 +75,8 @@ public class CostCenterController extends CommonController {
costCenter
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
costCenter
.
setIsEnable
(
1
);
costCenter
.
setIsDelete
(
0
);
costCenter
.
setDatbi
(
DateUtil
.
getYearFirstDay
(
new
Date
()));
costCenter
.
setDatab
(
DateUtil
.
getDate
(
9999
,
12
,
31
));
return
forward
(
"sapCostCenterDetail"
,
costCenter
);
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/costCenter/domain/CostCenter.java
View file @
29ed012a
...
...
@@ -28,13 +28,13 @@ public class CostCenter extends FlowBillAbstractEntity {
private
String
kostl
;
/**
* 有效
期自 默认当年1月1日
* 有效
截至日 默认9999.12.31
*/
@Column
(
name
=
"datab"
)
private
Date
datab
;
/**
* 有效
截至日 默认9999.12.31
* 有效
期自 默认当年1月1日
*/
@Column
(
name
=
"datbi"
)
private
Date
datbi
;
...
...
topsun/src/main/java/com/huigou/topsun/sap/costCenter/domain/vo/CostCenterVo.java
View file @
29ed012a
...
...
@@ -25,12 +25,12 @@ public class CostCenterVo implements Serializable {
private
String
kostl
;
/**
* 有效
期自 默认当年1月1日
* 有效
截至日 默认9999.12.31
*/
private
Date
datab
;
/**
* 有效
截至日 默认9999.12.31
* 有效
期自 默认当年1月1日
*/
private
Date
datbi
;
...
...
topsun/src/main/resources/config/topsun/sap/costCenter/costCenter.xml
View file @
29ed012a
...
...
@@ -12,7 +12,7 @@
t.id,
t.ktext,
t.kostl
from sap_cost_center t
from sap_cost_center t
where t.is_delete = 0 and t.is_enable = 1
</sql-query>
<condition
column=
"ktext"
name=
"ktext"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
</query>
...
...
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