Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
cabb2d63
Commit
cabb2d63
authored
Jan 30, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产计划bugfix
parent
2010f86b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
6 deletions
+24
-6
HPConstants.java
src/main/java/com/baosight/hpjx/common/HPConstants.java
+1
-1
ServiceHPSC003.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
+11
-4
HPSC002.js
src/main/webapp/HP/SC/HPSC002.js
+11
-0
HPSC003.js
src/main/webapp/HP/SC/HPSC003.js
+0
-1
HPSC003.jsp
src/main/webapp/HP/SC/HPSC003.jsp
+1
-0
No files found.
src/main/java/com/baosight/hpjx/common/HPConstants.java
View file @
cabb2d63
...
@@ -7,7 +7,7 @@ package com.baosight.hpjx.common;
...
@@ -7,7 +7,7 @@ package com.baosight.hpjx.common;
public
class
HPConstants
{
public
class
HPConstants
{
/** 多字段拼接符号 XTC */
/** 多字段拼接符号 XTC */
public
static
final
String
BLOCK_DETIL
=
"detail"
;
public
static
final
String
BLOCK_DET
A
IL
=
"detail"
;
//公司編碼
//公司編碼
public
static
final
String
SQL_FIELD_COMPANYCODE
=
"companyCode"
;
public
static
final
String
SQL_FIELD_COMPANYCODE
=
"companyCode"
;
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
View file @
cabb2d63
...
@@ -11,6 +11,7 @@ import com.baosight.iplat4j.core.ei.EiConstant;
...
@@ -11,6 +11,7 @@ import com.baosight.iplat4j.core.ei.EiConstant;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.soa.XLocalManager
;
import
com.baosight.iplat4j.core.util.DateUtil
;
import
com.baosight.iplat4j.core.util.DateUtil
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
...
@@ -43,9 +44,8 @@ public class ServiceHPSC003 extends ServiceBase {
...
@@ -43,9 +44,8 @@ public class ServiceHPSC003 extends ServiceBase {
HPSC003
HPSC003
=
new
HPSC003
();
HPSC003
HPSC003
=
new
HPSC003
();
/* 调用EI查询方法.*/
/* 调用EI查询方法.*/
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"HPSC003.query"
,
new
HPSC003
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"HPSC003.query"
,
new
HPSC003
());
EiBlock
blcok
=
outInfo
.
addBlock
(
HPConstants
.
BLOCK_DETIL
);
EiBlock
blcok
=
outInfo
.
addBlock
(
HPConstants
.
BLOCK_DETAIL
);
blcok
.
setBlockMeta
(
HPSC003
.
eiMetadata
);
blcok
.
setBlockMeta
(
new
HPSC004
().
eiMetadata
);
blcok
.
addRow
(
HPSC003
);
return
outInfo
;
return
outInfo
;
}
}
...
@@ -119,6 +119,12 @@ public class ServiceHPSC003 extends ServiceBase {
...
@@ -119,6 +119,12 @@ public class ServiceHPSC003 extends ServiceBase {
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"修改成功!"
);
inInfo
.
setMsg
(
"修改成功!"
);
inInfo
.
set
(
"parentId"
,
HPSC004
.
getParentId
());
inInfo
.
set
(
EiConstant
.
serviceName
,
"HPSC004"
);
inInfo
.
set
(
EiConstant
.
methodName
,
"queryDetail"
);
EiInfo
detailInfo
=
XLocalManager
.
call
(
inInfo
);
inInfo
.
getBlock
(
"detail"
).
setRows
(
detailInfo
.
getBlock
(
"detail"
).
getRows
());
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
setRows
(
query
(
inInfo
).
getBlock
(
EiConstant
.
resultBlock
).
getRows
());
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"操作失败!原因参见详细错误描述!"
);
inInfo
.
setMsg
(
"操作失败!原因参见详细错误描述!"
);
...
@@ -126,7 +132,8 @@ public class ServiceHPSC003 extends ServiceBase {
...
@@ -126,7 +132,8 @@ public class ServiceHPSC003 extends ServiceBase {
logError
(
"修改失败"
,
e
.
getMessage
());
logError
(
"修改失败"
,
e
.
getMessage
());
return
inInfo
;
return
inInfo
;
}
}
return
query
(
inInfo
);
return
inInfo
;
}
}
/**
/**
...
...
src/main/webapp/HP/SC/HPSC002.js
View file @
cabb2d63
...
@@ -40,6 +40,17 @@ $(function () {
...
@@ -40,6 +40,17 @@ $(function () {
*/
*/
select
:
function
(
e
)
{
select
:
function
(
e
)
{
var
nodeData
=
this
.
dataItem
(
e
.
node
);
var
nodeData
=
this
.
dataItem
(
e
.
node
);
let
eiInfo
=
new
EiInfo
();
eiInfo
.
set
(
"inqu_status-0-inventTypes"
,
[
3
,
4
]);
var
dataSource
;
EiCommunicator
.
send
(
"HPPZ006"
,
"queryPrdtComboBox"
,
eiInfo
,
{
onSuccess
:
function
(
ei
)
{
dataSource
=
ei
.
getBlock
(
"invent_prdt_name_block_id"
).
getMappedRows
();
inventNameGlobalData
=
dataSource
;
},
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
.
nodeId
=
nodeData
.
nodeId
;
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
.
nodeId
=
nodeData
.
nodeId
;
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
.
prdtCode
=
nodeData
.
prdtCode
;
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
.
prdtCode
=
nodeData
.
prdtCode
;
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
.
projCode
=
nodeData
.
projCode
;
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
.
projCode
=
nodeData
.
projCode
;
...
...
src/main/webapp/HP/SC/HPSC003.js
View file @
cabb2d63
...
@@ -78,7 +78,6 @@ $(function () {
...
@@ -78,7 +78,6 @@ $(function () {
var
btnNode
=
$
(
this
);
var
btnNode
=
$
(
this
);
//禁用按钮
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
btnNode
.
attr
(
"disabled"
,
true
);
IPLAT
.
submitNode
(
$
(
"#HPSC003"
),
"HPSC003"
,
"updateHPSC0004"
,
{
IPLAT
.
submitNode
(
$
(
"#HPSC003"
),
"HPSC003"
,
"updateHPSC0004"
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
...
...
src/main/webapp/HP/SC/HPSC003.jsp
View file @
cabb2d63
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
<EF:EFRegion
id=
"detail"
title=
"明细信息"
>
<EF:EFRegion
id=
"detail"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"detail"
autoDraw=
"no"
>
<EF:EFGrid
blockId=
"detail"
autoDraw=
"no"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"parentId"
cname=
"父ID"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"prdtType"
cname=
"部件类型"
width=
"90"
align=
"center"
readonly=
"true"
>
<EF:EFComboColumn
ename=
"prdtType"
cname=
"部件类型"
width=
"90"
align=
"center"
readonly=
"true"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
...
...
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