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
d3af00e7
Commit
d3af00e7
authored
Jun 04, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排产opt;
parent
85cd7cac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
23 deletions
+32
-23
ServiceHGSC005A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC005A.java
+2
-0
HGSC005A.js
src/main/webapp/HG/SC/HGSC005A.js
+29
-23
HGSC005A.jsp
src/main/webapp/HG/SC/HGSC005A.jsp
+1
-0
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC005A.java
View file @
d3af00e7
...
@@ -25,6 +25,8 @@ public class ServiceHGSC005A extends ServiceBase {
...
@@ -25,6 +25,8 @@ public class ServiceHGSC005A extends ServiceBase {
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
String
planCode
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
0
,
HGSC005A
.
FIELD_plan_code
);
String
planCode
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
0
,
HGSC005A
.
FIELD_plan_code
);
HGSC005
hgsc005
=
HGSCTools
.
THGSC005
.
queryByPlanCode
(
planCode
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
0
,
HGSC005
.
FIELD_is_schedule
,
hgsc005
.
getIsSchedule
());
inInfo
=
super
.
query
(
inInfo
,
HGSC005A
.
QUERY
,
new
HGSC005A
());
inInfo
=
super
.
query
(
inInfo
,
HGSC005A
.
QUERY
,
new
HGSC005A
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PLAN_PROCESS_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PLAN_PROCESS_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){{
put
(
HGSC005A
.
FIELD_plan_code
,
planCode
);
put
(
HGSC005A
.
FIELD_plan_code
,
planCode
);
...
...
src/main/webapp/HG/SC/HGSC005A.js
View file @
d3af00e7
...
@@ -28,28 +28,34 @@ $(function () {
...
@@ -28,28 +28,34 @@ $(function () {
function
schedule
()
{
function
schedule
()
{
var
planCode
=
$
(
"#inqu_status-0-planCode"
).
val
();
var
planCode
=
$
(
"#inqu_status-0-planCode"
).
val
();
var
inInfo
=
new
EiInfo
();
var
isSchedule
=
$
(
"#inqu_status-0-isSchedule"
).
val
();
inInfo
.
set
(
"inqu_status-0-planCode"
,
planCode
);
if
(
isSchedule
&&
isSchedule
===
'1'
){
IPLAT
.
confirm
({
message
(
"当前计划已排产,请手动调整计划!"
);
title
:
'提交'
,
return
;
message
:
'自动排产将覆盖原排产数据,且只能执行一次,请谨慎操作,确认对当前数据进行排产?'
,
}
else
{
okFn
:
function
()
{
var
inInfo
=
new
EiInfo
();
var
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-planCode"
,
planCode
);
inInfo
.
set
(
"inqu_status-0-planCode"
,
planCode
);
IPLAT
.
confirm
({
EiCommunicator
.
send
(
"HGSC005A"
,
"schedule"
,
inInfo
,{
title
:
'提交'
,
onSuccess
:
function
(
ei
)
{
message
:
'自动排产将覆盖原排产数据,且只能执行一次,请谨慎操作,确认对当前数据进行排产?'
,
if
(
ei
.
getStatus
()
>=
0
)
{
okFn
:
function
()
{
NotificationUtil
(
ei
);
var
inInfo
=
new
EiInfo
();
resultGrid
.
dataSource
.
query
();
inInfo
.
set
(
"inqu_status-0-planCode"
,
planCode
);
}
else
{
EiCommunicator
.
send
(
"HGSC005A"
,
"schedule"
,
inInfo
,
{
NotificationUtil
(
ei
,
"error"
);
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
NotificationUtil
(
ei
);
resultGrid
.
dataSource
.
query
();
}
else
{
NotificationUtil
(
ei
,
"error"
);
}
},
onFail
:
function
(
ei
)
{
// 发生异常
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
}
},
});
onFail
:
function
(
ei
)
{
}
// 发生异常
});
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
}
});
}
})
}
}
src/main/webapp/HG/SC/HGSC005A.jsp
View file @
d3af00e7
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
ename=
"inqu_status-0-planCode"
cname=
"计划编码"
type=
"hidden"
/>
<EF:EFInput
ename=
"inqu_status-0-planCode"
cname=
"计划编码"
type=
"hidden"
/>
<EF:EFInput
ename=
"inqu_status-0-isSchedule"
cname=
"是否排产"
type=
"hidden"
/>
<EF:EFInput
ename=
"inqu_status-0-productName"
cname=
"产品名称"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-productName"
cname=
"产品名称"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"工序"
ename=
"inqu_status-0-processName"
colWidth=
"3"
filter=
"contains"
>
<EF:EFSelect
cname=
"工序"
ename=
"inqu_status-0-processName"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOptions
blockId=
"plan_process_block_id"
valueField=
"valueField"
textField=
"textField"
/>
<EF:EFOptions
blockId=
"plan_process_block_id"
valueField=
"valueField"
textField=
"textField"
/>
...
...
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