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
48e2a1b2
Commit
48e2a1b2
authored
Jul 03, 2024
by
13420
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售开票,采购收票bug调整
parent
fc0fe11a
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1442 additions
and
58 deletions
+1442
-58
HGCW012B.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW012B.java
+1031
-0
ServiceHGCW012A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW012A.java
+4
-6
HGCW012A.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012A.xml
+144
-11
HGCW012B.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012B.xml
+245
-0
HGCWTools.java
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
+7
-0
HGCW010.js
src/main/webapp/HG/CW/HGCW010.js
+1
-1
HGCW010A.js
src/main/webapp/HG/CW/HGCW010A.js
+2
-1
HGCW012A.js
src/main/webapp/HG/CW/HGCW012A.js
+8
-39
No files found.
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW012B.java
0 → 100644
View file @
48e2a1b2
package
com
.
baosight
.
hggp
.
hg
.
cw
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
java.math.BigDecimal
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
* Project: <br>
* Title:Hgcg003.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-05-11 17:26:18 create
*/
public
class
HGCW012B
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
/* 企业编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 记录创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 记录修改者*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 记录修改名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 记录修改时间*/
public
static
final
String
FIELD_DELETE_FLAG
=
"deleteFlag"
;
/* 0-未删除,1-已删除*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 公司编码*/
public
static
final
String
FIELD_COMPANY_NAME
=
"companyName"
;
/* 公司名称*/
public
static
final
String
FIELD_RECEIVE_DATE
=
"receiveDate"
;
/* 收货日期*/
public
static
final
String
FIELD_RECEIVE_NO
=
"receiveNo"
;
/* 收货单号*/
public
static
final
String
FIELD_PLAN_NO
=
"planNo"
;
/* 计划单号*/
public
static
final
String
FIELD_CONTRACT_NO
=
"contractNo"
;
/* 合同号*/
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_INVENT_TYPE
=
"inventType"
;
/* 存货类型*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 存货编码*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 存货名称*/
public
static
final
String
FIELD_SPEC_ID
=
"specId"
;
/* 规格ID*/
public
static
final
String
FIELD_SPEC
=
"spec"
;
/* 规格*/
public
static
final
String
FIELD_MATERIAL
=
"material"
;
/* 材质*/
public
static
final
String
FIELD_UNIT
=
"unit"
;
/* 单位*/
public
static
final
String
FIELD_LENGTH
=
"length"
;
/* 长度*/
public
static
final
String
FIELD_WIDTH
=
"width"
;
/* 宽度*/
public
static
final
String
FIELD_THICK
=
"thick"
;
/* 厚度*/
public
static
final
String
FIELD_RECEIVE_QTY
=
"receiveQty"
;
/* 收货数量*/
public
static
final
String
FIELD_DELIVER_QTY
=
"deliverQty"
;
/* 退货数量*/
public
static
final
String
FIELD_DEPOSIT_QTY
=
"depositQty"
;
/* 入库数量*/
public
static
final
String
FIELD_RECEIVE_UNIT_WEIGHT
=
"receiveUnitWeight"
;
/* 收货单重*/
public
static
final
String
FIELD_RECEIVE_WEIGHT
=
"receiveWeight"
;
/* 收货重量*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
public
static
final
String
FIELD_PRICE
=
"price"
;
/* 单价*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 金额*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 记录创建者*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 记录创建名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 记录创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 记录修改者*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 记录修改名称*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 记录修改时间*/
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 0-未删除,1-已删除*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 公司编码*/
public
static
final
String
COL_COMPANY_NAME
=
"COMPANY_NAME"
;
/* 公司名称*/
public
static
final
String
COL_RECEIVE_DATE
=
"RECEIVE_DATE"
;
/* 收货日期*/
public
static
final
String
COL_RECEIVE_NO
=
"RECEIVE_NO"
;
/* 收货单号*/
public
static
final
String
COL_PLAN_NO
=
"PLAN_NO"
;
/* 计划单号*/
public
static
final
String
COL_CONTRACT_NO
=
"CONTRACT_NO"
;
/* 合同号*/
public
static
final
String
COL_SUP_CODE
=
"SUP_CODE"
;
/* 供应商编码*/
public
static
final
String
COL_SUP_NAME
=
"SUP_NAME"
;
/* 供应商名称*/
public
static
final
String
COL_PUR_USER_ID
=
"PUR_USER_ID"
;
/* 采购员*/
public
static
final
String
COL_PUR_USER_NAME
=
"PUR_USER_NAME"
;
/* 采购员名称*/
public
static
final
String
COL_INVENT_TYPE
=
"INVENT_TYPE"
;
/* 存货类型*/
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 存货编码*/
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 存货名称*/
public
static
final
String
COL_SPEC_ID
=
"SPEC_ID"
;
/* 规格ID*/
public
static
final
String
COL_SPEC
=
"SPEC"
;
/* 规格*/
public
static
final
String
COL_MATERIAL
=
"MATERIAL"
;
/* 材质*/
public
static
final
String
COL_UNIT
=
"UNIT"
;
/* 单位*/
public
static
final
String
COL_LENGTH
=
"LENGTH"
;
/* 长度*/
public
static
final
String
COL_WIDTH
=
"WIDTH"
;
/* 宽度*/
public
static
final
String
COL_THICK
=
"THICK"
;
/* 厚度*/
public
static
final
String
COL_RECEIVE_QTY
=
"RECEIVE_QTY"
;
/* 收货数量*/
public
static
final
String
COL_DELIVER_QTY
=
"DELIVER_QTY"
;
/* 退货数量*/
public
static
final
String
COL_DEPOSIT_QTY
=
"DEPOSIT_QTY"
;
/* 入库数量*/
public
static
final
String
COL_RECEIVE_UNIT_WEIGHT
=
"RECEIVE_UNIT_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_PRICE
=
"PRICE"
;
/* 单价*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 金额*/
public
static
final
String
QUERY_A
=
"HGCW012A.query"
;
private
Long
id
=
new
Long
(
0
);
private
String
accountCode
=
" "
;
/* 企业编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
Integer
deleteFlag
;
/* 0-未删除,1-已删除*/
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
receiveDate
=
" "
;
/* 收货日期*/
private
String
receiveNo
=
" "
;
/* 收货单号*/
private
String
planNo
=
" "
;
/* 计划单号*/
private
String
contractNo
=
" "
;
/* 合同号*/
private
String
supCode
=
" "
;
/* 供应商编码*/
private
String
supName
=
" "
;
/* 供应商名称*/
private
String
purUserId
=
" "
;
/* 采购员*/
private
String
purUserName
=
" "
;
/* 采购员名称*/
private
String
inventType
=
" "
;
/* 存货类型*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
Long
specId
=
new
Long
(
0
);
/* 规格ID*/
private
String
spec
=
" "
;
/* 规格*/
private
String
material
=
" "
;
/* 材质*/
private
String
unit
=
" "
;
/* 单位*/
private
BigDecimal
length
=
new
BigDecimal
(
0.000
);
/* 长度*/
private
BigDecimal
width
=
new
BigDecimal
(
0.000
);
/* 宽度*/
private
BigDecimal
thick
=
new
BigDecimal
(
0.000
);
/* 厚度*/
private
BigDecimal
receiveQty
=
new
BigDecimal
(
0.000
);
/* 收货数量*/
private
BigDecimal
deliverQty
=
new
BigDecimal
(
0.000
);
/* 退货数量*/
private
BigDecimal
depositQty
=
new
BigDecimal
(
0.000
);
/* 入库数量*/
private
BigDecimal
receiveUnitWeight
=
new
BigDecimal
(
0.000
);
/* 收货单重*/
private
BigDecimal
receiveWeight
=
new
BigDecimal
(
0.000
);
/* 收货重量*/
private
Integer
status
;
/* 状态:0-已收货,1-已入库,2-部分入库,3-退货*/
private
BigDecimal
price
=
new
BigDecimal
(
0.000
);
/* 单价*/
private
BigDecimal
amount
=
new
BigDecimal
(
0.000
);
/* 金额*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT_CODE
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
.
setDescName
(
"0-未删除,1-已删除"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
"公司编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_NAME
);
eiColumn
.
setDescName
(
"公司名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_DATE
);
eiColumn
.
setDescName
(
"收货日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_NO
);
eiColumn
.
setDescName
(
"收货单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PLAN_NO
);
eiColumn
.
setDescName
(
"计划单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CONTRACT_NO
);
eiColumn
.
setDescName
(
"合同号"
);
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_INVENT_TYPE
);
eiColumn
.
setDescName
(
"存货类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_CODE
);
eiColumn
.
setDescName
(
"存货编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_NAME
);
eiColumn
.
setDescName
(
"存货名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC_ID
);
eiColumn
.
setDescName
(
"规格ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC
);
eiColumn
.
setDescName
(
"规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MATERIAL
);
eiColumn
.
setDescName
(
"材质"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UNIT
);
eiColumn
.
setDescName
(
"单位"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_LENGTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"长度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_WIDTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"宽度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_THICK
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"厚度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELIVER_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"退货数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEPOSIT_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"入库数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_UNIT_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货单重"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
.
setDescName
(
"状态:0-已收货,1-已入库,2-部分入库,3-退货"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRICE
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"单价"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HGCW012B
()
{
initMetaData
();
}
/**
* get the id .
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id .
*
* @param id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* get the accountCode - 企业编码.
* @return the accountCode
*/
public
String
getAccountCode
()
{
return
this
.
accountCode
;
}
/**
* set the accountCode - 企业编码.
*
* @param accountCode - 企业编码
*/
public
void
setAccountCode
(
String
accountCode
)
{
this
.
accountCode
=
accountCode
;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
/**
* get the createdBy - 记录创建者.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 记录创建者.
*
* @param createdBy - 记录创建者
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 记录创建名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 记录创建名称.
*
* @param createdName - 记录创建名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 记录创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 记录创建时间.
*
* @param createdTime - 记录创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 记录修改者.
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 记录修改者.
*
* @param updatedBy - 记录修改者
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedName - 记录修改名称.
* @return the updatedName
*/
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
}
/**
* set the updatedName - 记录修改名称.
*
* @param updatedName - 记录修改名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
}
/**
* get the updatedTime - 记录修改时间.
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 记录修改时间.
*
* @param updatedTime - 记录修改时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the deleteFlag - 0-未删除,1-已删除.
* @return the deleteFlag
*/
public
Integer
getDeleteFlag
()
{
return
this
.
deleteFlag
;
}
/**
* set the deleteFlag - 0-未删除,1-已删除.
*
* @param deleteFlag - 0-未删除,1-已删除
*/
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
/**
* get the companyCode - 公司编码.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 公司编码.
*
* @param companyCode - 公司编码
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the companyName - 公司名称.
* @return the companyName
*/
public
String
getCompanyName
()
{
return
this
.
companyName
;
}
/**
* set the companyName - 公司名称.
*
* @param companyName - 公司名称
*/
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
/**
* get the receiveDate - 收货日期.
* @return the receiveDate
*/
public
String
getReceiveDate
()
{
return
this
.
receiveDate
;
}
/**
* set the receiveDate - 收货日期.
*
* @param receiveDate - 收货日期
*/
public
void
setReceiveDate
(
String
receiveDate
)
{
this
.
receiveDate
=
receiveDate
;
}
/**
* get the receiveNo - 收货单号.
* @return the receiveNo
*/
public
String
getReceiveNo
()
{
return
this
.
receiveNo
;
}
/**
* set the receiveNo - 收货单号.
*
* @param receiveNo - 收货单号
*/
public
void
setReceiveNo
(
String
receiveNo
)
{
this
.
receiveNo
=
receiveNo
;
}
/**
* get the planNo - 计划单号.
* @return the planNo
*/
public
String
getPlanNo
()
{
return
this
.
planNo
;
}
/**
* set the planNo - 计划单号.
*
* @param planNo - 计划单号
*/
public
void
setPlanNo
(
String
planNo
)
{
this
.
planNo
=
planNo
;
}
/**
* get the contractNo - 合同号.
* @return the contractNo
*/
public
String
getContractNo
()
{
return
this
.
contractNo
;
}
/**
* set the contractNo - 合同号.
*
* @param contractNo - 合同号
*/
public
void
setContractNo
(
String
contractNo
)
{
this
.
contractNo
=
contractNo
;
}
/**
* get the supCode - 供应商编码.
* @return the supCode
*/
public
String
getSupCode
()
{
return
this
.
supCode
;
}
/**
* set the supCode - 供应商编码.
*
* @param supCode - 供应商编码
*/
public
void
setSupCode
(
String
supCode
)
{
this
.
supCode
=
supCode
;
}
/**
* get the supName - 供应商名称.
* @return the supName
*/
public
String
getSupName
()
{
return
this
.
supName
;
}
/**
* set the supName - 供应商名称.
*
* @param supName - 供应商名称
*/
public
void
setSupName
(
String
supName
)
{
this
.
supName
=
supName
;
}
/**
* get the purUserId - 采购员.
* @return the purUserId
*/
public
String
getPurUserId
()
{
return
this
.
purUserId
;
}
/**
* set the purUserId - 采购员.
*
* @param purUserId - 采购员
*/
public
void
setPurUserId
(
String
purUserId
)
{
this
.
purUserId
=
purUserId
;
}
/**
* get the purUserName - 采购员名称.
* @return the purUserName
*/
public
String
getPurUserName
()
{
return
this
.
purUserName
;
}
/**
* set the purUserName - 采购员名称.
*
* @param purUserName - 采购员名称
*/
public
void
setPurUserName
(
String
purUserName
)
{
this
.
purUserName
=
purUserName
;
}
/**
* get the inventType - 存货类型.
* @return the inventType
*/
public
String
getInventType
()
{
return
this
.
inventType
;
}
/**
* set the inventType - 存货类型.
*
* @param inventType - 存货类型
*/
public
void
setInventType
(
String
inventType
)
{
this
.
inventType
=
inventType
;
}
/**
* get the inventCode - 存货编码.
* @return the inventCode
*/
public
String
getInventCode
()
{
return
this
.
inventCode
;
}
/**
* set the inventCode - 存货编码.
*
* @param inventCode - 存货编码
*/
public
void
setInventCode
(
String
inventCode
)
{
this
.
inventCode
=
inventCode
;
}
/**
* get the inventName - 存货名称.
* @return the inventName
*/
public
String
getInventName
()
{
return
this
.
inventName
;
}
/**
* set the inventName - 存货名称.
*
* @param inventName - 存货名称
*/
public
void
setInventName
(
String
inventName
)
{
this
.
inventName
=
inventName
;
}
/**
* get the specId - 规格ID.
* @return the specId
*/
public
Long
getSpecId
()
{
return
this
.
specId
;
}
/**
* set the specId - 规格ID.
*
* @param specId - 规格ID
*/
public
void
setSpecId
(
Long
specId
)
{
this
.
specId
=
specId
;
}
/**
* get the spec - 规格.
* @return the spec
*/
public
String
getSpec
()
{
return
this
.
spec
;
}
/**
* set the spec - 规格.
*
* @param spec - 规格
*/
public
void
setSpec
(
String
spec
)
{
this
.
spec
=
spec
;
}
/**
* get the material - 材质.
* @return the material
*/
public
String
getMaterial
()
{
return
this
.
material
;
}
/**
* set the material - 材质.
*
* @param material - 材质
*/
public
void
setMaterial
(
String
material
)
{
this
.
material
=
material
;
}
/**
* get the unit - 单位.
* @return the unit
*/
public
String
getUnit
()
{
return
this
.
unit
;
}
/**
* set the unit - 单位.
*
* @param unit - 单位
*/
public
void
setUnit
(
String
unit
)
{
this
.
unit
=
unit
;
}
/**
* get the length - 长度.
* @return the length
*/
public
BigDecimal
getLength
()
{
return
this
.
length
;
}
/**
* set the length - 长度.
*
* @param length - 长度
*/
public
void
setLength
(
BigDecimal
length
)
{
this
.
length
=
length
;
}
/**
* get the width - 宽度.
* @return the width
*/
public
BigDecimal
getWidth
()
{
return
this
.
width
;
}
/**
* set the width - 宽度.
*
* @param width - 宽度
*/
public
void
setWidth
(
BigDecimal
width
)
{
this
.
width
=
width
;
}
/**
* get the thick - 厚度.
* @return the thick
*/
public
BigDecimal
getThick
()
{
return
this
.
thick
;
}
/**
* set the thick - 厚度.
*
* @param thick - 厚度
*/
public
void
setThick
(
BigDecimal
thick
)
{
this
.
thick
=
thick
;
}
/**
* get the receiveQty - 收货数量.
* @return the receiveQty
*/
public
BigDecimal
getReceiveQty
()
{
return
this
.
receiveQty
;
}
/**
* set the receiveQty - 收货数量.
*
* @param receiveQty - 收货数量
*/
public
void
setReceiveQty
(
BigDecimal
receiveQty
)
{
this
.
receiveQty
=
receiveQty
;
}
/**
* get the deliverQty - 退货数量.
* @return the deliverQty
*/
public
BigDecimal
getDeliverQty
()
{
return
this
.
deliverQty
;
}
/**
* set the deliverQty - 退货数量.
*
* @param deliverQty - 退货数量
*/
public
void
setDeliverQty
(
BigDecimal
deliverQty
)
{
this
.
deliverQty
=
deliverQty
;
}
/**
* get the depositQty - 入库数量.
* @return the depositQty
*/
public
BigDecimal
getDepositQty
()
{
return
this
.
depositQty
;
}
/**
* set the depositQty - 入库数量.
*
* @param depositQty - 入库数量
*/
public
void
setDepositQty
(
BigDecimal
depositQty
)
{
this
.
depositQty
=
depositQty
;
}
/**
* get the receiveUnitWeight - 收货单重.
* @return the receiveUnitWeight
*/
public
BigDecimal
getReceiveUnitWeight
()
{
return
this
.
receiveUnitWeight
;
}
/**
* set the receiveUnitWeight - 收货单重.
*
* @param receiveUnitWeight - 收货单重
*/
public
void
setReceiveUnitWeight
(
BigDecimal
receiveUnitWeight
)
{
this
.
receiveUnitWeight
=
receiveUnitWeight
;
}
/**
* get the receiveWeight - 收货重量.
* @return the receiveWeight
*/
public
BigDecimal
getReceiveWeight
()
{
return
this
.
receiveWeight
;
}
/**
* set the receiveWeight - 收货重量.
*
* @param receiveWeight - 收货重量
*/
public
void
setReceiveWeight
(
BigDecimal
receiveWeight
)
{
this
.
receiveWeight
=
receiveWeight
;
}
/**
* get the status - 状态:0-已收货,1-已入库,2-部分入库,3-退货.
* @return the status
*/
public
Integer
getStatus
()
{
return
this
.
status
;
}
/**
* set the status - 状态:0-已收货,1-已入库,2-部分入库,3-退货.
*
* @param status - 状态:0-已收货,1-已入库,2-部分入库,3-退货
*/
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
BigDecimal
getPrice
()
{
return
price
;
}
public
void
setPrice
(
BigDecimal
price
)
{
this
.
price
=
price
;
}
public
BigDecimal
getAmount
()
{
return
amount
;
}
public
void
setAmount
(
BigDecimal
amount
)
{
this
.
amount
=
amount
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_NAME
)),
companyName
));
setReceiveDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_DATE
)),
receiveDate
));
setReceiveNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_NO
)),
receiveNo
));
setPlanNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_NO
)),
planNo
));
setContractNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CONTRACT_NO
)),
contractNo
));
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
));
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE
)),
inventType
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_CODE
)),
inventCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_NAME
)),
inventName
));
setSpecId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SPEC_ID
)),
specId
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SPEC
)),
spec
));
setMaterial
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MATERIAL
)),
material
));
setUnit
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UNIT
)),
unit
));
setLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_LENGTH
)),
length
));
setWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WIDTH
)),
width
));
setThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_THICK
)),
thick
));
setReceiveQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_QTY
)),
receiveQty
));
setDeliverQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELIVER_QTY
)),
deliverQty
));
setDepositQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEPOSIT_QTY
)),
depositQty
));
setReceiveUnitWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_UNIT_WEIGHT
)),
receiveUnitWeight
));
setReceiveWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_WEIGHT
)),
receiveWeight
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE
)),
price
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
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_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_UPDATED_BY
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_BY
)));
map
.
put
(
FIELD_UPDATED_NAME
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_NAME
)));
map
.
put
(
FIELD_UPDATED_TIME
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_TIME
)));
map
.
put
(
FIELD_DELETE_FLAG
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
FIELD_DELETE_FLAG
)));
map
.
put
(
FIELD_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_COMPANY_NAME
,
StringUtils
.
toString
(
companyName
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_NAME
)));
map
.
put
(
FIELD_RECEIVE_DATE
,
StringUtils
.
toString
(
receiveDate
,
eiMetadata
.
getMeta
(
FIELD_RECEIVE_DATE
)));
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_CONTRACT_NO
,
StringUtils
.
toString
(
contractNo
,
eiMetadata
.
getMeta
(
FIELD_CONTRACT_NO
)));
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_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_NAME
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
FIELD_INVENT_NAME
)));
map
.
put
(
FIELD_SPEC_ID
,
StringUtils
.
toString
(
specId
,
eiMetadata
.
getMeta
(
FIELD_SPEC_ID
)));
map
.
put
(
FIELD_SPEC
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
FIELD_SPEC
)));
map
.
put
(
FIELD_MATERIAL
,
StringUtils
.
toString
(
material
,
eiMetadata
.
getMeta
(
FIELD_MATERIAL
)));
map
.
put
(
FIELD_UNIT
,
StringUtils
.
toString
(
unit
,
eiMetadata
.
getMeta
(
FIELD_UNIT
)));
map
.
put
(
FIELD_LENGTH
,
StringUtils
.
toString
(
length
,
eiMetadata
.
getMeta
(
FIELD_LENGTH
)));
map
.
put
(
FIELD_WIDTH
,
StringUtils
.
toString
(
width
,
eiMetadata
.
getMeta
(
FIELD_WIDTH
)));
map
.
put
(
FIELD_THICK
,
StringUtils
.
toString
(
thick
,
eiMetadata
.
getMeta
(
FIELD_THICK
)));
map
.
put
(
FIELD_RECEIVE_QTY
,
StringUtils
.
toString
(
receiveQty
,
eiMetadata
.
getMeta
(
FIELD_RECEIVE_QTY
)));
map
.
put
(
FIELD_DELIVER_QTY
,
StringUtils
.
toString
(
deliverQty
,
eiMetadata
.
getMeta
(
FIELD_DELIVER_QTY
)));
map
.
put
(
FIELD_DEPOSIT_QTY
,
StringUtils
.
toString
(
depositQty
,
eiMetadata
.
getMeta
(
FIELD_DEPOSIT_QTY
)));
map
.
put
(
FIELD_RECEIVE_UNIT_WEIGHT
,
StringUtils
.
toString
(
receiveUnitWeight
,
eiMetadata
.
getMeta
(
FIELD_RECEIVE_UNIT_WEIGHT
)));
map
.
put
(
FIELD_RECEIVE_WEIGHT
,
StringUtils
.
toString
(
receiveWeight
,
eiMetadata
.
getMeta
(
FIELD_RECEIVE_WEIGHT
)));
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_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW012A.java
View file @
48e2a1b2
package
com
.
baosight
.
hggp
.
hg
.
cw
.
service
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.hg.cw.domain.HGCW002
;
import
com.baosight.hggp.hg.cw.domain.HGCW006
;
import
com.baosight.hggp.hg.cw.domain.HGCW010A
;
import
com.baosight.hggp.hg.cw.domain.HGCW012A
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.cw.domain.HGCW012B
;
import
com.baosight.hggp.hg.cw.domain.*
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
...
@@ -46,8 +45,7 @@ public class ServiceHGCW012A extends ServiceBase {
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW002
.
FIELD_CONTRACT_TYPE
,
2
);
inInfo
=
super
.
query
(
inInfo
,
HGCW012A
.
QUERY
,
new
HGCW012A
());
inInfo
=
super
.
query
(
inInfo
,
HGCW012B
.
QUERY_A
,
new
HGCG003
());
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012A.xml
View file @
48e2a1b2
...
...
@@ -185,7 +185,106 @@
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
</isNotEmpty>
</sql>
<sql
id=
"column1"
>
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",
<!-- 合同号 -->
SUP_CODE as "supCode",
<!-- 供应商编码 -->
SUP_NAME as "supName",
<!-- 供应商名称 -->
PUR_USER_ID as "purUserId",
<!-- 采购员 -->
PUR_USER_NAME as "purUserName",
<!-- 采购员名称 -->
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",
<!-- 收货重量 -->
PRICE as "price",
<!-- 单价 -->
AMOUNT as "amount",
<!-- 金额 -->
STATUS as "status"
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
</sql>
<sql
id=
"condition1"
>
AND DELETE_FLAG = 0
<include
refid=
"HGXSDataAuth.authCondition"
/>
<include
refid=
"idCondition"
/>
<include
refid=
"customCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiveDate"
>
RECEIVE_DATE = #receiveDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planNo"
>
PLAN_NO = #planNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractNo"
>
CONTRACT_NO = #contractNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supCode"
>
SUP_CODE = #supCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supName"
>
SUP_NAME = #supName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purUserId"
>
PUR_USER_ID = #purUserId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purUserName"
>
PUR_USER_NAME = #purUserName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"material"
>
MATERIAL = #material#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"price"
>
PRICE = #price#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"amount"
>
AMOUNT = #amount#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW008"
>
SELECT
...
...
@@ -212,23 +311,57 @@
SELECT COUNT(*) FROM ${hggpSchema}.HGCW008 WHERE 1=1 AND B.CONTRACT_TYPE = '2'
<include
refid=
"condition"
/>
</select>
<select
id=
"queryB"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW008"
>
<select
id=
"queryA"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cg.domain.HGCG003"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGCW008 T1 LEFT JOIN
${hggpSchema}.HGCW006 B
ON T1.PROJ_CODE = B.PROJ_CODE
AND T1.CONTRACT_NUMBER = B.CONTRACT_NUMBER
AND T1.COMPANY_CODE = B.COMPANY_CODE
WHERE 1=1 AND B.CONTRACT_STATUS = 2
<include
refid=
"column1"
/>
FROM ${hggpSchema}.HGCG003 WHERE 1=1
<include
refid=
"condition1"
/>
<include
refid=
"orderBy"
/>
</select>
<select
id=
"queryB"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW006"
>
SELECT
ID as "id",
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
CONTRACT_NUMBER as "contractNumber",
<!-- 合同号 -->
CONTRACT_NAME as "contractName",
<!-- 合同名称 -->
PARTY_A as "partyA",
<!-- 甲方名称 -->
PARTY_B as "partyB",
<!-- 乙方名称 -->
SIGNING_DATE as "signingDate",
<!-- 签约日期 -->
TOTAL_QUANTITY as "totalQuantity",
<!-- 总数量 -->
PARTY_A_NAME as "partyAName",
<!-- 甲方联系人姓名 -->
PARTY_A_PHONE_NUMBER as "partyAPhoneNumber",
<!-- 甲方联系人电话 -->
ALREADY_NAME as "alreadyName",
<!-- 已方联系人姓名 -->
ALREADY_PHONE_NUMBER as "alreadyPhoneNumber",
<!-- 已方联系人电话 -->
CONTRACT_STATUS as "contractStatus",
<!-- 合同状态;1草签2签约 -->
LEASE_START_DATE as "leaseStartDate",
<!-- 租赁开始日期 -->
LEASE_END_DATE as "leaseEndDate",
<!-- 租赁结束日期 -->
PAYMENT_METHOD as "paymentMethod",
<!-- 付款方式;1一次性付款2分期付款 -->
PRICING_METHOD as "pricingMethod",
<!-- 计价方式;1固定单价合同2固定总价合同 -->
TAX_POINTS as "taxPoints",
<!-- 税点 -->
TOTAL_CONTRACT_PRICE_EXCLUDING as "totalContractPriceExcluding",
<!-- 合同总价(不含税) -->
VALUE_ADDED_TAX as "valueAddedTax",
<!-- 增值税 -->
TOTAL_CONTRACT_PRICE_INCLUDING as "totalContractPriceIncluding",
<!-- 合同总价(含税) -->
REMAINING_AMOUNT as "remainingAmount",
<!-- 剩余金额 -->
REVIEW_STATUS as "reviewStatus",
<!-- 审核状态 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DEP_CODE as "depCode"
<!-- 部门编码 -->
FROM ${hggpSchema}.HGCW006 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
T1.
ID asc
ID asc
</isEmpty>
</dynamic>
</select>
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012B.xml
0 → 100644
View file @
48e2a1b2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap
namespace=
"HGCW012B"
>
<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",
<!-- 合同号 -->
SUP_CODE as "supCode",
<!-- 供应商编码 -->
SUP_NAME as "supName",
<!-- 供应商名称 -->
PUR_USER_ID as "purUserId",
<!-- 采购员 -->
PUR_USER_NAME as "purUserName",
<!-- 采购员名称 -->
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",
<!-- 收货重量 -->
PRICE as "price",
<!-- 单价 -->
AMOUNT as "amount",
<!-- 金额 -->
STATUS as "status"
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
</sql>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
<include
refid=
"HGXSDataAuth.authCondition"
/>
<include
refid=
"idCondition"
/>
<include
refid=
"customCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiveDate"
>
RECEIVE_DATE = #receiveDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planNo"
>
PLAN_NO = #planNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractNo"
>
CONTRACT_NO = #contractNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supCode"
>
SUP_CODE = #supCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supName"
>
SUP_NAME = #supName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purUserId"
>
PUR_USER_ID = #purUserId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purUserName"
>
PUR_USER_NAME = #purUserName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"material"
>
MATERIAL = #material#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"price"
>
PRICE = #price#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"amount"
>
AMOUNT = #amount#
</isNotEmpty>
</sql>
<sql
id=
"idCondition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiveNo"
>
RECEIVE_NO = #receiveNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiveNos"
>
RECEIVE_NO IN
<iterate
open=
"("
close=
")"
conjunction=
","
property=
"receiveNos"
>
#receiveNos[]#
</iterate>
</isNotEmpty>
</sql>
<sql
id=
"customCondition"
>
<include
refid=
"BaseCondition.specCondition"
/>
<include
refid=
"BaseCondition.createdTimeCondition"
/>
</sql>
<!-- 公共修改字段 -->
<sql
id=
"updateRevise"
>
UPDATED_BY = #updatedBy#,
UPDATED_NAME = #updatedName#,
UPDATED_TIME = #updatedTime#
</sql>
<sql
id=
"orderBy"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID DESC
</isEmpty>
</dynamic>
</sql>
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.cg.domain.HGCG003"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGCG003 WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"orderBy"
/>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGCG003 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCG003 (
ACCOUNT_CODE,
<!-- 企业编码 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
DELETE_FLAG,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE,
<!-- 公司编码 -->
COMPANY_NAME,
<!-- 公司名称 -->
RECEIVE_DATE,
<!-- 收货日期 -->
RECEIVE_NO,
<!-- 收货单号 -->
PLAN_NO,
<!-- 计划单号 -->
CONTRACT_NO,
<!-- 合同号 -->
SUP_CODE,
<!-- 供应商编码 -->
SUP_NAME,
<!-- 供应商名称 -->
PUR_USER_ID,
<!-- 采购员 -->
PUR_USER_NAME,
<!-- 采购员名称 -->
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_NAME,
<!-- 存货名称 -->
SPEC_ID,
<!-- 规格ID -->
SPEC,
<!-- 规格 -->
MATERIAL,
<!-- 材质 -->
UNIT,
<!-- 单位 -->
LENGTH,
<!-- 长度 -->
WIDTH,
<!-- 宽度 -->
THICK,
<!-- 厚度 -->
RECEIVE_QTY,
<!-- 收货数量 -->
RECEIVE_UNIT_WEIGHT,
<!-- 收货单重 -->
RECEIVE_WEIGHT,
<!-- 收货重量 -->
PRICE,
<!-- 单价 -->
AMOUNT,
<!-- 金额 -->
STATUS
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
) VALUES (
#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#deleteFlag#, #companyCode#, #companyName#, #receiveDate#, #receiveNo#,
#planNo#, #contractNo#, #supCode#, #supName#, #purUserId#, #purUserName#,
#inventType#, #inventCode#, #inventName#, #specId#, #spec#, #material#,
#unit#, #length#, #width#, #thick#, #receiveQty#, #receiveUnitWeight#,
#receiveWeight#,#price#, #amount#, #status#
)
</insert>
<delete
id=
"delete"
>
UPDATE ${hggpSchema}.HGCG003
SET
DELETE_FLAG = #deleteFlag#,
<include
refid=
"updateRevise"
/>
WHERE RECEIVE_NO = #receiveNo#
</delete>
<!-- 行锁 -->
<update
id=
"lock"
>
UPDATE ${hggpSchema}.HGCG003
SET CREATED_TIME = CREATED_TIME
WHERE 1=1
<include
refid=
"idCondition"
/>
</update>
<!-- 修改状态 -->
<update
id=
"updateStatus"
>
UPDATE ${hggpSchema}.HGCG003
SET
STATUS = #status#,
<include
refid=
"updateRevise"
/>
WHERE RECEIVE_NO = #receiveNo#
</update>
<!-- 修改数量 -->
<update
id=
"updateQty"
>
UPDATE ${hggpSchema}.HGCG003
SET
RECEIVE_QTY = #receiveQty#,
<!-- 收货数量 -->
RECEIVE_WEIGHT = #receiveWeight#,
<!-- 收货重量 -->
<include
refid=
"updateRevise"
/>
WHERE RECEIVE_NO = #receiveNo#
</update>
<!-- 修改确认 -->
<update
id=
"updateConfirm"
>
UPDATE ${hggpSchema}.HGCG003
SET
STATUS = #status#,
DELIVER_QTY = #deliverQty#,
<!-- 退货数量 -->
DEPOSIT_QTY = #depositQty#,
<!-- 入库数量 -->
<include
refid=
"updateRevise"
/>
WHERE RECEIVE_NO = #receiveNo#
</update>
</sqlMap>
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
View file @
48e2a1b2
...
...
@@ -400,8 +400,15 @@ public class HGCWTools {
HGCW011
.
fromMap
(
row
);
String
settlementNumber
=
row
.
get
(
"settlementNumber"
).
toString
();
String
remainingAmount
=
row
.
get
(
"thisAmount"
).
toString
();
BigDecimal
taxPoints
=
new
BigDecimal
(
row
.
get
(
"taxPoints"
).
toString
());
// 假设这是以整数形式给出的税率,比如17表示17%
BigDecimal
thisAmount
=
new
BigDecimal
(
row
.
get
(
"thisAmount"
).
toString
());
BigDecimal
taxRateAsDecimal
=
taxPoints
.
divide
(
new
BigDecimal
(
"100"
));
// 将税率转换为小数形式
BigDecimal
thisSettlementTax
=
thisAmount
.
multiply
(
taxRateAsDecimal
);
// 计算税额
BigDecimal
thisSettlementAmount
=
thisAmount
.
subtract
(
thisSettlementTax
);
HGCW011
.
setTotalContractPriceIncluding
(
new
BigDecimal
(
remainingAmount
));
HGCW011
.
setSettlementNumber
(
settlementNumber
);
HGCW011
.
setThisSettlementTax
(
thisSettlementTax
.
toString
());
HGCW011
.
setThisSettlementAmount
(
thisSettlementAmount
.
toString
());
if
(
mainId
!=
null
)
{
HGCW011
.
setMainId
(
mainId
);
}
...
...
src/main/webapp/HG/CW/HGCW010.js
View file @
48e2a1b2
...
...
@@ -37,7 +37,7 @@ $(function() {
resultGrid
.
setCellValue
(
item
,
'thisSettlementTax'
,
thisSettlementTax
)
}
if
(
item
.
thisSettlementTax
&&
item
.
totalContractPriceIncluding
){
let
thisSettlementAmount
=
item
.
totalContractPriceIncluding
+
item
.
thisSettlementTax
;
let
thisSettlementAmount
=
item
.
totalContractPriceIncluding
-
item
.
thisSettlementTax
;
resultGrid
.
setCellValue
(
item
,
'thisSettlementAmount'
,
thisSettlementAmount
)
}
loadChange
(
grid
,
e
,
"price"
);
...
...
src/main/webapp/HG/CW/HGCW010A.js
View file @
48e2a1b2
...
...
@@ -68,7 +68,8 @@ function saveFunc() {
ok
:
function
()
{
var
info
=
new
EiInfo
();
info
.
addBlock
(
JSUtils
.
checkedRows2Block
(
"result"
));
EiCommunicator
.
send
(
"HGCW010"
,
"save"
,
info
,
{
info
.
set
(
"inqu_status-0-mainId"
,
$
(
"#inqu_status-0-mainId"
).
val
())
EiCommunicator
.
send
(
"HGCW010"
,
"select"
,
info
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
try
{
...
...
src/main/webapp/HG/CW/HGCW012A.js
View file @
48e2a1b2
...
...
@@ -137,26 +137,13 @@ $(function () {
"result"
:
{
columns
:
[
{
field
:
"projCode"
,
title
:
"项目编号"
,
headerTemplate
:
"<span style='color: '>项目编号 </span>"
,
width
:
200
,
locked
:
true
},
{
field
:
"projName"
,
title
:
"项目名称"
,
headerTemplate
:
"<span style='color: '>项目名称 </span>"
,
locked
:
false
},
{
field
:
"settlementNumber"
,
field
:
"receiveNo"
,
title
:
"结算编号"
,
headerTemplate
:
"<span style='color: '>结算编号 </span>"
,
locked
:
false
},
{
field
:
"
contract
Date"
,
field
:
"
receive
Date"
,
title
:
"结算日期"
,
headerTemplate
:
"<span style='color: '>结算日期 </span>"
,
locked
:
false
...
...
@@ -168,25 +155,7 @@ $(function () {
locked
:
false
},
{
field
:
"taxPoints"
,
title
:
"税率(%)"
,
headerTemplate
:
"<span style='color: '>税率(%) </span>"
,
locked
:
false
},
{
field
:
"thisPriceTax"
,
title
:
"结算价税合计金额"
,
headerTemplate
:
"<span style='color: '>结算价税合计金额 </span>"
,
locked
:
false
},
{
field
:
"thisSettlementTax"
,
title
:
"结算税金"
,
headerTemplate
:
"<span style='color: '>结算税金 </span>"
,
locked
:
false
},
{
field
:
"thisSettlementAmount"
,
field
:
"amount"
,
title
:
"结算金额"
,
headerTemplate
:
"<span style='color: '>结算金额 </span>"
,
locked
:
false
...
...
@@ -318,13 +287,13 @@ $(function () {
locked
:
false
},
{
field
:
"
settlemen
tNumber"
,
field
:
"
contrac
tNumber"
,
title
:
"结算编号"
,
headerTemplate
:
"<span style='color: '>结算编号 </span>"
,
locked
:
false
},
{
field
:
"
contract
Date"
,
field
:
"
signing
Date"
,
title
:
"结算日期"
,
headerTemplate
:
"<span style='color: '>结算日期 </span>"
,
locked
:
false
...
...
@@ -342,19 +311,19 @@ $(function () {
locked
:
false
},
{
field
:
"t
hisPriceTax
"
,
field
:
"t
otalContractPriceIncluding
"
,
title
:
"结算价税合计金额"
,
headerTemplate
:
"<span style='color: '>结算价税合计金额 </span>"
,
locked
:
false
},
{
field
:
"
thisSettlement
Tax"
,
field
:
"
valueAdded
Tax"
,
title
:
"结算税金"
,
headerTemplate
:
"<span style='color: '>结算税金 </span>"
,
locked
:
false
},
{
field
:
"t
hisSettlementAmount
"
,
field
:
"t
otalContractPriceExcluding
"
,
title
:
"结算金额"
,
headerTemplate
:
"<span style='color: '>结算金额 </span>"
,
locked
:
false
...
...
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