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
04353298
Commit
04353298
authored
Mar 27, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放行条管理的复制
parent
ec2049ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
11 deletions
+37
-11
sapPermitDetail.js
.../src/main/webapp/biz/topsun/sap/permit/sapPermitDetail.js
+35
-11
SapPermitItemApplicationImpl.java
...permit/application/impl/SapPermitItemApplicationImpl.java
+2
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/permit/sapPermitDetail.js
View file @
04353298
...
...
@@ -6,13 +6,7 @@ $(document).ready(function () {
bindEvent
();
});
function
initialize
(){
var
mainFileTable
=
$
(
'#sapRetirementInfoList'
).
fileList
();
mainFileTable
.
find
(
'table'
).
css
({
borderTopWidth
:
0
});
$
(
'#sapRetirementInfoList'
).
fileList
({
bizId
:
$
(
"#attbizId"
).
val
()
});
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
}
...
...
@@ -81,7 +75,8 @@ function loadGrid() {
reloadGrid
();
}
});
}
},
copyHandler
:
copyHandler
// impExcelDataHandler:{id:'impExcelData',img:'fa-table',text:'导入数据',click:impExcelDataHandler},
});
...
...
@@ -92,10 +87,19 @@ function loadGrid() {
},
{
display
:
"数量"
,
name
:
"quantity"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
"text"
,
mask
:
'nnnn'
}
editor
:
{
type
:
"text"
,
mask
:
'nnnn'
,
required
:
true
}
},
{
display
:
"单位"
,
name
:
"unit"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
"text"
}
{
display
:
"单位"
,
name
:
"unitTextView"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'dictionary'
,
data
:
{
name
:
'sapPermitUnit'
},
textField
:
'unitTextView'
,
valueField
:
'unit'
,
required
:
true
,
render
:
function
(
item
)
{
return
item
.
unitTextView
;
},
required
:
true
}
},
{
display
:
"备注"
,
name
:
"remark"
,
width
:
320
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
...
...
@@ -170,3 +174,23 @@ function getExtendedData(processAction) {
}
return
extendedData
;
}
//复制新增
function
copyHandler
()
{
// var g = this;
var
rows
=
gridManager
.
getSelectedRows
();
if
(
!
rows
)
{
Public
.
tip
(
'请选择数据!'
);
return
;
}
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
){
var
row
=
rows
[
i
];
gridManager
.
addRows
({
belongings
:
row
.
belongings
,
unitTextView
:
row
.
unitTextView
,
unit
:
row
.
unit
,
quantity
:
row
.
quantity
,
remark
:
row
.
remark
});
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/permit/application/impl/SapPermitItemApplicationImpl.java
View file @
04353298
package
com
.
huigou
.
topsun
.
sap
.
permit
.
application
.
impl
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.data.query.model.QueryModel
;
...
...
@@ -45,6 +46,7 @@ public class SapPermitItemApplicationImpl extends BaseApplication implements Sap
queryModel
.
addCriteria
(
" and t.sap_permit_id =:sapPermitId"
);
queryModel
.
putParam
(
"sapPermitId"
,
queryRequest
.
getSapPermitId
());
}
queryModel
.
putDictionary
(
"unit"
,
DictUtil
.
getDictionary
(
"sapPermitUnit"
));
map
=
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryModel
);
}
return
map
;
...
...
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