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
abb92179
Commit
abb92179
authored
Jul 04, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-07-04 1、原材料成本核算
parent
19022e84
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
148 additions
and
0 deletions
+148
-0
HGKC007B.java
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC007B.java
+78
-0
HGKC008B.java
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC008B.java
+70
-0
No files found.
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC007B.java
0 → 100644
View file @
abb92179
package
com
.
baosight
.
hggp
.
hg
.
kc
.
domain
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* @author LiuYang
* @version 1.0 2024/7/3
*/
public
class
HGKC007B
extends
HGKC007A
{
public
static
final
String
FIELD_OTHER_OUT_DATE
=
"otherOutDate"
;
/* 其他出库日期*/
public
static
final
String
FIELD_OTHER_OUT_NO
=
"otherOutNo"
;
/* 其他出库单号*/
private
String
otherOutDate
=
" "
;
/* 其他出库日期*/
private
String
otherOutNo
=
" "
;
/* 其他出库单号*/
@Override
public
void
initMetaData
()
{
super
.
initMetaData
();
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_OTHER_OUT_DATE
);
eiColumn
.
setDescName
(
"其他出库日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OTHER_OUT_NO
);
eiColumn
.
setDescName
(
"其他出库单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
public
HGKC007B
()
{
initMetaData
();
}
@Override
public
String
getOtherOutDate
()
{
return
otherOutDate
;
}
@Override
public
void
setOtherOutDate
(
String
otherOutDate
)
{
this
.
otherOutDate
=
otherOutDate
;
}
@Override
public
String
getOtherOutNo
()
{
return
otherOutNo
;
}
@Override
public
void
setOtherOutNo
(
String
otherOutNo
)
{
this
.
otherOutNo
=
otherOutNo
;
}
@Override
public
void
fromMap
(
Map
map
)
{
super
.
fromMap
(
map
);
setOtherOutDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OTHER_OUT_DATE
)),
otherOutDate
));
setOtherOutNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OTHER_OUT_NO
)),
otherOutNo
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
Map
map
=
super
.
toMap
();
map
.
put
(
FIELD_OTHER_OUT_DATE
,
StringUtils
.
toString
(
otherOutDate
,
eiMetadata
.
getMeta
(
FIELD_OTHER_OUT_DATE
)));
map
.
put
(
FIELD_OTHER_OUT_NO
,
StringUtils
.
toString
(
otherOutNo
,
eiMetadata
.
getMeta
(
FIELD_OTHER_OUT_NO
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC008B.java
0 → 100644
View file @
abb92179
package
com
.
baosight
.
hggp
.
hg
.
kc
.
domain
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
java.util.Map
;
/**
* @author LiuYang
* @version 1.0 2024/7/3
*/
public
class
HGKC008B
extends
HGKC008A
{
public
static
final
String
FIELD_RECEIPT_DATE
=
"receiptDate"
;
/* 单据日期*/
public
static
final
String
FIELD_APPLY_CODE
=
"applyCode"
;
/* 申请单号*/
private
String
receiptDate
=
" "
;
/* 单据日期*/
private
String
applyCode
=
" "
;
/* 申请单号*/
@Override
public
void
initMetaData
()
{
super
.
initMetaData
();
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_RECEIPT_DATE
);
eiColumn
.
setDescName
(
"单据日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_APPLY_CODE
);
eiColumn
.
setDescName
(
"申请单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
public
HGKC008B
()
{
initMetaData
();
}
public
String
getReceiptDate
()
{
return
receiptDate
;
}
public
void
setReceiptDate
(
String
receiptDate
)
{
this
.
receiptDate
=
receiptDate
;
}
public
String
getApplyCode
()
{
return
applyCode
;
}
public
void
setApplyCode
(
String
applyCode
)
{
this
.
applyCode
=
applyCode
;
}
@Override
public
void
fromMap
(
Map
map
)
{
super
.
fromMap
(
map
);
setReceiptDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_RECEIPT_DATE
))),
receiptDate
));
setApplyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_APPLY_CODE
)),
applyCode
));
}
@Override
public
Map
toMap
()
{
Map
map
=
super
.
toMap
();
map
.
put
(
FIELD_RECEIPT_DATE
,
receiptDate
);
map
.
put
(
FIELD_APPLY_CODE
,
applyCode
);
return
map
;
}
}
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