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
831d36f9
Commit
831d36f9
authored
Mar 29, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-03-29 用工记录工时类型调整改为2位小数
parent
b7b0df2a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
HPPZ014.java
src/main/java/com/baosight/hpjx/hp/pz/domain/HPPZ014.java
+7
-5
HPPZ014.jsp
src/main/webapp/HP/PZ/HPPZ014.jsp
+3
-1
No files found.
src/main/java/com/baosight/hpjx/hp/pz/domain/HPPZ014.java
View file @
831d36f9
...
@@ -5,6 +5,7 @@ import com.baosight.iplat4j.core.ei.EiColumn;
...
@@ -5,6 +5,7 @@ import com.baosight.iplat4j.core.ei.EiColumn;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
java.math.BigDecimal
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -86,7 +87,7 @@ public class HPPZ014 extends DaoEPBase {
...
@@ -86,7 +87,7 @@ public class HPPZ014 extends DaoEPBase {
private
String
userId
=
" "
;
/* 用户ID*/
private
String
userId
=
" "
;
/* 用户ID*/
private
String
userName
=
" "
;
/* 用户名称*/
private
String
userName
=
" "
;
/* 用户名称*/
private
String
regDate
;
/* 登记日期*/
private
String
regDate
;
/* 登记日期*/
private
Long
manHour
;
private
BigDecimal
manHour
=
new
BigDecimal
(
0.00
)
;
/**
/**
* initialize the metadata.
* initialize the metadata.
...
@@ -169,7 +170,8 @@ public class HPPZ014 extends DaoEPBase {
...
@@ -169,7 +170,8 @@ public class HPPZ014 extends DaoEPBase {
eiColumn
=
new
EiColumn
(
FIELD_MAN_HOUR
);
eiColumn
=
new
EiColumn
(
FIELD_MAN_HOUR
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
16
);
eiColumn
.
setDescName
(
"工时"
);
eiColumn
.
setDescName
(
"工时"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
...
@@ -472,11 +474,11 @@ public class HPPZ014 extends DaoEPBase {
...
@@ -472,11 +474,11 @@ public class HPPZ014 extends DaoEPBase {
this
.
regDate
=
regDate
;
this
.
regDate
=
regDate
;
}
}
public
Long
getManHour
()
{
public
BigDecimal
getManHour
()
{
return
manHour
;
return
manHour
;
}
}
public
void
setManHour
(
Long
manHour
)
{
public
void
setManHour
(
BigDecimal
manHour
)
{
this
.
manHour
=
manHour
;
this
.
manHour
=
manHour
;
}
}
...
@@ -506,7 +508,7 @@ public class HPPZ014 extends DaoEPBase {
...
@@ -506,7 +508,7 @@ public class HPPZ014 extends DaoEPBase {
setUserId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_USER_ID
)),
userId
));
setUserId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_USER_ID
)),
userId
));
setUserName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_USER_NAME
)),
userName
));
setUserName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_USER_NAME
)),
userName
));
setRegDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REG_DATE
)),
regDate
));
setRegDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REG_DATE
)),
regDate
));
setManHour
(
NumberUtils
.
to
Long
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MAN_HOUR
)),
manHour
));
setManHour
(
NumberUtils
.
to
BigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MAN_HOUR
)),
manHour
));
}
}
/**
/**
...
...
src/main/webapp/HP/PZ/HPPZ014.jsp
View file @
831d36f9
...
@@ -59,7 +59,9 @@
...
@@ -59,7 +59,9 @@
<EF:EFCodeOption
codeName=
"xservices.xs.sex"
/>
<EF:EFCodeOption
codeName=
"xservices.xs.sex"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"mobile"
cname=
"联系方式"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"mobile"
cname=
"联系方式"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"manHour"
cname=
"工时(小时)"
enable=
"true"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"manHour"
format=
"{0:N2}"
cname=
"工时(小时)"
maxLength=
"15"
displayType=
"0.00"
data-regex=
"/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
width=
"120"
data-errorprompt=
"请输入数字,该值最大可设置16位整数和2位小数!"
/>
<EF:EFColumn
cname=
"创建人"
ename=
"createdName"
enable=
"false"
align=
"center"
/>
<EF:EFColumn
cname=
"创建人"
ename=
"createdName"
enable=
"false"
align=
"center"
/>
<EF:EFColumn
cname=
"创建时间"
ename=
"createdTime"
enable=
"false"
width=
"140"
align=
"center"
<EF:EFColumn
cname=
"创建时间"
ename=
"createdTime"
enable=
"false"
width=
"140"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"
/>
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"
/>
...
...
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