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
e4a31b50
Commit
e4a31b50
authored
Apr 15, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料主数据调分发页面业务用途的全选
parent
442d4cce
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
21 deletions
+75
-21
nonProdApplyMRP.jsp
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.jsp
+13
-8
nonProdApplyNext.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
+52
-11
nonProdApplyNext.jsp
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.jsp
+4
-2
NonProdApplyNextController.java
...p/nonProdApply/controller/NonProdApplyNextController.java
+6
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.jsp
View file @
e4a31b50
...
@@ -91,22 +91,27 @@
...
@@ -91,22 +91,27 @@
<x:selectC
name=
"beskz"
label=
"获取类型"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"beskz"
required=
"true"
/>
<x:selectC
name=
"beskz"
label=
"获取类型"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"beskz"
required=
"true"
/>
<x:selectC
name=
"sobsl"
label=
"特殊获取方式"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"sobsl"
required=
"false"
/>
<x:selectC
name=
"sobsl"
label=
"特殊获取方式"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"sobsl"
required=
"false"
/>
<x:inputC
name=
"lgproName"
label=
"默认生产库存地"
labelCol=
"
1
"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"lgproName"
label=
"默认生产库存地"
labelCol=
"
2
"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"lgpro"
/>
<x:hidden
name=
"lgpro"
/>
<x:selectC
name=
"rgekz"
label=
"倒冲标志"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"rgekz"
/>
<x:inputC
name=
"lgfsbName"
label=
"默认采购收货库存地"
labelCol=
"
1"
fieldCol=
"2
"
wrapper=
"select"
/>
<x:inputC
name=
"lgfsbName"
label=
"默认采购收货库存地"
labelCol=
"
2"
fieldCol=
"3
"
wrapper=
"select"
/>
<x:hidden
name=
"lgfsb"
/>
<x:hidden
name=
"lgfsb"
/>
<x:selectC
name=
"rgekz"
label=
"倒冲标志"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"rgekz"
/>
<x:inputC
name=
"webaz"
label=
"收货处理天数"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"webaz"
label=
"收货处理天数"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"dzeit"
label=
"自制时间"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"dzeit"
label=
"自制时间"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"plifz"
label=
"外部采购交货时间"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"fhori"
label=
"排程边际码"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"fhori"
label=
"排程边际码"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"eisbe"
label=
"安全库存"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"plifz"
label=
"外部采购交货时间"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"eisbe"
label=
"安全库存"
labelCol=
"1"
fieldCol=
"1"
required=
"false"
/>
<x:inputC
name=
"eislo"
label=
"最小安全库存"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"eislo"
label=
"最小安全库存"
labelCol=
"1"
fieldCol=
"2"
/>
<x:selectC
name=
"strgr"
label=
"策略组"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"strgr"
/>
<x:selectC
name=
"mtvfp"
label=
"可用性检查组"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
dictionary=
"mtvfp"
/>
<x:selectC
name=
"mtvfp"
label=
"可用性检查组"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
dictionary=
"mtvfp"
/>
<x:inputC
name=
"wzeit"
label=
"补货提前天数"
labelCol=
"1"
fieldCol=
"2"
/>
<x:selectC
name=
"strgr"
label=
"策略组"
labelCol=
"1"
fieldCol=
"1"
dictionary=
"strgr"
/>
<x:inputC
name=
"wzeit"
label=
"补货提前天数"
labelCol=
"1"
fieldCol=
"1"
/>
<x:selectC
name=
"sbdkz"
label=
"独立/集中"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"sbdkz"
/>
<x:selectC
name=
"sbdkz"
label=
"独立/集中"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"sbdkz"
/>
<x:selectC
name=
"diskz"
label=
"库存地MRP标识"
labelCol=
"
1
"
fieldCol=
"2"
dictionary=
"diskz"
/>
<x:selectC
name=
"diskz"
label=
"库存地MRP标识"
labelCol=
"
2
"
fieldCol=
"2"
dictionary=
"diskz"
/>
</div>
</div>
</div>
</div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
View file @
e4a31b50
...
@@ -61,27 +61,49 @@ function initializate() {
...
@@ -61,27 +61,49 @@ function initializate() {
}
}
if
(
isAll
==
"1"
){
$
(
'input[name="isAll"]'
).
attr
(
"checked"
,
true
);
}
/*
$('input[name="isAll"]').change(function () {
$
(
'input[name="isAll"]'
).
change
(
function
()
{
//alert($(this).is(':checked'));
//alert($(this).is(':checked'));
if ($(this).is(':checked')) { alert(1);
debugger
$("input[name='businessUsage']").each(function(){
if
(
$
(
this
).
is
(
':checked'
))
{
//alert("全选");
$(this).attr("checked",true);
$
(
"#busiLens"
).
val
(
dictUsage
.
length
);
})
for
(
var
x
=
0
;
x
<
$
(
"input[name='businessUsage']"
).
length
;
x
++
)
{
$
(
"input[name='businessUsage']"
)[
x
].
checked
=
true
;
let
datas
=
gridManager
.
getData
();
var
name
=
""
,
deptCode
=
""
;
for
(
var
u
=
0
;
u
<
dictUsage
.
length
;
u
++
)
{
name
=
dictUsage
[
u
].
split
(
","
)[
1
];
deptCode
=
dictUsage
[
u
].
split
(
","
)[
0
];
let
isExist
=
0
for
(
var
i
=
0
;
i
<
datas
.
length
;
i
++
)
{
if
(
datas
[
i
].
deptCode
==
deptCode
)
{
isExist
=
1
;
break
;
}
}
if
(
isExist
==
0
)
{
gridManager
.
addRow
({
deptName
:
name
,
deptCode
:
deptCode
,
userName
:
""
});
}
}
}
}
else
{
}
else
{
alert(2);
$
(
"input[name='businessUsage']"
).
each
(
function
(){
$
(
"input[name='businessUsage']"
).
each
(
function
(){
$
(
this
).
attr
(
"checked"
,
false
);
$
(
this
).
attr
(
"checked"
,
false
);
for
(
var
u
=
0
;
u
<
dictUsage
.
length
;
u
++
){
gridManager
.
deleteRow
(
u
);
}
})
})
}
}
});
*/
});
var
dictUsage
=
dictUsages
.
split
(
";"
);
var
dictUsage
=
dictUsages
.
split
(
";"
);
$
(
'input[name="businessUsage"]'
).
change
(
function
()
{
$
(
'input[name="businessUsage"]'
).
change
(
function
()
{
//alert($(this).is(':checked'));
//alert($(this).is(':checked'));
if
(
$
(
this
).
is
(
':checked'
))
{
if
(
$
(
this
).
is
(
':checked'
))
{
// console.log($(this).val()); // 输出选中的值
let
datas
=
gridManager
.
getData
();
// debugger
var
name
=
""
,
deptCode
=
""
;
var
name
=
""
,
deptCode
=
""
;
for
(
var
u
=
0
;
u
<
dictUsage
.
length
;
u
++
){
for
(
var
u
=
0
;
u
<
dictUsage
.
length
;
u
++
){
if
(
$
(
this
).
val
()
==
dictUsage
[
u
].
split
(
","
)[
0
]){
if
(
$
(
this
).
val
()
==
dictUsage
[
u
].
split
(
","
)[
0
]){
...
@@ -90,7 +112,23 @@ function initializate() {
...
@@ -90,7 +112,23 @@ function initializate() {
break
;
break
;
}
}
}
}
gridManager
.
addRow
({
deptName
:
name
,
deptCode
:
deptCode
,
userName
:
""
});
let
isExist
=
0
;
for
(
var
i
=
0
;
i
<
datas
.
length
;
i
++
)
{
if
(
datas
[
i
].
deptCode
==
deptCode
){
isExist
=
1
;
break
;
}
}
if
(
isExist
==
0
)
{
gridManager
.
addRow
({
deptName
:
name
,
deptCode
:
deptCode
,
userName
:
""
});
}
datas
=
gridManager
.
getData
();
// debugger
// alert(datas.length);alert(dictUsage.length)
if
(
datas
.
length
==
dictUsage
.
length
){
// $('input[name="isAll"]').attr("checked",true);
$
(
'input[name="isAll"]'
)[
0
].
checked
=
true
;
}
// coRowNum+=1;
// coRowNum+=1;
//gridManager.loadData();
//gridManager.loadData();
}
else
{
}
else
{
...
@@ -101,7 +139,10 @@ function initializate() {
...
@@ -101,7 +139,10 @@ function initializate() {
gridManager
.
deleteRow
(
i
);
gridManager
.
deleteRow
(
i
);
}
}
}
}
datas
=
gridManager
.
getData
();
if
(
datas
.
length
==
0
){
$
(
'input[name="isAll"]'
).
attr
(
"checked"
,
false
);
}
}
}
});
});
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.jsp
View file @
e4a31b50
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<head>
<head>
<script>
<script>
var
dictUsages
=
"${dictUsages}"
;
var
dictUsages
=
"${dictUsages}"
;
var
isAll
=
"${isAll}"
;
</script>
</script>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree,date"
/>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree,date"
/>
<x:script
src=
'/biz/topsun/sap/nonProdApply/nonProdApplyNext.js'
/>
<x:script
src=
'/biz/topsun/sap/nonProdApply/nonProdApplyNext.js'
/>
...
@@ -155,8 +156,9 @@
...
@@ -155,8 +156,9 @@
fieldCol="5"/-->
fieldCol="5"/-->
<c:if
test=
"
${
applyType
==
2
}
"
>
<c:if
test=
"
${
applyType
==
2
}
"
>
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:checkbox
name=
"isAll"
label=
"全选"
/>
<x:checkboxListC
name=
"businessUsage"
label=
"业务用途"
dictionary=
"serviceusage"
labelCol=
"1"
<x:checkboxListC
name=
"businessUsage"
label=
"业务用途"
dictionary=
"serviceusage"
labelCol=
"1"
fieldCol=
"
11
"
/>
fieldCol=
"
8
"
/>
</div>
</div>
</c:if>
</c:if>
<c:if
test=
"
${
applyType
==
1
}
"
>
<c:if
test=
"
${
applyType
==
1
}
"
>
...
@@ -167,7 +169,7 @@
...
@@ -167,7 +169,7 @@
</c:if>
</c:if>
<c:if
test=
"
${
applyType
==
0
}
"
>
<c:if
test=
"
${
applyType
==
0
}
"
>
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<
!--x:checkbox name="isAll" label="是否全选" /--
>
<
x:checkbox
name=
"isAll"
label=
"全选"
/
>
<x:checkboxListC
name=
"businessUsage"
label=
"业务用途"
dictionary=
"serviceusage"
labelCol=
"1"
<x:checkboxListC
name=
"businessUsage"
label=
"业务用途"
dictionary=
"serviceusage"
labelCol=
"1"
fieldCol=
"8"
/>
fieldCol=
"8"
/>
</div>
</div>
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/controller/NonProdApplyNextController.java
View file @
e4a31b50
...
@@ -66,7 +66,12 @@ public class NonProdApplyNextController extends CommonController {
...
@@ -66,7 +66,12 @@ public class NonProdApplyNextController extends CommonController {
// String key = entry.getKey().toUpperCase();
// String key = entry.getKey().toUpperCase();
dictMapUsages
+=
entry
.
getKey
().
toUpperCase
()+
","
+
entry
.
getValue
()+
";"
;
dictMapUsages
+=
entry
.
getKey
().
toUpperCase
()+
","
+
entry
.
getValue
()+
";"
;
}
}
dictMapUsages
=
dictMapUsages
.
substring
(
0
,
dictMapUsages
.
length
()-
1
);
this
.
putAttribute
(
"dictUsages"
,
dictMapUsages
);
this
.
putAttribute
(
"dictUsages"
,
dictMapUsages
);
this
.
putAttribute
(
"isAll"
,
"0"
);
if
(
nonProdApplyBaseInfo
.
getBusinessUsage
().
split
(
","
).
length
==
dictMapUsages
.
split
(
";"
).
length
){
this
.
putAttribute
(
"isAll"
,
"1"
);
}
if
(
nonProdApplyBaseInfo
.
getMaintenanceType
().
equals
(
"modify"
)){
if
(
nonProdApplyBaseInfo
.
getMaintenanceType
().
equals
(
"modify"
)){
nonProdApplyBaseInfo
.
setApplyType
(
"1"
);
nonProdApplyBaseInfo
.
setApplyType
(
"1"
);
this
.
putAttribute
(
"applyType"
,
"1"
);
this
.
putAttribute
(
"applyType"
,
"1"
);
...
@@ -259,6 +264,7 @@ public class NonProdApplyNextController extends CommonController {
...
@@ -259,6 +264,7 @@ public class NonProdApplyNextController extends CommonController {
// String key = entry.getKey().toUpperCase();
// String key = entry.getKey().toUpperCase();
dictMapUsages
+=
entry
.
getKey
().
toUpperCase
()+
","
+
entry
.
getValue
()+
";"
;
dictMapUsages
+=
entry
.
getKey
().
toUpperCase
()+
","
+
entry
.
getValue
()+
";"
;
}
}
dictMapUsages
=
dictMapUsages
.
substring
(
0
,
dictMapUsages
.
length
()-
1
);
this
.
putAttribute
(
"dictUsages"
,
dictMapUsages
);
this
.
putAttribute
(
"dictUsages"
,
dictMapUsages
);
Map
<
String
,
String
>
unMapTmp
=
new
HashMap
();
Map
<
String
,
String
>
unMapTmp
=
new
HashMap
();
for
(
Map
.
Entry
<
String
,
String
>
entry
:
dictMapUsage
.
entrySet
())
{
for
(
Map
.
Entry
<
String
,
String
>
entry
:
dictMapUsage
.
entrySet
())
{
...
...
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