Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
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
platform
hg-smart
Commits
98f1ce71
Commit
98f1ce71
authored
Jun 20, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
材料计划bug修改
parent
9b4e2a5d
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
126 additions
and
143 deletions
+126
-143
DdynamicEnum.java
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
+1
-1
HGPZ005.xml
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ005.xml
+3
-0
HGSC009.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC009.xml
+1
-52
HGSC009.js
src/main/webapp/HG/SC/HGSC009.js
+48
-23
HGSC009.jsp
src/main/webapp/HG/SC/HGSC009.jsp
+15
-12
HGSC009A.js
src/main/webapp/HG/SC/HGSC009A.js
+49
-49
HGSC009A.jsp
src/main/webapp/HG/SC/HGSC009A.jsp
+9
-6
No files found.
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
View file @
98f1ce71
...
@@ -92,7 +92,7 @@ public enum DdynamicEnum {
...
@@ -92,7 +92,7 @@ public enum DdynamicEnum {
* 用途:存货档案下拉框 (不默认状态)
* 用途:存货档案下拉框 (不默认状态)
* 编写:
* 编写:
*/
*/
INVENT_RECORD_BOX_BLOCK_ID
(
"invent_record_box_block_id"
,
"inventCode"
,
"inventName"
,
"status"
,
"id"
,
"inventType"
,
"spec"
,
"material"
,
"unit"
,
"HGPZ005.queryInventCodeBox"
),
INVENT_RECORD_BOX_BLOCK_ID
(
"invent_record_box_block_id"
,
"inventCode"
,
"inventName"
,
"status"
,
"id"
,
"inventType"
,
"spec"
,
"material"
,
"unit"
,
"length"
,
"width"
,
"thick"
,
"HGPZ005.queryInventCodeBox"
),
/**
/**
* 模块:存货档案
* 模块:存货档案
...
...
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ005.xml
View file @
98f1ce71
...
@@ -324,6 +324,9 @@
...
@@ -324,6 +324,9 @@
SPEC as "spec",
<!-- 规格 -->
SPEC as "spec",
<!-- 规格 -->
MATERIAL as "material",
<!-- 材质 -->
MATERIAL as "material",
<!-- 材质 -->
UNIT as "unit",
UNIT as "unit",
LENGTH as "length",
<!-- 长 -->
WIDTH as "width",
<!-- 宽 -->
THICK as "thick",
<!-- 厚 -->
STATUS as "status"
STATUS as "status"
FROM ${hggpSchema}.HGPZ005
FROM ${hggpSchema}.HGPZ005
WHERE DELETE_FLAG = 0
WHERE DELETE_FLAG = 0
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC009.xml
View file @
98f1ce71
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
ID a
sc
CREATED_TIME de
sc
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
...
@@ -113,57 +113,6 @@
...
@@ -113,57 +113,6 @@
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
PROJ_NAME = #projName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="planMaterialCode">
PLAN_MATERIAL_CODE = #planMaterialCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="planMaterialName">
PLAN_MATERIAL_NAME = #planMaterialName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="status">
STATUS = #status#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
-->
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGSJ003 (ID,
<!-- 主键id -->
INSERT INTO ${hggpSchema}.HGSJ003 (ID,
<!-- 主键id -->
...
...
src/main/webapp/HG/SC/HGSC009.js
View file @
98f1ce71
...
@@ -21,15 +21,16 @@ $(function () {
...
@@ -21,15 +21,16 @@ $(function () {
if
(
item
.
companyCode
&&
item
.
projCode
)
{
if
(
item
.
companyCode
&&
item
.
projCode
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showUploadFile(
\'
'
+
item
.
companyCode
+
'
\'
,
\'
'
+
item
.
companyName
+
'
\'
,
\'
'
+
item
.
projCode
+
'
\'
,
\'
'
+
item
.
projName
+
'
\'
'
+
+
'onclick="showUploadFile(
\'
'
+
item
.
companyCode
+
'
\'
,
\'
'
+
item
.
companyName
+
'
\'
,
\'
'
+
item
.
projCode
+
'
\'
,
\'
'
+
item
.
projName
+
'
\'
'
+
',
\'
'
+
item
.
planMaterialCode
+
'
\'
,
\'
'
+
item
.
planMaterialName
+
'
\'
)" >计划详情</a>'
;
',
\'
'
+
item
.
planMaterialCode
+
'
\'
,
\'
'
+
item
.
planMaterialName
+
'
\'
,
\'
'
+
item
.
status
+
'
\'
)" >计划详情</a>'
;
if
(
auditStatus
==
0
)
{
if
(
auditStatus
==
0
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
',1)" >提交</a>'
;
'onclick="updateStatus('
+
item
.
id
+
',1)" >提交</a>'
;
}
else
if
(
auditStatus
==
1
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
',1)" >已提交</a>'
;
}
}
// if (auditStatus == 1) {
// template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' +
// 'onclick="updateStatus(' + item.id + ',1)" >已提交</a>';
// }
}
}
return
template
;
return
template
;
}
}
...
@@ -39,7 +40,6 @@ $(function () {
...
@@ -39,7 +40,6 @@ $(function () {
template
:
function
(
dataItem
)
{
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
companyCodeBox
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
companyCodeBox
.
length
;
i
++
)
{
if
(
companyCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'companyCode'
])
{
if
(
companyCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'companyCode'
])
{
dataItem
[
'companyName'
]
=
companyCodeBox
[
i
][
'textField'
]
return
companyCodeBox
[
i
][
'textField'
];
return
companyCodeBox
[
i
][
'textField'
];
}
}
}
}
...
@@ -56,19 +56,34 @@ $(function () {
...
@@ -56,19 +56,34 @@ $(function () {
}
}
}
}
return
dataItem
[
"projCode"
];
return
dataItem
[
"projCode"
];
}
},
},
{
editor
:
function
(
container
,
options
)
{
field
:
"projName"
,
let
inInfo
=
new
EiInfo
();
title
:
"项目名称"
,
inInfo
.
set
(
"inqu_status-0-companyCode"
,
options
.
model
[
"companyCode"
]);
template
:
function
(
dataItem
)
{
inInfo
.
set
(
"inqu_status-0-approvalStatus"
,
2
);
for
(
let
i
=
0
;
i
<
groupCodeBox
.
length
;
i
++
)
{
inInfo
.
set
(
"field"
,
options
.
field
);
if
(
groupCodeBox
[
i
][
'textField'
]
===
dataItem
[
'projName'
])
{
let
dataSource
;
dataItem
[
'projCode'
]
=
groupCodeBox
[
i
][
'valueField'
]
EiCommunicator
.
send
(
"HGSC003"
,
"projComboBox"
,
inInfo
,
{
return
groupCodeBox
[
i
][
'textField'
];
onSuccess
:
function
(
ei
)
{
}
dataSource
=
ei
.
getBlock
(
"proj_record_block_id"
).
getMappedRows
();
}
},
return
dataItem
[
"projName"
];
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
var
input
=
$
(
'<input />'
);
input
.
attr
(
"name"
,
options
.
field
);
input
.
attr
(
"id"
,
options
.
field
);
input
.
appendTo
(
container
);
input
.
kendoDropDownList
({
dataSource
:
dataSource
,
minLength
:
0
,
dataTextField
:
"textField"
,
dataValueField
:
"valueField"
,
optionLabelTemplate
:
"[#:valueField#]#:textField#"
,
valueTemplate
:
"[#:valueField#]#:textField#"
,
template
:
"[#:valueField#]#:textField#"
,
filter
:
"contains"
});
}
}
},
{
},
{
field
:
"createdTime"
,
field
:
"createdTime"
,
...
@@ -86,12 +101,21 @@ $(function () {
...
@@ -86,12 +101,21 @@ $(function () {
$
(
"#INSERTCG"
).
on
(
"click"
,
INSERTCG
);
$
(
"#INSERTCG"
).
on
(
"click"
,
INSERTCG
);
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
if
(
e
.
field
==
"companyCode"
)
{
for
(
let
i
=
0
;
i
<
companyCodeBox
.
length
;
i
++
)
{
if
(
companyCodeBox
[
i
][
'valueField'
]
===
e
.
items
[
0
][
'companyCode'
])
{
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"companyName"
,
companyCodeBox
[
i
][
'textField'
]);
}
}
loadChange
(
grid
,
e
,
"projCode"
);
}
// 判断父级节点是否发生变化
// 判断父级节点是否发生变化
if
(
e
.
field
==
"projCode"
)
{
if
(
e
.
field
==
"projCode"
)
{
loadChange
(
grid
,
e
,
"projName"
);
for
(
let
i
=
0
;
i
<
groupCodeBox
.
length
;
i
++
)
{
loadChange
(
grid
,
e
,
"planMaterialName"
);
if
(
groupCodeBox
[
i
][
'valueField'
]
===
e
.
items
[
0
][
'projCode'
])
{
}
else
if
(
e
.
field
==
"projName"
)
{
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"projName"
,
groupCodeBox
[
i
][
'textField'
]);
loadChange
(
grid
,
e
,
"projCode"
);
}
}
loadChange
(
grid
,
e
,
"planMaterialName"
);
loadChange
(
grid
,
e
,
"planMaterialName"
);
}
}
});
});
...
@@ -155,7 +179,7 @@ $(function () {
...
@@ -155,7 +179,7 @@ $(function () {
*
*
* @param id
* @param id
*/
*/
function
showUploadFile
(
companyCode
,
companyName
,
projCode
,
projName
,
planMaterialCode
,
planMaterialName
)
{
function
showUploadFile
(
companyCode
,
companyName
,
projCode
,
projName
,
planMaterialCode
,
planMaterialName
,
status
)
{
JSColorbox
.
open
({
JSColorbox
.
open
({
href
:
"HGSC009A?methodName=initLoad&"
+
href
:
"HGSC009A?methodName=initLoad&"
+
"inqu_status-0-companyCode="
+
companyCode
+
"inqu_status-0-companyCode="
+
companyCode
+
...
@@ -163,7 +187,8 @@ function showUploadFile(companyCode,companyName,projCode,projName,planMaterialCo
...
@@ -163,7 +187,8 @@ function showUploadFile(companyCode,companyName,projCode,projName,planMaterialCo
"&inqu_status-0-planMaterialCode="
+
planMaterialCode
+
"&inqu_status-0-planMaterialCode="
+
planMaterialCode
+
"&inqu_status-0-planMaterialName="
+
planMaterialName
+
"&inqu_status-0-planMaterialName="
+
planMaterialName
+
"&inqu_status-0-projCode="
+
projCode
+
"&inqu_status-0-projCode="
+
projCode
+
"&inqu_status-0-projName="
+
projName
,
"&inqu_status-0-projName="
+
projName
+
"&inqu_status-0-status="
+
status
,
title
:
"<div style='text-align: center;'>材料计划清单</div>"
,
title
:
"<div style='text-align: center;'>材料计划清单</div>"
,
width
:
"80%"
,
width
:
"80%"
,
height
:
"80%"
,
height
:
"80%"
,
...
...
src/main/webapp/HG/SC/HGSC009.jsp
View file @
98f1ce71
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<EF:EFInput blockId="inqu_status" row="0" ename="projName" cname="项目名称" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="projName" cname="项目名称" placeholder="模糊查询" colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="status" cname="提交状态" colWidth="3" filter="contains">
<EF:EFSelect blockId="inqu_status" row="0" ename="status" cname="提交状态" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="h
pjx.hpjx.s
tatus"/>
<EF:EFCodeOption codeName="h
ggp.hpkc.submitS
tatus"/>
</EF:EFSelect>
</EF:EFSelect>
</div>
</div>
</EF:EFRegion>
</EF:EFRegion>
...
@@ -35,21 +35,24 @@
...
@@ -35,21 +35,24 @@
align="center" filter="contains" sort="true">
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="company_record_box_block_id" textField="textField" valueField="valueField"/>
<EF:EFOptions blockId="company_record_box_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFComboColumn ename="projCode" cname="项目编码"
<EF:EFColumn ename="companyName" cname="公司名称" width="120" enable="false" readonly="true" align="center" hidden="true" />
columnTemplate="#=textField#" itemTemplate="#=textField#"
<%-- <EF:EFComboColumn ename="projCode" cname="项目编码"--%>
textField="textField" valueField="valueField"
<%-- columnTemplate="#=textField#" itemTemplate="#=textField#"--%>
maxLength="16" width="120"
<%-- textField="textField" valueField="valueField"--%>
align="center" filter="contains" sort="true">
<%-- maxLength="16" width="120"--%>
<EF:EFOptions blockId="proj_record_block_id" textField="textField" valueField="valueField"/>
<%-- align="center" filter="contains" sort="true">--%>
</EF:EFComboColumn>
<%-- <EF:EFOptions blockId="proj_record_block_id" textField="textField" valueField="valueField"/>--%>
<EF:EFComboColumn ename="projName" cname="项目名称" width="100" enable="true" readonly="true" align="center">
<%-- </EF:EFComboColumn>--%>
</EF:EFComboColumn>
<%-- <EF:EFComboColumn ename="projName" cname="项目名称" width="100" enable="true" readonly="true" align="center">--%>
<%-- </EF:EFComboColumn>--%>
<EF:EFColumn ename="projCode" cname="项目编码" enable="true" width="120" align="center"/>
<EF:EFColumn ename="projName" cname="项目名称" width="120" align="center" enable="false"/>
<EF:EFColumn ename="createdTime" cname="材料计划日期" width="120" enable="true" readonly="false" align="center" editType="date"
<EF:EFColumn ename="createdTime" cname="材料计划日期" width="120" enable="true" readonly="false" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="planMaterialCode" cname="材料计划编码" width="120" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="planMaterialCode" cname="材料计划编码" width="120" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="planMaterialName" cname="材料计划名称" width="120" enable="true" readonly="false" align="center"/>
<EF:EFColumn ename="planMaterialName" cname="材料计划名称" width="120" enable="true" readonly="false" align="center"/>
<EF:EFComboColumn ename="status" cname="提交状态" width="80" enable="true" readonly="
false" align="center" required="true" defaultValue="1
">
<EF:EFComboColumn ename="status" cname="提交状态" width="80" enable="true" readonly="
true" align="center" required="true" defaultValue="0
">
<EF:EFCodeOption codeName="h
pjx.hpjx.s
tatus"/>
<EF:EFCodeOption codeName="h
ggp.hpkc.submitS
tatus"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
src/main/webapp/HG/SC/HGSC009A.js
View file @
98f1ce71
...
@@ -2,6 +2,8 @@ let InventNameGlobalData = [];
...
@@ -2,6 +2,8 @@ let InventNameGlobalData = [];
let
inventAllGlobalData
=
[];
let
inventAllGlobalData
=
[];
$
(
function
()
{
$
(
function
()
{
var
inventRecordBoxBlockId
=
__eiInfo
.
getBlock
(
"invent_record_box_block_id"
).
getMappedRows
();
IPLATUI
.
EFGrid
.
result
=
{
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
pageable
:
{
pageSize
:
20
,
pageSize
:
20
,
...
@@ -10,51 +12,49 @@ $(function () {
...
@@ -10,51 +12,49 @@ $(function () {
columns
:
[{
columns
:
[{
field
:
"inventCode"
,
field
:
"inventCode"
,
filter
:
function
(
options
)
{
filter
:
function
(
options
)
{
return
_
.
filter
(
InventNameGlobalData
,
function
(
item
)
{
return
_
.
filter
(
inventAllBlockId
,
function
(
item
)
{
return
item
[
"param1Field"
]
==
"true"
;
return
item
[
"param1Field"
]
==
"true"
;
})
})
},
},
template
:
function
(
dataItem
)
{
template
:
function
(
item
)
{
for
(
let
i
=
0
;
i
<
InventNameGlobalData
.
length
;
i
++
)
{
let
template
=
""
;
if
(
InventNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'inventCode'
])
{
if
(
item
.
inventCode
){
dataItem
[
'inventName'
]
=
InventNameGlobalData
[
i
][
'textField'
];
for
(
let
i
=
0
;
i
<
inventRecordBoxBlockId
.
length
;
i
++
){
return
InventNameGlobalData
[
i
][
'textField'
];
if
(
item
.
inventCode
===
inventRecordBoxBlockId
[
i
][
'valueField'
]){
template
=
inventRecordBoxBlockId
[
i
][
'valueField'
];
}
else
{
template
=
item
.
inventCode
;
}
}
}
}
}
return
dataItem
[
'inventCode'
]
;
return
template
;
},
},
editor
:
function
(
container
,
options
)
{
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-isSplicingSymbol"
,
true
);
inInfo
.
set
(
"inqu_status-0-isSplicingSymbol"
,
true
);
inInfo
.
set
(
"serviceName"
,
"HGPZ005"
);
inInfo
.
set
(
"methodName"
,
"queryComboBox"
);
inInfo
.
set
(
"blockId"
,
"invent_record_block_id"
);
inInfo
.
set
(
"field"
,
options
.
field
);
inInfo
.
set
(
"field"
,
options
.
field
);
refreshSelect
(
container
,
inInfo
);
let
dataSource
=
inventRecordBoxBlockId
;
}
EiCommunicator
.
send
(
"HGPZ005"
,
"queryInventCodeBox"
,
inInfo
,
{
},
{
onSuccess
:
function
(
ei
)
{
field
:
"spec"
,
dataSource
=
ei
.
getBlock
(
"invent_record_box_block_id"
).
getMappedRows
();
filter
:
function
(
options
)
{
return
_
.
filter
(
inventAllGlobalData
,
function
(
item
)
{
return
item
[
"param7Field"
]
==
"true"
;
})
},
},
template
:
function
(
dataItem
)
{
onFail
:
function
(
ei
)
{
for
(
let
i
=
0
;
i
<
inventAllGlobalData
.
length
;
i
++
)
{
if
(
inventAllGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'spec'
])
{
return
inventAllGlobalData
[
i
][
'textField'
];
}
}
}
return
""
;
},
{
async
:
false
});
},
var
input
=
$
(
'<input />'
);
editor
:
function
(
container
,
options
)
{
input
.
attr
(
"name"
,
options
.
field
);
let
inInfo
=
new
EiInfo
();
input
.
attr
(
"id"
,
options
.
field
);
inInfo
.
set
(
"inqu_status-0-inventCode"
,
options
.
model
[
"inventCode"
]);
input
.
appendTo
(
container
);
inInfo
.
set
(
"serviceName"
,
"HGPZ005"
);
input
.
kendoDropDownList
({
inInfo
.
set
(
"methodName"
,
"queryInventBoxAll"
);
dataSource
:
dataSource
,
inInfo
.
set
(
"blockId"
,
"invent_all_box_block_id"
);
minLength
:
0
,
inInfo
.
set
(
"field"
,
options
.
field
);
dataTextField
:
"valueField"
,
refreshSelect
(
container
,
inInfo
);
dataValueField
:
"valueField"
,
optionLabelTemplate
:
"[#:valueField#]#:textField#"
,
valueTemplate
:
"[#:valueField#]#:textField#"
,
template
:
"[#:valueField#]#:textField#"
,
filter
:
"contains"
});
}
}
}],
}],
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
...
@@ -74,22 +74,14 @@ $(function () {
...
@@ -74,22 +74,14 @@ $(function () {
}
}
}
}
if
(
e
.
field
===
"inventCode"
)
{
if
(
e
.
field
===
"inventCode"
)
{
for
(
let
i
=
0
;
i
<
InventNameGlobalData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
inventRecordBoxBlockId
.
length
;
i
++
)
{
if
(
InventNameGlobalData
[
i
][
'valueField'
]
===
e
.
items
[
0
].
inventCode
)
{
if
(
inventRecordBoxBlockId
[
i
][
'valueField'
]
===
e
.
items
[
0
].
inventCode
)
{
resultGrid
.
setCellValue
(
e
.
items
[
0
],
'inventName'
,
InventNameGlobalData
[
i
][
'textField'
])
resultGrid
.
setCellValue
(
e
.
items
[
0
],
'inventName'
,
inventRecordBoxBlockId
[
i
][
'textField'
])
}
resultGrid
.
setCellValue
(
e
.
items
[
0
],
'spec'
,
inventRecordBoxBlockId
[
i
][
'param4Field'
])
}
resultGrid
.
setCellValue
(
e
.
items
[
0
],
'material'
,
inventRecordBoxBlockId
[
i
][
'param5Field'
])
loadChange
(
grid
,
e
,
"spec"
);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
'length'
,
inventRecordBoxBlockId
[
i
][
'param7Field'
])
}
else
if
(
e
.
field
==
"spec"
)
{
resultGrid
.
setCellValue
(
e
.
items
[
0
],
'width'
,
inventRecordBoxBlockId
[
i
][
'param8Field'
])
var
tr
,
index
;
resultGrid
.
setCellValue
(
e
.
items
[
0
],
'thick'
,
inventRecordBoxBlockId
[
i
][
'param9Field'
])
// 获取此model元素信息
var
item
=
e
.
items
[
0
];
for
(
let
i
=
0
;
i
<
inventAllGlobalData
.
length
;
i
++
)
{
if
(
inventAllGlobalData
[
i
][
'valueField'
]
===
item
.
spec
)
{
resultGrid
.
setCellValue
(
item
,
'material'
,
inventAllGlobalData
[
i
][
'param1Field'
])
resultGrid
.
setCellValue
(
item
,
'length'
,
inventAllGlobalData
[
i
][
'param3Field'
])
resultGrid
.
setCellValue
(
item
,
'width'
,
inventAllGlobalData
[
i
][
'param4Field'
])
resultGrid
.
setCellValue
(
item
,
'thick'
,
inventAllGlobalData
[
i
][
'param5Field'
])
}
}
}
}
}
}
...
@@ -111,6 +103,14 @@ $(function () {
...
@@ -111,6 +103,14 @@ $(function () {
*/
*/
$
(
window
).
load
(
function
()
{
$
(
window
).
load
(
function
()
{
query
();
query
();
let
submitStatus
=
$
(
"#inqu_status-0-status"
).
val
();
//只有手动录入的才能修改
if
(
submitStatus
==
1
){
$
(
".k-grid-add"
).
hide
();
$
(
".k-grid-save-changes"
).
hide
();
$
(
".k-grid-cancel-changes"
).
hide
();
$
(
".k-grid-delete"
).
hide
();
}
});
});
/**
/**
...
...
src/main/webapp/HG/SC/HGSC009A.jsp
View file @
98f1ce71
...
@@ -8,11 +8,13 @@
...
@@ -8,11 +8,13 @@
<EF:EFPage
title=
"材料计划详情"
>
<EF:EFPage
title=
"材料计划详情"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<
%
--
<
EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
<
%
--
<
EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
defultValue=
""
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"invent_record_box_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"invent_record_box_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
--%>
</EF:EFSelect>
--%>
<EF:EFInput
cname=
"状态"
ename=
"status"
blockId=
"inqu_status"
row=
"0"
readonly=
"true"
type=
"hidden"
colWidth=
"3"
/>
<EF:EFInput
cname=
"公司编码"
ename=
"companyCode"
blockId=
"inqu_status"
row=
"0"
readonly=
"true"
type=
"hidden"
colWidth=
"3"
/>
<EF:EFInput
cname=
"公司编码"
ename=
"companyCode"
blockId=
"inqu_status"
row=
"0"
readonly=
"true"
type=
"hidden"
colWidth=
"3"
/>
<EF:EFInput
cname=
"公司名称"
ename=
"companyName"
blockId=
"inqu_status"
row=
"0"
readonly=
"true"
type=
"hidden"
colWidth=
"3"
/>
<EF:EFInput
cname=
"公司名称"
ename=
"companyName"
blockId=
"inqu_status"
row=
"0"
readonly=
"true"
type=
"hidden"
colWidth=
"3"
/>
<EF:EFInput
cname=
"计划编号"
ename=
"planMaterialCode"
blockId=
"inqu_status"
row=
"0"
readonly=
"true"
colWidth=
"3"
/>
<EF:EFInput
cname=
"计划编号"
ename=
"planMaterialCode"
blockId=
"inqu_status"
row=
"0"
readonly=
"true"
colWidth=
"3"
/>
...
@@ -37,14 +39,15 @@
...
@@ -37,14 +39,15 @@
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"false"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"false"
filter=
"contains"
>
filter=
"contains"
>
</EF:EFComboColumn>
--%>
</EF:EFComboColumn>
--%>
<EF:EFComboColumn
ename=
"inventCode"
cname=
"存货编码"
width=
"120"
align=
"center"
required=
"true"
<
%
--
<
EF:EFComboColumn
ename=
"inventCode"
cname=
"存货编码"
width=
"120"
align=
"center"
required=
"true"
--
%
>
blockName=
"invent_record_block_id"
textField=
"valueField"
valueField=
"valueField"
<
%
--
blockName=
"invent_record_block_id"
textField=
"valueField"
valueField=
"valueField"
--
%
>
columnTemplate=
"#=valueField#"
itemTemplate=
"#=valueField#"
readonly=
"false"
<
%
--
columnTemplate=
"#=valueField#"
itemTemplate=
"#=valueField#"
readonly=
"false"
--
%
>
filter=
"contains"
>
<
%
--
filter=
"contains"
>
--%>
</EF:EFComboColumn>
<
%
--
</
EF:EFComboColumn
>
--%>
<EF:EFColumn
ename=
"inventCode"
required=
"true"
cname=
"产品编号"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
width=
"120"
align=
"center"
enable=
"false"
readonly=
"true"
required=
"true"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
width=
"120"
align=
"center"
enable=
"false"
readonly=
"true"
required=
"true"
/>
<EF:EFColumn
ename=
"material"
cname=
"材质"
width=
"120"
align=
"center"
enable=
"false"
readonly=
"true"
required=
"true"
/>
<EF:EFColumn
ename=
"material"
cname=
"材质"
width=
"120"
align=
"center"
enable=
"false"
readonly=
"true"
required=
"true"
/>
<EF:EFColumn
ename=
"spec"
cname=
"规格"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"spec"
cname=
"规格"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
enable=
"false"
/>
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
...
...
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