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
0ddb76ea
Commit
0ddb76ea
authored
Sep 04, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.采购收货增加含税金额,税率等
2.生成计划科重复排产
parent
51b8d56f
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1227 additions
and
787 deletions
+1227
-787
HgCgSqlConst.java
...n/java/com/baosight/hggp/hg/cg/constant/HgCgSqlConst.java
+23
-0
HGCG003.java
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG003.java
+276
-133
HGCG003B.java
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG003B.java
+254
-213
HGCG003B1.java
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG003B1.java
+146
-0
ServiceHGCG003A.java
...java/com/baosight/hggp/hg/cg/service/ServiceHGCG003A.java
+19
-10
ServiceHGCG003B.java
...java/com/baosight/hggp/hg/cg/service/ServiceHGCG003B.java
+1
-1
HGCG003.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG003.xml
+30
-18
HGCG003A.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG003A.xml
+127
-113
ServiceHGKC003.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC003.java
+40
-41
ServiceHGSC005A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC005A.java
+123
-92
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+92
-77
ServiceHGZL001B.java
...java/com/baosight/hggp/hg/zl/service/ServiceHGZL001B.java
+6
-3
HGCG003.jsp
src/main/webapp/HG/CG/HGCG003.jsp
+4
-0
HGCG003B.jsp
src/main/webapp/HG/CG/HGCG003B.jsp
+8
-1
HGKC003.js
src/main/webapp/HG/KC/HGKC003.js
+11
-22
HGKC003.jsp
src/main/webapp/HG/KC/HGKC003.jsp
+13
-11
HGKC010B.jsp
src/main/webapp/HG/KC/HGKC010B.jsp
+4
-2
HGSC005A.js
src/main/webapp/HG/SC/HGSC005A.js
+27
-32
HGSC005A.jsp
src/main/webapp/HG/SC/HGSC005A.jsp
+23
-18
No files found.
src/main/java/com/baosight/hggp/hg/cg/constant/HgCgSqlConst.java
0 → 100644
View file @
0ddb76ea
package
com
.
baosight
.
hggp
.
hg
.
cg
.
constant
;
/**
* @author:songx
* @date:2024/9/4,9:24
*/
public
class
HgCgSqlConst
{
/**
* @author:songx
* @date:2024/8/30,16:25
*/
public
class
HgCg003A
{
// 模块名称:HGCW003A
private
static
final
String
MODULE_NAME
=
"HGCG003A."
;
//
public
static
final
String
QUERY_BY_QUALITY_TESTING
=
MODULE_NAME
+
"queryByQualityTesting"
;
// 修改数量
public
static
final
String
UPDATE_QTY
=
MODULE_NAME
+
"updateQty"
;
}
}
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG003.java
View file @
0ddb76ea
...
@@ -16,12 +16,12 @@ import com.baosight.iplat4j.core.util.StringUtils;
...
@@ -16,12 +16,12 @@ import com.baosight.iplat4j.core.util.StringUtils;
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
*
* @version 1.0
* @version 1.0
* @history 2024-0
5-11 17:26:18
create
* @history 2024-0
9-04 9:15:35
create
*/
*/
public
class
HGCG003
extends
DaoEPBase
{
public
class
HGCG003
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
/* 企业编码*/
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
/* 企业编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
...
@@ -59,14 +59,16 @@ public class HGCG003 extends DaoEPBase {
...
@@ -59,14 +59,16 @@ public class HGCG003 extends DaoEPBase {
public
static
final
String
FIELD_RECEIVE_WEIGHT
=
"receiveWeight"
;
/* 收货重量*/
public
static
final
String
FIELD_RECEIVE_WEIGHT
=
"receiveWeight"
;
/* 收货重量*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
public
static
final
String
FIELD_PRICE
=
"price"
;
/* 单价*/
public
static
final
String
FIELD_PRICE
=
"price"
;
/* 单价*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 金额*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 金额(不含税金额)*/
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/*存货类型明细*/
public
static
final
String
FIELD_TAX_INCLUDE_AMOUNT
=
"taxIncludeAmount"
;
/* 含税金额*/
public
static
final
String
FIELD_IS_INVOICING
=
"isInvoicing"
;
/*是否开票 0否 1是*/
public
static
final
String
FIELD_TAX_AMOUNT
=
"taxAmount"
;
/* 税额*/
public
static
final
String
FIELD_TAX_RATE
=
"taxRate"
;
/* 税率*/
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/* 存货类型大类*/
public
static
final
String
FIELD_IS_INVOICING
=
"isInvoicing"
;
/* 是否开票*/
public
static
final
String
FIELD_SOURCE
=
"source"
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_SOURCE
=
"source"
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码*/
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
...
@@ -104,16 +106,22 @@ public class HGCG003 extends DaoEPBase {
...
@@ -104,16 +106,22 @@ public class HGCG003 extends DaoEPBase {
public
static
final
String
COL_RECEIVE_WEIGHT
=
"RECEIVE_WEIGHT"
;
/* 收货重量*/
public
static
final
String
COL_RECEIVE_WEIGHT
=
"RECEIVE_WEIGHT"
;
/* 收货重量*/
public
static
final
String
COL_STATUS
=
"STATUS"
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
public
static
final
String
COL_STATUS
=
"STATUS"
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
public
static
final
String
COL_PRICE
=
"PRICE"
;
/* 单价*/
public
static
final
String
COL_PRICE
=
"PRICE"
;
/* 单价*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 金额*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 金额(不含税金额)*/
public
static
final
String
COL_TAX_INCLUDE_AMOUNT
=
"TAX_INCLUDE_AMOUNT"
;
/* 含税金额*/
public
static
final
String
COL_TAX_AMOUNT
=
"TAX_AMOUNT"
;
/* 税额*/
public
static
final
String
COL_TAX_RATE
=
"TAX_RATE"
;
/* 税率*/
public
static
final
String
COL_INVENT_TYPE_DETAIL
=
"INVENT_TYPE_DETAIL"
;
/* 存货类型大类*/
public
static
final
String
COL_IS_INVOICING
=
"IS_INVOICING"
;
/* 是否开票*/
public
static
final
String
COL_SOURCE
=
"SOURCE"
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
public
static
final
String
COL_PROJ_CODE
=
"PROJ_CODE"
;
/* 项目编码*/
public
static
final
String
COL_PROJ_NAME
=
"PROJ_NAME"
;
/* 项目名称*/
public
static
final
String
QUERY
=
"HGCG003.query"
;
public
static
final
String
QUERY
=
"HGCG003.query"
;
public
static
final
String
COUNT
=
"HGCG003.count"
;
public
static
final
String
COUNT
=
"HGCG003.count"
;
public
static
final
String
INSERT
=
"HGCG003.insert"
;
public
static
final
String
INSERT
=
"HGCG003.insert"
;
public
static
final
String
UPDATE
=
"HGCG003.update"
;
public
static
final
String
UPDATE
=
"HGCG003.update"
;
public
static
final
String
DELETE
=
"HGCG003.delete"
;
public
static
final
String
DELETE
=
"HGCG003.delete"
;
public
static
final
String
MAX_ID
=
"HGCG003.maxId"
;
public
static
final
String
UPDATE_STATUS
=
"HGCG003.updateStatus"
;
private
Long
id
=
new
Long
(
0
);
private
Long
id
=
new
Long
(
0
);
private
String
accountCode
=
" "
;
/* 企业编码*/
private
String
accountCode
=
" "
;
/* 企业编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
...
@@ -123,7 +131,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -123,7 +131,7 @@ public class HGCG003 extends DaoEPBase {
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
Integer
deleteFlag
=
0
;
/* 0-未删除,1-已删除*/
private
Integer
deleteFlag
;
/* 0-未删除,1-已删除*/
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
receiveDate
=
" "
;
/* 收货日期*/
private
String
receiveDate
=
" "
;
/* 收货日期*/
...
@@ -150,231 +158,257 @@ public class HGCG003 extends DaoEPBase {
...
@@ -150,231 +158,257 @@ public class HGCG003 extends DaoEPBase {
private
BigDecimal
receiveUnitWeight
=
new
BigDecimal
(
0.000
);
/* 收货单重*/
private
BigDecimal
receiveUnitWeight
=
new
BigDecimal
(
0.000
);
/* 收货单重*/
private
BigDecimal
receiveWeight
=
new
BigDecimal
(
0.000
);
/* 收货重量*/
private
BigDecimal
receiveWeight
=
new
BigDecimal
(
0.000
);
/* 收货重量*/
private
Integer
status
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
private
Integer
status
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
private
BigDecimal
price
=
new
BigDecimal
(
0.000
);
/* 单价*/
private
BigDecimal
price
=
new
BigDecimal
(
"0"
);
/* 单价*/
private
BigDecimal
amount
=
new
BigDecimal
(
0.000
);
/* 金额*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 金额(不含税金额)*/
private
Integer
inventTypeDetail
;
/*存货类型明细 1:构建 2:零件*/
private
BigDecimal
taxIncludeAmount
=
new
BigDecimal
(
"0"
);
/* 含税金额*/
private
Integer
isInvoicing
=
0
;
private
BigDecimal
taxAmount
=
new
BigDecimal
(
"0"
);
/* 税额*/
private
BigDecimal
taxRate
=
new
BigDecimal
(
"0"
);
/* 税率*/
private
Integer
inventTypeDetail
;
/* 存货类型大类*/
private
Integer
isInvoicing
;
/* 是否开票*/
private
Integer
source
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
private
Integer
source
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
projName
=
" "
;
/* 项目名称*/
/**
/**
* initialize the metadata.
* initialize the metadata.
*/
*/
public
void
initMetaData
()
{
public
void
initMetaData
()
{
EiColumn
eiColumn
;
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT_CODE
);
eiColumn
.
setDescName
(
"企业编码"
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码"
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
.
setDescName
(
"0-未删除,1-已删除"
);
eiColumn
.
setDescName
(
"0-未删除,1-已删除"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
"公司编码"
);
eiColumn
.
setDescName
(
"公司编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_NAME
);
eiColumn
.
setDescName
(
"公司名称"
);
eiColumn
.
setDescName
(
"公司名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_DATE
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_DATE
);
eiColumn
.
setDescName
(
"收货日期"
);
eiColumn
.
setDescName
(
"收货日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_NO
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_NO
);
eiColumn
.
setDescName
(
"收货单号"
);
eiColumn
.
setDescName
(
"收货单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PLAN_NO
);
eiColumn
=
new
EiColumn
(
FIELD_PLAN_NO
);
eiColumn
.
setDescName
(
"计划单号"
);
eiColumn
.
setDescName
(
"计划单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CONTRACT_NO
);
eiColumn
=
new
EiColumn
(
FIELD_CONTRACT_NO
);
eiColumn
.
setDescName
(
"合同号"
);
eiColumn
.
setDescName
(
"合同号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SUP_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_SUP_CODE
);
eiColumn
.
setDescName
(
"供应商编码"
);
eiColumn
.
setDescName
(
"供应商编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SUP_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_SUP_NAME
);
eiColumn
.
setDescName
(
"供应商名称"
);
eiColumn
.
setDescName
(
"供应商名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PUR_USER_ID
);
eiColumn
=
new
EiColumn
(
FIELD_PUR_USER_ID
);
eiColumn
.
setDescName
(
"采购员"
);
eiColumn
.
setDescName
(
"采购员"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PUR_USER_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_PUR_USER_NAME
);
eiColumn
.
setDescName
(
"采购员名称"
);
eiColumn
.
setDescName
(
"采购员名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_TYPE
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_TYPE
);
eiColumn
.
setDescName
(
"存货类型"
);
eiColumn
.
setDescName
(
"存货类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_CODE
);
eiColumn
.
setDescName
(
"存货编码"
);
eiColumn
.
setDescName
(
"存货编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_NAME
);
eiColumn
.
setDescName
(
"存货名称"
);
eiColumn
.
setDescName
(
"存货名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC_ID
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC_ID
);
eiColumn
.
setDescName
(
"规格ID"
);
eiColumn
.
setDescName
(
"规格ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC
);
eiColumn
.
setDescName
(
"规格"
);
eiColumn
.
setDescName
(
"规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MATERIAL
);
eiColumn
=
new
EiColumn
(
FIELD_MATERIAL
);
eiColumn
.
setDescName
(
"材质"
);
eiColumn
.
setDescName
(
"材质"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UNIT
);
eiColumn
=
new
EiColumn
(
FIELD_UNIT
);
eiColumn
.
setDescName
(
"单位"
);
eiColumn
.
setDescName
(
"单位"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_LENGTH
);
eiColumn
=
new
EiColumn
(
FIELD_LENGTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"长度"
);
eiColumn
.
setDescName
(
"长度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_WIDTH
);
eiColumn
=
new
EiColumn
(
FIELD_WIDTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"宽度"
);
eiColumn
.
setDescName
(
"宽度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_THICK
);
eiColumn
=
new
EiColumn
(
FIELD_THICK
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"厚度"
);
eiColumn
.
setDescName
(
"厚度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_QTY
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货数量"
);
eiColumn
.
setDescName
(
"收货数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELIVER_QTY
);
eiColumn
=
new
EiColumn
(
FIELD_DELIVER_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"退货数量"
);
eiColumn
.
setDescName
(
"退货数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEPOSIT_QTY
);
eiColumn
=
new
EiColumn
(
FIELD_DEPOSIT_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"入库数量"
);
eiColumn
.
setDescName
(
"入库数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_UNIT_WEIGHT
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_UNIT_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货单重"
);
eiColumn
.
setDescName
(
"收货单重"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_WEIGHT
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货重量"
);
eiColumn
.
setDescName
(
"收货重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
.
setDescName
(
"状态:0-已收货,1-已入库,2-部分入库,3-退货"
);
eiColumn
.
setDescName
(
"状态:0-已收货,1-已入库,2-部分入库,3-退货"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRICE
);
eiColumn
=
new
EiColumn
(
FIELD_PRICE
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"单价"
);
eiColumn
.
setDescName
(
"单价"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_AMOUNT
);
eiColumn
=
new
EiColumn
(
FIELD_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"金额"
);
eiColumn
.
setDescName
(
"金额
(不含税金额)
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TAX_INCLUDE_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"含税金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TAX_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"税额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TAX_RATE
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"税率"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_TYPE_DETAIL
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_TYPE_DETAIL
);
eiColumn
.
setDescName
(
"存货类型
明细
"
);
eiColumn
.
setDescName
(
"存货类型
大类
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_IS_INVOICING
);
eiColumn
=
new
EiColumn
(
FIELD_IS_INVOICING
);
eiColumn
.
setDescName
(
"是否开票"
);
eiColumn
.
setDescName
(
"是否开票"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
.
setDescName
(
"数据来源"
);
eiColumn
.
setDescName
(
"数据来源
根据采购数据来源小代码 目前0默认采购合同,1手动录入
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_CODE
);
eiColumn
.
setDescName
(
"项目编码"
);
eiColumn
.
setDescName
(
"项目编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_NAME
);
eiColumn
.
setDescName
(
"项目名称"
);
eiColumn
.
setDescName
(
"项目名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
/**
/**
* the constructor.
* the constructor.
*/
*/
public
HGCG003
()
{
public
HGCG003
()
{
initMetaData
();
initMetaData
();
}
}
/**
/**
* get the id .
* get the id .
* @return the id
* @return the id
...
@@ -382,7 +416,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -382,7 +416,7 @@ public class HGCG003 extends DaoEPBase {
public
Long
getId
()
{
public
Long
getId
()
{
return
this
.
id
;
return
this
.
id
;
}
}
/**
/**
* set the id .
* set the id .
*
*
...
@@ -398,7 +432,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -398,7 +432,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getAccountCode
()
{
public
String
getAccountCode
()
{
return
this
.
accountCode
;
return
this
.
accountCode
;
}
}
/**
/**
* set the accountCode - 企业编码.
* set the accountCode - 企业编码.
*
*
...
@@ -414,7 +448,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -414,7 +448,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getDepCode
()
{
public
String
getDepCode
()
{
return
this
.
depCode
;
return
this
.
depCode
;
}
}
/**
/**
* set the depCode - 部门编码.
* set the depCode - 部门编码.
*
*
...
@@ -430,7 +464,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -430,7 +464,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getCreatedBy
()
{
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
return
this
.
createdBy
;
}
}
/**
/**
* set the createdBy - 记录创建者.
* set the createdBy - 记录创建者.
*
*
...
@@ -446,7 +480,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -446,7 +480,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getCreatedName
()
{
public
String
getCreatedName
()
{
return
this
.
createdName
;
return
this
.
createdName
;
}
}
/**
/**
* set the createdName - 记录创建名称.
* set the createdName - 记录创建名称.
*
*
...
@@ -462,7 +496,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -462,7 +496,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getCreatedTime
()
{
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
return
this
.
createdTime
;
}
}
/**
/**
* set the createdTime - 记录创建时间.
* set the createdTime - 记录创建时间.
*
*
...
@@ -478,7 +512,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -478,7 +512,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getUpdatedBy
()
{
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
return
this
.
updatedBy
;
}
}
/**
/**
* set the updatedBy - 记录修改者.
* set the updatedBy - 记录修改者.
*
*
...
@@ -494,7 +528,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -494,7 +528,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getUpdatedName
()
{
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
return
this
.
updatedName
;
}
}
/**
/**
* set the updatedName - 记录修改名称.
* set the updatedName - 记录修改名称.
*
*
...
@@ -510,7 +544,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -510,7 +544,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getUpdatedTime
()
{
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
return
this
.
updatedTime
;
}
}
/**
/**
* set the updatedTime - 记录修改时间.
* set the updatedTime - 记录修改时间.
*
*
...
@@ -526,7 +560,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -526,7 +560,7 @@ public class HGCG003 extends DaoEPBase {
public
Integer
getDeleteFlag
()
{
public
Integer
getDeleteFlag
()
{
return
this
.
deleteFlag
;
return
this
.
deleteFlag
;
}
}
/**
/**
* set the deleteFlag - 0-未删除,1-已删除.
* set the deleteFlag - 0-未删除,1-已删除.
*
*
...
@@ -542,7 +576,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -542,7 +576,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getCompanyCode
()
{
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
return
this
.
companyCode
;
}
}
/**
/**
* set the companyCode - 公司编码.
* set the companyCode - 公司编码.
*
*
...
@@ -558,7 +592,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -558,7 +592,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getCompanyName
()
{
public
String
getCompanyName
()
{
return
this
.
companyName
;
return
this
.
companyName
;
}
}
/**
/**
* set the companyName - 公司名称.
* set the companyName - 公司名称.
*
*
...
@@ -574,7 +608,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -574,7 +608,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getReceiveDate
()
{
public
String
getReceiveDate
()
{
return
this
.
receiveDate
;
return
this
.
receiveDate
;
}
}
/**
/**
* set the receiveDate - 收货日期.
* set the receiveDate - 收货日期.
*
*
...
@@ -590,7 +624,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -590,7 +624,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getReceiveNo
()
{
public
String
getReceiveNo
()
{
return
this
.
receiveNo
;
return
this
.
receiveNo
;
}
}
/**
/**
* set the receiveNo - 收货单号.
* set the receiveNo - 收货单号.
*
*
...
@@ -606,7 +640,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -606,7 +640,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getPlanNo
()
{
public
String
getPlanNo
()
{
return
this
.
planNo
;
return
this
.
planNo
;
}
}
/**
/**
* set the planNo - 计划单号.
* set the planNo - 计划单号.
*
*
...
@@ -622,7 +656,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -622,7 +656,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getContractNo
()
{
public
String
getContractNo
()
{
return
this
.
contractNo
;
return
this
.
contractNo
;
}
}
/**
/**
* set the contractNo - 合同号.
* set the contractNo - 合同号.
*
*
...
@@ -638,7 +672,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -638,7 +672,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getSupCode
()
{
public
String
getSupCode
()
{
return
this
.
supCode
;
return
this
.
supCode
;
}
}
/**
/**
* set the supCode - 供应商编码.
* set the supCode - 供应商编码.
*
*
...
@@ -654,7 +688,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -654,7 +688,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getSupName
()
{
public
String
getSupName
()
{
return
this
.
supName
;
return
this
.
supName
;
}
}
/**
/**
* set the supName - 供应商名称.
* set the supName - 供应商名称.
*
*
...
@@ -670,7 +704,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -670,7 +704,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getPurUserId
()
{
public
String
getPurUserId
()
{
return
this
.
purUserId
;
return
this
.
purUserId
;
}
}
/**
/**
* set the purUserId - 采购员.
* set the purUserId - 采购员.
*
*
...
@@ -686,7 +720,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -686,7 +720,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getPurUserName
()
{
public
String
getPurUserName
()
{
return
this
.
purUserName
;
return
this
.
purUserName
;
}
}
/**
/**
* set the purUserName - 采购员名称.
* set the purUserName - 采购员名称.
*
*
...
@@ -702,7 +736,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -702,7 +736,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getInventType
()
{
public
String
getInventType
()
{
return
this
.
inventType
;
return
this
.
inventType
;
}
}
/**
/**
* set the inventType - 存货类型.
* set the inventType - 存货类型.
*
*
...
@@ -718,7 +752,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -718,7 +752,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getInventCode
()
{
public
String
getInventCode
()
{
return
this
.
inventCode
;
return
this
.
inventCode
;
}
}
/**
/**
* set the inventCode - 存货编码.
* set the inventCode - 存货编码.
*
*
...
@@ -734,7 +768,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -734,7 +768,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getInventName
()
{
public
String
getInventName
()
{
return
this
.
inventName
;
return
this
.
inventName
;
}
}
/**
/**
* set the inventName - 存货名称.
* set the inventName - 存货名称.
*
*
...
@@ -750,7 +784,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -750,7 +784,7 @@ public class HGCG003 extends DaoEPBase {
public
Long
getSpecId
()
{
public
Long
getSpecId
()
{
return
this
.
specId
;
return
this
.
specId
;
}
}
/**
/**
* set the specId - 规格ID.
* set the specId - 规格ID.
*
*
...
@@ -766,7 +800,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -766,7 +800,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getSpec
()
{
public
String
getSpec
()
{
return
this
.
spec
;
return
this
.
spec
;
}
}
/**
/**
* set the spec - 规格.
* set the spec - 规格.
*
*
...
@@ -782,7 +816,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -782,7 +816,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getMaterial
()
{
public
String
getMaterial
()
{
return
this
.
material
;
return
this
.
material
;
}
}
/**
/**
* set the material - 材质.
* set the material - 材质.
*
*
...
@@ -798,7 +832,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -798,7 +832,7 @@ public class HGCG003 extends DaoEPBase {
public
String
getUnit
()
{
public
String
getUnit
()
{
return
this
.
unit
;
return
this
.
unit
;
}
}
/**
/**
* set the unit - 单位.
* set the unit - 单位.
*
*
...
@@ -814,7 +848,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -814,7 +848,7 @@ public class HGCG003 extends DaoEPBase {
public
BigDecimal
getLength
()
{
public
BigDecimal
getLength
()
{
return
this
.
length
;
return
this
.
length
;
}
}
/**
/**
* set the length - 长度.
* set the length - 长度.
*
*
...
@@ -830,7 +864,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -830,7 +864,7 @@ public class HGCG003 extends DaoEPBase {
public
BigDecimal
getWidth
()
{
public
BigDecimal
getWidth
()
{
return
this
.
width
;
return
this
.
width
;
}
}
/**
/**
* set the width - 宽度.
* set the width - 宽度.
*
*
...
@@ -846,7 +880,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -846,7 +880,7 @@ public class HGCG003 extends DaoEPBase {
public
BigDecimal
getThick
()
{
public
BigDecimal
getThick
()
{
return
this
.
thick
;
return
this
.
thick
;
}
}
/**
/**
* set the thick - 厚度.
* set the thick - 厚度.
*
*
...
@@ -862,7 +896,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -862,7 +896,7 @@ public class HGCG003 extends DaoEPBase {
public
BigDecimal
getReceiveQty
()
{
public
BigDecimal
getReceiveQty
()
{
return
this
.
receiveQty
;
return
this
.
receiveQty
;
}
}
/**
/**
* set the receiveQty - 收货数量.
* set the receiveQty - 收货数量.
*
*
...
@@ -878,7 +912,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -878,7 +912,7 @@ public class HGCG003 extends DaoEPBase {
public
BigDecimal
getDeliverQty
()
{
public
BigDecimal
getDeliverQty
()
{
return
this
.
deliverQty
;
return
this
.
deliverQty
;
}
}
/**
/**
* set the deliverQty - 退货数量.
* set the deliverQty - 退货数量.
*
*
...
@@ -894,7 +928,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -894,7 +928,7 @@ public class HGCG003 extends DaoEPBase {
public
BigDecimal
getDepositQty
()
{
public
BigDecimal
getDepositQty
()
{
return
this
.
depositQty
;
return
this
.
depositQty
;
}
}
/**
/**
* set the depositQty - 入库数量.
* set the depositQty - 入库数量.
*
*
...
@@ -910,7 +944,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -910,7 +944,7 @@ public class HGCG003 extends DaoEPBase {
public
BigDecimal
getReceiveUnitWeight
()
{
public
BigDecimal
getReceiveUnitWeight
()
{
return
this
.
receiveUnitWeight
;
return
this
.
receiveUnitWeight
;
}
}
/**
/**
* set the receiveUnitWeight - 收货单重.
* set the receiveUnitWeight - 收货单重.
*
*
...
@@ -926,7 +960,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -926,7 +960,7 @@ public class HGCG003 extends DaoEPBase {
public
BigDecimal
getReceiveWeight
()
{
public
BigDecimal
getReceiveWeight
()
{
return
this
.
receiveWeight
;
return
this
.
receiveWeight
;
}
}
/**
/**
* set the receiveWeight - 收货重量.
* set the receiveWeight - 收货重量.
*
*
...
@@ -942,7 +976,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -942,7 +976,7 @@ public class HGCG003 extends DaoEPBase {
public
Integer
getStatus
()
{
public
Integer
getStatus
()
{
return
this
.
status
;
return
this
.
status
;
}
}
/**
/**
* set the status - 状态:0-已收货,1-已入库,2-部分入库,3-退货.
* set the status - 状态:0-已收货,1-已入库,2-部分入库,3-退货.
*
*
...
@@ -951,63 +985,166 @@ public class HGCG003 extends DaoEPBase {
...
@@ -951,63 +985,166 @@ public class HGCG003 extends DaoEPBase {
public
void
setStatus
(
Integer
status
)
{
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
this
.
status
=
status
;
}
}
/**
* get the price - 单价.
* @return the price
*/
public
BigDecimal
getPrice
()
{
public
BigDecimal
getPrice
()
{
return
price
;
return
this
.
price
;
}
}
/**
* set the price - 单价.
*
* @param price - 单价
*/
public
void
setPrice
(
BigDecimal
price
)
{
public
void
setPrice
(
BigDecimal
price
)
{
this
.
price
=
price
;
this
.
price
=
price
;
}
}
/**
* get the amount - 金额(不含税金额).
* @return the amount
*/
public
BigDecimal
getAmount
()
{
public
BigDecimal
getAmount
()
{
return
amount
;
return
this
.
amount
;
}
}
/**
* set the amount - 金额(不含税金额).
*
* @param amount - 金额(不含税金额)
*/
public
void
setAmount
(
BigDecimal
amount
)
{
public
void
setAmount
(
BigDecimal
amount
)
{
this
.
amount
=
amount
;
this
.
amount
=
amount
;
}
}
/**
* get the taxIncludeAmount - 含税金额.
* @return the taxIncludeAmount
*/
public
BigDecimal
getTaxIncludeAmount
()
{
return
this
.
taxIncludeAmount
;
}
/**
* set the taxIncludeAmount - 含税金额.
*
* @param taxIncludeAmount - 含税金额
*/
public
void
setTaxIncludeAmount
(
BigDecimal
taxIncludeAmount
)
{
this
.
taxIncludeAmount
=
taxIncludeAmount
;
}
/**
* get the taxAmount - 税额.
* @return the taxAmount
*/
public
BigDecimal
getTaxAmount
()
{
return
this
.
taxAmount
;
}
/**
* set the taxAmount - 税额.
*
* @param taxAmount - 税额
*/
public
void
setTaxAmount
(
BigDecimal
taxAmount
)
{
this
.
taxAmount
=
taxAmount
;
}
/**
* get the taxRate - 税率.
* @return the taxRate
*/
public
BigDecimal
getTaxRate
()
{
return
this
.
taxRate
;
}
/**
* set the taxRate - 税率.
*
* @param taxRate - 税率
*/
public
void
setTaxRate
(
BigDecimal
taxRate
)
{
this
.
taxRate
=
taxRate
;
}
/**
* get the inventTypeDetail - 存货类型大类.
* @return the inventTypeDetail
*/
public
Integer
getInventTypeDetail
()
{
public
Integer
getInventTypeDetail
()
{
return
inventTypeDetail
;
return
this
.
inventTypeDetail
;
}
}
/**
* set the inventTypeDetail - 存货类型大类.
*
* @param inventTypeDetail - 存货类型大类
*/
public
void
setInventTypeDetail
(
Integer
inventTypeDetail
)
{
public
void
setInventTypeDetail
(
Integer
inventTypeDetail
)
{
this
.
inventTypeDetail
=
inventTypeDetail
;
this
.
inventTypeDetail
=
inventTypeDetail
;
}
}
/**
* get the isInvoicing - 是否开票.
* @return the isInvoicing
*/
public
Integer
getIsInvoicing
()
{
public
Integer
getIsInvoicing
()
{
return
isInvoicing
;
return
this
.
isInvoicing
;
}
}
/**
* set the isInvoicing - 是否开票.
*
* @param isInvoicing - 是否开票
*/
public
void
setIsInvoicing
(
Integer
isInvoicing
)
{
public
void
setIsInvoicing
(
Integer
isInvoicing
)
{
this
.
isInvoicing
=
isInvoicing
;
this
.
isInvoicing
=
isInvoicing
;
}
}
/**
* get the source - 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入.
* @return the source
*/
public
Integer
getSource
()
{
public
Integer
getSource
()
{
return
source
;
return
this
.
source
;
}
}
/**
* set the source - 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入.
*
* @param source - 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入
*/
public
void
setSource
(
Integer
source
)
{
public
void
setSource
(
Integer
source
)
{
this
.
source
=
source
;
this
.
source
=
source
;
}
}
/**
* get the projCode - 项目编码.
* @return the projCode
*/
public
String
getProjCode
()
{
public
String
getProjCode
()
{
return
projCode
;
return
this
.
projCode
;
}
}
/**
* set the projCode - 项目编码.
*
* @param projCode - 项目编码
*/
public
void
setProjCode
(
String
projCode
)
{
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
this
.
projCode
=
projCode
;
}
}
/**
* get the projName - 项目名称.
* @return the projName
*/
public
String
getProjName
()
{
public
String
getProjName
()
{
return
projName
;
return
this
.
projName
;
}
}
/**
* set the projName - 项目名称.
*
* @param projName - 项目名称
*/
public
void
setProjName
(
String
projName
)
{
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
this
.
projName
=
projName
;
}
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -1015,7 +1152,7 @@ public class HGCG003 extends DaoEPBase {
...
@@ -1015,7 +1152,7 @@ public class HGCG003 extends DaoEPBase {
*/
*/
@Override
@Override
public
void
fromMap
(
Map
map
)
{
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
...
@@ -1054,19 +1191,22 @@ public class HGCG003 extends DaoEPBase {
...
@@ -1054,19 +1191,22 @@ public class HGCG003 extends DaoEPBase {
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE
)),
price
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE
)),
price
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setTaxIncludeAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TAX_INCLUDE_AMOUNT
)),
taxIncludeAmount
));
setTaxAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TAX_AMOUNT
)),
taxAmount
));
setTaxRate
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TAX_RATE
)),
taxRate
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setIsInvoicing
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_INVOICING
)),
isInvoicing
));
setIsInvoicing
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_INVOICING
)),
isInvoicing
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
}
}
/**
/**
* set the value to Map.
* set the value to Map.
*/
*/
@Override
@Override
public
Map
toMap
()
{
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
map
.
put
(
FIELD_ACCOUNT_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
map
.
put
(
FIELD_ACCOUNT_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
...
@@ -1106,12 +1246,15 @@ public class HGCG003 extends DaoEPBase {
...
@@ -1106,12 +1246,15 @@ public class HGCG003 extends DaoEPBase {
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
map
.
put
(
FIELD_PRICE
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
FIELD_PRICE
)));
map
.
put
(
FIELD_PRICE
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
FIELD_PRICE
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_TAX_INCLUDE_AMOUNT
,
StringUtils
.
toString
(
taxIncludeAmount
,
eiMetadata
.
getMeta
(
FIELD_TAX_INCLUDE_AMOUNT
)));
map
.
put
(
FIELD_IS_INVOICING
,
StringUtils
.
toString
(
isInvoicing
,
eiMetadata
.
getMeta
(
FIELD_IS_INVOICING
)));
map
.
put
(
FIELD_TAX_AMOUNT
,
StringUtils
.
toString
(
taxAmount
,
eiMetadata
.
getMeta
(
FIELD_TAX_AMOUNT
)));
map
.
put
(
FIELD_TAX_RATE
,
StringUtils
.
toString
(
taxRate
,
eiMetadata
.
getMeta
(
FIELD_TAX_RATE
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_IS_INVOICING
,
StringUtils
.
toString
(
isInvoicing
,
eiMetadata
.
getMeta
(
FIELD_IS_INVOICING
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
map
.
put
(
FIELD_PROJ_CODE
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_PROJ_CODE
)));
map
.
put
(
FIELD_PROJ_CODE
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_PROJ_CODE
)));
map
.
put
(
FIELD_PROJ_NAME
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_PROJ_NAME
)));
map
.
put
(
FIELD_PROJ_NAME
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_PROJ_NAME
)));
return
map
;
return
map
;
}
}
}
}
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG003B.java
View file @
0ddb76ea
...
@@ -10,18 +10,18 @@ import com.baosight.iplat4j.core.util.StringUtils;
...
@@ -10,18 +10,18 @@ import com.baosight.iplat4j.core.util.StringUtils;
/**
/**
* Project: <br>
* Project: <br>
* Title:H
GCG003B
.java <br>
* Title:H
gcg003a
.java <br>
* Description: <br>
* Description: <br>
*
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
*
* @version 1.0
* @version 1.0
* @history 2024-0
7-19 16:06:22
create
* @history 2024-0
9-04 9:15:38
create
*/
*/
public
class
HGCG003B
extends
DaoEPBase
{
public
class
HGCG003B
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
/* 企业编码*/
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
/* 企业编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
...
@@ -38,6 +38,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -38,6 +38,7 @@ public class HGCG003B extends DaoEPBase {
public
static
final
String
FIELD_RECEIVE_NO
=
"receiveNo"
;
/* 收货单号*/
public
static
final
String
FIELD_RECEIVE_NO
=
"receiveNo"
;
/* 收货单号*/
public
static
final
String
FIELD_PLAN_NO
=
"planNo"
;
/* 计划单号*/
public
static
final
String
FIELD_PLAN_NO
=
"planNo"
;
/* 计划单号*/
public
static
final
String
FIELD_CONTRACT_NO
=
"contractNo"
;
/* 合同号*/
public
static
final
String
FIELD_CONTRACT_NO
=
"contractNo"
;
/* 合同号*/
public
static
final
String
FIELD_CONTRACT_DETAIL_ID
=
"contractDetailId"
;
/* 合同明细id*/
public
static
final
String
FIELD_INVENT_TYPE
=
"inventType"
;
/* 存货类型*/
public
static
final
String
FIELD_INVENT_TYPE
=
"inventType"
;
/* 存货类型*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 存货编码*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 存货编码*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 存货名称*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 存货名称*/
...
@@ -56,22 +57,16 @@ public class HGCG003B extends DaoEPBase {
...
@@ -56,22 +57,16 @@ public class HGCG003B extends DaoEPBase {
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
public
static
final
String
FIELD_PRICE
=
"price"
;
/* 单价*/
public
static
final
String
FIELD_PRICE
=
"price"
;
/* 单价*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 金额(不含税金额)*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 金额(不含税金额)*/
public
static
final
String
FIELD_TAX_INCLUDE_AMOUNT
=
"taxIncludeAmount"
;
/* 含税金额*/
public
static
final
String
FIELD_TAX_AMOUNT
=
"taxAmount"
;
/* 税额*/
public
static
final
String
FIELD_TAX_RATE
=
"taxRate"
;
/* 税率*/
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/* 存货类型大类*/
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/* 存货类型大类*/
public
static
final
String
FIELD_PRIMARY_ID
=
"primaryId"
;
/* 主表id*/
public
static
final
String
FIELD_PRIMARY_ID
=
"primaryId"
;
/* 主表id*/
public
static
final
String
FIELD_
CONTRACT_DETAIL_ID
=
"contractDetailId"
;
/* 合同明细id
*/
public
static
final
String
FIELD_
IS_INVOICING
=
"isInvoicing"
;
/* 是否开票 0否 1是
*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_CALCULATION_METHOD
=
"calculationMethod"
;
/* 计算方式 0-数量乘单价 1-重量乘单价*/
public
static
final
String
FIELD_CALCULATION_METHOD
=
"calculationMethod"
;
/* 计算方式 0-数量乘单价 1-重量乘单价*/
//页面要展示主表信息
public
static
final
String
FIELD_SUP_CODE
=
"supCode"
;
/* 供应商编码*/
public
static
final
String
FIELD_SUP_NAME
=
"supName"
;
/* 供应商名称*/
public
static
final
String
FIELD_PUR_USER_ID
=
"purUserId"
;
/* 采购员*/
public
static
final
String
FIELD_PUR_USER_NAME
=
"purUserName"
;
/* 采购员名称*/
public
static
final
String
FIELD_IS_INVOICING
=
"isInvoicing"
;
/*是否开票 0否 1是*/
public
static
final
String
FIELD_SOURCE
=
"source"
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码*/
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
...
@@ -88,6 +83,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -88,6 +83,7 @@ public class HGCG003B extends DaoEPBase {
public
static
final
String
COL_RECEIVE_NO
=
"RECEIVE_NO"
;
/* 收货单号*/
public
static
final
String
COL_RECEIVE_NO
=
"RECEIVE_NO"
;
/* 收货单号*/
public
static
final
String
COL_PLAN_NO
=
"PLAN_NO"
;
/* 计划单号*/
public
static
final
String
COL_PLAN_NO
=
"PLAN_NO"
;
/* 计划单号*/
public
static
final
String
COL_CONTRACT_NO
=
"CONTRACT_NO"
;
/* 合同号*/
public
static
final
String
COL_CONTRACT_NO
=
"CONTRACT_NO"
;
/* 合同号*/
public
static
final
String
COL_CONTRACT_DETAIL_ID
=
"CONTRACT_DETAIL_ID"
;
/* 合同明细id*/
public
static
final
String
COL_INVENT_TYPE
=
"INVENT_TYPE"
;
/* 存货类型*/
public
static
final
String
COL_INVENT_TYPE
=
"INVENT_TYPE"
;
/* 存货类型*/
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 存货编码*/
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 存货编码*/
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 存货名称*/
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 存货名称*/
...
@@ -106,18 +102,22 @@ public class HGCG003B extends DaoEPBase {
...
@@ -106,18 +102,22 @@ public class HGCG003B extends DaoEPBase {
public
static
final
String
COL_STATUS
=
"STATUS"
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
public
static
final
String
COL_STATUS
=
"STATUS"
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
public
static
final
String
COL_PRICE
=
"PRICE"
;
/* 单价*/
public
static
final
String
COL_PRICE
=
"PRICE"
;
/* 单价*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 金额(不含税金额)*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 金额(不含税金额)*/
public
static
final
String
COL_TAX_INCLUDE_AMOUNT
=
"TAX_INCLUDE_AMOUNT"
;
/* 含税金额*/
public
static
final
String
COL_TAX_AMOUNT
=
"TAX_AMOUNT"
;
/* 税额*/
public
static
final
String
COL_TAX_RATE
=
"TAX_RATE"
;
/* 税率*/
public
static
final
String
COL_INVENT_TYPE_DETAIL
=
"INVENT_TYPE_DETAIL"
;
/* 存货类型大类*/
public
static
final
String
COL_INVENT_TYPE_DETAIL
=
"INVENT_TYPE_DETAIL"
;
/* 存货类型大类*/
public
static
final
String
COL_PRIMARY_ID
=
"PRIMARY_ID"
;
/* 主表id*/
public
static
final
String
COL_PRIMARY_ID
=
"PRIMARY_ID"
;
/* 主表id*/
public
static
final
String
COL_IS_INVOICING
=
"IS_INVOICING"
;
/* 是否开票 0否 1是*/
public
static
final
String
COL_PROJ_CODE
=
"PROJ_CODE"
;
/* 项目编码*/
public
static
final
String
COL_PROJ_NAME
=
"PROJ_NAME"
;
/* 项目名称*/
public
static
final
String
COL_CALCULATION_METHOD
=
"CALCULATION_METHOD"
;
/* 计算方式 0-数量乘单价 1-重量乘单价*/
public
static
final
String
QUERY
=
"HGCG003A.query"
;
public
static
final
String
QUERY
=
"HGCG003A.query"
;
public
static
final
String
COUNT
=
"HGCG003A.count"
;
public
static
final
String
COUNT
=
"HGCG003A.count"
;
public
static
final
String
INSERT
=
"HGCG003A.insert"
;
public
static
final
String
INSERT
=
"HGCG003A.insert"
;
public
static
final
String
UPDATE
=
"HGCG003A.update"
;
public
static
final
String
UPDATE
=
"HGCG003A.update"
;
public
static
final
String
DELETE
=
"HGCG003A.delete"
;
public
static
final
String
DELETE
=
"HGCG003A.delete"
;
//入库质检单选择采购收货明细
public
static
final
String
QUERY_BY_QUALITY_TESTING
=
"HGCG003A.queryByQualityTesting"
;
private
Long
id
=
new
Long
(
0
);
private
Long
id
=
new
Long
(
0
);
private
String
accountCode
=
" "
;
/* 企业编码*/
private
String
accountCode
=
" "
;
/* 企业编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
...
@@ -127,13 +127,14 @@ public class HGCG003B extends DaoEPBase {
...
@@ -127,13 +127,14 @@ public class HGCG003B extends DaoEPBase {
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
Integer
deleteFlag
=
0
;
/* 0-未删除,1-已删除*/
private
Integer
deleteFlag
;
/* 0-未删除,1-已删除*/
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
receiveDate
=
" "
;
/* 收货日期*/
private
String
receiveDate
=
" "
;
/* 收货日期*/
private
String
receiveNo
=
" "
;
/* 收货单号*/
private
String
receiveNo
=
" "
;
/* 收货单号*/
private
String
planNo
=
" "
;
/* 计划单号*/
private
String
planNo
=
" "
;
/* 计划单号*/
private
String
contractNo
=
" "
;
/* 合同号*/
private
String
contractNo
=
" "
;
/* 合同号*/
private
Long
contractDetailId
=
new
Long
(
0
);
/* 合同明细id*/
private
String
inventType
=
" "
;
/* 存货类型*/
private
String
inventType
=
" "
;
/* 存货类型*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
String
inventName
=
" "
;
/* 存货名称*/
...
@@ -152,250 +153,248 @@ public class HGCG003B extends DaoEPBase {
...
@@ -152,250 +153,248 @@ public class HGCG003B extends DaoEPBase {
private
Integer
status
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
private
Integer
status
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
private
BigDecimal
price
=
new
BigDecimal
(
"0"
);
/* 单价*/
private
BigDecimal
price
=
new
BigDecimal
(
"0"
);
/* 单价*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 金额(不含税金额)*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 金额(不含税金额)*/
private
BigDecimal
taxIncludeAmount
=
new
BigDecimal
(
"0"
);
/* 含税金额*/
private
BigDecimal
taxAmount
=
new
BigDecimal
(
"0"
);
/* 税额*/
private
BigDecimal
taxRate
=
new
BigDecimal
(
"0"
);
/* 税率*/
private
Integer
inventTypeDetail
;
/* 存货类型大类*/
private
Integer
inventTypeDetail
;
/* 存货类型大类*/
private
Long
primaryId
=
new
Long
(
0
);
/* 主表id*/
private
Long
primaryId
=
new
Long
(
0
);
/* 主表id*/
private
Long
contractDetailId
=
new
Long
(
0
);
/* 合同明细id
*/
private
Integer
isInvoicing
;
/* 是否开票 0否 1是
*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
projName
=
" "
;
/* 项目名称*/
private
Integer
calculationMethod
;
/* 计算方式 0-数量乘单价 1-重量乘单价*/
//页面要展示主表信息
private
String
supCode
=
" "
;
/* 供应商编码*/
private
String
supName
=
" "
;
/* 供应商名称*/
private
String
purUserId
=
" "
;
/* 采购员*/
private
String
purUserName
=
" "
;
/* 采购员名称*/
private
Integer
isInvoicing
=
0
;
/*是否开票 0-否 1-是*/
private
Integer
source
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
private
Integer
calculationMethod
;
/* 状态:0-未审批,1-审核通过,2-审核未通过*/
/**
/**
* initialize the metadata.
* initialize the metadata.
*/
*/
public
void
initMetaData
()
{
public
void
initMetaData
()
{
EiColumn
eiColumn
;
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT_CODE
);
eiColumn
.
setDescName
(
"企业编码"
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码"
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
.
setDescName
(
"0-未删除,1-已删除"
);
eiColumn
.
setDescName
(
"0-未删除,1-已删除"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
"公司编码"
);
eiColumn
.
setDescName
(
"公司编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_NAME
);
eiColumn
.
setDescName
(
"公司名称"
);
eiColumn
.
setDescName
(
"公司名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_DATE
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_DATE
);
eiColumn
.
setDescName
(
"收货日期"
);
eiColumn
.
setDescName
(
"收货日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_NO
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_NO
);
eiColumn
.
setDescName
(
"收货单号"
);
eiColumn
.
setDescName
(
"收货单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PLAN_NO
);
eiColumn
=
new
EiColumn
(
FIELD_PLAN_NO
);
eiColumn
.
setDescName
(
"计划单号"
);
eiColumn
.
setDescName
(
"计划单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CONTRACT_NO
);
eiColumn
=
new
EiColumn
(
FIELD_CONTRACT_NO
);
eiColumn
.
setDescName
(
"合同号"
);
eiColumn
.
setDescName
(
"合同号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CONTRACT_DETAIL_ID
);
eiColumn
.
setDescName
(
"合同明细id"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_TYPE
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_TYPE
);
eiColumn
.
setDescName
(
"存货类型"
);
eiColumn
.
setDescName
(
"存货类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_CODE
);
eiColumn
.
setDescName
(
"存货编码"
);
eiColumn
.
setDescName
(
"存货编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_NAME
);
eiColumn
.
setDescName
(
"存货名称"
);
eiColumn
.
setDescName
(
"存货名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC_ID
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC_ID
);
eiColumn
.
setDescName
(
"规格ID"
);
eiColumn
.
setDescName
(
"规格ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC
);
eiColumn
.
setDescName
(
"规格"
);
eiColumn
.
setDescName
(
"规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MATERIAL
);
eiColumn
=
new
EiColumn
(
FIELD_MATERIAL
);
eiColumn
.
setDescName
(
"材质"
);
eiColumn
.
setDescName
(
"材质"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UNIT
);
eiColumn
=
new
EiColumn
(
FIELD_UNIT
);
eiColumn
.
setDescName
(
"单位"
);
eiColumn
.
setDescName
(
"单位"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_LENGTH
);
eiColumn
=
new
EiColumn
(
FIELD_LENGTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"长度"
);
eiColumn
.
setDescName
(
"长度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_WIDTH
);
eiColumn
=
new
EiColumn
(
FIELD_WIDTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"宽度"
);
eiColumn
.
setDescName
(
"宽度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_THICK
);
eiColumn
=
new
EiColumn
(
FIELD_THICK
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"厚度"
);
eiColumn
.
setDescName
(
"厚度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_QTY
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货数量"
);
eiColumn
.
setDescName
(
"收货数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELIVER_QTY
);
eiColumn
=
new
EiColumn
(
FIELD_DELIVER_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"退货数量"
);
eiColumn
.
setDescName
(
"退货数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEPOSIT_QTY
);
eiColumn
=
new
EiColumn
(
FIELD_DEPOSIT_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"入库数量"
);
eiColumn
.
setDescName
(
"入库数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_UNIT_WEIGHT
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_UNIT_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货单重"
);
eiColumn
.
setDescName
(
"收货单重"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_WEIGHT
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货重量"
);
eiColumn
.
setDescName
(
"收货重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
.
setDescName
(
"状态:0-已收货,1-已入库,2-部分入库,3-退货"
);
eiColumn
.
setDescName
(
"状态:0-已收货,1-已入库,2-部分入库,3-退货"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRICE
);
eiColumn
=
new
EiColumn
(
FIELD_PRICE
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"单价"
);
eiColumn
.
setDescName
(
"单价"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_AMOUNT
);
eiColumn
=
new
EiColumn
(
FIELD_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"金额(不含税金额)"
);
eiColumn
.
setDescName
(
"金额(不含税金额)"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TAX_INCLUDE_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"含税金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TAX_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"税额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TAX_RATE
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"税率"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_TYPE_DETAIL
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_TYPE_DETAIL
);
eiColumn
.
setDescName
(
"存货类型大类"
);
eiColumn
.
setDescName
(
"存货类型大类"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRIMARY_ID
);
eiColumn
=
new
EiColumn
(
FIELD_PRIMARY_ID
);
eiColumn
.
setDescName
(
"主表id"
);
eiColumn
.
setDescName
(
"主表id"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CONTRACT_DETAIL_ID
);
eiColumn
.
setDescName
(
"合同明细Id"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SUP_CODE
);
eiColumn
.
setDescName
(
"供应商编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SUP_NAME
);
eiColumn
.
setDescName
(
"供应商名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PUR_USER_ID
);
eiColumn
.
setDescName
(
"采购员"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PUR_USER_NAME
);
eiColumn
.
setDescName
(
"采购员名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_IS_INVOICING
);
eiColumn
=
new
EiColumn
(
FIELD_IS_INVOICING
);
eiColumn
.
setDescName
(
"是否开票"
);
eiColumn
.
setDescName
(
"是否开票 0否 1是"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
.
setDescName
(
"数据来源"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_CODE
);
eiColumn
.
setDescName
(
"项目编码"
);
eiColumn
.
setDescName
(
"项目编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_NAME
);
eiColumn
.
setDescName
(
"项目名称"
);
eiColumn
.
setDescName
(
"项目名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CALCULATION_METHOD
);
eiColumn
=
new
EiColumn
(
FIELD_CALCULATION_METHOD
);
eiColumn
.
setDescName
(
"计算方式 0-数量乘单价 1-重量乘单价"
);
eiColumn
.
setDescName
(
"计算方式 0-数量乘单价 1-重量乘单价"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
/**
/**
* the constructor.
* the constructor.
*/
*/
public
HGCG003B
()
{
public
HGCG003B
()
{
initMetaData
();
initMetaData
();
}
}
/**
/**
* get the id .
* get the id .
* @return the id
* @return the id
...
@@ -403,7 +402,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -403,7 +402,7 @@ public class HGCG003B extends DaoEPBase {
public
Long
getId
()
{
public
Long
getId
()
{
return
this
.
id
;
return
this
.
id
;
}
}
/**
/**
* set the id .
* set the id .
*
*
...
@@ -419,7 +418,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -419,7 +418,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getAccountCode
()
{
public
String
getAccountCode
()
{
return
this
.
accountCode
;
return
this
.
accountCode
;
}
}
/**
/**
* set the accountCode - 企业编码.
* set the accountCode - 企业编码.
*
*
...
@@ -435,7 +434,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -435,7 +434,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getDepCode
()
{
public
String
getDepCode
()
{
return
this
.
depCode
;
return
this
.
depCode
;
}
}
/**
/**
* set the depCode - 部门编码.
* set the depCode - 部门编码.
*
*
...
@@ -451,7 +450,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -451,7 +450,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getCreatedBy
()
{
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
return
this
.
createdBy
;
}
}
/**
/**
* set the createdBy - 记录创建者.
* set the createdBy - 记录创建者.
*
*
...
@@ -467,7 +466,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -467,7 +466,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getCreatedName
()
{
public
String
getCreatedName
()
{
return
this
.
createdName
;
return
this
.
createdName
;
}
}
/**
/**
* set the createdName - 记录创建名称.
* set the createdName - 记录创建名称.
*
*
...
@@ -483,7 +482,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -483,7 +482,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getCreatedTime
()
{
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
return
this
.
createdTime
;
}
}
/**
/**
* set the createdTime - 记录创建时间.
* set the createdTime - 记录创建时间.
*
*
...
@@ -499,7 +498,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -499,7 +498,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getUpdatedBy
()
{
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
return
this
.
updatedBy
;
}
}
/**
/**
* set the updatedBy - 记录修改者.
* set the updatedBy - 记录修改者.
*
*
...
@@ -515,7 +514,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -515,7 +514,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getUpdatedName
()
{
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
return
this
.
updatedName
;
}
}
/**
/**
* set the updatedName - 记录修改名称.
* set the updatedName - 记录修改名称.
*
*
...
@@ -531,7 +530,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -531,7 +530,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getUpdatedTime
()
{
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
return
this
.
updatedTime
;
}
}
/**
/**
* set the updatedTime - 记录修改时间.
* set the updatedTime - 记录修改时间.
*
*
...
@@ -547,7 +546,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -547,7 +546,7 @@ public class HGCG003B extends DaoEPBase {
public
Integer
getDeleteFlag
()
{
public
Integer
getDeleteFlag
()
{
return
this
.
deleteFlag
;
return
this
.
deleteFlag
;
}
}
/**
/**
* set the deleteFlag - 0-未删除,1-已删除.
* set the deleteFlag - 0-未删除,1-已删除.
*
*
...
@@ -563,7 +562,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -563,7 +562,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getCompanyCode
()
{
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
return
this
.
companyCode
;
}
}
/**
/**
* set the companyCode - 公司编码.
* set the companyCode - 公司编码.
*
*
...
@@ -579,7 +578,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -579,7 +578,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getCompanyName
()
{
public
String
getCompanyName
()
{
return
this
.
companyName
;
return
this
.
companyName
;
}
}
/**
/**
* set the companyName - 公司名称.
* set the companyName - 公司名称.
*
*
...
@@ -595,7 +594,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -595,7 +594,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getReceiveDate
()
{
public
String
getReceiveDate
()
{
return
this
.
receiveDate
;
return
this
.
receiveDate
;
}
}
/**
/**
* set the receiveDate - 收货日期.
* set the receiveDate - 收货日期.
*
*
...
@@ -611,7 +610,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -611,7 +610,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getReceiveNo
()
{
public
String
getReceiveNo
()
{
return
this
.
receiveNo
;
return
this
.
receiveNo
;
}
}
/**
/**
* set the receiveNo - 收货单号.
* set the receiveNo - 收货单号.
*
*
...
@@ -627,7 +626,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -627,7 +626,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getPlanNo
()
{
public
String
getPlanNo
()
{
return
this
.
planNo
;
return
this
.
planNo
;
}
}
/**
/**
* set the planNo - 计划单号.
* set the planNo - 计划单号.
*
*
...
@@ -643,7 +642,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -643,7 +642,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getContractNo
()
{
public
String
getContractNo
()
{
return
this
.
contractNo
;
return
this
.
contractNo
;
}
}
/**
/**
* set the contractNo - 合同号.
* set the contractNo - 合同号.
*
*
...
@@ -653,13 +652,29 @@ public class HGCG003B extends DaoEPBase {
...
@@ -653,13 +652,29 @@ public class HGCG003B extends DaoEPBase {
this
.
contractNo
=
contractNo
;
this
.
contractNo
=
contractNo
;
}
}
/**
/**
* get the contractDetailId - 合同明细id.
* @return the contractDetailId
*/
public
Long
getContractDetailId
()
{
return
this
.
contractDetailId
;
}
/**
* set the contractDetailId - 合同明细id.
*
* @param contractDetailId - 合同明细id
*/
public
void
setContractDetailId
(
Long
contractDetailId
)
{
this
.
contractDetailId
=
contractDetailId
;
}
/**
* get the inventType - 存货类型.
* get the inventType - 存货类型.
* @return the inventType
* @return the inventType
*/
*/
public
String
getInventType
()
{
public
String
getInventType
()
{
return
this
.
inventType
;
return
this
.
inventType
;
}
}
/**
/**
* set the inventType - 存货类型.
* set the inventType - 存货类型.
*
*
...
@@ -675,7 +690,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -675,7 +690,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getInventCode
()
{
public
String
getInventCode
()
{
return
this
.
inventCode
;
return
this
.
inventCode
;
}
}
/**
/**
* set the inventCode - 存货编码.
* set the inventCode - 存货编码.
*
*
...
@@ -691,7 +706,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -691,7 +706,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getInventName
()
{
public
String
getInventName
()
{
return
this
.
inventName
;
return
this
.
inventName
;
}
}
/**
/**
* set the inventName - 存货名称.
* set the inventName - 存货名称.
*
*
...
@@ -707,7 +722,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -707,7 +722,7 @@ public class HGCG003B extends DaoEPBase {
public
Long
getSpecId
()
{
public
Long
getSpecId
()
{
return
this
.
specId
;
return
this
.
specId
;
}
}
/**
/**
* set the specId - 规格ID.
* set the specId - 规格ID.
*
*
...
@@ -723,7 +738,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -723,7 +738,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getSpec
()
{
public
String
getSpec
()
{
return
this
.
spec
;
return
this
.
spec
;
}
}
/**
/**
* set the spec - 规格.
* set the spec - 规格.
*
*
...
@@ -739,7 +754,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -739,7 +754,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getMaterial
()
{
public
String
getMaterial
()
{
return
this
.
material
;
return
this
.
material
;
}
}
/**
/**
* set the material - 材质.
* set the material - 材质.
*
*
...
@@ -755,7 +770,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -755,7 +770,7 @@ public class HGCG003B extends DaoEPBase {
public
String
getUnit
()
{
public
String
getUnit
()
{
return
this
.
unit
;
return
this
.
unit
;
}
}
/**
/**
* set the unit - 单位.
* set the unit - 单位.
*
*
...
@@ -771,7 +786,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -771,7 +786,7 @@ public class HGCG003B extends DaoEPBase {
public
BigDecimal
getLength
()
{
public
BigDecimal
getLength
()
{
return
this
.
length
;
return
this
.
length
;
}
}
/**
/**
* set the length - 长度.
* set the length - 长度.
*
*
...
@@ -787,7 +802,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -787,7 +802,7 @@ public class HGCG003B extends DaoEPBase {
public
BigDecimal
getWidth
()
{
public
BigDecimal
getWidth
()
{
return
this
.
width
;
return
this
.
width
;
}
}
/**
/**
* set the width - 宽度.
* set the width - 宽度.
*
*
...
@@ -803,7 +818,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -803,7 +818,7 @@ public class HGCG003B extends DaoEPBase {
public
BigDecimal
getThick
()
{
public
BigDecimal
getThick
()
{
return
this
.
thick
;
return
this
.
thick
;
}
}
/**
/**
* set the thick - 厚度.
* set the thick - 厚度.
*
*
...
@@ -819,7 +834,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -819,7 +834,7 @@ public class HGCG003B extends DaoEPBase {
public
BigDecimal
getReceiveQty
()
{
public
BigDecimal
getReceiveQty
()
{
return
this
.
receiveQty
;
return
this
.
receiveQty
;
}
}
/**
/**
* set the receiveQty - 收货数量.
* set the receiveQty - 收货数量.
*
*
...
@@ -835,7 +850,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -835,7 +850,7 @@ public class HGCG003B extends DaoEPBase {
public
BigDecimal
getDeliverQty
()
{
public
BigDecimal
getDeliverQty
()
{
return
this
.
deliverQty
;
return
this
.
deliverQty
;
}
}
/**
/**
* set the deliverQty - 退货数量.
* set the deliverQty - 退货数量.
*
*
...
@@ -851,7 +866,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -851,7 +866,7 @@ public class HGCG003B extends DaoEPBase {
public
BigDecimal
getDepositQty
()
{
public
BigDecimal
getDepositQty
()
{
return
this
.
depositQty
;
return
this
.
depositQty
;
}
}
/**
/**
* set the depositQty - 入库数量.
* set the depositQty - 入库数量.
*
*
...
@@ -867,7 +882,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -867,7 +882,7 @@ public class HGCG003B extends DaoEPBase {
public
BigDecimal
getReceiveUnitWeight
()
{
public
BigDecimal
getReceiveUnitWeight
()
{
return
this
.
receiveUnitWeight
;
return
this
.
receiveUnitWeight
;
}
}
/**
/**
* set the receiveUnitWeight - 收货单重.
* set the receiveUnitWeight - 收货单重.
*
*
...
@@ -883,7 +898,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -883,7 +898,7 @@ public class HGCG003B extends DaoEPBase {
public
BigDecimal
getReceiveWeight
()
{
public
BigDecimal
getReceiveWeight
()
{
return
this
.
receiveWeight
;
return
this
.
receiveWeight
;
}
}
/**
/**
* set the receiveWeight - 收货重量.
* set the receiveWeight - 收货重量.
*
*
...
@@ -899,7 +914,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -899,7 +914,7 @@ public class HGCG003B extends DaoEPBase {
public
Integer
getStatus
()
{
public
Integer
getStatus
()
{
return
this
.
status
;
return
this
.
status
;
}
}
/**
/**
* set the status - 状态:0-已收货,1-已入库,2-部分入库,3-退货.
* set the status - 状态:0-已收货,1-已入库,2-部分入库,3-退货.
*
*
...
@@ -915,7 +930,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -915,7 +930,7 @@ public class HGCG003B extends DaoEPBase {
public
BigDecimal
getPrice
()
{
public
BigDecimal
getPrice
()
{
return
this
.
price
;
return
this
.
price
;
}
}
/**
/**
* set the price - 单价.
* set the price - 单价.
*
*
...
@@ -931,7 +946,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -931,7 +946,7 @@ public class HGCG003B extends DaoEPBase {
public
BigDecimal
getAmount
()
{
public
BigDecimal
getAmount
()
{
return
this
.
amount
;
return
this
.
amount
;
}
}
/**
/**
* set the amount - 金额(不含税金额).
* set the amount - 金额(不含税金额).
*
*
...
@@ -941,13 +956,61 @@ public class HGCG003B extends DaoEPBase {
...
@@ -941,13 +956,61 @@ public class HGCG003B extends DaoEPBase {
this
.
amount
=
amount
;
this
.
amount
=
amount
;
}
}
/**
/**
* get the taxIncludeAmount - 含税金额.
* @return the taxIncludeAmount
*/
public
BigDecimal
getTaxIncludeAmount
()
{
return
this
.
taxIncludeAmount
;
}
/**
* set the taxIncludeAmount - 含税金额.
*
* @param taxIncludeAmount - 含税金额
*/
public
void
setTaxIncludeAmount
(
BigDecimal
taxIncludeAmount
)
{
this
.
taxIncludeAmount
=
taxIncludeAmount
;
}
/**
* get the taxAmount - 税额.
* @return the taxAmount
*/
public
BigDecimal
getTaxAmount
()
{
return
this
.
taxAmount
;
}
/**
* set the taxAmount - 税额.
*
* @param taxAmount - 税额
*/
public
void
setTaxAmount
(
BigDecimal
taxAmount
)
{
this
.
taxAmount
=
taxAmount
;
}
/**
* get the taxRate - 税率.
* @return the taxRate
*/
public
BigDecimal
getTaxRate
()
{
return
this
.
taxRate
;
}
/**
* set the taxRate - 税率.
*
* @param taxRate - 税率
*/
public
void
setTaxRate
(
BigDecimal
taxRate
)
{
this
.
taxRate
=
taxRate
;
}
/**
* get the inventTypeDetail - 存货类型大类.
* get the inventTypeDetail - 存货类型大类.
* @return the inventTypeDetail
* @return the inventTypeDetail
*/
*/
public
Integer
getInventTypeDetail
()
{
public
Integer
getInventTypeDetail
()
{
return
this
.
inventTypeDetail
;
return
this
.
inventTypeDetail
;
}
}
/**
/**
* set the inventTypeDetail - 存货类型大类.
* set the inventTypeDetail - 存货类型大类.
*
*
...
@@ -963,7 +1026,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -963,7 +1026,7 @@ public class HGCG003B extends DaoEPBase {
public
Long
getPrimaryId
()
{
public
Long
getPrimaryId
()
{
return
this
.
primaryId
;
return
this
.
primaryId
;
}
}
/**
/**
* set the primaryId - 主表id.
* set the primaryId - 主表id.
*
*
...
@@ -972,88 +1035,70 @@ public class HGCG003B extends DaoEPBase {
...
@@ -972,88 +1035,70 @@ public class HGCG003B extends DaoEPBase {
public
void
setPrimaryId
(
Long
primaryId
)
{
public
void
setPrimaryId
(
Long
primaryId
)
{
this
.
primaryId
=
primaryId
;
this
.
primaryId
=
primaryId
;
}
}
/**
public
Long
getContractDetailId
()
{
* get the isInvoicing - 是否开票 0否 1是.
return
contractDetailId
;
* @return the isInvoicing
}
*/
public
void
setContractDetailId
(
Long
contractDetailId
)
{
this
.
contractDetailId
=
contractDetailId
;
}
public
String
getSupCode
()
{
return
supCode
;
}
public
void
setSupCode
(
String
supCode
)
{
this
.
supCode
=
supCode
;
}
public
String
getSupName
()
{
return
supName
;
}
public
void
setSupName
(
String
supName
)
{
this
.
supName
=
supName
;
}
public
String
getPurUserId
()
{
return
purUserId
;
}
public
void
setPurUserId
(
String
purUserId
)
{
this
.
purUserId
=
purUserId
;
}
public
String
getPurUserName
()
{
return
purUserName
;
}
public
void
setPurUserName
(
String
purUserName
)
{
this
.
purUserName
=
purUserName
;
}
public
Integer
getIsInvoicing
()
{
public
Integer
getIsInvoicing
()
{
return
isInvoicing
;
return
this
.
isInvoicing
;
}
}
/**
* set the isInvoicing - 是否开票 0否 1是.
*
* @param isInvoicing - 是否开票 0否 1是
*/
public
void
setIsInvoicing
(
Integer
isInvoicing
)
{
public
void
setIsInvoicing
(
Integer
isInvoicing
)
{
this
.
isInvoicing
=
isInvoicing
;
this
.
isInvoicing
=
isInvoicing
;
}
}
/**
public
Integer
getSource
()
{
* get the projCode - 项目编码.
return
source
;
* @return the projCode
}
*/
public
void
setSource
(
Integer
source
)
{
this
.
source
=
source
;
}
public
String
getProjCode
()
{
public
String
getProjCode
()
{
return
projCode
;
return
this
.
projCode
;
}
}
/**
* set the projCode - 项目编码.
*
* @param projCode - 项目编码
*/
public
void
setProjCode
(
String
projCode
)
{
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
this
.
projCode
=
projCode
;
}
}
/**
* get the projName - 项目名称.
* @return the projName
*/
public
String
getProjName
()
{
public
String
getProjName
()
{
return
projName
;
return
this
.
projName
;
}
}
/**
* set the projName - 项目名称.
*
* @param projName - 项目名称
*/
public
void
setProjName
(
String
projName
)
{
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
this
.
projName
=
projName
;
}
}
/**
* get the calculationMethod - 计算方式 0-数量乘单价 1-重量乘单价.
* @return the calculationMethod
*/
public
Integer
getCalculationMethod
()
{
public
Integer
getCalculationMethod
()
{
return
calculationMethod
;
return
this
.
calculationMethod
;
}
}
/**
* set the calculationMethod - 计算方式 0-数量乘单价 1-重量乘单价.
*
* @param calculationMethod - 计算方式 0-数量乘单价 1-重量乘单价
*/
public
void
setCalculationMethod
(
Integer
calculationMethod
)
{
public
void
setCalculationMethod
(
Integer
calculationMethod
)
{
this
.
calculationMethod
=
calculationMethod
;
this
.
calculationMethod
=
calculationMethod
;
}
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -1061,7 +1106,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -1061,7 +1106,7 @@ public class HGCG003B extends DaoEPBase {
*/
*/
@Override
@Override
public
void
fromMap
(
Map
map
)
{
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
...
@@ -1078,6 +1123,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -1078,6 +1123,7 @@ public class HGCG003B extends DaoEPBase {
setReceiveNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_NO
)),
receiveNo
));
setReceiveNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_NO
)),
receiveNo
));
setPlanNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_NO
)),
planNo
));
setPlanNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_NO
)),
planNo
));
setContractNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CONTRACT_NO
)),
contractNo
));
setContractNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CONTRACT_NO
)),
contractNo
));
setContractDetailId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CONTRACT_DETAIL_ID
)),
contractDetailId
));
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE
)),
inventType
));
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE
)),
inventType
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_CODE
)),
inventCode
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_CODE
)),
inventCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_NAME
)),
inventName
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_NAME
)),
inventName
));
...
@@ -1096,26 +1142,23 @@ public class HGCG003B extends DaoEPBase {
...
@@ -1096,26 +1142,23 @@ public class HGCG003B extends DaoEPBase {
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE
)),
price
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE
)),
price
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setTaxIncludeAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TAX_INCLUDE_AMOUNT
)),
taxIncludeAmount
));
setTaxAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TAX_AMOUNT
)),
taxAmount
));
setTaxRate
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TAX_RATE
)),
taxRate
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setPrimaryId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRIMARY_ID
)),
primaryId
));
setPrimaryId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRIMARY_ID
)),
primaryId
));
setContractDetailId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CONTRACT_DETAIL_ID
)),
contractDetailId
));
setSupCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SUP_CODE
)),
supCode
));
setSupName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SUP_NAME
)),
supName
));
setPurUserId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PUR_USER_ID
)),
purUserId
));
setPurUserName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PUR_USER_NAME
)),
purUserName
));
setIsInvoicing
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_INVOICING
)),
isInvoicing
));
setIsInvoicing
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_INVOICING
)),
isInvoicing
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setCalculationMethod
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CALCULATION_METHOD
)),
calculationMethod
));
setCalculationMethod
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CALCULATION_METHOD
)),
calculationMethod
));
}
}
/**
/**
* set the value to Map.
* set the value to Map.
*/
*/
@Override
@Override
public
Map
toMap
()
{
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
map
.
put
(
FIELD_ACCOUNT_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
map
.
put
(
FIELD_ACCOUNT_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
...
@@ -1133,6 +1176,7 @@ public class HGCG003B extends DaoEPBase {
...
@@ -1133,6 +1176,7 @@ public class HGCG003B extends DaoEPBase {
map
.
put
(
FIELD_RECEIVE_NO
,
StringUtils
.
toString
(
receiveNo
,
eiMetadata
.
getMeta
(
FIELD_RECEIVE_NO
)));
map
.
put
(
FIELD_RECEIVE_NO
,
StringUtils
.
toString
(
receiveNo
,
eiMetadata
.
getMeta
(
FIELD_RECEIVE_NO
)));
map
.
put
(
FIELD_PLAN_NO
,
StringUtils
.
toString
(
planNo
,
eiMetadata
.
getMeta
(
FIELD_PLAN_NO
)));
map
.
put
(
FIELD_PLAN_NO
,
StringUtils
.
toString
(
planNo
,
eiMetadata
.
getMeta
(
FIELD_PLAN_NO
)));
map
.
put
(
FIELD_CONTRACT_NO
,
StringUtils
.
toString
(
contractNo
,
eiMetadata
.
getMeta
(
FIELD_CONTRACT_NO
)));
map
.
put
(
FIELD_CONTRACT_NO
,
StringUtils
.
toString
(
contractNo
,
eiMetadata
.
getMeta
(
FIELD_CONTRACT_NO
)));
map
.
put
(
FIELD_CONTRACT_DETAIL_ID
,
StringUtils
.
toString
(
contractDetailId
,
eiMetadata
.
getMeta
(
FIELD_CONTRACT_DETAIL_ID
)));
map
.
put
(
FIELD_INVENT_TYPE
,
StringUtils
.
toString
(
inventType
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE
)));
map
.
put
(
FIELD_INVENT_TYPE
,
StringUtils
.
toString
(
inventType
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE
)));
map
.
put
(
FIELD_INVENT_CODE
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
FIELD_INVENT_CODE
)));
map
.
put
(
FIELD_INVENT_CODE
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
FIELD_INVENT_CODE
)));
map
.
put
(
FIELD_INVENT_NAME
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
FIELD_INVENT_NAME
)));
map
.
put
(
FIELD_INVENT_NAME
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
FIELD_INVENT_NAME
)));
...
@@ -1151,19 +1195,16 @@ public class HGCG003B extends DaoEPBase {
...
@@ -1151,19 +1195,16 @@ public class HGCG003B extends DaoEPBase {
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
map
.
put
(
FIELD_PRICE
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
FIELD_PRICE
)));
map
.
put
(
FIELD_PRICE
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
FIELD_PRICE
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_TAX_INCLUDE_AMOUNT
,
StringUtils
.
toString
(
taxIncludeAmount
,
eiMetadata
.
getMeta
(
FIELD_TAX_INCLUDE_AMOUNT
)));
map
.
put
(
FIELD_TAX_AMOUNT
,
StringUtils
.
toString
(
taxAmount
,
eiMetadata
.
getMeta
(
FIELD_TAX_AMOUNT
)));
map
.
put
(
FIELD_TAX_RATE
,
StringUtils
.
toString
(
taxRate
,
eiMetadata
.
getMeta
(
FIELD_TAX_RATE
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_PRIMARY_ID
,
StringUtils
.
toString
(
primaryId
,
eiMetadata
.
getMeta
(
FIELD_PRIMARY_ID
)));
map
.
put
(
FIELD_PRIMARY_ID
,
StringUtils
.
toString
(
primaryId
,
eiMetadata
.
getMeta
(
FIELD_PRIMARY_ID
)));
map
.
put
(
FIELD_CONTRACT_DETAIL_ID
,
StringUtils
.
toString
(
contractDetailId
,
eiMetadata
.
getMeta
(
FIELD_CONTRACT_DETAIL_ID
)));
map
.
put
(
FIELD_SUP_CODE
,
StringUtils
.
toString
(
supCode
,
eiMetadata
.
getMeta
(
FIELD_SUP_CODE
)));
map
.
put
(
FIELD_SUP_NAME
,
StringUtils
.
toString
(
supName
,
eiMetadata
.
getMeta
(
FIELD_SUP_NAME
)));
map
.
put
(
FIELD_PUR_USER_ID
,
StringUtils
.
toString
(
purUserId
,
eiMetadata
.
getMeta
(
FIELD_PUR_USER_ID
)));
map
.
put
(
FIELD_PUR_USER_NAME
,
StringUtils
.
toString
(
purUserName
,
eiMetadata
.
getMeta
(
FIELD_PUR_USER_NAME
)));
map
.
put
(
FIELD_IS_INVOICING
,
StringUtils
.
toString
(
isInvoicing
,
eiMetadata
.
getMeta
(
FIELD_IS_INVOICING
)));
map
.
put
(
FIELD_IS_INVOICING
,
StringUtils
.
toString
(
isInvoicing
,
eiMetadata
.
getMeta
(
FIELD_IS_INVOICING
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
map
.
put
(
FIELD_PROJ_CODE
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_PROJ_CODE
)));
map
.
put
(
FIELD_PROJ_CODE
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_PROJ_CODE
)));
map
.
put
(
FIELD_PROJ_NAME
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_PROJ_NAME
)));
map
.
put
(
FIELD_PROJ_NAME
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_PROJ_NAME
)));
map
.
put
(
FIELD_CALCULATION_METHOD
,
StringUtils
.
toString
(
calculationMethod
,
eiMetadata
.
getMeta
(
FIELD_CALCULATION_METHOD
)));
map
.
put
(
FIELD_CALCULATION_METHOD
,
StringUtils
.
toString
(
calculationMethod
,
eiMetadata
.
getMeta
(
FIELD_CALCULATION_METHOD
)));
return
map
;
return
map
;
}
}
}
}
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG003B1.java
0 → 100644
View file @
0ddb76ea
package
com
.
baosight
.
hggp
.
hg
.
cg
.
domain
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
java.math.BigDecimal
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* Project: <br>
* Title:Hgcg003a.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-09-04 9:15:38 create
*/
public
class
HGCG003B1
extends
HGCG003B
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_SUP_CODE
=
"supCode"
;
/* 供应商编码*/
public
static
final
String
FIELD_SUP_NAME
=
"supName"
;
/* 供应商名称*/
public
static
final
String
FIELD_PUR_USER_ID
=
"purUserId"
;
/* 采购员*/
public
static
final
String
FIELD_PUR_USER_NAME
=
"purUserName"
;
/* 采购员名称*/
public
static
final
String
FIELD_SOURCE
=
"source"
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
private
String
supCode
=
" "
;
/* 供应商编码*/
private
String
supName
=
" "
;
/* 供应商名称*/
private
String
purUserId
=
" "
;
/* 采购员*/
private
String
purUserName
=
" "
;
/* 采购员名称*/
private
Integer
source
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_SUP_CODE
);
eiColumn
.
setDescName
(
"供应商编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SUP_NAME
);
eiColumn
.
setDescName
(
"供应商名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PUR_USER_ID
);
eiColumn
.
setDescName
(
"采购员"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PUR_USER_NAME
);
eiColumn
.
setDescName
(
"采购员名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
.
setDescName
(
"数据来源"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HGCG003B1
()
{
super
.
initMetaData
();
initMetaData
();
}
public
String
getSupCode
()
{
return
supCode
;
}
public
void
setSupCode
(
String
supCode
)
{
this
.
supCode
=
supCode
;
}
public
String
getSupName
()
{
return
supName
;
}
public
void
setSupName
(
String
supName
)
{
this
.
supName
=
supName
;
}
public
String
getPurUserId
()
{
return
purUserId
;
}
public
void
setPurUserId
(
String
purUserId
)
{
this
.
purUserId
=
purUserId
;
}
public
String
getPurUserName
()
{
return
purUserName
;
}
public
void
setPurUserName
(
String
purUserName
)
{
this
.
purUserName
=
purUserName
;
}
public
Integer
getSource
()
{
return
source
;
}
public
void
setSource
(
Integer
source
)
{
this
.
source
=
source
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
super
.
fromMap
(
map
);
setSupCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SUP_CODE
)),
supCode
));
setSupName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SUP_NAME
)),
supName
));
setPurUserId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PUR_USER_ID
)),
purUserId
));
setPurUserName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PUR_USER_NAME
)),
purUserName
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
Map
map
=
super
.
toMap
();
map
.
put
(
FIELD_SUP_CODE
,
StringUtils
.
toString
(
supCode
,
eiMetadata
.
getMeta
(
FIELD_SUP_CODE
)));
map
.
put
(
FIELD_SUP_NAME
,
StringUtils
.
toString
(
supName
,
eiMetadata
.
getMeta
(
FIELD_SUP_NAME
)));
map
.
put
(
FIELD_PUR_USER_ID
,
StringUtils
.
toString
(
purUserId
,
eiMetadata
.
getMeta
(
FIELD_PUR_USER_ID
)));
map
.
put
(
FIELD_PUR_USER_NAME
,
StringUtils
.
toString
(
purUserName
,
eiMetadata
.
getMeta
(
FIELD_PUR_USER_NAME
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG003A.java
View file @
0ddb76ea
...
@@ -153,18 +153,24 @@ public class ServiceHGCG003A extends ServiceBase {
...
@@ -153,18 +153,24 @@ public class ServiceHGCG003A extends ServiceBase {
fCg002B
.
setPurUnitWeight
(
bcReceiveWeight
.
divide
(
bcReceiveQty
,
3
,
RoundingMode
.
HALF_UP
));
fCg002B
.
setPurUnitWeight
(
bcReceiveWeight
.
divide
(
bcReceiveQty
,
3
,
RoundingMode
.
HALF_UP
));
}
}
// 含税总金额
// 含税总金额
BigDecimal
a
mount
;
BigDecimal
taxIncludeA
mount
;
if
(
HgCgConst
.
CalculationMethod
.
S1
.
equals
(
fCg002B
.
getCalculationMethod
()))
{
if
(
HgCgConst
.
CalculationMethod
.
S1
.
equals
(
fCg002B
.
getCalculationMethod
()))
{
a
mount
=
bcReceiveWeight
.
multiply
(
dbCg002b
.
getPrice
());
taxIncludeA
mount
=
bcReceiveWeight
.
multiply
(
dbCg002b
.
getPrice
());
}
else
{
}
else
{
a
mount
=
bcReceiveQty
.
multiply
(
dbCg002b
.
getPrice
());
taxIncludeA
mount
=
bcReceiveQty
.
multiply
(
dbCg002b
.
getPrice
());
}
}
// 如果税率不为空,
总金额减去税
额
// 如果税率不为空,
计算不含税金
额
if
(
dbCg002b
.
getTaxRate
()
!=
null
)
{
if
(
dbCg002b
.
getTaxRate
()
!=
null
)
{
BigDecimal
taxRate
=
dbCg002b
.
getTaxRate
().
multiply
(
new
BigDecimal
(
"0.01"
)).
add
(
BigDecimal
.
ONE
);
BigDecimal
taxRate
=
dbCg002b
.
getTaxRate
().
multiply
(
new
BigDecimal
(
"0.01"
)).
add
(
BigDecimal
.
ONE
);
amount
=
amount
.
divide
(
taxRate
,
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
amount
=
taxIncludeAmount
.
divide
(
taxRate
,
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
taxAmount
=
taxIncludeAmount
.
subtract
(
amount
);
fCg002B
.
setAmount
(
amount
);
fCg002B
.
setTaxAmount
(
taxAmount
);
}
else
{
fCg002B
.
setAmount
(
taxIncludeAmount
);
fCg002B
.
setTaxAmount
(
BigDecimal
.
ZERO
);
}
}
fCg002B
.
set
Amount
(
a
mount
);
fCg002B
.
set
TaxIncludeAmount
(
taxIncludeA
mount
);
}
}
}
}
...
@@ -191,10 +197,13 @@ public class ServiceHGCG003A extends ServiceBase {
...
@@ -191,10 +197,13 @@ public class ServiceHGCG003A extends ServiceBase {
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
newCg003
.
setReceiveWeight
(
receiveWeight
);
newCg003
.
setReceiveWeight
(
receiveWeight
);
newCg003
.
setReceiveUnitWeight
(
receiveWeight
.
divide
(
bcReceiveQtySum
,
3
,
RoundingMode
.
HALF_UP
));
newCg003
.
setReceiveUnitWeight
(
receiveWeight
.
divide
(
bcReceiveQtySum
,
3
,
RoundingMode
.
HALF_UP
));
// 计算收货总金额
// 计算不含税总金额
BigDecimal
receiveAmount
=
fCg002Bs
.
stream
().
map
(
HGCG002B:
:
getAmount
)
newCg003
.
setAmount
(
fCg002Bs
.
stream
().
map
(
HGCG002B:
:
getAmount
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
));
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
// 计算含税总金额
newCg003
.
setAmount
(
receiveAmount
);
newCg003
.
setTaxIncludeAmount
(
fCg002Bs
.
stream
().
map
(
HGCG002B:
:
getTaxIncludeAmount
)
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
));
// 计算总税额
newCg003
.
setTaxAmount
(
fCg002Bs
.
stream
().
map
(
HGCG002B:
:
getTaxAmount
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
));
newCg003
.
setStatus
(
HGConstant
.
CgReceiveStatus
.
S_0
);
newCg003
.
setStatus
(
HGConstant
.
CgReceiveStatus
.
S_0
);
newCg003
.
setDeleteFlag
(
DeleteFlagEnum
.
UN_REMOVE
.
getCode
());
newCg003
.
setDeleteFlag
(
DeleteFlagEnum
.
UN_REMOVE
.
getCode
());
newCg003
.
setSource
(
HGConstant
.
CgSource
.
DEFAULT
);
newCg003
.
setSource
(
HGConstant
.
CgSource
.
DEFAULT
);
...
...
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG003B.java
View file @
0ddb76ea
...
@@ -94,7 +94,7 @@ public class ServiceHGCG003B extends ServiceBase {
...
@@ -94,7 +94,7 @@ public class ServiceHGCG003B extends ServiceBase {
try
{
try
{
List
<
HGCG003B
>
fCg003Bs
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGCG003B
.
class
);
List
<
HGCG003B
>
fCg003Bs
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGCG003B
.
class
);
HGCG003
cg003
=
HGCGTools
.
HgCg003
.
get
(
fCg003Bs
.
get
(
0
).
getPrimaryId
());
HGCG003
cg003
=
HGCGTools
.
HgCg003
.
get
(
fCg003Bs
.
get
(
0
).
getPrimaryId
());
if
(
cg003
.
getSource
()
.
intValue
()
==
HGConstant
.
CgSource
.
DEFAULT
)
{
if
(
cg003
.
getSource
()
==
HGConstant
.
CgSource
.
DEFAULT
)
{
// 采购收货DB数据
// 采购收货DB数据
Map
<
Long
,
HGCG003B
>
dbCg003BMap
=
HGCGUtils
.
HgCg003B
.
lockGetDataEp
(
fCg003Bs
);
Map
<
Long
,
HGCG003B
>
dbCg003BMap
=
HGCGUtils
.
HgCg003B
.
lockGetDataEp
(
fCg003Bs
);
// 采购合同DB数据
// 采购合同DB数据
...
...
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG003.xml
View file @
0ddb76ea
...
@@ -38,14 +38,17 @@
...
@@ -38,14 +38,17 @@
DEPOSIT_QTY as "depositQty",
<!-- 入库数量 -->
DEPOSIT_QTY as "depositQty",
<!-- 入库数量 -->
RECEIVE_UNIT_WEIGHT as "receiveUnitWeight",
<!-- 收货单重 -->
RECEIVE_UNIT_WEIGHT as "receiveUnitWeight",
<!-- 收货单重 -->
RECEIVE_WEIGHT as "receiveWeight",
<!-- 收货重量 -->
RECEIVE_WEIGHT as "receiveWeight",
<!-- 收货重量 -->
PRICE as "price",
<!-- 单价 -->
STATUS as "status",
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
AMOUNT as "amount",
<!-- 金额 -->
PRICE as "price",
<!-- 单价 -->
STATUS as "status",
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
AMOUNT as "amount",
<!-- 金额(不含税金额) -->
SOURCE as "source",
<!-- 数据来源 根据采购数据来源小代码 目前默认0采购合同,1手工录入 -->
TAX_INCLUDE_AMOUNT as "taxIncludeAmount",
<!-- 含税金额 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型明细 -->
TAX_AMOUNT as "taxAmount",
<!-- 税额 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
TAX_RATE as "taxRate",
<!-- 税率 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
IS_INVOICING as "isInvoicing"
IS_INVOICING as "isInvoicing",
<!-- 是否开票 -->
SOURCE as "source",
<!-- 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName"
<!-- 项目名称 -->
</sql>
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
...
@@ -183,7 +186,6 @@
...
@@ -183,7 +186,6 @@
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCG003 (
INSERT INTO ${hggpSchema}.HGCG003 (
ID,
ACCOUNT_CODE,
<!-- 企业编码 -->
ACCOUNT_CODE,
<!-- 企业编码 -->
DEP_CODE,
<!-- 部门编码 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_BY,
<!-- 记录创建者 -->
...
@@ -211,23 +213,30 @@
...
@@ -211,23 +213,30 @@
WIDTH,
<!-- 宽度 -->
WIDTH,
<!-- 宽度 -->
THICK,
<!-- 厚度 -->
THICK,
<!-- 厚度 -->
RECEIVE_QTY,
<!-- 收货数量 -->
RECEIVE_QTY,
<!-- 收货数量 -->
DELIVER_QTY,
<!-- 退货数量 -->
DEPOSIT_QTY,
<!-- 入库数量 -->
RECEIVE_UNIT_WEIGHT,
<!-- 收货单重 -->
RECEIVE_UNIT_WEIGHT,
<!-- 收货单重 -->
RECEIVE_WEIGHT,
<!-- 收货重量 -->
RECEIVE_WEIGHT,
<!-- 收货重量 -->
PRICE,
<!-- 单价 -->
AMOUNT,
<!-- 金额 -->
STATUS,
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
STATUS,
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
INVENT_TYPE_DETAIL,
PRICE,
<!-- 单价 -->
IS_INVOICING,
AMOUNT,
<!-- 金额(不含税金额) -->
TAX_INCLUDE_AMOUNT,
<!-- 含税金额 -->
TAX_AMOUNT,
<!-- 税额 -->
TAX_RATE,
<!-- 税率 -->
INVENT_TYPE_DETAIL,
<!-- 存货类型大类 -->
IS_INVOICING,
<!-- 是否开票 -->
SOURCE,
<!-- 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
PROJ_NAME
<!-- 项目名称 -->
SOURCE
<!-- 数据来源 根据采购数据来源小代码 目前默认0采购合同,1手工录入 -->
) VALUES (
) VALUES (
#
id#,#
accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#deleteFlag#, #companyCode#, #companyName#, #receiveDate#, #receiveNo#,
#deleteFlag#, #companyCode#, #companyName#, #receiveDate#, #receiveNo#,
#planNo#, #contractNo#, #supCode#, #supName#, #purUserId#, #purUserName#,
#planNo#, #contractNo#, #supCode#, #supName#, #purUserId#, #purUserName#,
#inventType#, #inventCode#, #inventName#, #specId#, #spec#, #material#,
#inventType#, #inventCode#, #inventName#, #specId#, #spec#, #material#,
#unit#, #length#, #width#, #thick#, #receiveQty#, #receiveUnitWeight#,
#unit#, #length#, #width#, #thick#, #receiveQty#, #deliverQty#, #depositQty#,
#receiveWeight#,#price#, #amount#, #status#,#inventTypeDetail#,#isInvoicing#,#projCode#,#projName#, #source#
#receiveUnitWeight#, #receiveWeight#, #status#, #price#, #amount#,
#taxIncludeAmount#, #taxAmount#, #taxRate#, #inventTypeDetail#, #isInvoicing#,
#source#, #projCode#, #projName#
)
)
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
SELECT MAX(ID) AS "id" FROM ${hggpSchema}.HGCG003
SELECT MAX(ID) AS "id" FROM ${hggpSchema}.HGCG003
...
@@ -270,6 +279,9 @@
...
@@ -270,6 +279,9 @@
RECEIVE_QTY = #receiveQty#,
<!-- 收货数量 -->
RECEIVE_QTY = #receiveQty#,
<!-- 收货数量 -->
RECEIVE_WEIGHT = #receiveWeight#,
<!-- 收货重量 -->
RECEIVE_WEIGHT = #receiveWeight#,
<!-- 收货重量 -->
AMOUNT = #amount#,
<!-- 金额 -->
AMOUNT = #amount#,
<!-- 金额 -->
TAX_INCLUDE_AMOUNT = #taxIncludeAmount#,
<!-- 含税金额 -->
TAX_AMOUNT = #taxAmount#,
<!-- 税额 -->
TAX_RATE = #taxRate#,
<!-- 税率 -->
RECEIVE_DATE = REPLACE(#receiveDate#, '-', ''),
<!-- 收货日期 -->
RECEIVE_DATE = REPLACE(#receiveDate#, '-', ''),
<!-- 收货日期 -->
PROJ_CODE = #projCode#,
<!-- 项目编号 -->
PROJ_CODE = #projCode#,
<!-- 项目编号 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
...
...
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG003A.xml
View file @
0ddb76ea
...
@@ -2,6 +2,53 @@
...
@@ -2,6 +2,53 @@
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap
namespace=
"HGCG003A"
>
<sqlMap
namespace=
"HGCG003A"
>
<sql
id=
"column"
>
ID as "id",
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
RECEIVE_DATE as "receiveDate",
<!-- 收货日期 -->
RECEIVE_NO as "receiveNo",
<!-- 收货单号 -->
PLAN_NO as "planNo",
<!-- 计划单号 -->
CONTRACT_NO as "contractNo",
<!-- 合同号 -->
CONTRACT_DETAIL_ID as "contractDetailId",
<!-- 合同明细id -->
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
SPEC_ID as "specId",
<!-- 规格ID -->
SPEC as "spec",
<!-- 规格 -->
MATERIAL as "material",
<!-- 材质 -->
UNIT as "unit",
<!-- 单位 -->
LENGTH as "length",
<!-- 长度 -->
WIDTH as "width",
<!-- 宽度 -->
THICK as "thick",
<!-- 厚度 -->
RECEIVE_QTY as "receiveQty",
<!-- 收货数量 -->
DELIVER_QTY as "deliverQty",
<!-- 退货数量 -->
DEPOSIT_QTY as "depositQty",
<!-- 入库数量 -->
RECEIVE_UNIT_WEIGHT as "receiveUnitWeight",
<!-- 收货单重 -->
RECEIVE_WEIGHT as "receiveWeight",
<!-- 收货重量 -->
STATUS as "status",
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
PRICE as "price",
<!-- 单价 -->
AMOUNT as "amount",
<!-- 金额(不含税金额) -->
TAX_INCLUDE_AMOUNT as "taxIncludeAmount",
<!-- 含税金额 -->
TAX_AMOUNT as "taxAmount",
<!-- 税额 -->
TAX_RATE as "taxRate",
<!-- 税率 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
PRIMARY_ID as "primaryId",
<!-- 主表id -->
IS_INVOICING as "isInvoicing",
<!-- 是否开票 0否 1是 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
CALCULATION_METHOD as "calculationMethod"
<!-- 计算方式 0-数量乘单价 1-重量乘单价 -->
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
AND DELETE_FLAG = 0
<include
refid=
"idCondition"
/>
<include
refid=
"idCondition"
/>
...
@@ -142,121 +189,87 @@
...
@@ -142,121 +189,87 @@
UPDATED_TIME = #updatedTime#
UPDATED_TIME = #updatedTime#
</sql>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<sql
id=
"orderBy"
>
resultClass=
"com.baosight.hggp.hg.cg.domain.HGCG003B"
>
<dynamic
prepend=
"ORDER BY"
>
SELECT
<isNotEmpty
property=
"orderBy"
>
ID as "id",
$orderBy$
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
</isNotEmpty>
DEP_CODE as "depCode",
<!-- 部门编码 -->
<isEmpty
property=
"orderBy"
>
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
ID asc
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
</isEmpty>
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
</dynamic>
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
</sql>
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
RECEIVE_DATE as "receiveDate",
<!-- 收货日期 -->
RECEIVE_NO as "receiveNo",
<!-- 收货单号 -->
PLAN_NO as "planNo",
<!-- 计划单号 -->
CONTRACT_NO as "contractNo",
<!-- 合同号 -->
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
SPEC_ID as "specId",
<!-- 规格ID -->
SPEC as "spec",
<!-- 规格 -->
MATERIAL as "material",
<!-- 材质 -->
UNIT as "unit",
<!-- 单位 -->
LENGTH as "length",
<!-- 长度 -->
WIDTH as "width",
<!-- 宽度 -->
THICK as "thick",
<!-- 厚度 -->
RECEIVE_QTY as "receiveQty",
<!-- 收货数量 -->
DELIVER_QTY as "deliverQty",
<!-- 退货数量 -->
DEPOSIT_QTY as "depositQty",
<!-- 入库数量 -->
RECEIVE_UNIT_WEIGHT as "receiveUnitWeight",
<!-- 收货单重 -->
RECEIVE_WEIGHT as "receiveWeight",
<!-- 收货重量 -->
STATUS as "status",
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
PRICE as "price",
<!-- 单价 -->
AMOUNT as "amount",
<!-- 金额(不含税金额) -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
PRIMARY_ID as "primaryId",
<!-- 主表id -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
CALCULATION_METHOD as "calculationMethod",
<!-- 计算方式 0-数量乘单价 1-重量乘单价 -->
CONTRACT_DETAIL_ID as "contractDetailId",
<!-- 合同明细id -->
IS_INVOICING as "isInvoicing"
FROM ${hggpSchema}.HGCG003A WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.cg.domain.HGCG003B"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGCG003A
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"orderBy"
/>
</select>
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGCG003A WHERE 1=1
SELECT COUNT(*) FROM ${hggpSchema}.HGCG003A
<include
refid=
"condition"
/>
WHERE 1=1
</select>
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCG003A (ID,
INSERT INTO ${hggpSchema}.HGCG003A (
ACCOUNT_CODE,
<!-- 企业编码 -->
ACCOUNT_CODE,
<!-- 企业编码 -->
DEP_CODE,
<!-- 部门编码 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
CREATED_TIME,
<!-- 记录创建时间 -->
UPDATED_BY,
<!-- 记录修改者 -->
DELETE_FLAG,
<!-- 0-未删除,1-已删除 -->
UPDATED_NAME,
<!-- 记录修改名称 -->
COMPANY_CODE,
<!-- 公司编码 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
COMPANY_NAME,
<!-- 公司名称 -->
DELETE_FLAG,
<!-- 0-未删除,1-已删除 -->
RECEIVE_DATE,
<!-- 收货日期 -->
COMPANY_CODE,
<!-- 公司编码 -->
RECEIVE_NO,
<!-- 收货单号 -->
COMPANY_NAME,
<!-- 公司名称 -->
PLAN_NO,
<!-- 计划单号 -->
RECEIVE_DATE,
<!-- 收货日期 -->
CONTRACT_NO,
<!-- 合同号 -->
RECEIVE_NO,
<!-- 收货单号 -->
CONTRACT_DETAIL_ID,
<!-- 合同明细id -->
PLAN_NO,
<!-- 计划单号 -->
INVENT_TYPE,
<!-- 存货类型 -->
CONTRACT_NO,
<!-- 合同号 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_NAME,
<!-- 存货名称 -->
INVENT_CODE,
<!-- 存货编码 -->
SPEC_ID,
<!-- 规格ID -->
INVENT_NAME,
<!-- 存货名称 -->
SPEC,
<!-- 规格 -->
SPEC_ID,
<!-- 规格ID -->
MATERIAL,
<!-- 材质 -->
SPEC,
<!-- 规格 -->
UNIT,
<!-- 单位 -->
MATERIAL,
<!-- 材质 -->
LENGTH,
<!-- 长度 -->
UNIT,
<!-- 单位 -->
WIDTH,
<!-- 宽度 -->
LENGTH,
<!-- 长度 -->
THICK,
<!-- 厚度 -->
WIDTH,
<!-- 宽度 -->
RECEIVE_QTY,
<!-- 收货数量 -->
THICK,
<!-- 厚度 -->
DELIVER_QTY,
<!-- 退货数量 -->
RECEIVE_QTY,
<!-- 收货数量 -->
DEPOSIT_QTY,
<!-- 入库数量 -->
DELIVER_QTY,
<!-- 退货数量 -->
RECEIVE_UNIT_WEIGHT,
<!-- 收货单重 -->
DEPOSIT_QTY,
<!-- 入库数量 -->
RECEIVE_WEIGHT,
<!-- 收货重量 -->
RECEIVE_UNIT_WEIGHT,
<!-- 收货单重 -->
STATUS,
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
RECEIVE_WEIGHT,
<!-- 收货重量 -->
PRICE,
<!-- 单价 -->
STATUS,
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
AMOUNT,
<!-- 金额(不含税金额) -->
PRICE,
<!-- 单价 -->
TAX_INCLUDE_AMOUNT,
<!-- 含税金额 -->
AMOUNT,
<!-- 金额(不含税金额) -->
TAX_AMOUNT,
<!-- 税额 -->
INVENT_TYPE_DETAIL,
<!-- 存货类型大类 -->
TAX_RATE,
<!-- 税率 -->
PRIMARY_ID,
<!-- 主表id -->
INVENT_TYPE_DETAIL,
<!-- 存货类型大类 -->
CONTRACT_DETAIL_ID,
<!-- 合同明细id -->
PRIMARY_ID,
<!-- 主表id -->
PROJ_CODE,
<!-- 项目编码 -->
IS_INVOICING,
<!-- 是否开票 0否 1是 -->
PROJ_NAME,
<!-- 项目名称 -->
PROJ_CODE,
<!-- 项目编码 -->
CALCULATION_METHOD,
PROJ_NAME,
<!-- 项目名称 -->
IS_INVOICING
CALCULATION_METHOD
<!-- 计算方式 0-数量乘单价 1-重量乘单价 -->
)
) VALUES (
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#,
#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #deleteFlag#,
#updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #receiveDate#, #receiveNo#, #planNo#, #contractNo#,
#companyCode#, #companyName#, #receiveDate#, #receiveNo#, #planNo#, #contractNo#,
#inventType#, #inventCode#, #inventName#, #specId#, #spec#, #material#, #unit#, #length#, #width#, #thick#,
#contractDetailId#, #inventType#, #inventCode#, #inventName#, #specId#, #spec#,
#receiveQty#, #deliverQty#, #depositQty#, #receiveUnitWeight#, #receiveWeight#, #status#, #price#, #amount#,
#material#, #unit#, #length#, #width#, #thick#, #receiveQty#, #deliverQty#,
#inventTypeDetail#, #primaryId#, #contractDetailId#,#projCode#,#projName#,#calculationMethod#,#isInvoicing#)
#depositQty#, #receiveUnitWeight#, #receiveWeight#, #status#, #price#, #amount#,
</insert>
#taxIncludeAmount#, #taxAmount#, #taxRate#, #inventTypeDetail#, #primaryId#,
#isInvoicing#, #projCode#, #projName#, #calculationMethod#
)
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
DELETE FROM ${hggpSchema}.HGCG003A WHERE
DELETE FROM ${hggpSchema}.HGCG003A WHERE ID = #id#
ID = #id#
</delete>
</delete>
<update
id=
"update"
>
<update
id=
"update"
>
...
@@ -286,6 +299,9 @@
...
@@ -286,6 +299,9 @@
STATUS = #status#,
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
STATUS = #status#,
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
PRICE = #price#,
<!-- 单价 -->
PRICE = #price#,
<!-- 单价 -->
AMOUNT = #amount#,
<!-- 金额(不含税金额) -->
AMOUNT = #amount#,
<!-- 金额(不含税金额) -->
TAX_INCLUDE_AMOUNT = #taxIncludeAmount#,
<!-- 含税金额 -->
TAX_AMOUNT = #taxAmount#,
<!-- 税额 -->
TAX_RATE = #taxRate#,
<!-- 税率 -->
INVENT_TYPE_DETAIL = #inventTypeDetail#,
<!-- 存货类型大类 -->
INVENT_TYPE_DETAIL = #inventTypeDetail#,
<!-- 存货类型大类 -->
PRIMARY_ID = #primaryId#,
<!-- 主表id -->
PRIMARY_ID = #primaryId#,
<!-- 主表id -->
CONTRACT_DETAIL_ID = #contractDetailId#,
<!-- 合同明细id -->
CONTRACT_DETAIL_ID = #contractDetailId#,
<!-- 合同明细id -->
...
@@ -305,7 +321,6 @@
...
@@ -305,7 +321,6 @@
WHERE RECEIVE_NO = #receiveNo#
WHERE RECEIVE_NO = #receiveNo#
</update>
</update>
<!-- 行锁 -->
<!-- 行锁 -->
<update
id=
"lock"
>
<update
id=
"lock"
>
UPDATE ${hggpSchema}.HGCG003A
UPDATE ${hggpSchema}.HGCG003A
...
@@ -314,7 +329,6 @@
...
@@ -314,7 +329,6 @@
<include
refid=
"idCondition"
/>
<include
refid=
"idCondition"
/>
</update>
</update>
<!-- 修改数量 -->
<!-- 修改数量 -->
<update
id=
"updateQty"
>
<update
id=
"updateQty"
>
UPDATE ${hggpSchema}.HGCG003A
UPDATE ${hggpSchema}.HGCG003A
...
@@ -345,7 +359,7 @@
...
@@ -345,7 +359,7 @@
WHERE ID = #id#
WHERE ID = #id#
</update>
</update>
<select
id=
"queryByQualityTesting"
resultClass=
"com.baosight.hggp.hg.cg.domain.HGCG003B"
>
<select
id=
"queryByQualityTesting"
resultClass=
"com.baosight.hggp.hg.cg.domain.HGCG003B
1
"
>
SELECT
SELECT
a.ID as "id",
a.ID as "id",
a.ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
a.ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC003.java
View file @
0ddb76ea
...
@@ -137,67 +137,66 @@ public class ServiceHGKC003 extends ServiceBase {
...
@@ -137,67 +137,66 @@ public class ServiceHGKC003 extends ServiceBase {
String
.
format
(
"入库单【%s】已删除,请勿重复操作"
,
fKc003
.
getDepositNo
()));
String
.
format
(
"入库单【%s】已删除,请勿重复操作"
,
fKc003
.
getDepositNo
()));
AssertUtils
.
isTrue
(
fKc003
.
getSubmitStatus
().
compareTo
(
HGConstant
.
ProductStatus
.
WTJ
)
==
0
,
"入库单"
+
fKc003
.
getDepositNo
()+
"未提交,请勿退回"
);
AssertUtils
.
isTrue
(
fKc003
.
getSubmitStatus
().
compareTo
(
HGConstant
.
ProductStatus
.
WTJ
)
==
0
,
"入库单"
+
fKc003
.
getDepositNo
()+
"未提交,请勿退回"
);
}
}
/**
/**
* 修改提交状态
* 修改提交状态
*
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
public
EiInfo
updateSubmitStatus
(
EiInfo
inInfo
){
public
EiInfo
updateSubmitStatus
(
EiInfo
inInfo
)
{
int
i
=
0
;
try
{
try
{
HGKC003
hgkc003
=
new
HGKC003
();
List
<
HGKC003
>
fKc003s
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGKC003
.
class
);
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
HGKC003
fKc003
:
fKc003s
)
{
for
(
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
HGKC003
dbKc003
=
HGKCTools
.
HgKc003
.
getId
(
fKc003
.
getId
());
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
// 查看是否能获取到账期,获取不到就提示
hgkc003
.
fromMap
(
map
);
HGCWTools
.
HgCw001
.
getAccountPeriod
(
dbKc003
.
getCompanyCode
(),
dbKc003
.
getDepositDate
());
hgkc003
=
HGKCTools
.
HgKc003
.
getId
(
hgkc003
.
getId
());
dbKc003
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
YTJ
);
//查看是否能获取到账期,获取不到就提示
HGCWTools
.
HgCw001
.
getAccountPeriod
(
hgkc003
.
getCompanyCode
(),
hgkc003
.
getDepositDate
());
hgkc003
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
YTJ
);
// 校验数据
// 校验数据
this
.
checkSubmitData
(
hgk
c003
);
this
.
checkSubmitData
(
dbK
c003
);
DaoUtils
.
update
(
HGKC003
.
UPDATE_SUBMIT_STATUS
,
dbKc003
);
DaoUtils
.
update
(
HGKC003
.
UPDATE_SUBMIT_STATUS
,
hgkc003
);
// 修改计划生产任务完工数量
//修改计划生产任务完工数量
HGSCTools
.
complete
(
dbKc003
.
getQualityId
(),
dbKc003
.
getInvQty
().
intValue
(),
dbKc003
.
getRectificationId
(),
HGSCTools
.
complete
(
hgkc003
.
getQualityId
(),
hgkc003
.
getInvQty
().
intValue
(),
hgkc003
.
getRectificationId
(),
HGConstant
.
StorageType
.
RK
);
HGConstant
.
StorageType
.
RK
);
// 修改库存
// 修改库存
HGKCUtils
.
HgKc010
.
updateInv
(
hgkc003
.
getCompanyCode
(),
hgkc003
.
getWhCode
(),
hgk
c003
.
getPrdtCode
(),
HGKCUtils
.
HgKc010
.
updateInv
(
dbKc003
.
getCompanyCode
(),
dbKc003
.
getWhCode
(),
dbK
c003
.
getPrdtCode
(),
hgkc003
.
getInvQty
(),
hgk
c003
.
getInvWeight
());
dbKc003
.
getInvQty
(),
dbK
c003
.
getInvWeight
());
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsgByKey
(
"ep.1000"
,
new
String
[]{
String
.
valueOf
(
i
),
I18nMessages
.
getText
(
"label.update"
,
"提交"
)});
inInfo
.
setMsg
(
"提交成功!"
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
e
.
printStackTrace
();
LogUtils
.
setMsg
(
inInfo
,
e
,
"提交失败"
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
ErrorCodeUtils
.
handleUpdateException
(
inInfo
,
i
,
e
);
logError
(
"修改失败"
,
e
.
getMessage
());
return
inInfo
;
}
}
return
inInfo
;
return
inInfo
;
}
}
private
void
checkSubmitData
(
HGKC003
hgkc003
)
{
/**
AssertUtils
.
isEmpty
(
hgkc003
.
getWhCode
(),
"仓库编码不能为空!"
);
* 数据校验
AssertUtils
.
isEmpty
(
hgkc003
.
getWhName
(),
"仓库名称不能为空!"
);
*
AssertUtils
.
isNull
(
hgkc003
.
getPrice
(),
"单价不能为空!"
);
* @param dbKc003
*/
private
void
checkSubmitData
(
HGKC003
dbKc003
)
{
AssertUtils
.
isEmpty
(
dbKc003
.
getWhCode
(),
"仓库编码不能为空!"
);
AssertUtils
.
isEmpty
(
dbKc003
.
getWhName
(),
"仓库名称不能为空!"
);
AssertUtils
.
isNull
(
dbKc003
.
getPrice
(),
"单价不能为空!"
);
//判断是不是最前工序,如果不是得提示
//判断是不是最前工序,如果不是得提示
List
<
HGPZ005A
>
hgpz005AList
=
HGPZTools
.
HgPz005A
.
queryByInventCode
(
hgk
c003
.
getPrdtCode
());
List
<
HGPZ005A
>
hgpz005AList
=
HGPZTools
.
HgPz005A
.
queryByInventCode
(
dbK
c003
.
getPrdtCode
());
List
<
HGKC003
>
hgkc003List
=
HGKCTools
.
HgKc003
.
getByQualityId
(
hgk
c003
.
getQualityId
());
List
<
HGKC003
>
hgkc003List
=
HGKCTools
.
HgKc003
.
getByQualityId
(
dbK
c003
.
getQualityId
());
//当前提交的工序信息
//当前提交的工序信息
HGPZ005A
hgpz005AFilter
=
hgpz005AList
.
stream
().
filter
(
o
->
o
.
getInventCode
().
equals
(
hgkc003
.
getPrdtCode
())).
findAny
().
orElse
(
null
);
HGPZ005A
hgpz005AFilter
=
hgpz005AList
.
stream
().
filter
(
o
->
o
.
getInventCode
().
equals
(
dbKc003
.
getPrdtCode
()))
AssertUtils
.
isNull
(
hgpz005AFilter
,
"此物料没有配置工序!"
);
.
findAny
().
orElse
(
null
);
for
(
HGKC003
entity
:
hgkc003List
){
AssertUtils
.
isNull
(
hgpz005AFilter
,
"此物料没有配置工序!"
);
if
(
entity
.
getId
().
intValue
()
!=
hgkc003
.
getId
().
intValue
()){
for
(
HGKC003
entity
:
hgkc003List
)
{
if
(
entity
.
getId
().
intValue
()
!=
dbKc003
.
getId
().
intValue
())
{
//遍历相同质检单的工序
//遍历相同质检单的工序
HGPZ005A
hgpz005A
=
hgpz005AList
.
stream
().
filter
(
o
->
o
.
getInventCode
().
equals
(
entity
.
getPrdtCode
())).
findAny
().
orElse
(
null
);
HGPZ005A
hgpz005A
=
hgpz005AList
.
stream
().
filter
(
o
->
o
.
getInventCode
().
equals
(
entity
.
getPrdtCode
()))
.
findAny
().
orElse
(
null
);
//如果未提交的生产单有比当前更靠前的工序,则需要提示
//如果未提交的生产单有比当前更靠前的工序,则需要提示
AssertUtils
.
isTrue
(
hgpz005A
.
getProcessOrder
().
compareTo
(
hgpz005AFilter
.
getProcessOrder
())
<
0
,
hgpz005A
.
getInventCode
()+
"的工序“"
+
hgpz005A
.
getProcessName
()+
"“未提交,生产入库号为:"
+
entity
.
getDepositNo
());
AssertUtils
.
isTrue
(
hgpz005A
.
getProcessOrder
().
compareTo
(
hgpz005AFilter
.
getProcessOrder
())
<
0
,
hgpz005A
.
getInventCode
()
+
"的工序“"
+
hgpz005A
.
getProcessName
()
+
"“未提交,生产入库号为:"
+
entity
.
getDepositNo
());
}
}
}
}
}
}
/**
/**
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC005A.java
View file @
0ddb76ea
...
@@ -20,96 +20,127 @@ import java.util.*;
...
@@ -20,96 +20,127 @@ import java.util.*;
* @Date 2024/5/6 19:48
* @Date 2024/5/6 19:48
*/
*/
public
class
ServiceHGSC005A
extends
ServiceBase
{
public
class
ServiceHGSC005A
extends
ServiceBase
{
@OperationLogAnnotation
(
operModul
=
"生产计划详情"
,
operType
=
"查询"
,
operDesc
=
"初始化页面"
)
/**
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
* 初始化
try
{
*
String
planCode
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
0
,
HGSC005A
.
FIELD_plan_code
);
* @param inInfo
HGSC005
hgsc005
=
HGSCTools
.
THGSC005
.
queryByPlanCode
(
planCode
);
* @return
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
0
,
HGSC005
.
FIELD_is_schedule
,
hgsc005
.
getIsSchedule
());
*/
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGSC005A
().
eiMetadata
);
@OperationLogAnnotation
(
operModul
=
"生产计划详情"
,
operType
=
"查询"
,
operDesc
=
"初始化页面"
)
// inInfo = super.query(inInfo, HGSC005A.QUERY, new HGSC005A());
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PLAN_PROCESS_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){{
try
{
put
(
HGSC005A
.
FIELD_plan_code
,
planCode
);
String
planCode
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
0
,
HGSC005A
.
FIELD_plan_code
);
}},
false
);
HGSC005
hgsc005
=
HGSCTools
.
THGSC005
.
queryByPlanCode
(
planCode
);
CommonMethod
.
comboBoxDefaultValue
(
inInfo
,
DdynamicEnum
.
PLAN_PROCESS_BLOCK_ID
.
getBlockId
(),
"全部"
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
0
,
HGSC005
.
FIELD_is_schedule
,
hgsc005
.
getIsSchedule
());
}
catch
(
PlatException
e
)
{
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGSC005A
().
eiMetadata
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PLAN_PROCESS_BLOCK_ID
),
}
new
HashMap
<
String
,
Object
>()
{{
return
inInfo
;
put
(
HGSC005A
.
FIELD_plan_code
,
planCode
);
}
}},
false
);
CommonMethod
.
comboBoxDefaultValue
(
inInfo
,
DdynamicEnum
.
PLAN_PROCESS_BLOCK_ID
.
getBlockId
(),
"全部"
);
@OperationLogAnnotation
(
operModul
=
"生产计划详情"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
}
catch
(
PlatException
e
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
try
{
}
inInfo
=
super
.
query
(
inInfo
,
HGSC005A
.
QUERY
,
new
HGSC005A
());
return
inInfo
;
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
}
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
/**
}
* 修改数据
return
inInfo
;
*
}
* @param inInfo
* @return
@OperationLogAnnotation
(
operModul
=
"生产计划详情"
,
operType
=
"保存"
,
operDesc
=
"保存计划详情"
)
*/
public
EiInfo
update
(
EiInfo
inInfo
){
@OperationLogAnnotation
(
operModul
=
"生产计划详情"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
try
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
List
<
HGSC005A
>
hgsc005AList
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGSC005A
.
class
);
try
{
// 数据校验
inInfo
=
super
.
query
(
inInfo
,
HGSC005A
.
QUERY
,
new
HGSC005A
());
this
.
checkSaveData
(
hgsc005AList
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
// 保存数据
inInfo
.
setMsg
(
"查询成功!"
);
this
.
saveData
(
hgsc005AList
);
}
catch
(
PlatException
e
)
{
inInfo
=
this
.
query
(
inInfo
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
}
inInfo
.
setMsg
(
"操作成功!本次对["
+
hgsc005AList
.
size
()
+
"]条数据保存成功!"
);
return
inInfo
;
}
catch
(
Exception
e
)
{
}
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
}
/**
return
inInfo
;
* 修改数据
}
*
* @param inInfo
private
void
saveData
(
List
<
HGSC005A
>
hgsc005AList
)
{
* @return
for
(
HGSC005A
hgsc005a
:
hgsc005AList
)
{
*/
DaoUtils
.
update
(
HGSC005A
.
UPDATE_PLAN_DATE
,
hgsc005a
);
@OperationLogAnnotation
(
operModul
=
"生产计划详情"
,
operType
=
"保存"
,
operDesc
=
"保存计划详情"
)
}
public
EiInfo
update
(
EiInfo
inInfo
)
{
}
try
{
List
<
HGSC005A
>
hgsc005AList
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGSC005A
.
class
);
private
void
checkSaveData
(
List
<
HGSC005A
>
hgsc005AList
)
{
// 数据校验
AssertUtils
.
isEmpty
(
hgsc005AList
,
"保存数据为空,请勾选后修改保存!"
);
this
.
checkSaveData
(
hgsc005AList
);
AssertUtils
.
isEmpty
(
hgsc005AList
.
get
(
0
).
getPlanCode
(),
"生产计划详情数据异常,请联系管理员!"
);
// 保存数据
HGSC005
hgsc005
=
HGSCTools
.
THGSC005
.
queryByPlanCode
(
hgsc005AList
.
get
(
0
).
getPlanCode
());
this
.
saveData
(
hgsc005AList
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc005
.
getCommitStatus
()),
"生产计划状态异常,请联系管理员!"
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
AssertUtils
.
isTrue
(
hgsc005
.
getCommitStatus
().
compareTo
(
CommonConstant
.
YesNo
.
NO_0
)>
0
,
"生产计划已提交,不可修改!"
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
hgsc005AList
.
size
()
+
"]条数据保存成功!"
);
for
(
HGSC005A
hgsc005a
:
hgsc005AList
)
{
}
catch
(
Exception
e
)
{
AssertUtils
.
isEmpty
(
hgsc005a
.
getPlanStartDate
(),
String
.
format
(
"产品[%s]计划开工日期为空!"
,
hgsc005a
.
getProductName
()));
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
AssertUtils
.
isEmpty
(
hgsc005a
.
getPlanEndDate
(),
String
.
format
(
"产品[%s]计划完工日期为空!"
,
hgsc005a
.
getProductName
()));
}
AssertUtils
.
isTrue
(
DateUtil
.
toDate
(
hgsc005a
.
getPlanEndDate
(),
DateUtil
.
DATE10_PATTERN
).
compareTo
(
return
inInfo
;
DateUtil
.
toDate
(
hgsc005a
.
getPlanStartDate
(),
DateUtil
.
DATE10_PATTERN
))<
0
,
String
.
format
(
"产品[%s]计划完工日期不能大于开工日期!"
,
hgsc005a
.
getProductName
()));
}
}
private
void
saveData
(
List
<
HGSC005A
>
hgsc005AList
)
{
}
for
(
HGSC005A
hgsc005a
:
hgsc005AList
)
{
DaoUtils
.
update
(
HGSC005A
.
UPDATE_PLAN_DATE
,
hgsc005a
);
@OperationLogAnnotation
(
operModul
=
"生产计划详情"
,
operType
=
"排产"
,
operDesc
=
"排产"
)
}
public
EiInfo
schedule
(
EiInfo
inInfo
)
{
}
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
private
void
checkSaveData
(
List
<
HGSC005A
>
hgsc005AList
)
{
String
planCode
=
MapUtils
.
getString
(
queryMap
,
"planCode"
);
AssertUtils
.
isEmpty
(
hgsc005AList
,
"保存数据为空,请勾选后修改保存!"
);
HGSC005
hgsc005
=
HGSCTools
.
THGSC005
.
queryByPlanCode
(
planCode
);
AssertUtils
.
isEmpty
(
hgsc005AList
.
get
(
0
).
getPlanCode
(),
"生产计划详情数据异常,请联系管理员!"
);
this
.
checkScheduleData
(
hgsc005
);
HGSC005
hgsc005
=
HGSCTools
.
THGSC005
.
queryByPlanCode
(
hgsc005AList
.
get
(
0
).
getPlanCode
());
int
count
=
HGSCTools
.
THGSC005A
.
schedule
(
planCode
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc005
.
getCommitStatus
()),
"生产计划状态异常,请联系管理员!"
);
hgsc005
.
setIsSchedule
(
CommonConstant
.
YesNo
.
YES_1
);
DaoUtils
.
update
(
HGSC005
.
UPDATE
,
hgsc005
);
AssertUtils
.
isTrue
(
hgsc005
.
getCommitStatus
().
compareTo
(
CommonConstant
.
YesNo
.
NO_0
)
>
0
,
"生产计划已提交,不可修改!"
);
inInfo
=
this
.
query
(
inInfo
);
for
(
HGSC005A
hgsc005a
:
hgsc005AList
)
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
AssertUtils
.
isEmpty
(
hgsc005a
.
getPlanStartDate
(),
inInfo
.
setMsg
(
"操作成功!本次对["
+
count
+
"]条数据排产成功!"
);
String
.
format
(
"产品[%s]计划开工日期为空!"
,
hgsc005a
.
getProductName
()));
}
catch
(
Exception
e
)
{
AssertUtils
.
isEmpty
(
hgsc005a
.
getPlanEndDate
(),
String
.
format
(
"产品[%s]计划完工日期为空!"
,
hgsc005a
.
getProductName
()));
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"操作失败"
);
AssertUtils
.
isTrue
(
DateUtil
.
toDate
(
hgsc005a
.
getPlanEndDate
(),
DateUtil
.
DATE10_PATTERN
).
compareTo
(
}
DateUtil
.
toDate
(
hgsc005a
.
getPlanStartDate
(),
DateUtil
.
DATE10_PATTERN
))
<
0
,
return
inInfo
;
String
.
format
(
"产品[%s]计划完工日期不能大于开工日期!"
,
hgsc005a
.
getProductName
()));
}
}
}
private
void
checkScheduleData
(
HGSC005
hgsc005
)
{
AssertUtils
.
isTrue
(
hgsc005
.
getIsSchedule
().
compareTo
(
CommonConstant
.
YesNo
.
YES_1
)==
0
,
"当前计划已排产,请手动调整计划!"
);
/**
}
* 排产
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"生产计划详情"
,
operType
=
"排产"
,
operDesc
=
"排产"
)
public
EiInfo
schedule
(
EiInfo
inInfo
)
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
planCode
=
MapUtils
.
getString
(
queryMap
,
"planCode"
);
HGSC005
dbSc005
=
HGSCTools
.
THGSC005
.
queryByPlanCode
(
planCode
);
this
.
checkScheduleData
(
dbSc005
);
int
count
=
HGSCTools
.
THGSC005A
.
schedule
(
planCode
);
dbSc005
.
setIsSchedule
(
CommonConstant
.
YesNo
.
YES_1
);
DaoUtils
.
update
(
HGSC005
.
UPDATE
,
dbSc005
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
count
+
"]条数据排产成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"操作失败"
);
}
return
inInfo
;
}
/**
* 排产校验数据
*
* @param dbSc005
*/
private
void
checkScheduleData
(
HGSC005
dbSc005
)
{
// AssertUtils.isEquals(hgsc005.getIsSchedule(), CommonConstant.YesNo.YES_1, "当前计划已排产,请手动调整计划!");
}
}
}
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
0ddb76ea
...
@@ -980,91 +980,106 @@ public class HGSCTools {
...
@@ -980,91 +980,106 @@ public class HGSCTools {
return
result
;
return
result
;
}
}
//存货档案单位转换(米)
private
final
static
BigDecimal
unitConver
=
new
BigDecimal
(
1000
);
//基础工时
private
final
static
BigDecimal
baseWorkHour
=
new
BigDecimal
(
8
);
private
final
static
Integer
finishDateDiffDay
=
new
Integer
(-
3
);
/**
/**
* 校验修改的数据
* 校验修改的数据
*
*
* @param hgsc005a
* @param hgsc005a
*/
*/
private
static
void
checkUpdateData
(
HGSC005A
hgsc005a
)
{
private
static
void
checkUpdateData
(
HGSC005A
hgsc005a
)
{
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc005a
.
getMatId
())||
hgsc005a
.
getMatId
()<=
0
,
"物料清单ID不能为空!"
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc005a
.
getMatId
())
||
hgsc005a
.
getMatId
()
<=
0
,
"物料清单ID不能为空!"
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc005a
.
getMatDetailId
())||
hgsc005a
.
getMatDetailId
()<=
0
,
"物料清单明细ID不能为空!"
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc005a
.
getMatDetailId
())
||
hgsc005a
.
getMatDetailId
()
<=
0
,
AssertUtils
.
isEmpty
(
hgsc005a
.
getProductCode
(),
"产品编码不能为空!"
);
"物料清单明细ID不能为空!"
);
AssertUtils
.
isEmpty
(
hgsc005a
.
getProductName
(),
"产品名称不能为空!"
);
AssertUtils
.
isEmpty
(
hgsc005a
.
getProductCode
(),
"产品编码不能为空!"
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc005a
.
getTechFlowId
())||
hgsc005a
.
getTechFlowId
()<=
0
,
"工艺流程ID不能为空!"
);
AssertUtils
.
isEmpty
(
hgsc005a
.
getProductName
(),
"产品名称不能为空!"
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc005a
.
getQuantity
())||
hgsc005a
.
getQuantity
()<=
0
,
"数量不能为空!"
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc005a
.
getTechFlowId
())
||
hgsc005a
.
getTechFlowId
()
<=
0
,
}
"工艺流程ID不能为空!"
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc005a
.
getQuantity
())
||
hgsc005a
.
getQuantity
()
<=
0
,
"数量不能为空!"
);
public
static
List
<
HGSC005A
>
constructObj
(
List
<
HGSC005A
>
hgsc005aList
,
HGSC005
hgsc005
){
hgsc005aList
.
forEach
(
hgsc005a
->{
hgsc005a
.
setPlanCode
(
hgsc005
.
getPlanCode
());
hgsc005a
.
setCompanyCode
(
hgsc005
.
getCompanyCode
());
hgsc005a
.
setCompanyName
(
hgsc005
.
getCompanyName
());
hgsc005a
.
setDepCode
(
hgsc005
.
getDepCode
());
hgsc005a
.
setDepName
(
hgsc005
.
getDepName
());
hgsc005a
.
setProjCode
(
hgsc005
.
getProjCode
());
hgsc005a
.
setProjName
(
hgsc005
.
getProjName
());
hgsc005a
.
setFinishDate
(
hgsc005
.
getFinishDate
());
hgsc005a
.
setUnfinishQuantity
(
hgsc005a
.
getQuantity
());
hgsc005a
.
setFinishQuantity
(
0
);
hgsc005a
.
setUnfinishWeight
(
hgsc005a
.
getTotalWeight
());
});
return
hgsc005aList
;
}
public
static
HGSC005A
constructObj
(
HGSC005A
hgsc005a
){
HGSC005
hgsc005
=
THGSC005
.
queryByMatId
(
hgsc005a
.
getMatId
());
hgsc005a
.
setPlanCode
(
hgsc005
.
getPlanCode
());
hgsc005a
.
setCompanyCode
(
hgsc005
.
getCompanyCode
());
hgsc005a
.
setCompanyName
(
hgsc005
.
getCompanyName
());
hgsc005a
.
setDepCode
(
hgsc005
.
getDepCode
());
hgsc005a
.
setDepName
(
hgsc005
.
getDepName
());
hgsc005a
.
setProjCode
(
hgsc005
.
getProjCode
());
hgsc005a
.
setProjName
(
hgsc005
.
getProjName
());
hgsc005a
.
setFinishDate
(
hgsc005
.
getFinishDate
());
hgsc005a
.
setUnfinishQuantity
(
hgsc005a
.
getQuantity
());
hgsc005a
.
setFinishQuantity
(
0
);
hgsc005a
.
setUnfinishWeight
(
hgsc005a
.
getTotalWeight
());
return
hgsc005a
;
}
}
//存货档案单位转换(米)
public
static
List
<
HGSC005A
>
constructObj
(
List
<
HGSC005A
>
hgsc005aList
,
HGSC005
hgsc005
)
{
private
final
static
BigDecimal
unitConver
=
new
BigDecimal
(
1000
);
hgsc005aList
.
forEach
(
hgsc005a
->
{
hgsc005a
.
setPlanCode
(
hgsc005
.
getPlanCode
());
//基础工时
hgsc005a
.
setCompanyCode
(
hgsc005
.
getCompanyCode
());
private
final
static
BigDecimal
baseWorkHour
=
new
BigDecimal
(
8
);
hgsc005a
.
setCompanyName
(
hgsc005
.
getCompanyName
());
hgsc005a
.
setDepCode
(
hgsc005
.
getDepCode
());
private
final
static
Integer
finishDateDiffDay
=
new
Integer
(-
3
);
hgsc005a
.
setDepName
(
hgsc005
.
getDepName
());
hgsc005a
.
setProjCode
(
hgsc005
.
getProjCode
());
public
static
int
schedule
(
String
planCode
)
{
hgsc005a
.
setProjName
(
hgsc005
.
getProjName
());
List
<
HGSC005A
>
hgsc005AList
=
queryByPlanCode
(
planCode
);
hgsc005a
.
setFinishDate
(
hgsc005
.
getFinishDate
());
hgsc005a
.
setUnfinishQuantity
(
hgsc005a
.
getQuantity
());
hgsc005a
.
setFinishQuantity
(
0
);
hgsc005a
.
setUnfinishWeight
(
hgsc005a
.
getTotalWeight
());
});
return
hgsc005aList
;
}
public
static
HGSC005A
constructObj
(
HGSC005A
hgsc005a
)
{
HGSC005
hgsc005
=
THGSC005
.
queryByMatId
(
hgsc005a
.
getMatId
());
hgsc005a
.
setPlanCode
(
hgsc005
.
getPlanCode
());
hgsc005a
.
setCompanyCode
(
hgsc005
.
getCompanyCode
());
hgsc005a
.
setCompanyName
(
hgsc005
.
getCompanyName
());
hgsc005a
.
setDepCode
(
hgsc005
.
getDepCode
());
hgsc005a
.
setDepName
(
hgsc005
.
getDepName
());
hgsc005a
.
setProjCode
(
hgsc005
.
getProjCode
());
hgsc005a
.
setProjName
(
hgsc005
.
getProjName
());
hgsc005a
.
setFinishDate
(
hgsc005
.
getFinishDate
());
hgsc005a
.
setUnfinishQuantity
(
hgsc005a
.
getQuantity
());
hgsc005a
.
setFinishQuantity
(
0
);
hgsc005a
.
setUnfinishWeight
(
hgsc005a
.
getTotalWeight
());
return
hgsc005a
;
}
/**
* 排产
*
* @param planCode
* @return
*/
public
static
int
schedule
(
String
planCode
)
{
List
<
HGSC005A
>
hgsc005AList
=
queryByPlanCode
(
planCode
);
// hgsc005AList.sort(Comparator.comparing(HGSC005A::getProductType).thenComparing(HGSC005A::getProcessOrder,Comparator.reverseOrder()));
// hgsc005AList.sort(Comparator.comparing(HGSC005A::getProductType).thenComparing(HGSC005A::getProcessOrder,Comparator.reverseOrder()));
//通过工序编码查询工序设置
//通过工序编码查询工序设置
List
<
String
>
processCodes
=
hgsc005AList
.
stream
().
map
(
HGSC005A:
:
getProcessCode
).
collect
(
Collectors
.
toList
());
List
<
String
>
processCodes
=
hgsc005AList
.
stream
().
map
(
HGSC005A:
:
getProcessCode
)
List
<
HGSJ001
>
hgsj001List
=
HGSJTools
.
Hgsj001
.
queryByProcessCodes
(
processCodes
);
.
collect
(
Collectors
.
toList
());
//通过产品编码查询存货档案
List
<
HGSJ001
>
hgsj001List
=
HGSJTools
.
Hgsj001
.
queryByProcessCodes
(
processCodes
);
List
<
String
>
productCodes
=
hgsc005AList
.
stream
().
map
(
HGSC005A:
:
getProductCode
).
collect
(
Collectors
.
toList
());
//通过产品编码查询存货档案
List
<
HGPZ005
>
hgpz005List
=
HGPZTools
.
HgPz005
.
listByInventCodes
(
productCodes
);
List
<
String
>
productCodes
=
hgsc005AList
.
stream
().
map
(
HGSC005A:
:
getProductCode
)
//通过存货档案工序ID查询存货档案工序
.
collect
(
Collectors
.
toList
());
List
<
Long
>
inventProcessIds
=
hgsc005AList
.
stream
().
map
(
HGSC005A:
:
getInventProcessId
).
collect
(
Collectors
.
toList
());
List
<
HGPZ005
>
hgpz005List
=
HGPZTools
.
HgPz005
.
listByInventCodes
(
productCodes
);
List
<
HGPZ005A
>
hgpz005AList
=
HGPZTools
.
HgPz005A
.
queryByIds
(
inventProcessIds
);
//通过存货档案工序ID查询存货档案工序
//筛选计划构建,并按产品分组
List
<
Long
>
inventProcessIds
=
hgsc005AList
.
stream
().
map
(
HGSC005A:
:
getInventProcessId
)
Map
<
String
,
List
<
HGSC005A
>>
strctMap
=
hgsc005AList
.
stream
().
filter
(
o
->
o
.
getProductType
().
compareTo
(
ProductTypeEnum
.
STRUCT
.
getCode
())==
0
).
collect
(
Collectors
.
groupingBy
(
HGSC005A:
:
getProductCode
));
.
collect
(
Collectors
.
toList
());
List
<
HGSC005A
>
partList
=
hgsc005AList
.
stream
().
filter
(
o
->
o
.
getProductType
().
compareTo
(
ProductTypeEnum
.
PART
.
getCode
())==
0
).
collect
(
Collectors
.
toList
());
List
<
HGPZ005A
>
hgpz005AList
=
HGPZTools
.
HgPz005A
.
queryByIds
(
inventProcessIds
);
String
minDate
=
""
;
//筛选计划构建,并按产品分组
BigDecimal
remainder
=
new
BigDecimal
(
0
);
Map
<
String
,
List
<
HGSC005A
>>
strctMap
=
hgsc005AList
.
stream
()
for
(
String
key
:
strctMap
.
keySet
())
{
.
filter
(
o
->
o
.
getProductType
().
compareTo
(
ProductTypeEnum
.
STRUCT
.
getCode
())
==
0
)
String
endDate
=
""
;
.
collect
(
Collectors
.
groupingBy
(
HGSC005A:
:
getProductCode
));
for
(
HGSC005A
planInfo
:
strctMap
.
get
(
key
)){
List
<
HGSC005A
>
partList
=
hgsc005AList
.
stream
()
remainder
=
calculateWordHour
(
planInfo
,
hgsj001List
,
hgpz005List
,
hgpz005AList
,
endDate
,
remainder
);
.
filter
(
o
->
o
.
getProductType
().
compareTo
(
ProductTypeEnum
.
PART
.
getCode
())
==
0
)
if
(
StringUtils
.
isBlank
(
minDate
)){
.
collect
(
Collectors
.
toList
());
minDate
=
planInfo
.
getPlanStartDate
();
String
minDate
=
""
;
}
else
{
BigDecimal
remainder
=
new
BigDecimal
(
0
);
minDate
=
DateUtil
.
toDate
(
planInfo
.
getPlanStartDate
(),
DateUtil
.
DATE10_PATTERN
).
compareTo
(
DateUtil
.
toDate
(
minDate
,
DateUtil
.
DATE10_PATTERN
))
<=
0
?
planInfo
.
getPlanStartDate
():
minDate
;
for
(
String
key
:
strctMap
.
keySet
())
{
}
String
endDate
=
""
;
DaoUtils
.
update
(
HGSC005A
.
UPDATE
,
planInfo
);
for
(
HGSC005A
planInfo
:
strctMap
.
get
(
key
))
{
}
remainder
=
calculateWordHour
(
planInfo
,
hgsj001List
,
hgpz005List
,
hgpz005AList
,
endDate
,
remainder
);
}
if
(
StringUtils
.
isBlank
(
minDate
))
{
for
(
HGSC005A
planInfo
:
partList
){
minDate
=
planInfo
.
getPlanStartDate
();
}
else
{
minDate
=
DateUtil
.
toDate
(
planInfo
.
getPlanStartDate
(),
DateUtil
.
DATE10_PATTERN
)
.
compareTo
(
DateUtil
.
toDate
(
minDate
,
DateUtil
.
DATE10_PATTERN
))
<=
0
?
planInfo
.
getPlanStartDate
()
:
minDate
;
}
DaoUtils
.
update
(
HGSC005A
.
UPDATE
,
planInfo
);
}
}
for
(
HGSC005A
planInfo
:
partList
)
{
remainder
=
calculateWordHour
(
planInfo
,
hgsj001List
,
hgpz005List
,
hgpz005AList
,
minDate
,
remainder
);
remainder
=
calculateWordHour
(
planInfo
,
hgsj001List
,
hgpz005List
,
hgpz005AList
,
minDate
,
remainder
);
minDate
=
DateUtil
.
toDate
(
planInfo
.
getPlanStartDate
(),
DateUtil
.
DATE10_PATTERN
).
compareTo
(
DateUtil
.
toDate
(
minDate
,
DateUtil
.
DATE10_PATTERN
))
<=
0
?
planInfo
.
getPlanStartDate
():
minDate
;
minDate
=
DateUtil
.
toDate
(
planInfo
.
getPlanStartDate
(),
DateUtil
.
DATE10_PATTERN
).
compareTo
(
DateUtil
.
toDate
(
minDate
,
DateUtil
.
DATE10_PATTERN
))
<=
0
?
planInfo
.
getPlanStartDate
():
minDate
;
DaoUtils
.
update
(
HGSC005A
.
UPDATE
,
planInfo
);
DaoUtils
.
update
(
HGSC005A
.
UPDATE
,
planInfo
);
...
...
src/main/java/com/baosight/hggp/hg/zl/service/ServiceHGZL001B.java
View file @
0ddb76ea
...
@@ -4,11 +4,14 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
...
@@ -4,11 +4,14 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.cg.constant.HgCgSqlConst
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.cg.domain.HGCG003B
;
import
com.baosight.hggp.hg.cg.domain.HGCG003B
;
import
com.baosight.hggp.hg.cg.domain.HGCG003B1
;
import
com.baosight.hggp.hg.cg.tools.HGCGTools
;
import
com.baosight.hggp.hg.cg.tools.HGCGTools
;
import
com.baosight.hggp.hg.cg.utils.HGCGUtils
;
import
com.baosight.hggp.hg.cg.utils.HGCGUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.zl.domain.HGZL001
;
import
com.baosight.hggp.hg.zl.domain.HGZL001
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.BeanUtils
;
import
com.baosight.hggp.util.BeanUtils
;
...
@@ -49,7 +52,7 @@ public class ServiceHGZL001B extends ServiceEPBase {
...
@@ -49,7 +52,7 @@ public class ServiceHGZL001B extends ServiceEPBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG003
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG003
B1
().
eiMetadata
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
...
@@ -67,9 +70,9 @@ public class ServiceHGZL001B extends ServiceEPBase {
...
@@ -67,9 +70,9 @@ public class ServiceHGZL001B extends ServiceEPBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
queryMap
.
put
(
HGCG003
B
.
FIELD_SOURCE
,
HGConstant
.
CgSource
.
DEFAULT
);
queryMap
.
put
(
HGCG003
.
FIELD_SOURCE
,
HGConstant
.
CgSource
.
DEFAULT
);
queryMap
.
put
(
HGCG003B
.
FIELD_STATUS
,
HGConstant
.
CgReceiveStatus
.
S_0
);
queryMap
.
put
(
HGCG003B
.
FIELD_STATUS
,
HGConstant
.
CgReceiveStatus
.
S_0
);
inInfo
=
super
.
query
(
inInfo
,
H
GCG003B
.
QUERY_BY_QUALITY_TESTING
,
new
HGCG003B
());
inInfo
=
super
.
query
(
inInfo
,
H
gCgSqlConst
.
HgCg003A
.
QUERY_BY_QUALITY_TESTING
,
new
HGCG003B1
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
}
...
...
src/main/webapp/HG/CG/HGCG003.jsp
View file @
0ddb76ea
...
@@ -75,6 +75,10 @@
...
@@ -75,6 +75,10 @@
sumType=
"page"
/>
sumType=
"page"
/>
<EF:EFColumn
ename=
"amount"
cname=
"金额"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:C3}"
<EF:EFColumn
ename=
"amount"
cname=
"金额"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:C3}"
sumType=
"page"
/>
sumType=
"page"
/>
<EF:EFColumn
ename=
"taxAmount"
cname=
"税额"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:C3}"
sumType=
"page"
/>
<EF:EFColumn
ename=
"taxIncludeAmount"
cname=
"含税金额"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:C3}"
sumType=
"page"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"140"
align=
"center"
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"140"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
...
...
src/main/webapp/HG/CG/HGCG003B.jsp
View file @
0ddb76ea
...
@@ -56,8 +56,15 @@
...
@@ -56,8 +56,15 @@
<EF:EFCodeOption
codeName=
"hggp.cg.calculationMethod"
/>
<EF:EFCodeOption
codeName=
"hggp.cg.calculationMethod"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"price"
cname=
"单价"
width=
"120"
align=
"right"
format=
"{0:C3}"
required=
"true"
/>
<EF:EFColumn
ename=
"price"
cname=
"单价"
width=
"120"
align=
"right"
format=
"{0:C3}"
required=
"true"
/>
<EF:EFComboColumn
ename=
"taxRate"
cname=
"税率(%)"
width=
"100"
align=
"center"
required=
"true"
copy=
"true"
>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"amount"
cname=
"金额"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:C3}"
<EF:EFColumn
ename=
"amount"
cname=
"金额"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:C3}"
sumType=
"page"
/>
sumType=
"page"
/>
<EF:EFColumn
ename=
"taxAmount"
cname=
"税额"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:C3}"
sumType=
"page"
/>
<EF:EFColumn
ename=
"taxIncludeAmount"
cname=
"含税金额"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:C3}"
sumType=
"page"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
width=
"80"
align=
"center"
>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
width=
"80"
align=
"center"
>
<EF:EFCodeOption
codeName=
"hggp.hgcg.receiveStatus"
/>
<EF:EFCodeOption
codeName=
"hggp.hgcg.receiveStatus"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
...
@@ -67,7 +74,7 @@
...
@@ -67,7 +74,7 @@
<EF:EFColumn
ename=
"companyCode"
cname=
"公司编码"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyCode"
cname=
"公司编码"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"130"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"130"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"receiveDate"
cname=
"收货日期"
enable=
"false"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"receiveDate"
cname=
"收货日期"
enable=
"false"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
hidden=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
hidden=
"true"
/>
<EF:EFColumn
ename=
"receiveNo"
cname=
"收货单号"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"receiveNo"
cname=
"收货单号"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"primaryId"
cname=
"主表id"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"primaryId"
cname=
"主表id"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
</EF:EFGrid>
</EF:EFGrid>
...
...
src/main/webapp/HG/KC/HGKC003.js
View file @
0ddb76ea
let
whNameGlobalData
=
[];
let
whNameGlobalData
=
[];
$
(
function
()
{
$
(
function
()
{
IPLATUI
.
EFGrid
.
result
=
{
IPLATUI
.
EFGrid
.
result
=
{
...
@@ -7,8 +7,7 @@ $(function () {
...
@@ -7,8 +7,7 @@ $(function () {
pageSize
:
20
,
pageSize
:
20
,
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
],
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
],
},
},
columns
:
[
columns
:
[{
{
field
:
"operator"
,
field
:
"operator"
,
title
:
"操作"
,
title
:
"操作"
,
template
:
function
(
item
)
{
template
:
function
(
item
)
{
...
@@ -146,27 +145,17 @@ function updateSubmitStatus(id) {
...
@@ -146,27 +145,17 @@ function updateSubmitStatus(id) {
JSUtils
.
confirm
(
"确定提交此生产入库单吗? "
,
{
JSUtils
.
confirm
(
"确定提交此生产入库单吗? "
,
{
ok
:
function
()
{
ok
:
function
()
{
EiCommunicator
.
send
(
'HGKC003'
,
'updateSubmitStatus'
,
inEiInfo
,
{
EiCommunicator
.
send
(
'HGKC003'
,
'updateSubmitStatus'
,
inEiInfo
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
res
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
message
(
res
.
msg
);
try
{
if
(
res
.
status
>
-
1
)
{
query
();
query
();
}
catch
(
e
)
{
}
if
(
ei
.
getStatus
()
==
0
)
{
NotificationUtil
(
ei
,
'warning'
);
}
else
{
NotificationUtil
(
ei
);
}
}
else
{
NotificationUtil
(
ei
,
"error"
);
}
},
onFail
:
function
(
ei
)
{
// 发生异常
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
}
},
onFail
:
function
(
ei
)
{
// 发生异常
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
}
);
}
);
}
}
});
});
...
...
src/main/webapp/HG/KC/HGKC003.jsp
View file @
0ddb76ea
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
ename=
"inqu_status-0-companyName"
cname=
"公司名称"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-companyName"
cname=
"公司名称"
colWidth=
"3"
/>
<EF:EFDatePicker
cname=
"单据日期"
blockId=
"inqu_status"
ename=
"depositDate"
row=
"0"
colWidth=
"3"
<EF:EFDatePicker
cname=
"单据日期"
blockId=
"inqu_status"
ename=
"depositDate"
row=
"0"
colWidth=
"3"
role=
"date"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
role=
"date"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
<EF:EFInput
ename=
"inqu_status-0-projName"
cname=
"项目名称"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-projName"
cname=
"项目名称"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-depositNo"
cname=
"生产入库单号"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-depositNo"
cname=
"生产入库单号"
colWidth=
"3"
/>
</div>
</div>
...
@@ -19,24 +19,26 @@
...
@@ -19,24 +19,26 @@
</div>
</div>
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
height=
"69vh"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
width=
"140"
enable=
"false"
readonly=
"false
"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
width=
"80"
enable=
"false"
align=
"center
"
/>
<EF:EFColumn
ename=
"qualityId"
cname=
"质检单id"
enable=
"false"
width=
"90"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"qualityId"
cname=
"质检单id"
enable=
"false"
width=
"90"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"rectificationId"
cname=
"整改通知单ID"
enable=
"false"
width=
"90"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"rectificationId"
cname=
"整改通知单ID"
enable=
"false"
width=
"90"
align=
"center"
<EF:EFComboColumn
cname=
"入库类型"
ename=
"storageType"
width=
"90"
align=
"center"
required=
"false"
enable=
"false"
readonly=
"false"
>
hidden=
"true"
/>
<EF:EFCodeOption
codeName=
"hggp.kc.storageType"
/>
<EF:EFComboColumn
cname=
"入库类型"
ename=
"storageType"
width=
"90"
align=
"center"
required=
"false"
enable=
"false"
readonly=
"false"
>
<EF:EFCodeOption
codeName=
"hggp.kc.storageType"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"
140"
align=
"center
"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"
200"
align=
"left
"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"140"
align=
"
center
"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"140"
align=
"
left
"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"depositDate"
cname=
"单据日期"
enable=
"false"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"depositDate"
cname=
"单据日期"
enable=
"false"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
/>
<EF:EFColumn
ename=
"depositNo"
cname=
"生产入库单号"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"depositNo"
cname=
"生产入库单号"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"depositNoOld"
cname=
"历史生产入库单号"
enable=
"false"
width=
"1
2
0"
align=
"center"
/>
<EF:EFColumn
ename=
"depositNoOld"
cname=
"历史生产入库单号"
enable=
"false"
width=
"1
4
0"
align=
"center"
/>
<EF:EFComboColumn
ename=
"prdtType"
cname=
"存货类型"
width=
"120"
align=
"center"
required=
"false"
<EF:EFComboColumn
ename=
"prdtType"
cname=
"存货类型"
width=
"120"
align=
"center"
required=
"false"
blockName=
"invent_type_box_block_id"
textField=
"textField"
valueField=
"valueField"
blockName=
"invent_type_box_block_id"
textField=
"textField"
valueField=
"valueField"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"false"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"false"
...
...
src/main/webapp/HG/KC/HGKC010B.jsp
View file @
0ddb76ea
...
@@ -48,9 +48,11 @@
...
@@ -48,9 +48,11 @@
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"specId"
cname=
"规格ID"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"specId"
cname=
"规格ID"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"spec"
cname=
"规格"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"spec"
cname=
"规格"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"invQty"
cname=
"库存数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"invQty"
cname=
"库存数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
sumType=
"page"
/>
<EF:EFColumn
ename=
"invUnitWeight"
cname=
"单重(KG)"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"invUnitWeight"
cname=
"单重(KG)"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"invWeight"
cname=
"库存总重(KG)"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"invWeight"
cname=
"库存总重(KG)"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
sumType=
"page"
/>
<EF:EFColumn
ename=
"material"
cname=
"材质"
enable=
"false"
width=
"80"
align=
"center"
/>
<EF:EFColumn
ename=
"material"
cname=
"材质"
enable=
"false"
width=
"80"
align=
"center"
/>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
enable=
"false"
width=
"80"
align=
"center"
/>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
enable=
"false"
width=
"80"
align=
"center"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
...
...
src/main/webapp/HG/SC/HGSC005A.js
View file @
0ddb76ea
...
@@ -37,37 +37,32 @@ $(window).load(function () {
...
@@ -37,37 +37,32 @@ $(window).load(function () {
query
();
query
();
});
});
/**
* 排产
*/
function
schedule
()
{
function
schedule
()
{
var
planCode
=
$
(
"#inqu_status-0-planCode"
).
val
();
var
planCode
=
$
(
"#inqu_status-0-planCode"
).
val
();
var
isSchedule
=
$
(
"#inqu_status-0-isSchedule"
).
val
();
IPLAT
.
confirm
({
if
(
isSchedule
&&
isSchedule
===
'1'
){
title
:
'提交'
,
message
(
"当前计划已排产,请手动调整计划!"
);
message
:
'自动排产将覆盖原排产数据,请谨慎操作,确认对当前数据进行排产?'
,
return
;
okFn
:
function
()
{
}
else
{
var
inInfo
=
new
EiInfo
();
var
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-planCode"
,
planCode
);
inInfo
.
set
(
"inqu_status-0-planCode"
,
planCode
);
EiCommunicator
.
send
(
"HGSC005A"
,
"schedule"
,
inInfo
,
{
IPLAT
.
confirm
({
onSuccess
:
function
(
ei
)
{
title
:
'提交'
,
if
(
ei
.
getStatus
()
>=
0
)
{
message
:
'自动排产将覆盖原排产数据,且只能执行一次,请谨慎操作,确认对当前数据进行排产?'
,
$
(
"#inqu_status-0-isSchedule"
).
val
(
'1'
);
okFn
:
function
()
{
NotificationUtil
(
ei
);
var
inInfo
=
new
EiInfo
();
resultGrid
.
dataSource
.
query
();
inInfo
.
set
(
"inqu_status-0-planCode"
,
planCode
);
}
else
{
EiCommunicator
.
send
(
"HGSC005A"
,
"schedule"
,
inInfo
,
{
NotificationUtil
(
ei
,
"error"
);
onSuccess
:
function
(
ei
)
{
}
if
(
ei
.
getStatus
()
>=
0
)
{
},
$
(
"#inqu_status-0-isSchedule"
).
val
(
'1'
);
onFail
:
function
(
ei
)
{
NotificationUtil
(
ei
);
// 发生异常
resultGrid
.
dataSource
.
query
();
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
else
{
}
NotificationUtil
(
ei
,
"error"
);
});
}
}
},
});
onFail
:
function
(
ei
)
{
// 发生异常
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
});
}
});
}
}
}
src/main/webapp/HG/SC/HGSC005A.jsp
View file @
0ddb76ea
...
@@ -32,24 +32,29 @@
...
@@ -32,24 +32,29 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"true"
width=
"120"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"120"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"120"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"productCode"
cname=
"产品编码"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"productCode"
cname=
"产品编码"
enable=
"false"
width=
"120"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"productName"
cname=
"产品名称"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"productName"
cname=
"产品名称"
width=
"120"
enable=
"true"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"processName"
cname=
"工序"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"processName"
cname=
"工序"
width=
"120"
enable=
"true"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"finishDate"
cname=
"交货日期"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"finishDate"
cname=
"交货日期"
width=
"120"
enable=
"true"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"planStartDate"
cname=
"计划开工日期"
width=
"120"
enable=
"true"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"planStartDate"
cname=
"计划开工日期"
width=
"120"
enable=
"true"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyy-MM-dd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyy-MM-dd']"
required=
"true"
/>
<EF:EFColumn
ename=
"planEndDate"
cname=
"计划完工日期"
width=
"120"
enable=
"true"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"planEndDate"
cname=
"计划完工日期"
width=
"120"
enable=
"true"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyy-MM-dd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyy-MM-dd']"
required=
"true"
/>
<EF:EFColumn
ename=
"singleWeight"
cname=
"单重(KG)"
format=
"{0:0.00}"
editType=
"text"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"singleWeight"
cname=
"单重(KG)"
format=
"{0:0.00}"
editType=
"text"
width=
"120"
enable=
"true"
<EF:EFColumn
ename=
"totalWeight"
cname=
"计划重量(KG)"
format=
"{0:0.00}"
editType=
"text"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"finishWeight"
cname=
"完成重量(KG)"
format=
"{0:0.00}"
editType=
"text"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"totalWeight"
cname=
"计划重量(KG)"
format=
"{0:0.00}"
editType=
"text"
width=
"120"
<EF:EFColumn
ename=
"unfinishWeight"
cname=
"未完成重量(KG)"
format=
"{0:0.00}"
editType=
"text"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
enable=
"true"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"quantity"
cname=
"计划数量"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"finishWeight"
cname=
"完成重量(KG)"
format=
"{0:0.00}"
editType=
"text"
width=
"120"
<EF:EFColumn
ename=
"finishQuantity"
cname=
"完成数量"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
enable=
"true"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"unfinishQuantity"
cname=
"未完成数量"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"unfinishWeight"
cname=
"未完成重量(KG)"
format=
"{0:0.00}"
editType=
"text"
width=
"120"
enable=
"true"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"quantity"
cname=
"计划数量"
width=
"120"
enable=
"true"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"finishQuantity"
cname=
"完成数量"
width=
"120"
enable=
"true"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"unfinishQuantity"
cname=
"未完成数量"
width=
"120"
enable=
"true"
align=
"center"
readonly=
"true"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
</EF:EFPage>
</EF:EFPage>
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