Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
60682ab7
Commit
60682ab7
authored
Jan 22, 2024
by
江和松
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
f61d98f4
e07966f6
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
928 additions
and
735 deletions
+928
-735
HPKC005.java
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC005.java
+5
-5
HPKC008.java
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC008.java
+517
-365
ServiceHPKC005.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC005.java
+49
-48
ServiceHPKC008.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC008.java
+86
-94
HPKC003.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC003.xml
+5
-5
HPKC008.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC008.xml
+70
-41
ServiceHPZL001.java
.../java/com/baosight/hpjx/hp/zl/service/ServiceHPZL001.java
+107
-78
HPKC003.jsp
src/main/webapp/HP/KC/HPKC003.jsp
+1
-1
HPKC004.jsp
src/main/webapp/HP/KC/HPKC004.jsp
+1
-1
HPKC005.jsp
src/main/webapp/HP/KC/HPKC005.jsp
+10
-10
HPKC008.js
src/main/webapp/HP/KC/HPKC008.js
+19
-18
HPKC008.jsp
src/main/webapp/HP/KC/HPKC008.jsp
+21
-15
HPPZ002.jsp
src/main/webapp/HP/PZ/HPPZ002.jsp
+1
-1
HPPZ003.jsp
src/main/webapp/HP/PZ/HPPZ003.jsp
+1
-1
HPPZ004.jsp
src/main/webapp/HP/PZ/HPPZ004.jsp
+1
-1
HPPZ006.jsp
src/main/webapp/HP/PZ/HPPZ006.jsp
+2
-3
HPPZ007.jsp
src/main/webapp/HP/PZ/HPPZ007.jsp
+1
-1
HPPZ008.jsp
src/main/webapp/HP/PZ/HPPZ008.jsp
+2
-3
HPPZ009.jsp
src/main/webapp/HP/PZ/HPPZ009.jsp
+1
-1
HPZL001.js
src/main/webapp/HP/ZL/HPZL001.js
+21
-34
HPZL001.jsp
src/main/webapp/HP/ZL/HPZL001.jsp
+7
-9
No files found.
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC005.java
View file @
60682ab7
...
@@ -70,11 +70,11 @@ public class HPKC005 extends DaoEPBase {
...
@@ -70,11 +70,11 @@ public class HPKC005 extends DaoEPBase {
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 更新时间*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 更新时间*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
QUERY
=
"
t_hpkc
005.query"
;
public
static
final
String
QUERY
=
"
HPKC
005.query"
;
public
static
final
String
COUNT
=
"
t_hpkc
005.count"
;
public
static
final
String
COUNT
=
"
HPKC
005.count"
;
public
static
final
String
INSERT
=
"
t_hpkc
005.insert"
;
public
static
final
String
INSERT
=
"
HPKC
005.insert"
;
public
static
final
String
UPDATE
=
"
t_hpkc
005.update"
;
public
static
final
String
UPDATE
=
"
HPKC
005.update"
;
public
static
final
String
DELETE
=
"
t_hpkc
005.delete"
;
public
static
final
String
DELETE
=
"
HPKC
005.delete"
;
private
Long
id
=
new
Long
(
0
);
private
Long
id
=
new
Long
(
0
);
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
...
...
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC008.java
View file @
60682ab7
/**
* Generate time : 2024-01-09 18:54:54
* Version : 1.0
*/
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
domain
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
...
@@ -12,366 +9,522 @@ import java.util.Map;
...
@@ -12,366 +9,522 @@ import java.util.Map;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
/**
* Thpkc008
* Project: <br>
*
* Title:THpkc008.java <br>
*/
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-01-22 17:27:34 create
*/
public
class
HPKC008
extends
DaoEPBase
{
public
class
HPKC008
extends
DaoEPBase
{
private
Long
id
=
0L
;
private
static
final
long
serialVersionUID
=
1L
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
datemonth
=
" "
;
/* 月份*/
public
static
final
String
FIELD_ID
=
"id"
;
private
String
statisticalNumber
=
" "
;
/* 统计单单号*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码*/
private
String
materialCode
=
" "
;
/* 物料编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
private
String
materialName
=
" "
;
/* 物料名称*/
public
static
final
String
FIELD_DATE_MONTH
=
"dateMonth"
;
/* 月份*/
private
String
unit
=
" "
;
/* 单位*/
public
static
final
String
FIELD_STAT_NO
=
"statNo"
;
/* 统计单号*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 数量*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 存货代码*/
private
BigDecimal
price
=
new
BigDecimal
(
"0"
);
/* 单价*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 存货名称*/
private
BigDecimal
totalPrice
=
new
BigDecimal
(
"0"
);
/* 金额*/
public
static
final
String
FIELD_UNIT
=
"unit"
;
/* 单位*/
private
String
notes
=
" "
;
/* 备注*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 数量*/
private
String
createdBy
=
" "
;
/* 创建人*/
public
static
final
String
FIELD_PRICE
=
"price"
;
/* 单价*/
private
String
createdTime
=
" "
;
/* 创建时间*/
public
static
final
String
FIELD_TOTAL_PRICE
=
"totalPrice"
;
/* 总价*/
private
String
updatedBy
=
" "
;
/* 更新人*/
public
static
final
String
FIELD_REMARK
=
"remark"
;
/* 备注*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 创建人*/
/**
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 创建人姓名*/
* initialize the metadata
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 创建时间*/
*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 修改人*/
public
void
initMetaData
()
{
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 修改人名称*/
EiColumn
eiColumn
;
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 修改时间*/
eiColumn
=
new
EiColumn
(
"id"
);
public
static
final
String
COL_ID
=
"ID"
;
eiColumn
.
setPrimaryKey
(
true
);
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码*/
eiColumn
.
setDescName
(
" "
);
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
eiMetadata
.
addMeta
(
eiColumn
);
public
static
final
String
COL_DATE_MONTH
=
"DATE_MONTH"
;
/* 月份*/
public
static
final
String
COL_STAT_NO
=
"STAT_NO"
;
/* 统计单号*/
eiColumn
=
new
EiColumn
(
"companyCode"
);
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 存货代码*/
eiColumn
.
setDescName
(
"企业编码 预留"
);
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 存货名称*/
eiMetadata
.
addMeta
(
eiColumn
);
public
static
final
String
COL_UNIT
=
"UNIT"
;
/* 单位*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 数量*/
eiColumn
=
new
EiColumn
(
"datemonth"
);
public
static
final
String
COL_PRICE
=
"PRICE"
;
/* 单价*/
eiColumn
.
setDescName
(
"月份"
);
public
static
final
String
COL_TOTAL_PRICE
=
"TOTAL_PRICE"
;
/* 总价*/
eiMetadata
.
addMeta
(
eiColumn
);
public
static
final
String
COL_REMARK
=
"REMARK"
;
/* 备注*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 创建人*/
eiColumn
=
new
EiColumn
(
"statisticalNumber"
);
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 创建人姓名*/
eiColumn
.
setDescName
(
"统计单单号"
);
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 创建时间*/
eiMetadata
.
addMeta
(
eiColumn
);
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 修改人*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 修改人名称*/
eiColumn
=
new
EiColumn
(
"materialCode"
);
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 修改时间*/
eiColumn
.
setDescName
(
"物料编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
public
static
final
String
QUERY
=
"HPKC008.query"
;
public
static
final
String
COUNT
=
"HPKC008.count"
;
eiColumn
=
new
EiColumn
(
"materialName"
);
public
static
final
String
INSERT
=
"HPKC008.insert"
;
eiColumn
.
setDescName
(
"物料名称"
);
public
static
final
String
UPDATE
=
"HPKC008.update"
;
eiMetadata
.
addMeta
(
eiColumn
);
public
static
final
String
DELETE
=
"HPKC008.delete"
;
eiColumn
=
new
EiColumn
(
"unit"
);
private
Long
id
=
null
;
eiColumn
.
setDescName
(
"单位"
);
private
String
companyCode
=
" "
;
/* 企业编码*/
eiMetadata
.
addMeta
(
eiColumn
);
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
dateMonth
=
" "
;
/* 月份*/
eiColumn
=
new
EiColumn
(
"amount"
);
private
String
statNo
=
" "
;
/* 统计单号*/
eiColumn
.
setType
(
"N"
);
private
String
inventCode
=
" "
;
/* 存货代码*/
eiColumn
.
setScaleLength
(
2
);
private
String
inventName
=
" "
;
/* 存货名称*/
eiColumn
.
setFieldLength
(
10
);
private
String
unit
=
" "
;
/* 单位*/
eiColumn
.
setDescName
(
"数量"
);
private
BigDecimal
amount
=
new
BigDecimal
(
0
);
/* 数量*/
eiMetadata
.
addMeta
(
eiColumn
);
private
BigDecimal
price
=
new
BigDecimal
(
0
);
/* 单价*/
private
BigDecimal
totalPrice
=
new
BigDecimal
(
0
);
/* 总价*/
eiColumn
=
new
EiColumn
(
"price"
);
private
String
remark
=
" "
;
/* 备注*/
eiColumn
.
setType
(
"N"
);
private
String
createdBy
=
" "
;
/* 创建人*/
eiColumn
.
setScaleLength
(
2
);
private
String
createdName
=
" "
;
/* 创建人姓名*/
eiColumn
.
setFieldLength
(
10
);
private
String
createdTime
=
" "
;
/* 创建时间*/
eiColumn
.
setDescName
(
"单价"
);
private
String
updatedBy
=
" "
;
/* 修改人*/
eiMetadata
.
addMeta
(
eiColumn
);
private
String
updatedName
=
" "
;
/* 修改人名称*/
private
String
updatedTime
=
" "
;
/* 修改时间*/
eiColumn
=
new
EiColumn
(
"totalPrice"
);
eiColumn
.
setType
(
"N"
);
/**
eiColumn
.
setScaleLength
(
2
);
* initialize the metadata.
eiColumn
.
setFieldLength
(
10
);
*/
eiColumn
.
setDescName
(
"金额"
);
public
void
initMetaData
()
{
eiMetadata
.
addMeta
(
eiColumn
);
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
"notes"
);
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setDescName
(
"备注"
);
eiColumn
.
setPrimaryKey
(
true
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdBy"
);
eiColumn
.
setDescName
(
"创建人"
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdTime"
);
eiColumn
.
setDescName
(
"创建时间"
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedBy"
);
eiColumn
.
setDescName
(
"更新人"
);
eiColumn
=
new
EiColumn
(
FIELD_DATE_MONTH
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
.
setDescName
(
"月份"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedTime"
);
eiColumn
.
setDescName
(
"更新时间"
);
eiColumn
=
new
EiColumn
(
FIELD_STAT_NO
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
.
setDescName
(
"统计单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
eiColumn
=
new
EiColumn
(
FIELD_INVENT_CODE
);
/**
eiColumn
.
setDescName
(
"存货代码"
);
* the constructor
eiMetadata
.
addMeta
(
eiColumn
);
*/
public
HPKC008
()
{
eiColumn
=
new
EiColumn
(
FIELD_INVENT_NAME
);
initMetaData
();
eiColumn
.
setDescName
(
"存货名称"
);
}
eiMetadata
.
addMeta
(
eiColumn
);
/**
eiColumn
=
new
EiColumn
(
FIELD_UNIT
);
* get the id
eiColumn
.
setDescName
(
"单位"
);
* @return the id
eiMetadata
.
addMeta
(
eiColumn
);
*/
public
Long
getId
()
{
eiColumn
=
new
EiColumn
(
FIELD_AMOUNT
);
return
this
.
id
;
eiColumn
.
setType
(
"N"
);
}
eiColumn
.
setScaleLength
(
0
);
eiColumn
.
setFieldLength
(
12
);
/**
eiColumn
.
setDescName
(
"数量"
);
* set the id
eiMetadata
.
addMeta
(
eiColumn
);
*/
public
void
setId
(
Long
id
)
{
eiColumn
=
new
EiColumn
(
FIELD_PRICE
);
this
.
id
=
id
;
eiColumn
.
setType
(
"N"
);
}
eiColumn
.
setScaleLength
(
0
);
/**
eiColumn
.
setFieldLength
(
12
);
* get the companyCode - 企业编码 预留
eiColumn
.
setDescName
(
"单价"
);
* @return the companyCode
eiMetadata
.
addMeta
(
eiColumn
);
*/
public
String
getCompanyCode
()
{
eiColumn
=
new
EiColumn
(
FIELD_TOTAL_PRICE
);
return
this
.
companyCode
;
eiColumn
.
setType
(
"N"
);
}
eiColumn
.
setScaleLength
(
0
);
eiColumn
.
setFieldLength
(
12
);
/**
eiColumn
.
setDescName
(
"总价"
);
* set the companyCode - 企业编码 预留
eiMetadata
.
addMeta
(
eiColumn
);
*/
public
void
setCompanyCode
(
String
companyCode
)
{
eiColumn
=
new
EiColumn
(
FIELD_REMARK
);
this
.
companyCode
=
companyCode
;
eiColumn
.
setDescName
(
"备注"
);
}
eiMetadata
.
addMeta
(
eiColumn
);
/**
* get the datemonth - 月份
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
* @return the datemonth
eiColumn
.
setDescName
(
"创建人"
);
*/
eiMetadata
.
addMeta
(
eiColumn
);
public
String
getDatemonth
()
{
return
this
.
datemonth
;
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
}
eiColumn
.
setDescName
(
"创建人姓名"
);
eiMetadata
.
addMeta
(
eiColumn
);
/**
* set the datemonth - 月份
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
*/
eiColumn
.
setDescName
(
"创建时间"
);
public
void
setDatemonth
(
String
datemonth
)
{
eiMetadata
.
addMeta
(
eiColumn
);
this
.
datemonth
=
datemonth
;
}
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
/**
eiColumn
.
setDescName
(
"修改人"
);
* get the statisticalNumber - 统计单单号
eiMetadata
.
addMeta
(
eiColumn
);
* @return the statisticalNumber
*/
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
public
String
getStatisticalNumber
()
{
eiColumn
.
setDescName
(
"修改人名称"
);
return
this
.
statisticalNumber
;
eiMetadata
.
addMeta
(
eiColumn
);
}
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
/**
eiColumn
.
setDescName
(
"修改时间"
);
* set the statisticalNumber - 统计单单号
eiMetadata
.
addMeta
(
eiColumn
);
*/
public
void
setStatisticalNumber
(
String
statisticalNumber
)
{
this
.
statisticalNumber
=
statisticalNumber
;
}
}
/**
/**
* get the materialCode - 物料编码
* the constructor.
* @return the materialCode
*/
*/
public
HPKC008
()
{
public
String
getMaterialCode
()
{
initMetaData
();
return
this
.
materialCode
;
}
}
/**
/**
* get the id .
* set the materialCode - 物料编码
* @return the id
*/
*/
public
void
setMaterialCode
(
String
materialCode
)
{
public
Long
getId
()
{
this
.
materialCode
=
materialCode
;
return
this
.
id
;
}
}
/**
* get the materialName - 物料名称
/**
* @return the materialName
* set the id .
*/
*
public
String
getMaterialName
()
{
* @param id
return
this
.
materialName
;
*/
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
/**
}
* set the materialName - 物料名称
/**
*/
* get the companyCode - 企业编码.
public
void
setMaterialName
(
String
materialName
)
{
* @return the companyCode
this
.
materialName
=
materialName
;
*/
}
public
String
getCompanyCode
()
{
/**
return
this
.
companyCode
;
* get the unit - 单位
}
* @return the unit
*/
/**
public
String
getUnit
()
{
* set the companyCode - 企业编码.
return
this
.
unit
;
*
}
* @param companyCode - 企业编码
*/
/**
public
void
setCompanyCode
(
String
companyCode
)
{
* set the unit - 单位
this
.
companyCode
=
companyCode
;
*/
}
public
void
setUnit
(
String
unit
)
{
/**
this
.
unit
=
unit
;
* get the depCode - 部门编码.
}
* @return the depCode
/**
*/
* get the amount - 数量
public
String
getDepCode
()
{
* @return the amount
return
this
.
depCode
;
*/
}
public
BigDecimal
getAmount
()
{
return
this
.
amount
;
/**
}
* set the depCode - 部门编码.
*
/**
* @param depCode - 部门编码
* set the amount - 数量
*/
*/
public
void
setDepCode
(
String
depCode
)
{
public
void
setAmount
(
BigDecimal
amount
)
{
this
.
depCode
=
depCode
;
this
.
amount
=
amount
;
}
}
/**
/**
* get the dateMonth - 月份.
* get the price - 单价
* @return the dateMonth
* @return the price
*/
*/
public
String
getDateMonth
()
{
public
BigDecimal
getPrice
()
{
return
this
.
dateMonth
;
return
this
.
price
;
}
}
/**
/**
* set the dateMonth - 月份.
* set the price - 单价
*
*/
* @param dateMonth - 月份
public
void
setPrice
(
BigDecimal
price
)
{
*/
this
.
price
=
price
;
public
void
setDateMonth
(
String
dateMonth
)
{
}
this
.
dateMonth
=
dateMonth
;
/**
}
* get the totalPrice - 金额
/**
* @return the totalPrice
* get the statNo - 统计单号.
*/
* @return the statNo
public
BigDecimal
getTotalPrice
()
{
*/
return
this
.
totalPrice
;
public
String
getStatNo
()
{
}
return
this
.
statNo
;
}
/**
* set the totalPrice - 金额
/**
*/
* set the statNo - 统计单号.
public
void
setTotalPrice
(
BigDecimal
totalPrice
)
{
*
this
.
totalPrice
=
totalPrice
;
* @param statNo - 统计单号
}
*/
/**
public
void
setStatNo
(
String
statNo
)
{
* get the notes - 备注
this
.
statNo
=
statNo
;
* @return the notes
}
*/
/**
public
String
getNotes
()
{
* get the inventCode - 存货代码.
return
this
.
notes
;
* @return the inventCode
}
*/
public
String
getInventCode
()
{
/**
return
this
.
inventCode
;
* set the notes - 备注
}
*/
public
void
setNotes
(
String
notes
)
{
/**
this
.
notes
=
notes
;
* set the inventCode - 存货代码.
}
*
/**
* @param inventCode - 存货代码
* get the createdBy - 创建人
*/
* @return the createdBy
public
void
setInventCode
(
String
inventCode
)
{
*/
this
.
inventCode
=
inventCode
;
public
String
getCreatedBy
()
{
}
return
this
.
createdBy
;
/**
}
* get the inventName - 存货名称.
* @return the inventName
/**
*/
* set the createdBy - 创建人
public
String
getInventName
()
{
*/
return
this
.
inventName
;
public
void
setCreatedBy
(
String
createdBy
)
{
}
this
.
createdBy
=
createdBy
;
}
/**
/**
* set the inventName - 存货名称.
* get the createdTime - 创建时间
*
* @return the createdTime
* @param inventName - 存货名称
*/
*/
public
String
getCreatedTime
()
{
public
void
setInventName
(
String
inventName
)
{
return
this
.
createdTime
;
this
.
inventName
=
inventName
;
}
}
/**
/**
* get the unit - 单位.
* set the createdTime - 创建时间
* @return the unit
*/
*/
public
void
setCreatedTime
(
String
createdTime
)
{
public
String
getUnit
()
{
this
.
createdTime
=
createdTime
;
return
this
.
unit
;
}
}
/**
* get the updatedBy - 更新人
/**
* @return the updatedBy
* set the unit - 单位.
*/
*
public
String
getUpdatedBy
()
{
* @param unit - 单位
return
this
.
updatedBy
;
*/
}
public
void
setUnit
(
String
unit
)
{
this
.
unit
=
unit
;
/**
}
* set the updatedBy - 更新人
/**
*/
* get the amount - 数量.
public
void
setUpdatedBy
(
String
updatedBy
)
{
* @return the amount
this
.
updatedBy
=
updatedBy
;
*/
}
public
BigDecimal
getAmount
()
{
/**
return
this
.
amount
;
* get the updatedTime - 更新时间
}
* @return the updatedTime
*/
/**
public
String
getUpdatedTime
()
{
* set the amount - 数量.
return
this
.
updatedTime
;
*
}
* @param amount - 数量
*/
/**
public
void
setAmount
(
BigDecimal
amount
)
{
* set the updatedTime - 更新时间
this
.
amount
=
amount
;
*/
}
public
void
setUpdatedTime
(
String
updatedTime
)
{
/**
this
.
updatedTime
=
updatedTime
;
* get the price - 单价.
}
* @return the price
/**
*/
* get the value from Map
public
BigDecimal
getPrice
()
{
*/
return
this
.
price
;
public
void
fromMap
(
Map
map
)
{
}
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
/**
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
* set the price - 单价.
setDatemonth
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"datemonth"
)),
datemonth
));
*
setStatisticalNumber
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"statisticalNumber"
)),
statisticalNumber
));
* @param price - 单价
setMaterialCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"materialCode"
)),
materialCode
));
*/
setMaterialName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"materialName"
)),
materialName
));
public
void
setPrice
(
BigDecimal
price
)
{
setUnit
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"unit"
)),
unit
));
this
.
price
=
price
;
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
"amount"
)),
amount
));
}
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
"price"
)),
price
));
/**
setTotalPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
"totalPrice"
)),
totalPrice
));
* get the totalPrice - 总价.
setNotes
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"notes"
)),
notes
));
* @return the totalPrice
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
*/
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)),
createdTime
));
public
BigDecimal
getTotalPrice
()
{
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
return
this
.
totalPrice
;
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)),
updatedTime
));
}
}
/**
/**
* set the totalPrice - 总价.
* set the value to Map
*
*/
* @param totalPrice - 总价
public
Map
toMap
()
{
*/
public
void
setTotalPrice
(
BigDecimal
totalPrice
)
{
Map
map
=
new
HashMap
();
this
.
totalPrice
=
totalPrice
;
map
.
put
(
"id"
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
"id"
)));
}
map
.
put
(
"companyCode"
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
"companyCode"
)));
/**
map
.
put
(
"datemonth"
,
StringUtils
.
toString
(
datemonth
,
eiMetadata
.
getMeta
(
"datemonth"
)));
* get the remark - 备注.
map
.
put
(
"statisticalNumber"
,
StringUtils
.
toString
(
statisticalNumber
,
eiMetadata
.
getMeta
(
"statisticalNumber"
)));
* @return the remark
map
.
put
(
"materialCode"
,
StringUtils
.
toString
(
materialCode
,
eiMetadata
.
getMeta
(
"materialCode"
)));
*/
map
.
put
(
"materialName"
,
StringUtils
.
toString
(
materialName
,
eiMetadata
.
getMeta
(
"materialName"
)));
public
String
getRemark
()
{
map
.
put
(
"unit"
,
StringUtils
.
toString
(
unit
,
eiMetadata
.
getMeta
(
"unit"
)));
return
this
.
remark
;
map
.
put
(
"amount"
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
"amount"
)));
}
map
.
put
(
"price"
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
"price"
)));
map
.
put
(
"totalPrice"
,
StringUtils
.
toString
(
totalPrice
,
eiMetadata
.
getMeta
(
"totalPrice"
)));
/**
map
.
put
(
"notes"
,
StringUtils
.
toString
(
notes
,
eiMetadata
.
getMeta
(
"notes"
)));
* set the remark - 备注.
map
.
put
(
"createdBy"
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
"createdBy"
)));
*
map
.
put
(
"createdTime"
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
"createdTime"
)));
* @param remark - 备注
map
.
put
(
"updatedBy"
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
"updatedBy"
)));
*/
map
.
put
(
"updatedTime"
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
"updatedTime"
)));
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
return
map
;
}
/**
* 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 value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setDateMonth
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DATE_MONTH
)),
dateMonth
));
setStatNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STAT_NO
)),
statNo
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_CODE
)),
inventCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_NAME
)),
inventName
));
setUnit
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UNIT
)),
unit
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE
)),
price
));
setTotalPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TOTAL_PRICE
)),
totalPrice
));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMARK
)),
remark
));
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
));
}
/**
* 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_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
map
.
put
(
FIELD_DATE_MONTH
,
StringUtils
.
toString
(
dateMonth
,
eiMetadata
.
getMeta
(
FIELD_DATE_MONTH
)));
map
.
put
(
FIELD_STAT_NO
,
StringUtils
.
toString
(
statNo
,
eiMetadata
.
getMeta
(
FIELD_STAT_NO
)));
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_UNIT
,
StringUtils
.
toString
(
unit
,
eiMetadata
.
getMeta
(
FIELD_UNIT
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_PRICE
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
FIELD_PRICE
)));
map
.
put
(
FIELD_TOTAL_PRICE
,
StringUtils
.
toString
(
totalPrice
,
eiMetadata
.
getMeta
(
FIELD_TOTAL_PRICE
)));
map
.
put
(
FIELD_REMARK
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
FIELD_REMARK
)));
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
)));
return
map
;
}
}
}
}
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC005.java
View file @
60682ab7
...
@@ -4,8 +4,6 @@ import com.baosight.hpjx.common.DdynamicEnum;
...
@@ -4,8 +4,6 @@ import com.baosight.hpjx.common.DdynamicEnum;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.kc.domain.HPKC005
;
import
com.baosight.hpjx.hp.kc.domain.HPKC005
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ007
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ004
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.hpjx.util.AssertUtils
;
import
com.baosight.hpjx.util.AssertUtils
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.CommonMethod
;
...
@@ -20,9 +18,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
...
@@ -20,9 +18,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -84,12 +80,8 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -84,12 +80,8 @@ public class ServiceHPKC005 extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC005
fKc005
=
new
HPKC005
();
HPKC005
fKc005
=
new
HPKC005
();
fKc005
.
fromMap
(
resultRows
.
get
(
i
));
fKc005
.
fromMap
(
resultRows
.
get
(
i
));
// 去除日期字符串中的-
// 设置基础信息
fKc005
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc005
.
getReceiptDate
()));
this
.
setBaseInfo
(
fKc005
);
// 仓库名称
fKc005
.
setWhName
(
HPPZTools
.
getPz007ByCode
(
fKc005
.
getWhCode
()).
getWhName
());
// 物料名称
fKc005
.
setInventName
(
HPPZTools
.
getPz004ByCode
(
fKc005
.
getInventCode
()).
getInventName
());
if
(
fKc005
.
getId
()
==
null
||
fKc005
.
getId
()
==
0
)
{
if
(
fKc005
.
getId
()
==
null
||
fKc005
.
getId
()
==
0
)
{
this
.
add
(
fKc005
);
this
.
add
(
fKc005
);
}
else
{
}
else
{
...
@@ -151,16 +143,12 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -151,16 +143,12 @@ public class ServiceHPKC005 extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC005
fKc005
=
new
HPKC005
();
HPKC005
fKc005
=
new
HPKC005
();
fKc005
.
fromMap
(
resultRows
.
get
(
i
));
fKc005
.
fromMap
(
resultRows
.
get
(
i
));
// 去除日期字符串中的-
// 设置基础信息
fKc005
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc005
.
getReceiptDate
()));
this
.
setBaseInfo
(
fKc005
);
// 仓库名称
fKc005
.
setWhName
(
HPPZTools
.
getPz007ByCode
(
fKc005
.
getWhCode
()).
getWhName
());
// 物料名称
fKc005
.
setInventName
(
HPPZTools
.
getPz004ByCode
(
fKc005
.
getInventCode
()).
getInventName
());
// 生成单据号
// 生成单据号
fKc005
.
setStatisticalNumber
(
SequenceGenerator
.
getNextSequence
(
fKc005
.
setStatisticalNumber
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
STATISTICAL_NUMBER
));
HPConstant
.
SequenceId
.
STATISTICAL_NUMBER
));
DaoUtils
.
insert
(
"HPKC005.insert"
,
fKc005
);
DaoUtils
.
insert
(
HPKC005
.
INSERT
,
fKc005
);
}
}
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -181,11 +169,9 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -181,11 +169,9 @@ public class ServiceHPKC005 extends ServiceBase {
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
HPKC005
fKc005
=
new
HPKC005
();
HPKC005
fKc005
=
new
HPKC005
();
fKc005
.
fromMap
(
eiBlock
.
getRow
(
i
));
fKc005
.
fromMap
(
eiBlock
.
getRow
(
i
));
// 仓库名称
// 设置基础信息
fKc005
.
setWhName
(
HPPZTools
.
getPz007ByCode
(
fKc005
.
getWhCode
()).
getWhName
());
this
.
setBaseInfo
(
fKc005
);
// 物料名称
DaoUtils
.
update
(
HPKC005
.
UPDATE
,
fKc005
);
fKc005
.
setInventName
(
HPPZTools
.
getPz004ByCode
(
fKc005
.
getInventCode
()).
getInventName
());
this
.
dao
.
update
(
"HPKC005.update"
,
fKc005
);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
...
@@ -194,30 +180,45 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -194,30 +180,45 @@ public class ServiceHPKC005 extends ServiceBase {
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"修改失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"修改失败"
);
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 删除操作.
* 设置基础信息
*/
*
public
EiInfo
delete
(
EiInfo
eiInfo
)
{
* @param fKc005
HPKC005
HPKC005
=
new
HPKC005
();
*/
EiBlock
eiBlock
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
);
private
void
setBaseInfo
(
HPKC005
fKc005
)
{
try
{
// 去除日期字符串中的-
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
fKc005
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc005
.
getReceiptDate
()));
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
// 仓库名称
HPKC005
.
fromMap
(
map
);
fKc005
.
setWhName
(
HPPZTools
.
getPz007ByCode
(
fKc005
.
getWhCode
()).
getWhName
());
this
.
dao
.
delete
(
"HPKC005.delete"
,
HPKC005
.
toMap
());
// 物料名称
}
fKc005
.
setInventName
(
HPPZTools
.
getPz004ByCode
(
fKc005
.
getInventCode
()).
getInventName
());
}
catch
(
PlatException
e
)
{
// 差异数量
eiInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
fKc005
.
setDiffAmount
(
fKc005
.
getEntityAmount
().
subtract
(
fKc005
.
getBookAmount
()));
eiInfo
.
setMsg
(
"删除失败,原因参见详细错误描述!"
);
// 差异重量
eiInfo
.
setDetailMsg
(
e
.
getMessage
());
fKc005
.
setDiffWeight
(
fKc005
.
getEntityWeight
().
subtract
(
fKc005
.
getBookWeight
()));
logError
(
"删除失败!"
,
e
.
getMessage
());
}
return
eiInfo
;
}
/**
eiInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
* 删除操作
eiInfo
.
setMsg
(
"删除成功!"
);
*
return
eiInfo
;
* @param inInfo
}
* @return
*/
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
DaoUtils
.
update
(
HPKC005
.
DELETE
,
resultRows
.
get
(
i
));
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"删除失败"
);
}
return
inInfo
;
}
}
}
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC008.java
View file @
60682ab7
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.kc.domain.HPKC008
;
import
com.baosight.hpjx.hp.kc.domain.HPKC008
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ004
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.EiInfoUtils
;
import
com.baosight.hpjx.util.EiInfoUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.StringUtil
;
import
com.baosight.hpjx.util.StringUtil
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -50,8 +45,8 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -50,8 +45,8 @@ public class ServiceHPKC008 extends ServiceBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
receiptDate
=
MapUtils
.
getString
(
queryRow
,
"receiptDate
"
);
String
dateMonth
=
MapUtils
.
getString
(
queryRow
,
"dateMonth
"
);
queryRow
.
put
(
"
receiptDate"
,
StringUtil
.
removeSpecifiedCharacter
(
receiptDate
,
queryRow
.
put
(
"
dateMonth"
,
StringUtil
.
removeSpecifiedCharacter
(
dateMonth
,
StringUtil
.
DEFAULT_CHARACTER_TO_BE_REMOVED
));
StringUtil
.
DEFAULT_CHARACTER_TO_BE_REMOVED
));
inInfo
=
super
.
query
(
inInfo
,
"HPKC008.query"
,
new
HPKC008
());
inInfo
=
super
.
query
(
inInfo
,
"HPKC008.query"
,
new
HPKC008
());
List
sum
=
dao
.
query
(
"HPKC008.querySum"
,
queryRow
);
List
sum
=
dao
.
query
(
"HPKC008.querySum"
,
queryRow
);
...
@@ -61,88 +56,85 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -61,88 +56,85 @@ public class ServiceHPKC008 extends ServiceBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 新增操作.
* 新增操作
*/
*
@Override
* @param inInfo
public
EiInfo
insert
(
EiInfo
inInfo
)
{
* @return
try
{
*/
CommonMethod
.
creatorInfo
(
inInfo
,
EiConstant
.
resultBlock
);
public
EiInfo
insert
(
EiInfo
inInfo
)
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
try
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
Map
resultRow
=
resultRows
.
get
(
i
);
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
// 去除日期字符串中的-
HPKC008
fKc008
=
new
HPKC008
();
String
datemonth
=
MapUtils
.
getString
(
resultRow
,
"datemonth"
);
fKc008
.
fromMap
(
resultRows
.
get
(
i
));
resultRow
.
put
(
"datemonth"
,
StringUtil
.
removeHorizontalLine
(
datemonth
));
// 去除日期字符串中的-
// 物料名称
fKc008
.
setDateMonth
(
StringUtil
.
removeHorizontalLine
(
fKc008
.
getDateMonth
()));
Map
params1
=
new
HashMap
<>();
// 物料名称
params1
.
put
(
"inventCode"
,
MapUtils
.
getString
(
resultRow
,
"materialCode"
));
fKc008
.
setInventName
(
HPPZTools
.
getPz004ByCode
(
fKc008
.
getInventCode
()).
getInventName
());
List
query1
=
dao
.
query
(
"HPPZ004.query"
,
params1
);
// 计算总金额
String
matName
=
((
HPPZ004
)
query1
.
get
(
0
)).
getInventName
();
fKc008
.
setTotalPrice
(
fKc008
.
getAmount
().
multiply
(
fKc008
.
getPrice
()));
resultRow
.
put
(
"materialName"
,
matName
);
// 生成单据号
// 生成单据号
fKc008
.
setStatNo
(
SequenceGenerator
.
getNextSequence
(
resultRow
.
put
(
"statisticalNumber"
,
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
HPKC008_NUMBER
));
HPConstant
.
SequenceId
.
HPKC008_NUMBER
));
DaoUtils
.
insert
(
HPKC008
.
INSERT
,
fKc008
);
DaoUtils
.
insert
(
"HPKC008.insert"
,
resultRow
);
}
}
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"新增失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"新增失败"
);
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
* 修改操作
/**
*
* 修改操作.
* @param inInfo
*/
* @return
public
EiInfo
update
(
EiInfo
inInfo
)
{
*/
try
{
public
EiInfo
update
(
EiInfo
inInfo
)
{
HPKC008
HPKC008
=
new
HPKC008
();
try
{
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
HPKC008
fKc008
=
new
HPKC008
();
HPKC008
.
fromMap
(
map
);
fKc008
.
fromMap
(
resultRows
.
get
(
i
));
// 去除日期字符串中的-
this
.
dao
.
update
(
"HPKC008.update"
,
HPKC008
.
toMap
());
fKc008
.
setDateMonth
(
StringUtil
.
removeHorizontalLine
(
fKc008
.
getDateMonth
()));
}
// 物料名称
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
fKc008
.
setInventName
(
HPPZTools
.
getPz004ByCode
(
fKc008
.
getInventCode
()).
getInventName
());
inInfo
.
setMsg
(
"修改成功!"
);
// 计算总金额
}
catch
(
PlatException
e
)
{
fKc008
.
setTotalPrice
(
fKc008
.
getAmount
().
multiply
(
fKc008
.
getPrice
()));
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
DaoUtils
.
update
(
HPKC008
.
UPDATE
,
fKc008
);
inInfo
.
setMsg
(
"操作失败!原因参见详细错误描述!"
);
}
inInfo
.
setDetailMsg
(
e
.
getMessage
());
inInfo
=
this
.
query
(
inInfo
);
logError
(
"修改失败"
,
e
.
getMessage
());
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
return
inInfo
;
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据修改成功!"
);
}
}
catch
(
Exception
e
)
{
return
query
(
inInfo
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"修改失败"
);
}
}
return
inInfo
;
/**
}
* 删除操作.
*/
/**
public
EiInfo
delete
(
EiInfo
eiInfo
)
{
* 删除操作
HPKC008
HPKC008
=
new
HPKC008
();
*
EiBlock
eiBlock
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
);
* @param inInfo
try
{
* @return
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
*/
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
public
EiInfo
delete
(
EiInfo
inInfo
)
{
HPKC008
.
fromMap
(
map
);
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
this
.
dao
.
delete
(
"HPKC008.delete"
,
HPKC008
.
toMap
());
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
}
DaoUtils
.
update
(
HPKC008
.
DELETE
,
resultRows
.
get
(
i
));
}
catch
(
PlatException
e
)
{
}
eiInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
=
this
.
query
(
inInfo
);
eiInfo
.
setMsg
(
"删除失败,原因参见详细错误描述!"
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
eiInfo
.
setDetailMsg
(
e
.
getMessage
());
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
logError
(
"删除失败!"
,
e
.
getMessage
());
}
catch
(
Exception
e
)
{
return
eiInfo
;
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"删除失败"
);
}
}
return
inInfo
;
eiInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
}
eiInfo
.
setMsg
(
"删除成功!"
);
return
eiInfo
;
}
}
}
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC003.xml
View file @
60682ab7
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.T_HPKC003 (
INSERT INTO ${hpjxSchema}.T_HPKC003 (
COMPANY_CODE,
<!-- 企业编码 预留 -->
COMPANY_CODE,
<!-- 企业编码 预留 -->
DEP
T
_CODE,
<!-- 部门编码 -->
DEP_CODE,
<!-- 部门编码 -->
DOCUMENT_DATE,
<!-- 单据日期 -->
DOCUMENT_DATE,
<!-- 单据日期 -->
PROD_NO,
<!-- 生产入库单号 -->
PROD_NO,
<!-- 生产入库单号 -->
WH_CODE,
<!-- 仓库编码 -->
WH_CODE,
<!-- 仓库编码 -->
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME
<!-- 创建时间 -->
CREATED_TIME
<!-- 创建时间 -->
) VALUES (
) VALUES (
#companyCode#, #dep
t
Code#, #documentDate#, #prodNo#, #whCode#, #whName#,
#companyCode#, #depCode#, #documentDate#, #prodNo#, #whCode#, #whName#,
#inventType#, #inventCode#, #inventName#, #amount#, #weight#, #remark#,
#inventType#, #inventCode#, #inventName#, #amount#, #weight#, #remark#,
#createdBy#, #createdName#, #createdTime#
#createdBy#, #createdName#, #createdTime#
)
)
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
UPDATE ${hpjxSchema}.T_HPKC003
UPDATE ${hpjxSchema}.T_HPKC003
SET
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 预留 -->
COMPANY_CODE = #companyCode#,
<!-- 企业编码 预留 -->
DEP
T_CODE = #dept
Code#,
<!-- 部门编码 -->
DEP
_CODE = #dep
Code#,
<!-- 部门编码 -->
DOCUMENT_DATE = #documentDate#,
<!-- 单据日期 -->
DOCUMENT_DATE = #documentDate#,
<!-- 单据日期 -->
PROD_NO = #prodNo#,
<!-- 生产入库单号 -->
PROD_NO = #prodNo#,
<!-- 生产入库单号 -->
WH_CODE = #whCode#,
<!-- 仓库编码 -->
WH_CODE = #whCode#,
<!-- 仓库编码 -->
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
<select
id=
"statDate"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC003"
>
<select
id=
"statDate"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC003"
>
SELECT
SELECT
COMPANY_CODE AS "companyCode",
COMPANY_CODE AS "companyCode",
DEP
T_CODE AS "dept
Code",
DEP
_CODE AS "dep
Code",
WH_CODE AS "whCode",
WH_CODE AS "whCode",
INVENT_TYPE AS "inventType",
INVENT_TYPE AS "inventType",
INVENT_CODE AS "inventCode",
INVENT_CODE AS "inventCode",
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
<isNotEmpty
prepend=
" AND "
property=
"createdTimeFrom"
>
<isNotEmpty
prepend=
" AND "
property=
"createdTimeFrom"
>
CREATED_TIME BETWEEN #createdTimeFrom# AND #createdTimeTo#
CREATED_TIME BETWEEN #createdTimeFrom# AND #createdTimeTo#
</isNotEmpty>
</isNotEmpty>
GROUP BY COMPANY_CODE, DEP
T
_CODE, WH_CODE, INVENT_TYPE, INVENT_CODE
GROUP BY COMPANY_CODE, DEP_CODE, WH_CODE, INVENT_TYPE, INVENT_CODE
</select>
</select>
</sqlMap>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC008.xml
View file @
60682ab7
...
@@ -4,39 +4,50 @@
...
@@ -4,39 +4,50 @@
<sql
id=
"column"
>
<sql
id=
"column"
>
ID as "id",
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 -->
DATEMONTH as "datemonth",
<!-- 月份 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
STATISTICAL_NUMBER as "statisticalNumber",
<!-- 统计单单号 -->
DATE_MONTH as "dateMonth",
<!-- 月份 -->
MATERIAL_CODE as "materialCode",
<!-- 物料编码 -->
STAT_NO as "statNo",
<!-- 统计单号 -->
MATERIAL_NAME as "materialName",
<!-- 物料名称 -->
INVENT_CODE as "inventCode",
<!-- 存货代码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
UNIT as "unit",
<!-- 单位 -->
UNIT as "unit",
<!-- 单位 -->
AMOUNT as "amount",
<!-- 数量 -->
AMOUNT as "amount",
<!-- 数量 -->
PRICE as "price",
<!-- 单价 -->
PRICE as "price",
<!-- 单价 -->
TOTAL_PRICE as "totalPrice",
<!--
金额
-->
TOTAL_PRICE as "totalPrice",
<!--
总价
-->
NOTES as "notes
",
<!-- 备注 -->
REMARK as "remark
",
<!-- 备注 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人姓名 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_BY as "updatedBy",
<!-- 修改人 -->
UPDATED_TIME as "updatedTime"
<!-- 更新时间 -->
UPDATED_NAME as "updatedName",
<!-- 修改人名称 -->
UPDATED_TIME as "updatedTime"
<!-- 修改时间 -->
</sql>
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"
datemonth
"
>
<isNotEmpty
prepend=
" AND "
property=
"
companyCode
"
>
DATEMONTH = #datemonth
#
COMPANY_CODE = #companyCode
#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"statisticalNumber"
>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
STATISTICAL_NUMBER = #statisticalNumber#
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"dateMonth"
>
DATE_MONTH = #dateMonth#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"statNo"
>
STAT_NO = #statNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
</isNotEmpty>
</sql>
</sql>
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC008"
>
<sql
id=
"order"
>
SELECT
<include
refid=
"column"
/>
FROM hpjx.t_hpkc008 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
$orderBy$
...
@@ -45,36 +56,53 @@
...
@@ -45,36 +56,53 @@
ID DESC
ID DESC
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
</select
>
</sql
>
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC008"
>
SELECT COUNT(*) FROM hpjx.t_hpkc008 WHERE 1=1
SELECT
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<include
refid=
"column"
/>
ID = #id#
FROM ${hpjxSchema}.T_HPKC008 WHERE 1=1
</isNotEmpty>
<include
refid=
"condition"
/>
</select>
<include
refid=
"order"
/>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPKC008 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!-- 查询统计 -->
<!-- 查询统计 -->
<select
id=
"querySum"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC008"
>
<select
id=
"querySum"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC008"
>
SELECT
SELECT
COALESCE(SUM(AMOUNT), 0) AS "amount",
<!-- 数量 -->
COALESCE(SUM(AMOUNT), 0) AS "amount",
<!-- 数量 -->
COALESCE(SUM(TOTAL_PRICE), 0) AS "totalPrice"
<!-- 金额 -->
COALESCE(SUM(TOTAL_PRICE), 0) AS "totalPrice"
<!-- 金额 -->
FROM ${hpjxSchema}.
t_hpkc
008
FROM ${hpjxSchema}.
T_HPKC
008
WHERE 1=1
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hpkc008 (
INSERT INTO hpjx.t_hpkc008 (
COMPANY_CODE, DATEMONTH, STATISTICAL_NUMBER, MATERIAL_CODE,
COMPANY_CODE,
<!-- 企业编码 -->
MATERIAL_NAME, UNIT, AMOUNT, PRICE, TOTAL_PRICE, NOTES,
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY, CREATED_TIME
DATE_MONTH,
<!-- 月份 -->
STAT_NO,
<!-- 统计单号 -->
INVENT_CODE,
<!-- 存货代码 -->
INVENT_NAME,
<!-- 存货名称 -->
UNIT,
<!-- 单位 -->
AMOUNT,
<!-- 数量 -->
PRICE,
<!-- 单价 -->
TOTAL_PRICE,
<!-- 总价 -->
REMARK,
<!-- 备注 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人姓名 -->
CREATED_TIME
<!-- 创建时间 -->
) VALUES (
) VALUES (
#companyCode#, #d
atemonth#, #statisticalNumber#, #materialCode#, #material
Name#,
#companyCode#, #d
epCode#, #dateMonth#, #statNo#, #inventCode#, #invent
Name#,
#unit#, #amount#, #price#, #totalPrice#, #
notes#, #createdBy#, #createdTi
me#,
#unit#, #amount#, #price#, #totalPrice#, #
remark#, #createdBy#, #createdNa
me#,
#
updatedBy#, #upd
atedTime#
#
cre
atedTime#
)
)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
DELETE FROM hpjx.t_hpkc008 WHERE ID = #id#
DELETE FROM hpjx.t_hpkc008 WHERE ID = #id#
...
@@ -83,16 +111,17 @@
...
@@ -83,16 +111,17 @@
<update
id=
"update"
>
<update
id=
"update"
>
UPDATE hpjx.t_hpkc008
UPDATE hpjx.t_hpkc008
SET
SET
DATE
MONTH = #datem
onth#,
<!-- 月份 -->
DATE
_MONTH = #dateM
onth#,
<!-- 月份 -->
MATERIAL_CODE = #materialCode#,
<!-- 物料编
码 -->
INVENT_CODE = #inventCode#,
<!-- 存货代
码 -->
MATERIAL_NAME = #materialName#,
<!-- 物料
名称 -->
INVENT_NAME = #inventName#,
<!-- 存货
名称 -->
UNIT = #unit#,
<!-- 单位 -->
UNIT = #unit#,
<!-- 单位 -->
AMOUNT = #amount#,
<!-- 数量 -->
AMOUNT = #amount#,
<!-- 数量 -->
PRICE = #price#,
<!-- 单价 -->
PRICE = #price#,
<!-- 单价 -->
TOTAL_PRICE = #totalPrice#,
<!-- 金额 -->
TOTAL_PRICE = #totalPrice#,
<!-- 总价 -->
NOTES = #notes#,
<!-- 备注 -->
REMARK = #remark#,
<!-- 备注 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_BY = #updatedBy#,
<!-- 修改人 -->
UPDATED_TIME = #updatedTime#
<!-- 更新时间 -->
UPDATED_NAME = #updatedName#,
<!-- 修改人名称 -->
UPDATED_TIME = #updatedTime#
<!-- 修改时间 -->
WHERE ID = #id#
WHERE ID = #id#
</update>
</update>
...
...
src/main/java/com/baosight/hpjx/hp/zl/service/ServiceHPZL001.java
View file @
60682ab7
package
com
.
baosight
.
hpjx
.
hp
.
zl
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
zl
.
service
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
...
@@ -12,13 +13,14 @@ import com.baosight.hpjx.util.StringUtil;
...
@@ -12,13 +13,14 @@ import com.baosight.hpjx.util.StringUtil;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
import
java.util.*
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author ZJH
* @author ZJH
...
@@ -62,22 +64,21 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -62,22 +64,21 @@ public class ServiceHPZL001 extends ServiceBase {
@Override
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
creatorInfo
(
inInfo
,
EiConstant
.
resultBlock
);
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
Map
resultRow
=
resultRows
.
get
(
i
);
HPZL001
fZl001
=
new
HPZL001
();
fZl001
.
fromMap
(
resultRows
.
get
(
i
));
// 去除日期字符串中的-
// 去除日期字符串中的-
String
datemonth
=
MapUtils
.
getString
(
resultRow
,
"receiptDate"
);
fZl001
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fZl001
.
getReceiptDate
()));
resultRow
.
put
(
"datemonth"
,
StringUtil
.
removeHorizontalLine
(
datemonth
));
// 项目名称
// 项目名称
Map
params1
=
new
HashMap
<>();
Map
params1
=
new
HashMap
<>();
params1
.
put
(
"itemCode"
,
MapUtils
.
getString
(
resultRow
,
"itemCode"
));
params1
.
put
(
"itemCode"
,
fZl001
.
getItemCode
(
));
List
<
THPSC001
>
query1
=
dao
.
query
(
"HPSC001.query"
,
params1
);
List
<
THPSC001
>
query1
=
dao
.
query
(
"HPSC001.query"
,
params1
);
resultRow
.
put
(
"itemName"
,
query1
.
get
(
0
).
getProjName
());
fZl001
.
setItemName
(
query1
.
get
(
0
).
getProjName
());
// 生成单据号
// 生成单据号
resultRow
.
put
(
"chkBillno"
,
SequenceGenerator
.
getNextSequence
(
fZl001
.
setChkBillno
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
HPZL001_NUMBER
));
HPConstant
.
SequenceId
.
HPZL001_NUMBER
));
DaoUtils
.
insert
(
"HPZL001.insert"
,
resultRow
);
DaoUtils
.
insert
(
"HPZL001.insert"
,
fZl001
);
}
}
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -85,76 +86,104 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -85,76 +86,104 @@ public class ServiceHPZL001 extends ServiceBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
* 修改操作.
*/
public
EiInfo
update
(
EiInfo
inInfo
)
{
try
{
HPZL001
HPZL001
=
new
HPZL001
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
String
itemName
=
inInfo
.
getCellStr
(
EiConstant
.
resultBlock
,
i
,
"itemName"
);
String
[]
str
=
itemName
.
split
(
"-"
);
inInfo
.
setCell
(
EiConstant
.
resultBlock
,
i
,
"itemCode"
,
str
[
0
]);
inInfo
.
setCell
(
EiConstant
.
resultBlock
,
i
,
"itemName"
,
str
[
1
]);
String
receiptDate
=
inInfo
.
getCellStr
(
EiConstant
.
resultBlock
,
i
,
"receiptDate"
);
inInfo
.
setCell
(
EiConstant
.
resultBlock
,
i
,
"receiptDate"
,
StringUtil
.
removeHorizontalLine
(
receiptDate
));
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
HPZL001
.
fromMap
(
map
);
this
.
dao
.
update
(
"HPZL001.update"
,
HPZL001
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"修改成功!"
);
}
catch
(
PlatException
e
)
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"操作失败!原因参见详细错误描述!"
);
inInfo
.
setDetailMsg
(
e
.
getMessage
());
logError
(
"修改失败"
,
e
.
getMessage
());
return
inInfo
;
}
return
query
(
inInfo
);
}
/**
* 删除操作.
*/
public
EiInfo
delete
(
EiInfo
eiInfo
)
{
HPZL001
HPZL001
=
new
HPZL001
();
EiBlock
eiBlock
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
);
try
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
HPZL001
.
fromMap
(
map
);
this
.
dao
.
delete
(
"HPZL001.delete"
,
HPZL001
.
toMap
());
}
}
catch
(
PlatException
e
)
{
eiInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
eiInfo
.
setMsg
(
"删除失败,原因参见详细错误描述!"
);
eiInfo
.
setDetailMsg
(
e
.
getMessage
());
logError
(
"删除失败!"
,
e
.
getMessage
());
return
eiInfo
;
}
eiInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
eiInfo
.
setMsg
(
"删除成功!"
);
return
eiInfo
;
}
/**
/**
* 审核操作.
* 修改操作
*
* @param inInfo
* @return
*/
public
EiInfo
update
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPZL001
fZl001
=
new
HPZL001
();
fZl001
.
fromMap
(
resultRows
.
get
(
i
));
// 去除日期字符串中的-
fZl001
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fZl001
.
getReceiptDate
()));
// 项目名称
Map
params1
=
new
HashMap
<>();
params1
.
put
(
"itemCode"
,
fZl001
.
getItemCode
());
List
<
THPSC001
>
query1
=
dao
.
query
(
"HPSC001.query"
,
params1
);
fZl001
.
setItemName
(
query1
.
get
(
0
).
getProjName
());
DaoUtils
.
update
(
"HPZL001.update"
,
fZl001
);
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据修改成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"修改失败"
);
}
return
inInfo
;
}
/**
* 删除操作
*
* @param inInfo
* @return
*/
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
DaoUtils
.
update
(
"HPZL001.delete"
,
resultRows
.
get
(
i
));
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"删除失败"
);
}
return
inInfo
;
}
/**
* 审核操作
*
* @param inInfo
* @return
*/
*/
public
EiInfo
operator
(
EiInfo
inInfo
)
{
public
EiInfo
audit
(
EiInfo
inInfo
)
{
HPZL001
HPZL001
=
new
HPZL001
();
try
{
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
CommonMethod
.
updateuserInfo
(
inInfo
,
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
return
super
.
update
(
inInfo
,
"HPZL001.operator"
);
HPZL001
fZl001
=
new
HPZL001
();
fZl001
.
fromMap
(
resultRows
.
get
(
i
));
fZl001
.
setStatus
(
1
);
DaoUtils
.
update
(
"HPZL001.operator"
,
fZl001
);
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据审核成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"审核失败"
);
}
return
inInfo
;
}
/**
* 反审操作
*
* @param inInfo
* @return
*/
public
EiInfo
unAudit
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPZL001
fZl001
=
new
HPZL001
();
fZl001
.
fromMap
(
resultRows
.
get
(
i
));
fZl001
.
setStatus
(
0
);
DaoUtils
.
update
(
"HPZL001.operator"
,
fZl001
);
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据反审成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"审核失败"
);
}
return
inInfo
;
}
}
/**
/**
...
...
src/main/webapp/HP/KC/HPKC003.jsp
View file @
60682ab7
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
false"
isFloat=
"true"
autoFit=
"true
"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
override"
isFloat=
"true"
checkMode=
"row
"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"prodNo"
cname=
"生产入库单号"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"prodNo"
cname=
"生产入库单号"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"documentDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"documentDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
...
...
src/main/webapp/HP/KC/HPKC004.jsp
View file @
60682ab7
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
false"
isFloat=
"true"
autoFit=
"true
"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
override"
isFloat=
"true"
checkMode=
"row
"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"saleNo"
cname=
"销售出库单号"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"saleNo"
cname=
"销售出库单号"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"receiptDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"receiptDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
...
...
src/main/webapp/HP/KC/HPKC005.jsp
View file @
60682ab7
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</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"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"statisticalNumber"
cname=
"盘点单号"
enable=
"false"
width=
"130"
algin=
"center"
/>
<EF:EFColumn
ename=
"statisticalNumber"
cname=
"盘点单号"
enable=
"false"
width=
"130"
algin=
"center"
/>
<EF:EFColumn
ename=
"receiptDate"
cname=
"单据日期"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
<EF:EFColumn
ename=
"receiptDate"
cname=
"单据日期"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
...
@@ -38,13 +38,13 @@
...
@@ -38,13 +38,13 @@
<EF:EFOption
label=
"0-待审核"
value=
"0"
></EF:EFOption>
<EF:EFOption
label=
"0-待审核"
value=
"0"
></EF:EFOption>
<EF:EFOption
label=
"1-已审核"
value=
"1"
></EF:EFOption>
<EF:EFOption
label=
"1-已审核"
value=
"1"
></EF:EFOption>
</EF:EFComboColumn>
--%>
</EF:EFComboColumn>
--%>
<EF:EFComboColumn
ename=
"whCode"
cname=
"仓库编码"
columnTemplate=
"#=textField#"
<EF:EFComboColumn
ename=
"whCode"
cname=
"仓库编码"
width=
"120"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
blockName=
"wh_record_block_id"
itemTemplate=
"#=textField#"
blockName=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
textField=
"textField"
valueField=
"valueField"
align=
"center"
filter=
"contains"
width=
"100"
>
align=
"center"
filter=
"contains"
>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"inventType"
cname=
"存货类型"
width=
"
9
0"
align=
"center"
>
<EF:EFComboColumn
ename=
"inventType"
cname=
"存货类型"
width=
"
10
0"
align=
"center"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"inventCode"
cname=
"存货名称"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"存货名称"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"spec"
cname=
"规格"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"spec"
cname=
"规格"
width=
"120"
align=
"center"
/>
...
@@ -56,16 +56,16 @@
...
@@ -56,16 +56,16 @@
sumType=
"all"
/>
sumType=
"all"
/>
<EF:EFColumn
ename=
"entityWeight"
cname=
"实物重量"
format=
"{0:N3}"
maxLength=
"20"
width=
"100"
align=
"right"
<EF:EFColumn
ename=
"entityWeight"
cname=
"实物重量"
format=
"{0:N3}"
maxLength=
"20"
width=
"100"
align=
"right"
sumType=
"all"
/>
sumType=
"all"
/>
<EF:EFColumn
ename=
"diffAmount"
cname=
"差异数量"
format=
"{0:N3}"
maxLength=
"20"
width=
"100"
align=
"right
"
<EF:EFColumn
ename=
"diffAmount"
cname=
"差异数量"
enable=
"false"
format=
"{0:N3}"
maxLength=
"20"
width=
"100
"
sumType=
"all"
/>
align=
"right"
sumType=
"all"
/>
<EF:EFColumn
ename=
"diffWeight"
cname=
"差异重量"
format=
"{0:N3}"
maxLength=
"20"
width=
"100"
align=
"right
"
<EF:EFColumn
ename=
"diffWeight"
cname=
"差异重量"
enable=
"false"
format=
"{0:N3}"
maxLength=
"20"
width=
"100
"
sumType=
"all"
/>
align=
"right"
sumType=
"all"
/>
<EF:EFColumn
ename=
"notes"
cname=
"备注"
width=
"100"
/>
<EF:EFColumn
ename=
"notes"
cname=
"备注"
width=
"100"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdBy"
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']"
/>
</EF:EFGrid>
</EF:EFGrid>
<p
class=
"text-info"
><span
style=
'color: red;'
>
注:差异数量=实物数量-账面数量;差异重量=实物重量-账面重量
</span></p>
</EF:EFRegion>
</EF:EFRegion>
</EF:EFPage>
</EF:EFPage>
src/main/webapp/HP/KC/HPKC008.js
View file @
60682ab7
$
(
function
()
{
$
(
function
()
{
// $("#inqu_status-0-receiptDate").val(__eiInfo.blocks.inqu_status.rows[0]);
// 查询
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
$
(
"#QUERY"
).
on
(
"click"
,
query
);
resultGrid
.
dataSource
.
page
(
1
);
// 点击查询按钮,从第1页开始查询
});
IPLATUI
.
EFGrid
=
{
IPLATUI
.
EFGrid
.
result
=
{
result
:{
pageable
:
{
pageable
:
{
pageSize
:
20
,
pageSize
:
20
,
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
]
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
],
},
columns
:
[{
field
:
"datemonth"
,
attributes
:
{
'class'
:
'i-input-readonly'
,
required
:
true
}
}]
}
}
}
}
});
});
/**
* 页面加载时执行
*/
$
(
window
).
load
(
function
()
{
// 查询
query
();
});
/**
* 查询
*/
let
query
=
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
}
src/main/webapp/HP/KC/HPKC008.jsp
View file @
60682ab7
...
@@ -8,32 +8,38 @@
...
@@ -8,32 +8,38 @@
<EF:EFPage
title=
"数据统计单"
>
<EF:EFPage
title=
"数据统计单"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFDatePicker
ename=
"inqu_status-0-datemonth"
cname=
"单据日期
"
<EF:EFDatePicker
cname=
"单据日期"
ename=
"inqu_status-0-dateMonth"
colWidth=
"3
"
format=
"yyyy-MM"
start=
"year"
depth=
"year"
readonly=
"true"
required=
"true"
/>
format=
"yyyy-MM"
start=
"year"
depth=
"year"
readonly=
"true"
required=
"true"
/>
<EF:EFInput
ename=
"inqu_status-0-statisticalNumber"
cname=
"统计单单号"
colWidth=
"4"
readonly=
"false"
/>
<EF:EFInput
cname=
"统计单单号"
ename=
"inqu_status-0-statNo"
colWidth=
"3"
/>
<EF:EFSelect
ename=
"inqu_status-0-inventCode"
cname=
"存货名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOptions
blockId=
"invent_name_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</div>
</div>
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
autoFit=
"true
"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row
"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"stat
isticalNumber"
cname=
"统计单单号"
enable=
"false"
width=
"13
0"
align=
"center"
/>
<EF:EFColumn
ename=
"stat
No"
cname=
"统计单单号"
enable=
"false"
width=
"14
0"
align=
"center"
/>
<EF:EFColumn
ename=
"date
month"
cname=
"月份"
editType=
"date"
dateFormat=
"yyyy-MM"
parseFormats=
"['yyyyMM']
"
<EF:EFColumn
ename=
"date
Month"
cname=
"月份"
width=
"100"
align=
"center"
editType=
"date
"
start=
"year"
depth=
"year"
width=
"100"
align=
"center
"
/>
dateFormat=
"yyyy-MM"
parseFormats=
"['yyyyMM']"
start=
"year"
depth=
"year"
required=
"true
"
/>
<EF:EFComboColumn
ename=
"
materialCode"
cname=
"存货名称"
width=
"120"
align=
"center
"
>
<EF:EFComboColumn
ename=
"
inventCode"
cname=
"存货名称"
width=
"120"
align=
"center"
required=
"true
"
>
<EF:EFOptions
blockId=
"invent_name_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"invent_name_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
width=
"100"
align=
"center"
maxLength=
"2"
/>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
width=
"100"
align=
"center"
maxLength=
"2"
/>
<EF:EFColumn
ename=
"amount"
cname=
"数量"
width=
"100"
align=
"right"
format=
"{0:N3}"
sumType=
"all"
/>
<EF:EFColumn
ename=
"amount"
cname=
"数量"
width=
"120"
align=
"right"
format=
"{0:N3}"
sumType=
"all"
<EF:EFColumn
ename=
"price"
cname=
"单价"
width=
"100"
align=
"right"
format=
"{0:C3}"
/>
required=
"true"
/>
<EF:EFColumn
ename=
"totalPrice"
cname=
"金额"
width=
"100"
align=
"right"
format=
"{0:C3}"
sumType=
"all"
/>
<EF:EFColumn
ename=
"price"
cname=
"单价"
width=
"120"
align=
"right"
format=
"{0:C3}"
required=
"true"
/>
<EF:EFColumn
ename=
"notes"
cname=
"备注"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"totalPrice"
cname=
"金额"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:C3}"
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
readonly=
"true"
width=
"150"
align=
"center"
enable=
"false"
sumType=
"all"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
width=
"150"
readonly=
"false"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人名称"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"140"
align=
"center"
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
<EF:EFColumn
ename=
"
createdBy"
cname=
"创建人"
readonly=
"true"
width=
"150"
align=
"center"
enable=
"false
"
/>
<EF:EFColumn
ename=
"
updatedName"
cname=
"更新人名称"
enable=
"false"
width=
"100"
align=
"center
"
/>
<EF:EFColumn
ename=
"updatedTime"
cname=
"更新时间"
readonly=
"true"
width=
"150"
align=
"center"
enable=
"false
"
<EF:EFColumn
ename=
"updatedTime"
cname=
"更新时间"
enable=
"false"
width=
"140"
align=
"center
"
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
<EF:EFColumn
ename=
"updatedBy"
cname=
"更新人"
readonly=
"true"
width=
"150"
align=
"center"
enable=
"false"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
src/main/webapp/HP/PZ/HPPZ002.jsp
View file @
60682ab7
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
false"
isFloat=
"true"
autoFit=
"true
"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
override"
isFloat=
"true"
checkMode=
"row
"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"custCode"
cname=
"供应商编码"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"custCode"
cname=
"供应商编码"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"custName"
cname=
"供应商名称"
width=
"100"
required=
"true"
/>
<EF:EFColumn
ename=
"custName"
cname=
"供应商名称"
width=
"100"
required=
"true"
/>
...
...
src/main/webapp/HP/PZ/HPPZ003.jsp
View file @
60682ab7
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"custCode"
cname=
"客户编码"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"custCode"
cname=
"客户编码"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFComboColumn
ename=
"custType"
cname=
"客户类型"
width=
"100"
align=
"center"
<EF:EFComboColumn
ename=
"custType"
cname=
"客户类型"
width=
"100"
align=
"center"
...
...
src/main/webapp/HP/PZ/HPPZ004.jsp
View file @
60682ab7
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
false"
isFloat=
"true"
autoFit=
"true
"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
override"
isFloat=
"true"
checkMode=
"row
"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"存货编码"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"存货编码"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
width=
"120"
required=
"true"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
width=
"120"
required=
"true"
/>
...
...
src/main/webapp/HP/PZ/HPPZ006.jsp
View file @
60682ab7
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-inventCode"
cname=
"存货名称
"
colWidth=
"3"
filter=
"contains"
>
<EF:EFSelect
cname=
"存货名称"
ename=
"inqu_status-0-inventCode
"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOption
label=
"--全部--"
value=
""
/>
<EF:EFOption
label=
"--全部--"
value=
""
/>
<EF:EFOptions
blockId=
"invent_name_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"invent_name_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
false"
isFloat=
"true"
autoFit=
"true
"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
override"
isFloat=
"true"
checkMode=
"row
"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"inventType"
cname=
"存货类型"
width=
"120"
align=
"center"
>
<EF:EFComboColumn
ename=
"inventType"
cname=
"存货类型"
width=
"120"
align=
"center"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
...
@@ -55,5 +55,4 @@
...
@@ -55,5 +55,4 @@
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
</EF:EFPage>
</EF:EFPage>
src/main/webapp/HP/PZ/HPPZ007.jsp
View file @
60682ab7
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
no
"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
override"
checkMode=
"row
"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库编码"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库编码"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
...
...
src/main/webapp/HP/PZ/HPPZ008.jsp
View file @
60682ab7
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"whType"
required=
'true'
cname=
"仓库类型"
/>
<EF:EFColumn
ename=
"whType"
required=
'true'
cname=
"仓库类型"
/>
<EF:EFColumn
ename=
"whCode"
required=
'true'
cname=
"仓库编码"
/>
<EF:EFColumn
ename=
"whCode"
required=
'true'
cname=
"仓库编码"
/>
...
@@ -44,4 +44,4 @@
...
@@ -44,4 +44,4 @@
<script>
<script>
var
ctx
=
"${ctx}"
;
var
ctx
=
"${ctx}"
;
</script>
</script>
<script
src=
"${ctx}/HP/PZ/HPPZ008.js"
></script>
<script
src=
"${ctx}/HP/PZ/HPPZ008.js"
></script>
\ No newline at end of file
src/main/webapp/HP/PZ/HPPZ009.jsp
View file @
60682ab7
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
cname=
"企业编码"
ename=
"companyCode"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
cname=
"企业编码"
ename=
"companyCode"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
cname=
"企业名称"
ename=
"companyName"
width=
"140"
editType=
"textarea"
required=
"true"
/>
<EF:EFColumn
cname=
"企业名称"
ename=
"companyName"
width=
"140"
editType=
"textarea"
required=
"true"
/>
...
...
src/main/webapp/HP/ZL/HPZL001.js
View file @
60682ab7
let
rowId
;
let
rowId
;
$
(
function
()
{
$
(
function
()
{
// var day1 = new Date();
// day1.setTime(day1.getTime());
// day1.setDate(day1.getDate()-1);
// var month = day1.getMonth() + 1;
// var year = day1.getFullYear();
// var day = day1.getDate();
// let inqu = $("#inqu")
// ,result = $("#result")
// ,from = $("#from")
// ,receiptDate = $("#inqu_status-0-receiptDate");
// receiptDate.val(year+"-"+month+"-"+day)
//
// $("#inqu_status-0-receiptDate").val(year+"-"+month+"-"+day);
// 查询
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
// 点击查询按钮,从第1页开始查询
resultGrid
.
dataSource
.
page
(
1
);
// 点击查询按钮,从第1页开始查询
...
@@ -48,10 +34,10 @@ $(function() {
...
@@ -48,10 +34,10 @@ $(function() {
let
auditStatus
=
item
.
status
;
let
auditStatus
=
item
.
status
;
if
(
auditStatus
==
0
)
{
if
(
auditStatus
==
0
)
{
return
'<a style="cursor: pointer;display: flex;justify-content: center;" '
+
return
'<a style="cursor: pointer;display: flex;justify-content: center;" '
+
'onclick="audit('
+
item
.
id
+
',
\'
'
+
chkBillno
+
'
\'
,1
)" >审核</a>'
;
'onclick="audit('
+
item
.
id
+
',
\'
'
+
chkBillno
+
'
\'
)" >审核</a>'
;
}
else
{
}
else
{
return
'<a style="cursor: pointer;display: flex;justify-content: center;" '
+
return
'<a style="cursor: pointer;display: flex;justify-content: center;" '
+
'onclick="
audit('
+
item
.
id
+
',
\'
'
+
chkBillno
+
'
\'
,0
)" >反审</a>'
;
'onclick="
unAudit('
+
item
.
id
+
',
\'
'
+
chkBillno
+
'
\'
)" >反审</a>'
;
}
}
}
}
}]
}]
...
@@ -100,26 +86,27 @@ function openUploadFile(id) {
...
@@ -100,26 +86,27 @@ function openUploadFile(id) {
* @param chkBillno
* @param chkBillno
* @param auditStatus
* @param auditStatus
*/
*/
function
audit
(
id
,
chkBill
no
,
auditStatus
)
{
function
audit
(
id
,
chkBill
No
)
{
let
message
=
"确认对单号["
+
chkBill
no
+
"]进行"
+
(
auditStatus
==
1
?
"审核"
:
"反审"
)
+
"
操作吗? "
;
let
message
=
"确认对单号["
+
chkBill
No
+
"]进行审核
操作吗? "
;
JSUtils
.
confirm
(
message
,
{
JSUtils
.
confirm
(
message
,
{
ok
:
function
()
{
ok
:
function
()
{
const
inEiInfo
=
new
EiInfo
();
JSUtils
.
submitGridsData
(
"result"
,
"HPZL001"
,
"audit"
,
true
);
inEiInfo
.
set
(
"result-0-id"
,
id
);
}
inEiInfo
.
set
(
"result-0-status"
,
auditStatus
);
});
EiCommunicator
.
send
(
'HPZL001'
,
'operator'
,
inEiInfo
,
{
}
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
/**
if
(
response
.
status
>=
0
){
* 反审操作
resultGrid
.
dataSource
.
page
(
1
);
*
}
* @param id
},
* @param chkBillno
onFail
(
errorMessage
,
status
,
e
)
{
* @param auditStatus
NotificationUtil
(
"执行失败!"
,
"error"
);
*/
}
function
unAudit
(
id
,
chkBillNo
)
{
},
{
let
message
=
"确认对单号["
+
chkBillNo
+
"]进行反审操作吗? "
;
async
:
false
JSUtils
.
confirm
(
message
,
{
});
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HPZL001"
,
"unAudit"
,
true
);
}
}
});
});
}
}
src/main/webapp/HP/ZL/HPZL001.jsp
View file @
60682ab7
...
@@ -27,22 +27,20 @@
...
@@ -27,22 +27,20 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
false"
isFloat=
"true"
autoFit=
"true
"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"
override"
isFloat=
"true"
checkMode=
"row
"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"chkBillno"
cname=
"检查单号"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"chkBillno"
cname=
"检查单号"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"receiptDate"
cname=
"单据日期"
editType=
"date"
dateFormat=
"yyyy-MM-dd
"
<EF:EFColumn
ename=
"receiptDate"
cname=
"单据日期"
width=
"120"
align=
"center"
editType=
"date
"
parseFormats=
"['yyyyMMdd']"
width=
"120"
readonly=
"false
"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']
"
/>
<EF:EFComboColumn
ename=
"itemCode"
cname=
"项目名称"
columnTemplate=
"#=textField#"
<EF:EFComboColumn
ename=
"itemCode"
cname=
"项目名称"
width=
"140"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
blockName=
"proj_record_block_id"
itemTemplate=
"#=textField#"
blockName=
"proj_record_block_id"
textField=
"textField"
valueField=
"valueField"
maxLength=
"20"
textField=
"textField"
valueField=
"valueField"
maxLength=
"20"
re
adonly=
"false"
style=
"color:blue;"
required=
"true"
filter=
"contains"
width=
"220
"
>
re
quired=
"true"
filter=
"contains
"
>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"unit"
cname=
"生产组"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"unit"
cname=
"生产组"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"notes"
cname=
"质量问题描述"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"notes"
cname=
"质量问题描述"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"princ"
cname=
"检查人"
width=
"100"
readonly=
"true"
/>
<EF:EFColumn
ename=
"princ"
cname=
"检查人"
width=
"100"
readonly=
"true"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
align=
"center"
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
align=
"center"
textField=
"textField"
columnTemplate=
"#=valueField#-#=textField#"
itemTemplate=
"#=valueField#-#=textField#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
required=
"true"
optionLabel=
" "
>
valueField=
"valueField"
width=
"100"
required=
"true"
optionLabel=
" "
>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"审核"
value=
"1"
></EF:EFOption>
<EF:EFOption
label=
"审核"
value=
"1"
></EF:EFOption>
...
...
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