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
6c624d22
Commit
6c624d22
authored
May 20, 2024
by
yukang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
3e13ed28
ce891bcb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
5 deletions
+31
-5
HGPZ005A.java
src/main/java/com/baosight/hggp/hg/pz/domain/HGPZ005A.java
+18
-0
ServiceHGPZ005.java
.../java/com/baosight/hggp/hg/pz/service/ServiceHGPZ005.java
+1
-0
HGPZ005A.xml
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ005A.xml
+8
-5
HGPZ005A.jsp
src/main/webapp/HG/PZ/HGPZ005A.jsp
+4
-0
No files found.
src/main/java/com/baosight/hggp/hg/pz/domain/HGPZ005A.java
View file @
6c624d22
...
...
@@ -42,6 +42,7 @@ public class HGPZ005A extends DaoEPBase {
public
static
final
String
FIELD_UNIT_COEFF
=
"unitCoeff"
;
/* 单价系数*/
public
static
final
String
FIELD_PROCESS_CLASS
=
"processClass"
;
/* 工序类别*/
public
static
final
String
FIELD_PARENT_ID
=
"parentId"
;
/* 上级ID*/
public
static
final
String
FIELD_PROCESS_ORDER
=
"processOrder"
;
/* 加工顺序*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 帐套编码*/
...
...
@@ -87,6 +88,7 @@ public class HGPZ005A extends DaoEPBase {
private
BigDecimal
unitCoeff
=
new
BigDecimal
(
0
);
/* 单价系数*/
private
String
processClass
=
" "
;
/* 工序分类*/
private
Long
parentId
=
new
Long
(
0
);
/* 上级ID*/
private
Long
processOrder
=
new
Long
(
0
);
/* 加工顺序*/
/**
* initialize the metadata.
...
...
@@ -177,6 +179,11 @@ public class HGPZ005A extends DaoEPBase {
eiColumn
.
setDescName
(
"上级ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROCESS_ORDER
);
eiColumn
.
setDescName
(
"加工顺序"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
...
...
@@ -468,6 +475,15 @@ public class HGPZ005A extends DaoEPBase {
public
void
setParentId
(
Long
parentId
)
{
this
.
parentId
=
parentId
;
}
public
Long
getProcessOrder
()
{
return
processOrder
;
}
public
void
setProcessOrder
(
Long
processOrder
)
{
this
.
processOrder
=
processOrder
;
}
/**
* get the value from Map.
*
...
...
@@ -495,6 +511,7 @@ public class HGPZ005A extends DaoEPBase {
setUnitCoeff
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UNIT_COEFF
)),
unitCoeff
));
setProcessClass
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROCESS_CLASS
)),
processClass
));
setParentId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PARENT_ID
)),
parentId
));
setProcessOrder
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROCESS_ORDER
)),
processOrder
));
}
/**
...
...
@@ -523,6 +540,7 @@ public class HGPZ005A extends DaoEPBase {
map
.
put
(
FIELD_UNIT_COEFF
,
StringUtils
.
toString
(
unitCoeff
,
eiMetadata
.
getMeta
(
FIELD_UNIT_COEFF
)));
map
.
put
(
FIELD_PROCESS_CLASS
,
StringUtils
.
toString
(
processClass
,
eiMetadata
.
getMeta
(
FIELD_PROCESS_CLASS
)));
map
.
put
(
FIELD_PARENT_ID
,
StringUtils
.
toString
(
parentId
,
eiMetadata
.
getMeta
(
FIELD_PARENT_ID
)));
map
.
put
(
FIELD_PROCESS_ORDER
,
StringUtils
.
toString
(
processOrder
,
eiMetadata
.
getMeta
(
FIELD_PROCESS_ORDER
)));
return
map
;
}
...
...
src/main/java/com/baosight/hggp/hg/pz/service/ServiceHGPZ005.java
View file @
6c624d22
...
...
@@ -320,6 +320,7 @@ public class ServiceHGPZ005 extends ServiceBase {
hgpz005A
.
setUnitCoeff
(
BigDecimal
.
ONE
);
hgpz005A
.
setComposingCoeff
(
BigDecimal
.
ONE
);
hgpz005A
.
setParentId
(
hppz005
.
getId
());
hgpz005A
.
setProcessOrder
(
hgsj002a
.
getProcessOrder
());
DaoUtils
.
insert
(
HGPZ005A
.
INSERT
,
hgpz005A
.
toMap
());
}
}
...
...
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ005A.xml
View file @
6c624d22
...
...
@@ -104,7 +104,8 @@
COMPOSING_COEFF as "composingCoeff",
<!-- 排产系数 -->
UNIT_COEFF as "unitCoeff",
<!-- 单价系数 -->
PROCESS_CLASS as "processClass",
<!-- 工序类别 -->
PARENT_ID as "parentId"
<!-- 上级ID -->
PARENT_ID as "parentId",
<!-- 上级ID -->
PROCESS_ORDER as "processOrder"
FROM ${hggpSchema}.HGPZ005A WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
...
...
@@ -112,7 +113,7 @@
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
CREATED_TIME asc, ID asc
PROCESS_CLASS asc ,
CREATED_TIME asc, ID asc
</isEmpty>
</dynamic>
...
...
@@ -193,9 +194,10 @@
COMPOSING_COEFF,
<!-- 排产系数 -->
UNIT_COEFF,
<!-- 单价系数 -->
PROCESS_CLASS,
<!-- 工序类别 -->
PARENT_ID
<!-- 上级ID -->
PARENT_ID,
<!-- 上级ID -->
PROCESS_ORDER
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #inventCode#, #processCode#, #processName#, #composingCoeff#, #unitCoeff#, #processClass#, #parentId#)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #inventCode#, #processCode#, #processName#, #composingCoeff#, #unitCoeff#, #processClass#, #parentId#
,#processOrder#
)
</insert>
<delete
id=
"delete"
>
...
...
@@ -227,7 +229,8 @@
COMPOSING_COEFF = #composingCoeff#,
<!-- 排产系数 -->
UNIT_COEFF = #unitCoeff#,
<!-- 单价系数 -->
PROCESS_CLASS = #processClass#,
<!-- 工序类别 -->
PARENT_ID = #parentId#
<!-- 上级ID -->
PARENT_ID = #parentId#,
<!-- 上级ID -->
PROCESS_ORDER = #processOrder#
WHERE
ID = #id#
</update>
...
...
src/main/webapp/HG/PZ/HGPZ005A.jsp
View file @
6c624d22
...
...
@@ -30,6 +30,10 @@
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="企业编码" hidden="true"/>
<EF:EFColumn ename="processOrder" cname="加工顺序" width="120" enable="false" format="{0:N0}" editType="text"
displayType="0" sort="true" align="center"
data-regex="/^-?[0-9]{1,10}?$/" maxLength="10" required="true"
data-errorprompt="请输入数字,该值最大可设置10位整数!"/>
<EF:EFComboColumn ename="processCode" cname="工序名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
...
...
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