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
3f39924b
Commit
3f39924b
authored
May 20, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-05-20 优化工艺流程和工序单价
parent
84eaade5
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
47 additions
and
9 deletions
+47
-9
HGSJ001.java
src/main/java/com/baosight/hggp/hg/sj/domain/HGSJ001.java
+17
-0
HGSJ001.xml
src/main/java/com/baosight/hggp/hg/sj/sql/HGSJ001.xml
+7
-1
HGSJ001.js
src/main/webapp/HG/SJ/HGSJ001.js
+14
-2
HGSJ001.jsp
src/main/webapp/HG/SJ/HGSJ001.jsp
+2
-2
HGSJ002.jsp
src/main/webapp/HG/SJ/HGSJ002.jsp
+1
-1
HGSJ002A.jsp
src/main/webapp/HG/SJ/HGSJ002A.jsp
+2
-2
HGSJ003.js
src/main/webapp/HG/SJ/HGSJ003.js
+3
-0
HGSJ003.jsp
src/main/webapp/HG/SJ/HGSJ003.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/sj/domain/HGSJ001.java
View file @
3f39924b
...
...
@@ -42,6 +42,7 @@ public class HGSJ001 extends DaoEPBase {
public
static
final
String
FIELD_STANDARD_DAYS
=
"standardDays"
;
/* 标准人天*/
public
static
final
String
FIELD_STANDARD_NUM
=
"standardNum"
;
/* 标准工序人数*/
public
static
final
String
FIELD_PRINC
=
"princ"
;
/* 负责人*/
public
static
final
String
FIELD_PRINC_NAME
=
"princName"
;
/* 负责人名称*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态0.停止1.启用*/
public
static
final
String
COL_ID
=
"ID"
;
/* 主键id*/
...
...
@@ -92,6 +93,7 @@ public class HGSJ001 extends DaoEPBase {
private
BigDecimal
standardDays
=
new
BigDecimal
(
"0"
);
/* 标准人天*/
private
BigDecimal
standardNum
=
new
BigDecimal
(
"0"
);
/* 标准工序人数*/
private
String
princ
=
" "
;
/* 负责人*/
private
String
princName
=
" "
;
/* 负责人名称*/
private
Integer
status
=
0
;
/* 状态0.停止1.启用*/
/**
...
...
@@ -186,6 +188,10 @@ public class HGSJ001 extends DaoEPBase {
eiColumn
.
setDescName
(
"负责人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRINC_NAME
);
eiColumn
.
setDescName
(
"负责人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
.
setDescName
(
"状态0.停止1.启用"
);
eiMetadata
.
addMeta
(
eiColumn
);
...
...
@@ -504,6 +510,15 @@ public class HGSJ001 extends DaoEPBase {
public
void
setPrinc
(
String
princ
)
{
this
.
princ
=
princ
;
}
public
String
getPrincName
()
{
return
princName
;
}
public
void
setPrincName
(
String
princName
)
{
this
.
princName
=
princName
;
}
/**
* get the status - 状态0.启用1.停止.
* @return the status
...
...
@@ -547,6 +562,7 @@ public class HGSJ001 extends DaoEPBase {
setStandardDays
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STANDARD_DAYS
)),
standardDays
));
setStandardNum
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STANDARD_NUM
)),
standardNum
));
setPrinc
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRINC
)),
princ
));
setPrincName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRINC_NAME
)),
princName
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
}
...
...
@@ -576,6 +592,7 @@ public class HGSJ001 extends DaoEPBase {
map
.
put
(
FIELD_STANDARD_DAYS
,
StringUtils
.
toString
(
standardDays
,
eiMetadata
.
getMeta
(
FIELD_STANDARD_DAYS
)));
map
.
put
(
FIELD_STANDARD_NUM
,
StringUtils
.
toString
(
standardNum
,
eiMetadata
.
getMeta
(
FIELD_STANDARD_NUM
)));
map
.
put
(
FIELD_PRINC
,
StringUtils
.
toString
(
princ
,
eiMetadata
.
getMeta
(
FIELD_PRINC
)));
map
.
put
(
FIELD_PRINC_NAME
,
StringUtils
.
toString
(
princName
,
eiMetadata
.
getMeta
(
FIELD_PRINC_NAME
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
return
map
;
...
...
src/main/java/com/baosight/hggp/hg/sj/sql/HGSJ001.xml
View file @
3f39924b
...
...
@@ -22,6 +22,7 @@
STANDARD_DAYS as "standardDays",
<!-- 标准人天 -->
STANDARD_NUM as "standardNum",
<!-- 标准工序人数 -->
PRINC as "princ",
<!-- 负责人 -->
PRINC_NAME as "princName",
<!-- 负责人名称 -->
STATUS as "status"
<!-- 状态0.停止1.启动 -->
</sql>
...
...
@@ -104,6 +105,9 @@
<isNotEmpty
prepend=
" AND "
property=
"princ"
>
PRINC LIKE CONCAT('%', #princ#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"princName"
>
PRINC_NAME LIKE CONCAT('%', #princName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
...
...
@@ -217,9 +221,10 @@
STANDARD_DAYS,
<!-- 标准人天 -->
STANDARD_NUM,
<!-- 标准工序人数 -->
PRINC,
<!-- 负责人 -->
PRINC_NAME,
STATUS
<!-- 状态0.停止1.启动 -->
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #factoryCode#, #factoryName#, #processCode#, #processName#, #unit#, #standardJob#, #standardDays#, #standardNum#, #princ#, #status#)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #factoryCode#, #factoryName#, #processCode#, #processName#, #unit#, #standardJob#, #standardDays#, #standardNum#, #princ#, #
princName#,#
status#)
</insert>
<delete
id=
"delete"
>
...
...
@@ -260,6 +265,7 @@
STANDARD_DAYS = #standardDays#,
<!-- 标准人天 -->
STANDARD_NUM = #standardNum#,
<!-- 标准工序人数 -->
PRINC = #princ#,
<!-- 负责人 -->
PRINC_NAME = #princName#,
STATUS = #status#
<!-- 状态0.停止1.启动 -->
WHERE
ID = #id#
...
...
src/main/webapp/HG/SJ/HGSJ001.js
View file @
3f39924b
$
(
function
(){
var
factoryCodes
=
__eiInfo
.
getBlock
(
"companyBox_block_id"
).
getMappedRows
();
var
userIdBox
=
__eiInfo
.
getBlock
(
"user_block_id"
).
getMappedRows
();
$
(
".row"
).
children
().
attr
(
"class"
,
"col-md-3"
);
...
...
@@ -37,7 +38,7 @@ $(function (){
}
return
template
;
}
},{
},
{
field
:
"factoryCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
factoryCodes
.
length
;
i
++
)
{
...
...
@@ -48,7 +49,18 @@ $(function (){
}
return
dataItem
[
'factoryCode'
];
},
},{
},
{
field
:
"princ"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
userIdBox
.
length
;
i
++
)
{
if
(
userIdBox
[
i
][
'valueField'
]
===
dataItem
[
'princ'
])
{
dataItem
[
'princName'
]
=
userIdBox
[
i
][
'textField'
];
return
userIdBox
[
i
][
'textField'
];
}
}
return
dataItem
[
'princ'
];
}
},
{
field
:
"createdName"
,
template
:
function
(
options
)
{
return
showUserName
(
options
.
createdBy
,
options
.
createdName
);
...
...
src/main/webapp/HG/SJ/HGSJ001.jsp
View file @
3f39924b
...
...
@@ -19,8 +19,8 @@
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
<EF:EFInput blockId="inqu_status" row="0" ename="processName" cname="工序名称" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="princ
" cname="负责人"
colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="processName" cname="工序名称"
placeholder="模糊查询"
colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="princ
Name" cname="负责人" placeholder="模糊查询"
colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="status" cname="状态" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hpjx.hpjx.status"/>
...
...
src/main/webapp/HG/SJ/HGSJ002.jsp
View file @
3f39924b
...
...
@@ -19,7 +19,7 @@
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
<EF:EFInput blockId="inqu_status" row="0" ename="flowName" cname="流程名称" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="flowName" cname="流程名称"
placeholder="模糊查询"
colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="status" cname="状态" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hpjx.hpjx.status"/>
...
...
src/main/webapp/HG/SJ/HGSJ002A.jsp
View file @
3f39924b
...
...
@@ -19,8 +19,8 @@
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
<EF:EFInput blockId="inqu_status" row="0" ename="flowCode" cname="流程编码" colWidth="3" readonly="true"/>
<EF:EFInput blockId="inqu_status" row="0" ename="flowName" cname="流程名称" colWidth="3" readonly="true"/>
<EF:EFInput blockId="inqu_status" row="0" ename="flowCode" cname="流程编码" colWidth="3"
placeholder="模糊查询"
readonly="true"/>
<EF:EFInput blockId="inqu_status" row="0" ename="flowName" cname="流程名称" colWidth="3"
placeholder="模糊查询"
readonly="true"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="processCode" cname="工序名称" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="processCode_block_id" textField="textField" valueField="valueField"/>
...
...
src/main/webapp/HG/SJ/HGSJ003.js
View file @
3f39924b
...
...
@@ -75,6 +75,9 @@ $(function (){
}
return
dataItem
[
'processCode'
];
},
editor
:
function
(
container
,
options
)
{
this
.
filter
(
options
);
}
},
{
field
:
"spec"
,
template
:
function
(
options
)
{
...
...
src/main/webapp/HG/SJ/HGSJ003.jsp
View file @
3f39924b
...
...
@@ -23,7 +23,7 @@
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="processCode_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>--%>
<EF:EFInput blockId="inqu_status" row="0" ename="processName" cname="工序名称" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="processName" cname="工序名称"
placeholder="模糊查询"
colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="status" cname="状态" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hpjx.hpjx.status"/>
...
...
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