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
4456c68b
Commit
4456c68b
authored
Mar 25, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成本中心、固定资产增加搜索条件
parent
feda599e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
19 deletions
+40
-19
sapCostCenterList.js
...ain/webapp/biz/topsun/sap/costCenter/sapCostCenterList.js
+5
-5
sapCostCenterList.jsp
...in/webapp/biz/topsun/sap/costCenter/sapCostCenterList.jsp
+7
-6
sapFixedAssetsList.js
...n/webapp/biz/topsun/sap/fixedAssets/sapFixedAssetsList.js
+17
-5
sapFixedAssetsList.jsp
.../webapp/biz/topsun/sap/fixedAssets/sapFixedAssetsList.jsp
+3
-3
CostCenterController.java
...opsun/sap/costCenter/controller/CostCenterController.java
+1
-0
costCenter.xml
...ain/resources/config/topsun/sap/costCenter/costCenter.xml
+4
-0
fixedAssets.xml
...n/resources/config/topsun/sap/fixedAssets/fixedAssets.xml
+3
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costCenter/sapCostCenterList.js
View file @
4456c68b
...
...
@@ -15,11 +15,11 @@ function loadCostCenterListGrid() {
addHandler
:
function
()
{
addHandler
();
},
updateHandler
:
function
()
{
updateHandler
();
},
deleteHandler
:
deleteHandler
,
disableHandler
:
disableHandler
,
//
updateHandler: function () {
//
updateHandler();
//
},
//
deleteHandler: deleteHandler,
//
disableHandler: disableHandler,
frozenHandler
:
{
id
:
'frozenHandler'
,
text
:
'冻结'
,
img
:
'fa-clipboard'
,
click
:
function
()
{
var
row
=
DataUtil
.
getUpdateRow
(
gridManager
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costCenter/sapCostCenterList.jsp
View file @
4456c68b
...
...
@@ -15,16 +15,17 @@
<body>
<div
class=
"container-fluid"
>
<div
class=
"ui-hide"
>
<%-- <x:select name="processType" dictionary="processType" />--%>
<%-- <x:select name="yesorno" dictionary="yesorno" />--%>
</div>
<div
id=
"layout"
>
<div
position=
"center"
title=
"成本中心"
>
<x:title
title=
"common.button.search"
hideTable=
"queryMainForm"
isHide=
"true"
/>
<%-- <form class="hg-form ui-hide" method="post" action="" id="queryMainForm">--%>
<%-- <x:inputC name="ruleKind" required="false" label="成本中心名称" labelCol="1"/>--%>
<%-- <x:searchButtons />--%>
<%-- </form>--%>
<form
class=
"hg-form ui-hide"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:inputC
name=
"kostl"
required=
"false"
label=
"成本中心编码"
labelCol=
"1"
/>
<x:inputC
name=
"ktext"
required=
"false"
label=
"成本中心名称"
labelCol=
"1"
/>
<x:selectC
name=
"kosar"
required=
"false"
label=
"成本中心类型"
labelCol=
"1"
dictionary=
"KOSAR"
/>
<x:inputC
name=
"verak"
required=
"false"
label=
"负责人"
labelCol=
"1"
/>
<x:searchButtons />
</form>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"sapCostCenterListGrid"
style=
"margin: 2px;"
></div>
</div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/fixedAssets/sapFixedAssetsList.js
View file @
4456c68b
...
...
@@ -3,6 +3,7 @@ var gridManager = null;
$
(
document
).
ready
(
function
()
{
initializateUI
();
loadCostCenterListGrid
();
bindEvent
();
});
...
...
@@ -15,10 +16,10 @@ function loadCostCenterListGrid() {
addHandler
:
function
()
{
addHandler
();
},
updateHandler
:
function
()
{
updateHandler
();
},
deleteHandler
:
deleteHandler
,
//
updateHandler: function () {
//
updateHandler();
//
},
//
deleteHandler: deleteHandler,
});
gridManager
=
UICtrl
.
grid
(
"#sapFixedAssetsListGrid"
,
{
columns
:
[
...
...
@@ -34,7 +35,6 @@ function loadCostCenterListGrid() {
{
display
:
"成本中心"
,
name
:
"kostl"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"责任成本中心"
,
name
:
"kostlv"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"填报日期"
,
name
:
"fillinDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
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"
},
...
...
@@ -106,3 +106,15 @@ function deleteHandler() {
});
}
function
bindEvent
(){
$
(
'#anlkl'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"ANLKL"
}
},
onChange
:
function
(
value
,
data
)
{
$
(
'#anlkl'
).
val
(
data
.
ANLKL
);
}
});
}
topsun-xt/src/main/webapp/biz/topsun/sap/fixedAssets/sapFixedAssetsList.jsp
View file @
4456c68b
...
...
@@ -15,14 +15,14 @@
<body>
<div
class=
"container-fluid"
>
<div
class=
"ui-hide"
>
<%-- <x:select name="processType" dictionary="processType" />--%>
<%-- <x:select name="yesorno" dictionary="yesorno" />--%>
</div>
<div
id=
"layout"
>
<div
position=
"center"
title=
"固定资产"
>
<x:title
title=
"common.button.search"
hideTable=
"queryMainForm"
isHide=
"true"
/>
<form
class=
"hg-form ui-hide"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:inputC
name=
"ruleKind"
required=
"false"
label=
"固定资产名称"
labelCol=
"1"
/>
<x:inputC
name=
"billCode"
required=
"false"
label=
"单据编码"
labelCol=
"1"
/>
<x:inputC
name=
"anln1"
required=
"false"
label=
"主资产号"
labelCol=
"1"
/>
<x:inputC
name=
"anlkl"
required=
"false"
label=
"资产分类"
labelCol=
"1"
wrapper=
"select"
/>
<x:searchButtons />
</form>
<div
class=
"blank_div clearfix"
></div>
...
...
topsun/src/main/java/com/huigou/topsun/sap/costCenter/controller/CostCenterController.java
View file @
4456c68b
...
...
@@ -116,6 +116,7 @@ public class CostCenterController extends CommonController {
costCenterVo
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
costCenterVo
.
setIsEnable
(
0
);
costCenterVo
.
setId
(
null
);
costCenterVo
.
setReason
(
null
);
return
forward
(
"sapCostCenterDetail"
,
costCenterVo
);
}
...
...
topsun/src/main/resources/config/topsun/sap/costCenter/costCenter.xml
View file @
4456c68b
...
...
@@ -4,6 +4,10 @@
<sql-query>
select t.* from sap_cost_center t where t.is_delete = 0
</sql-query>
<condition
column=
"kostl"
name=
"kostl"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"ktext"
name=
"ktext"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"kosar"
name=
"kosar"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
<condition
column=
"verak"
name=
"verak"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
</query>
<query
name=
"slicedCostCenterList"
label=
"成本中心表"
table=
"sap_cost_center"
>
...
...
topsun/src/main/resources/config/topsun/sap/fixedAssets/fixedAssets.xml
View file @
4456c68b
...
...
@@ -4,5 +4,8 @@
<sql-query>
select t.* from sap_fixed_assets t
</sql-query>
<condition
column=
"bill_code"
name=
"billCode"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"anln1"
name=
"anln1"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"anlkl"
name=
"anlkl"
type=
"java.lang.String"
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