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
40914985
Commit
40914985
authored
Nov 17, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工序质检单
parent
c1f1566f
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
2407 additions
and
2 deletions
+2407
-2
CheckStatusEnum.java
src/main/java/com/baosight/hpjx/common/CheckStatusEnum.java
+47
-0
DdynamicEnum.java
src/main/java/com/baosight/hpjx/common/DdynamicEnum.java
+8
-1
HPConstant.java
src/main/java/com/baosight/hpjx/hp/constant/HPConstant.java
+2
-0
ServiceHPSC005B.java
...java/com/baosight/hpjx/hp/sc/service/ServiceHPSC005B.java
+13
-0
HPSC005B.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005B.xml
+43
-0
HPZL003.java
src/main/java/com/baosight/hpjx/hp/zl/domain/HPZL003.java
+1231
-0
ServiceHPZL003.java
.../java/com/baosight/hpjx/hp/zl/service/ServiceHPZL003.java
+145
-0
HPZL003.xml
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL003.xml
+531
-0
HPZLTools.java
src/main/java/com/baosight/hpjx/hp/zl/tools/HPZLTools.java
+46
-1
HPZL003.js
src/main/webapp/HP/ZL/HPZL003.js
+236
-0
HPZL003.jsp
src/main/webapp/HP/ZL/HPZL003.jsp
+105
-0
No files found.
src/main/java/com/baosight/hpjx/common/CheckStatusEnum.java
0 → 100644
View file @
40914985
package
com
.
baosight
.
hpjx
.
common
;
/**
* @author LiuYang
* @version 1.0 2024/11/16
* @description
*/
public
enum
CheckStatusEnum
{
CHECKING
(
0
,
"质检中"
),
CHECKED
(
1
,
"质检完成"
);
private
Integer
code
;
private
String
value
;
CheckStatusEnum
(
Integer
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
static
CheckStatusEnum
getEnumByCode
(
Integer
code
){
for
(
CheckStatusEnum
en
:
CheckStatusEnum
.
values
()){
if
(
code
.
compareTo
(
en
.
code
)==
0
){
return
en
;
}
}
return
null
;
}
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
}
src/main/java/com/baosight/hpjx/common/DdynamicEnum.java
View file @
40914985
...
...
@@ -144,7 +144,7 @@ public enum DdynamicEnum {
* 用途:组管理下拉框
* 编写:songx
*/
GROUP_RECORD_BLOCK_ID
(
"group_record_block_id"
,
"orgId"
,
"orgCname"
,
"HPXSOrg.queryGroupComboBox"
),
GROUP_RECORD_BLOCK_ID
(
"group_record_block_id"
,
"orgId"
,
"orgCname"
,
"
factoryCode"
,
"
HPXSOrg.queryGroupComboBox"
),
/**
* 模块:组管理
...
...
@@ -430,6 +430,13 @@ public enum DdynamicEnum {
* 编写:ly
*/
ITEM_CODE_BLOCK_ID
(
"itemCode_block_id"
,
"itemCode"
,
"itemName"
,
"itemModel"
,
"itemType"
,
"itemUnit"
,
"invQty"
,
"whCode"
,
"whName"
,
"HPBG001.queryItemCodeBox"
),
/**
* 模块:协同办公
* 用途:用户用品下拉框
* 编写:ly
*/
PRDT_CODE_BLOCK_ID
(
"prdtCode_block_id"
,
"prdtCode"
,
"prdtName"
,
"prodOrderNo"
,
"prdtSpec"
,
"partCode"
,
"partName"
,
"partSpec"
,
"workDate"
,
"assignedNum"
,
"unitWt"
,
"childId"
,
"HPSC005B.queryComboBox"
),
;
...
...
src/main/java/com/baosight/hpjx/hp/constant/HPConstant.java
View file @
40914985
...
...
@@ -131,6 +131,8 @@ public class HPConstant {
public
static
final
String
MAINTENANCE_NUMBER
=
"MAINTENANCE_NUMBER"
;
//会议室管理申请单号
public
static
final
String
CONFERENCE_APPLY_NO
=
"CONFERENCE_APPLY_NO"
;
public
static
final
String
HPZL002_CHECK_CODE
=
"HPZL002_CHECK_CODE"
;
}
/**
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC005B.java
View file @
40914985
...
...
@@ -64,6 +64,19 @@ public class ServiceHPSC005B extends ServiceBase {
return
inInfo
;
}
public
EiInfo
queryComboBox
(
EiInfo
inInfo
){
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
List
<
DdynamicEnum
>
list
=
new
ArrayList
<>();
list
.
add
(
DdynamicEnum
.
PRDT_CODE_BLOCK_ID
);
boolean
isSplicingSymbol
=
false
;
if
(
inInfo
.
getString
(
"isSplicingSymbol"
)
!=
null
)
{
isSplicingSymbol
=
Boolean
.
parseBoolean
(
inInfo
.
getString
(
"isSplicingSymbol"
));
}
else
{
isSplicingSymbol
=
MapUtils
.
getBooleanValue
(
queryRow
,
"isSplicingSymbol"
);
}
CommonMethod
.
initBlock
(
inInfo
,
list
,
queryRow
,
isSplicingSymbol
);
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"导出"
,
operDesc
=
"导出操作"
)
public
EiInfo
export
(
EiInfo
inEiInfo
)
{
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005B.xml
View file @
40914985
...
...
@@ -177,4 +177,47 @@
<include
refid=
"customCondition"
/>
</select>
<select
id=
"queryComboBox"
resultClass=
"java.util.HashMap"
>
SELECT
A.ID as "id",
A.PROD_ORDER_NO as "prodOrderNo",
<!-- 生产订单号 -->
A.PRDT_CODE as "prdtCode",
<!-- 部件编码 -->
CONCAT('[',A.PART_NAME,']',A.PRDT_NAME) as "prdtName",
<!-- 部件名称 -->
A.PRDT_SPEC as "prdtSpec",
A.PART_TYPE as "partType",
A.PART_CODE as "partCode",
A.PART_NAME as "partName",
A.PART_SPEC as "partSpec",
A.PRDT_LENGTH as "prdtLength",
<!-- 长 -->
A.PRDT_WIDTH as "prdtWidth",
<!-- 宽 -->
A.PRDT_THICK as "prdtThick",
<!-- 厚 -->
A.PART_LENGTH as "partLength",
<!-- 长 -->
A.PART_WIDTH as "partWidth",
<!-- 宽 -->
A.PART_THICK as "partThick",
<!-- 厚 -->
A.UNIT_WT as "unitWt",
<!-- 单重 -->
A.STATUS as "status",
<!-- 状态 -->
A.WORK_DATE as "workDate",
A.PLAN_COMPLETION_DATE as "planCompletionDate",
<!-- 计划完成日期 -->
A.FILE_PATH1 as "filePath1",
A.ASSIGNED_NUM as "assignedNum",
<!-- 已派工数量 -->
A.UNASSIGNED_NUM as "unassignedNum",
<!-- 未派工数量 -->
B.ID as "childId",
B.PROD_TASK_NO as "prodTaskNo",
B.PROD_ORDER_NO as "prodOrderNo",
B.NUM as "num",
B.TOTAL_WT as "totalWt",
B.COMPLETE_NUM as "completeNum",
<!-- 完成数量 -->
B.FACTORY_CODE as "factoryCode",
<!-- 厂区编码 -->
B.FACTORY_NAME as "factoryName",
<!-- 工厂 -->
B.ORG_NO as "orgNo",
B.ORG_NAME as "orgName",
A.DELIVERY_DATE as "deliveryDate"
FROM ${hpjxSchema}.T_HPSC005 A
INNER JOIN ${hpjxSchema}.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
WHERE 1=1 AND A.STATUS != 0
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"order"
/>
</select>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/zl/domain/HPZL003.java
0 → 100644
View file @
40914985
package
com
.
baosight
.
hpjx
.
hp
.
zl
.
domain
;
import
com.baosight.hpjx.util.DateUtils
;
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:THpzl002.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-11-16 20:09:56 create
*/
public
class
HPZL003
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_id
=
"id"
;
public
static
final
String
FIELD_company_code
=
"companyCode"
;
/* 企业编码*/
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_factory_code
=
"factoryCode"
;
/* 工厂编号*/
public
static
final
String
FIELD_factory_name
=
"factoryName"
;
/* 工厂名称*/
public
static
final
String
FIELD_org_no
=
"orgNo"
;
/* 生产组编码*/
public
static
final
String
FIELD_org_name
=
"orgName"
;
/* 生产组名称*/
public
static
final
String
FIELD_proj_code
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_proj_name
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_mat_id
=
"matId"
;
/* 物料清单ID*/
public
static
final
String
FIELD_work_id
=
"workId"
;
/* 报工单ID*/
public
static
final
String
FIELD_process_code
=
"processCode"
;
/* 工序编码*/
public
static
final
String
FIELD_process_name
=
"processName"
;
/* 工序名称*/
public
static
final
String
FIELD_work_code
=
"workCode"
;
/* 报工单编码*/
public
static
final
String
FIELD_check_code
=
"checkCode"
;
/* 质检单编码*/
public
static
final
String
FIELD_prdt_type
=
"prdtType"
;
/* 产品类型*/
public
static
final
String
FIELD_prdt_code
=
"prdtCode"
;
/* 产品编码*/
public
static
final
String
FIELD_prdt_name
=
"prdtName"
;
/* 产品名称*/
public
static
final
String
FIELD_prdt_length
=
"prdtLength"
;
/* 产品-长*/
public
static
final
String
FIELD_prdt_width
=
"prdtWidth"
;
/* 产品-宽*/
public
static
final
String
FIELD_prdt_thick
=
"prdtThick"
;
/* 产品-厚*/
public
static
final
String
FIELD_prdt_spec
=
"prdtSpec"
;
/* 产品规格*/
public
static
final
String
FIELD_part_type
=
"partType"
;
/* 零件类型*/
public
static
final
String
FIELD_part_code
=
"partCode"
;
/* 零件编码*/
public
static
final
String
FIELD_part_name
=
"partName"
;
/* 零件名称*/
public
static
final
String
FIELD_part_length
=
"partLength"
;
/* 零件-长*/
public
static
final
String
FIELD_part_width
=
"partWidth"
;
/* 零件-宽*/
public
static
final
String
FIELD_part_thick
=
"partThick"
;
/* 零件-厚*/
public
static
final
String
FIELD_part_spec
=
"partSpec"
;
/* 零件规格*/
public
static
final
String
FIELD_quantity
=
"quantity"
;
/* 数量*/
public
static
final
String
FIELD_pass_quantity
=
"passQuantity"
;
/* 合格数量*/
public
static
final
String
FIELD_unpass_quantity
=
"unpassQuantity"
;
/* 不合格数量*/
public
static
final
String
FIELD_single_weight
=
"singleWeight"
;
/* 单重*/
public
static
final
String
FIELD_total_weight
=
"totalWeight"
;
/* 总重*/
public
static
final
String
FIELD_check_by
=
"checkBy"
;
/* 质检人*/
public
static
final
String
FIELD_check_name
=
"checkName"
;
/* 质检人名称*/
public
static
final
String
FIELD_check_date
=
"checkDate"
;
/* 质检日期*/
public
static
final
String
FIELD_check_status
=
"checkStatus"
;
/* 提交状态 0:质检中;1:质检完成*/
public
static
final
String
FIELD_register_date
=
"registerDate"
;
/* 报工日期*/
public
static
final
String
COL_id
=
"id"
;
public
static
final
String
COL_company_code
=
"company_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_factory_code
=
"factory_code"
;
/* 工厂编号*/
public
static
final
String
COL_factory_name
=
"factory_name"
;
/* 工厂名称*/
public
static
final
String
COL_org_no
=
"org_no"
;
/* 生产组编码*/
public
static
final
String
COL_org_name
=
"org_name"
;
/* 生产组名称*/
public
static
final
String
COL_proj_code
=
"proj_code"
;
/* 项目编码*/
public
static
final
String
COL_proj_name
=
"proj_name"
;
/* 项目名称*/
public
static
final
String
COL_mat_id
=
"mat_id"
;
/* 物料清单ID*/
public
static
final
String
COL_work_id
=
"work_id"
;
/* 报工单ID*/
public
static
final
String
COL_process_code
=
"process_code"
;
/* 工序编码*/
public
static
final
String
COL_process_name
=
"process_name"
;
/* 工序名称*/
public
static
final
String
COL_work_code
=
"work_code"
;
/* 报工单编码*/
public
static
final
String
COL_check_code
=
"check_code"
;
/* 质检单编码*/
public
static
final
String
COL_prdt_type
=
"prdt_type"
;
/* 产品类型*/
public
static
final
String
COL_prdt_code
=
"prdt_code"
;
/* 产品编码*/
public
static
final
String
COL_prdt_name
=
"prdt_name"
;
/* 产品名称*/
public
static
final
String
COL_prdt_length
=
"prdt_length"
;
/* 产品-长*/
public
static
final
String
COL_prdt_width
=
"prdt_width"
;
/* 产品-宽*/
public
static
final
String
COL_prdt_thick
=
"prdt_thick"
;
/* 产品-厚*/
public
static
final
String
COL_prdt_spec
=
"prdt_spec"
;
/* 产品规格*/
public
static
final
String
COL_part_type
=
"part_type"
;
/* 零件类型*/
public
static
final
String
COL_part_code
=
"part_code"
;
/* 零件编码*/
public
static
final
String
COL_part_name
=
"part_name"
;
/* 零件名称*/
public
static
final
String
COL_part_length
=
"part_length"
;
/* 零件-长*/
public
static
final
String
COL_part_width
=
"part_width"
;
/* 零件-宽*/
public
static
final
String
COL_part_thick
=
"part_thick"
;
/* 零件-厚*/
public
static
final
String
COL_part_spec
=
"part_spec"
;
/* 零件规格*/
public
static
final
String
COL_quantity
=
"quantity"
;
/* 数量*/
public
static
final
String
COL_pass_quantity
=
"pass_quantity"
;
/* 合格数量*/
public
static
final
String
COL_unpass_quantity
=
"unpass_quantity"
;
/* 不合格数量*/
public
static
final
String
COL_single_weight
=
"single_weight"
;
/* 单重*/
public
static
final
String
COL_total_weight
=
"total_weight"
;
/* 总重*/
public
static
final
String
COL_check_by
=
"check_by"
;
/* 质检人*/
public
static
final
String
COL_check_name
=
"check_name"
;
/* 质检人名称*/
public
static
final
String
COL_check_date
=
"check_date"
;
/* 质检日期*/
public
static
final
String
COL_check_status
=
"check_status"
;
/* 提交状态 0:质检中;1:质检完成*/
public
static
final
String
COL_register_date
=
"register_date"
;
/* 报工日期*/
public
static
final
String
QUERY
=
"HPZL003.query"
;
public
static
final
String
COUNT
=
"HPZL003.count"
;
public
static
final
String
INSERT
=
"HPZL003.insert"
;
public
static
final
String
UPDATE
=
"HPZL003.update"
;
public
static
final
String
DELETE
=
"HPZL003.delete"
;
public
static
final
String
UPDATE_STATUS
=
"HPZL003.updateStatus"
;
private
Long
id
=
new
Long
(
0
);
private
String
companyCode
=
" "
;
/* 企业编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更改人*/
private
String
updatedName
=
" "
;
/* 更改人名称*/
private
String
updatedTime
=
" "
;
/* 更改时间*/
private
String
factoryCode
=
" "
;
/* 工厂编号*/
private
String
factoryName
=
" "
;
/* 工厂名称*/
private
String
orgNo
=
" "
;
/* 生产组编码*/
private
String
orgName
=
" "
;
/* 生产组名称*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
Long
matId
=
new
Long
(
0
);
/* 物料清单ID*/
private
Long
workId
=
new
Long
(
0
);
/* 报工单ID*/
private
String
processCode
=
" "
;
/* 工序编码*/
private
String
processName
=
" "
;
/* 工序名称*/
private
String
workCode
=
" "
;
/* 报工单编码*/
private
String
checkCode
=
" "
;
/* 质检单编码*/
private
Boolean
prdtType
;
/* 产品类型*/
private
String
prdtCode
=
" "
;
/* 产品编码*/
private
String
prdtName
=
" "
;
/* 产品名称*/
private
BigDecimal
prdtLength
=
new
BigDecimal
(
"0"
);
/* 产品-长*/
private
BigDecimal
prdtWidth
=
new
BigDecimal
(
"0"
);
/* 产品-宽*/
private
BigDecimal
prdtThick
=
new
BigDecimal
(
"0"
);
/* 产品-厚*/
private
String
prdtSpec
=
" "
;
/* 产品规格*/
private
Boolean
partType
;
/* 零件类型*/
private
String
partCode
=
" "
;
/* 零件编码*/
private
String
partName
=
" "
;
/* 零件名称*/
private
BigDecimal
partLength
=
new
BigDecimal
(
"0"
);
/* 零件-长*/
private
BigDecimal
partWidth
=
new
BigDecimal
(
"0"
);
/* 零件-宽*/
private
BigDecimal
partThick
=
new
BigDecimal
(
"0"
);
/* 零件-厚*/
private
String
partSpec
=
" "
;
/* 零件规格*/
private
BigDecimal
quantity
=
new
BigDecimal
(
0.0
);
/* 数量*/
private
BigDecimal
passQuantity
=
new
BigDecimal
(
0.0
);
/* 合格数量*/
private
BigDecimal
unpassQuantity
=
new
BigDecimal
(
0.0
);
/* 不合格数量*/
private
BigDecimal
singleWeight
=
new
BigDecimal
(
"0"
);
/* 单重*/
private
BigDecimal
totalWeight
=
new
BigDecimal
(
"0"
);
/* 总重*/
private
String
checkBy
=
" "
;
/* 质检人*/
private
String
checkName
=
" "
;
/* 质检人名称*/
private
String
checkDate
=
" "
;
/* 质检日期*/
private
Integer
checkStatus
=
new
Integer
(
0
);
/* 提交状态 0:质检中;1:质检完成*/
private
String
registerDate
=
" "
;
/* 报工日期*/
/**
* 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_company_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_factory_code
);
eiColumn
.
setDescName
(
"工厂编号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_factory_name
);
eiColumn
.
setDescName
(
"工厂名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_org_no
);
eiColumn
.
setDescName
(
"生产组编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_org_name
);
eiColumn
.
setDescName
(
"生产组名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_proj_code
);
eiColumn
.
setDescName
(
"项目编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_proj_name
);
eiColumn
.
setDescName
(
"项目名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_mat_id
);
eiColumn
.
setDescName
(
"物料清单ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_work_id
);
eiColumn
.
setDescName
(
"报工单ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_process_code
);
eiColumn
.
setDescName
(
"工序编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_process_name
);
eiColumn
.
setDescName
(
"工序名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_work_code
);
eiColumn
.
setDescName
(
"报工单编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_check_code
);
eiColumn
.
setDescName
(
"质检单编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_prdt_type
);
eiColumn
.
setDescName
(
"产品类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_prdt_code
);
eiColumn
.
setDescName
(
"产品编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_prdt_name
);
eiColumn
.
setDescName
(
"产品名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_prdt_length
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"产品-长"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_prdt_width
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"产品-宽"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_prdt_thick
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"产品-厚"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_prdt_spec
);
eiColumn
.
setDescName
(
"产品规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_part_type
);
eiColumn
.
setDescName
(
"零件类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_part_code
);
eiColumn
.
setDescName
(
"零件编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_part_name
);
eiColumn
.
setDescName
(
"零件名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_part_length
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"零件-长"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_part_width
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"零件-宽"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_part_thick
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"零件-厚"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_part_spec
);
eiColumn
.
setDescName
(
"零件规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_quantity
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
1
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_pass_quantity
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
1
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"合格数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_unpass_quantity
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
1
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"不合格数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_single_weight
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"单重"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_total_weight
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"总重"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_check_by
);
eiColumn
.
setDescName
(
"质检人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_check_name
);
eiColumn
.
setDescName
(
"质检人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_check_date
);
eiColumn
.
setDescName
(
"质检日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_check_status
);
eiColumn
.
setDescName
(
"提交状态 0:质检中;1:质检完成"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_register_date
);
eiColumn
.
setDescName
(
"报工日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HPZL003
()
{
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 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 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 factoryCode - 工厂编号.
* @return the factoryCode
*/
public
String
getFactoryCode
()
{
return
this
.
factoryCode
;
}
/**
* set the factoryCode - 工厂编号.
*
* @param factoryCode - 工厂编号
*/
public
void
setFactoryCode
(
String
factoryCode
)
{
this
.
factoryCode
=
factoryCode
;
}
/**
* get the factoryName - 工厂名称.
* @return the factoryName
*/
public
String
getFactoryName
()
{
return
this
.
factoryName
;
}
/**
* set the factoryName - 工厂名称.
*
* @param factoryName - 工厂名称
*/
public
void
setFactoryName
(
String
factoryName
)
{
this
.
factoryName
=
factoryName
;
}
/**
* get the orgNo - 生产组编码.
* @return the orgNo
*/
public
String
getOrgNo
()
{
return
this
.
orgNo
;
}
/**
* set the orgNo - 生产组编码.
*
* @param orgNo - 生产组编码
*/
public
void
setOrgNo
(
String
orgNo
)
{
this
.
orgNo
=
orgNo
;
}
/**
* get the orgName - 生产组名称.
* @return the orgName
*/
public
String
getOrgName
()
{
return
this
.
orgName
;
}
/**
* set the orgName - 生产组名称.
*
* @param orgName - 生产组名称
*/
public
void
setOrgName
(
String
orgName
)
{
this
.
orgName
=
orgName
;
}
/**
* get the projCode - 项目编码.
* @return the projCode
*/
public
String
getProjCode
()
{
return
this
.
projCode
;
}
/**
* set the projCode - 项目编码.
*
* @param projCode - 项目编码
*/
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
/**
* get the projName - 项目名称.
* @return the projName
*/
public
String
getProjName
()
{
return
this
.
projName
;
}
/**
* set the projName - 项目名称.
*
* @param projName - 项目名称
*/
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
* get the matId - 物料清单ID.
* @return the matId
*/
public
Long
getMatId
()
{
return
this
.
matId
;
}
/**
* set the matId - 物料清单ID.
*
* @param matId - 物料清单ID
*/
public
void
setMatId
(
Long
matId
)
{
this
.
matId
=
matId
;
}
/**
* get the workId - 报工单ID.
* @return the workId
*/
public
Long
getWorkId
()
{
return
this
.
workId
;
}
/**
* set the workId - 报工单ID.
*
* @param workId - 报工单ID
*/
public
void
setWorkId
(
Long
workId
)
{
this
.
workId
=
workId
;
}
/**
* get the processCode - 工序编码.
* @return the processCode
*/
public
String
getProcessCode
()
{
return
this
.
processCode
;
}
/**
* set the processCode - 工序编码.
*
* @param processCode - 工序编码
*/
public
void
setProcessCode
(
String
processCode
)
{
this
.
processCode
=
processCode
;
}
/**
* get the processName - 工序名称.
* @return the processName
*/
public
String
getProcessName
()
{
return
this
.
processName
;
}
/**
* set the processName - 工序名称.
*
* @param processName - 工序名称
*/
public
void
setProcessName
(
String
processName
)
{
this
.
processName
=
processName
;
}
/**
* get the workCode - 报工单编码.
* @return the workCode
*/
public
String
getWorkCode
()
{
return
this
.
workCode
;
}
/**
* set the workCode - 报工单编码.
*
* @param workCode - 报工单编码
*/
public
void
setWorkCode
(
String
workCode
)
{
this
.
workCode
=
workCode
;
}
/**
* get the checkCode - 质检单编码.
* @return the checkCode
*/
public
String
getCheckCode
()
{
return
this
.
checkCode
;
}
/**
* set the checkCode - 质检单编码.
*
* @param checkCode - 质检单编码
*/
public
void
setCheckCode
(
String
checkCode
)
{
this
.
checkCode
=
checkCode
;
}
/**
* get the prdtType - 产品类型.
* @return the prdtType
*/
public
Boolean
getPrdtType
()
{
return
this
.
prdtType
;
}
/**
* set the prdtType - 产品类型.
*
* @param prdtType - 产品类型
*/
public
void
setPrdtType
(
Boolean
prdtType
)
{
this
.
prdtType
=
prdtType
;
}
/**
* get the prdtCode - 产品编码.
* @return the prdtCode
*/
public
String
getPrdtCode
()
{
return
this
.
prdtCode
;
}
/**
* set the prdtCode - 产品编码.
*
* @param prdtCode - 产品编码
*/
public
void
setPrdtCode
(
String
prdtCode
)
{
this
.
prdtCode
=
prdtCode
;
}
/**
* get the prdtName - 产品名称.
* @return the prdtName
*/
public
String
getPrdtName
()
{
return
this
.
prdtName
;
}
/**
* set the prdtName - 产品名称.
*
* @param prdtName - 产品名称
*/
public
void
setPrdtName
(
String
prdtName
)
{
this
.
prdtName
=
prdtName
;
}
/**
* get the prdtLength - 产品-长.
* @return the prdtLength
*/
public
BigDecimal
getPrdtLength
()
{
return
this
.
prdtLength
;
}
/**
* set the prdtLength - 产品-长.
*
* @param prdtLength - 产品-长
*/
public
void
setPrdtLength
(
BigDecimal
prdtLength
)
{
this
.
prdtLength
=
prdtLength
;
}
/**
* get the prdtWidth - 产品-宽.
* @return the prdtWidth
*/
public
BigDecimal
getPrdtWidth
()
{
return
this
.
prdtWidth
;
}
/**
* set the prdtWidth - 产品-宽.
*
* @param prdtWidth - 产品-宽
*/
public
void
setPrdtWidth
(
BigDecimal
prdtWidth
)
{
this
.
prdtWidth
=
prdtWidth
;
}
/**
* get the prdtThick - 产品-厚.
* @return the prdtThick
*/
public
BigDecimal
getPrdtThick
()
{
return
this
.
prdtThick
;
}
/**
* set the prdtThick - 产品-厚.
*
* @param prdtThick - 产品-厚
*/
public
void
setPrdtThick
(
BigDecimal
prdtThick
)
{
this
.
prdtThick
=
prdtThick
;
}
/**
* get the prdtSpec - 产品规格.
* @return the prdtSpec
*/
public
String
getPrdtSpec
()
{
return
this
.
prdtSpec
;
}
/**
* set the prdtSpec - 产品规格.
*
* @param prdtSpec - 产品规格
*/
public
void
setPrdtSpec
(
String
prdtSpec
)
{
this
.
prdtSpec
=
prdtSpec
;
}
/**
* get the partType - 零件类型.
* @return the partType
*/
public
Boolean
getPartType
()
{
return
this
.
partType
;
}
/**
* set the partType - 零件类型.
*
* @param partType - 零件类型
*/
public
void
setPartType
(
Boolean
partType
)
{
this
.
partType
=
partType
;
}
/**
* get the partCode - 零件编码.
* @return the partCode
*/
public
String
getPartCode
()
{
return
this
.
partCode
;
}
/**
* set the partCode - 零件编码.
*
* @param partCode - 零件编码
*/
public
void
setPartCode
(
String
partCode
)
{
this
.
partCode
=
partCode
;
}
/**
* get the partName - 零件名称.
* @return the partName
*/
public
String
getPartName
()
{
return
this
.
partName
;
}
/**
* set the partName - 零件名称.
*
* @param partName - 零件名称
*/
public
void
setPartName
(
String
partName
)
{
this
.
partName
=
partName
;
}
/**
* get the partLength - 零件-长.
* @return the partLength
*/
public
BigDecimal
getPartLength
()
{
return
this
.
partLength
;
}
/**
* set the partLength - 零件-长.
*
* @param partLength - 零件-长
*/
public
void
setPartLength
(
BigDecimal
partLength
)
{
this
.
partLength
=
partLength
;
}
/**
* get the partWidth - 零件-宽.
* @return the partWidth
*/
public
BigDecimal
getPartWidth
()
{
return
this
.
partWidth
;
}
/**
* set the partWidth - 零件-宽.
*
* @param partWidth - 零件-宽
*/
public
void
setPartWidth
(
BigDecimal
partWidth
)
{
this
.
partWidth
=
partWidth
;
}
/**
* get the partThick - 零件-厚.
* @return the partThick
*/
public
BigDecimal
getPartThick
()
{
return
this
.
partThick
;
}
/**
* set the partThick - 零件-厚.
*
* @param partThick - 零件-厚
*/
public
void
setPartThick
(
BigDecimal
partThick
)
{
this
.
partThick
=
partThick
;
}
/**
* get the partSpec - 零件规格.
* @return the partSpec
*/
public
String
getPartSpec
()
{
return
this
.
partSpec
;
}
/**
* set the partSpec - 零件规格.
*
* @param partSpec - 零件规格
*/
public
void
setPartSpec
(
String
partSpec
)
{
this
.
partSpec
=
partSpec
;
}
/**
* get the quantity - 数量.
* @return the quantity
*/
public
BigDecimal
getQuantity
()
{
return
this
.
quantity
;
}
/**
* set the quantity - 数量.
*
* @param quantity - 数量
*/
public
void
setQuantity
(
BigDecimal
quantity
)
{
this
.
quantity
=
quantity
;
}
/**
* get the passQuantity - 合格数量.
* @return the passQuantity
*/
public
BigDecimal
getPassQuantity
()
{
return
this
.
passQuantity
;
}
/**
* set the passQuantity - 合格数量.
*
* @param passQuantity - 合格数量
*/
public
void
setPassQuantity
(
BigDecimal
passQuantity
)
{
this
.
passQuantity
=
passQuantity
;
}
/**
* get the unpassQuantity - 不合格数量.
* @return the unpassQuantity
*/
public
BigDecimal
getUnpassQuantity
()
{
return
this
.
unpassQuantity
;
}
/**
* set the unpassQuantity - 不合格数量.
*
* @param unpassQuantity - 不合格数量
*/
public
void
setUnpassQuantity
(
BigDecimal
unpassQuantity
)
{
this
.
unpassQuantity
=
unpassQuantity
;
}
/**
* get the singleWeight - 单重.
* @return the singleWeight
*/
public
BigDecimal
getSingleWeight
()
{
return
this
.
singleWeight
;
}
/**
* set the singleWeight - 单重.
*
* @param singleWeight - 单重
*/
public
void
setSingleWeight
(
BigDecimal
singleWeight
)
{
this
.
singleWeight
=
singleWeight
;
}
/**
* get the totalWeight - 总重.
* @return the totalWeight
*/
public
BigDecimal
getTotalWeight
()
{
return
this
.
totalWeight
;
}
/**
* set the totalWeight - 总重.
*
* @param totalWeight - 总重
*/
public
void
setTotalWeight
(
BigDecimal
totalWeight
)
{
this
.
totalWeight
=
totalWeight
;
}
/**
* get the checkBy - 质检人.
* @return the checkBy
*/
public
String
getCheckBy
()
{
return
this
.
checkBy
;
}
/**
* set the checkBy - 质检人.
*
* @param checkBy - 质检人
*/
public
void
setCheckBy
(
String
checkBy
)
{
this
.
checkBy
=
checkBy
;
}
/**
* get the checkName - 质检人名称.
* @return the checkName
*/
public
String
getCheckName
()
{
return
this
.
checkName
;
}
/**
* set the checkName - 质检人名称.
*
* @param checkName - 质检人名称
*/
public
void
setCheckName
(
String
checkName
)
{
this
.
checkName
=
checkName
;
}
/**
* get the checkDate - 质检日期.
* @return the checkDate
*/
public
String
getCheckDate
()
{
return
this
.
checkDate
;
}
/**
* set the checkDate - 质检日期.
*
* @param checkDate - 质检日期
*/
public
void
setCheckDate
(
String
checkDate
)
{
this
.
checkDate
=
checkDate
;
}
/**
* get the checkStatus - 提交状态 0:质检中;1:质检完成.
* @return the checkStatus
*/
public
Integer
getCheckStatus
()
{
return
this
.
checkStatus
;
}
/**
* set the checkStatus - 提交状态 0:质检中;1:质检完成.
*
* @param checkStatus - 提交状态 0:质检中;1:质检完成
*/
public
void
setCheckStatus
(
Integer
checkStatus
)
{
this
.
checkStatus
=
checkStatus
;
}
/**
* get the registerDate - 报工日期.
* @return the registerDate
*/
public
String
getRegisterDate
()
{
return
this
.
registerDate
;
}
/**
* set the registerDate - 报工日期.
*
* @param registerDate - 报工日期
*/
public
void
setRegisterDate
(
String
registerDate
)
{
this
.
registerDate
=
registerDate
;
}
/**
* 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
));
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
));
setFactoryCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_factory_code
)),
factoryCode
));
setFactoryName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_factory_name
)),
factoryName
));
setOrgNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_org_no
)),
orgNo
));
setOrgName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_org_name
)),
orgName
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_proj_code
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_proj_name
)),
projName
));
setMatId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_mat_id
)),
matId
));
setWorkId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_work_id
)),
workId
));
setProcessCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_process_code
)),
processCode
));
setProcessName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_process_name
)),
processName
));
setWorkCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_work_code
)),
workCode
));
setCheckCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_check_code
)),
checkCode
));
setPrdtType
(
NumberUtils
.
toBoolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_type
)),
prdtType
));
setPrdtCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_code
)),
prdtCode
));
setPrdtName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_name
)),
prdtName
));
setPrdtLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_length
)),
prdtLength
));
setPrdtWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_width
)),
prdtWidth
));
setPrdtThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_thick
)),
prdtThick
));
setPrdtSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_spec
)),
prdtSpec
));
setPartType
(
NumberUtils
.
toBoolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_type
)),
partType
));
setPartCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_code
)),
partCode
));
setPartName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_name
)),
partName
));
setPartLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_length
)),
partLength
));
setPartWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_width
)),
partWidth
));
setPartThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_thick
)),
partThick
));
setPartSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_spec
)),
partSpec
));
setQuantity
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_quantity
)),
quantity
));
setPassQuantity
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_pass_quantity
)),
passQuantity
));
setUnpassQuantity
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_unpass_quantity
)),
unpassQuantity
));
setSingleWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_single_weight
)),
singleWeight
));
setTotalWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_total_weight
)),
totalWeight
));
setCheckBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_check_by
)),
checkBy
));
setCheckName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_check_name
)),
checkName
));
setCheckDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_check_date
))),
checkDate
));
setCheckStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_check_status
)),
checkStatus
));
setRegisterDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_register_date
)),
registerDate
));
}
/**
* 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_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_factory_code
,
StringUtils
.
toString
(
factoryCode
,
eiMetadata
.
getMeta
(
FIELD_factory_code
)));
map
.
put
(
FIELD_factory_name
,
StringUtils
.
toString
(
factoryName
,
eiMetadata
.
getMeta
(
FIELD_factory_name
)));
map
.
put
(
FIELD_org_no
,
StringUtils
.
toString
(
orgNo
,
eiMetadata
.
getMeta
(
FIELD_org_no
)));
map
.
put
(
FIELD_org_name
,
StringUtils
.
toString
(
orgName
,
eiMetadata
.
getMeta
(
FIELD_org_name
)));
map
.
put
(
FIELD_proj_code
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_proj_code
)));
map
.
put
(
FIELD_proj_name
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_proj_name
)));
map
.
put
(
FIELD_mat_id
,
StringUtils
.
toString
(
matId
,
eiMetadata
.
getMeta
(
FIELD_mat_id
)));
map
.
put
(
FIELD_work_id
,
StringUtils
.
toString
(
workId
,
eiMetadata
.
getMeta
(
FIELD_work_id
)));
map
.
put
(
FIELD_process_code
,
StringUtils
.
toString
(
processCode
,
eiMetadata
.
getMeta
(
FIELD_process_code
)));
map
.
put
(
FIELD_process_name
,
StringUtils
.
toString
(
processName
,
eiMetadata
.
getMeta
(
FIELD_process_name
)));
map
.
put
(
FIELD_work_code
,
StringUtils
.
toString
(
workCode
,
eiMetadata
.
getMeta
(
FIELD_work_code
)));
map
.
put
(
FIELD_check_code
,
StringUtils
.
toString
(
checkCode
,
eiMetadata
.
getMeta
(
FIELD_check_code
)));
map
.
put
(
FIELD_prdt_type
,
StringUtils
.
toString
(
prdtType
,
eiMetadata
.
getMeta
(
FIELD_prdt_type
)));
map
.
put
(
FIELD_prdt_code
,
StringUtils
.
toString
(
prdtCode
,
eiMetadata
.
getMeta
(
FIELD_prdt_code
)));
map
.
put
(
FIELD_prdt_name
,
StringUtils
.
toString
(
prdtName
,
eiMetadata
.
getMeta
(
FIELD_prdt_name
)));
map
.
put
(
FIELD_prdt_length
,
StringUtils
.
toString
(
prdtLength
,
eiMetadata
.
getMeta
(
FIELD_prdt_length
)));
map
.
put
(
FIELD_prdt_width
,
StringUtils
.
toString
(
prdtWidth
,
eiMetadata
.
getMeta
(
FIELD_prdt_width
)));
map
.
put
(
FIELD_prdt_thick
,
StringUtils
.
toString
(
prdtThick
,
eiMetadata
.
getMeta
(
FIELD_prdt_thick
)));
map
.
put
(
FIELD_prdt_spec
,
StringUtils
.
toString
(
prdtSpec
,
eiMetadata
.
getMeta
(
FIELD_prdt_spec
)));
map
.
put
(
FIELD_part_type
,
StringUtils
.
toString
(
partType
,
eiMetadata
.
getMeta
(
FIELD_part_type
)));
map
.
put
(
FIELD_part_code
,
StringUtils
.
toString
(
partCode
,
eiMetadata
.
getMeta
(
FIELD_part_code
)));
map
.
put
(
FIELD_part_name
,
StringUtils
.
toString
(
partName
,
eiMetadata
.
getMeta
(
FIELD_part_name
)));
map
.
put
(
FIELD_part_length
,
StringUtils
.
toString
(
partLength
,
eiMetadata
.
getMeta
(
FIELD_part_length
)));
map
.
put
(
FIELD_part_width
,
StringUtils
.
toString
(
partWidth
,
eiMetadata
.
getMeta
(
FIELD_part_width
)));
map
.
put
(
FIELD_part_thick
,
StringUtils
.
toString
(
partThick
,
eiMetadata
.
getMeta
(
FIELD_part_thick
)));
map
.
put
(
FIELD_part_spec
,
StringUtils
.
toString
(
partSpec
,
eiMetadata
.
getMeta
(
FIELD_part_spec
)));
map
.
put
(
FIELD_quantity
,
StringUtils
.
toString
(
quantity
,
eiMetadata
.
getMeta
(
FIELD_quantity
)));
map
.
put
(
FIELD_pass_quantity
,
StringUtils
.
toString
(
passQuantity
,
eiMetadata
.
getMeta
(
FIELD_pass_quantity
)));
map
.
put
(
FIELD_unpass_quantity
,
StringUtils
.
toString
(
unpassQuantity
,
eiMetadata
.
getMeta
(
FIELD_unpass_quantity
)));
map
.
put
(
FIELD_single_weight
,
StringUtils
.
toString
(
singleWeight
,
eiMetadata
.
getMeta
(
FIELD_single_weight
)));
map
.
put
(
FIELD_total_weight
,
StringUtils
.
toString
(
totalWeight
,
eiMetadata
.
getMeta
(
FIELD_total_weight
)));
map
.
put
(
FIELD_check_by
,
StringUtils
.
toString
(
checkBy
,
eiMetadata
.
getMeta
(
FIELD_check_by
)));
map
.
put
(
FIELD_check_name
,
StringUtils
.
toString
(
checkName
,
eiMetadata
.
getMeta
(
FIELD_check_name
)));
map
.
put
(
FIELD_check_date
,
StringUtils
.
toString
(
checkDate
,
eiMetadata
.
getMeta
(
FIELD_check_date
)));
map
.
put
(
FIELD_check_status
,
StringUtils
.
toString
(
checkStatus
,
eiMetadata
.
getMeta
(
FIELD_check_status
)));
map
.
put
(
FIELD_register_date
,
StringUtils
.
toString
(
registerDate
,
eiMetadata
.
getMeta
(
FIELD_register_date
)));
return
map
;
}
}
src/main/java/com/baosight/hpjx/hp/zl/service/ServiceHPZL003.java
0 → 100644
View file @
40914985
package
com
.
baosight
.
hpjx
.
hp
.
zl
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.common.CheckStatusEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.zl.domain.HPZL003
;
import
com.baosight.hpjx.util.*
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlockMeta
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.util.*
;
/**
* @author LiuYang
* @version 1.0 2024/11/16
* @description 工序质检
*/
public
class
ServiceHPZL003
extends
ServiceEPBase
{
/**
* 画面初始化
*
* @param inInfo
* @return
*/
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
,
DdynamicEnum
.
FACTORY_CODE_BOX_BLOCK_ID
,
DdynamicEnum
.
GROUP_RECORD_BLOCK_ID
,
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){}
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"itemCode"
,
"ITEM_CODE in ('2','3','4')"
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
map
,
false
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPZL003
().
eiMetadata
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
return
inInfo
;
}
/**
* 查询操作
*
* @param inInfo
* @return
*/
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HPZL003
.
QUERY
,
new
HPZL003
());
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"工序质检单"
,
operType
=
"删除"
,
operDesc
=
"删除操作"
)
@Override
public
EiInfo
delete
(
EiInfo
inInfo
)
{
int
i
=
0
;
try
{
List
<
HPZL003
>
hgzl002List
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HPZL003
.
class
);
for
(
HPZL003
hpzl002
:
hgzl002List
)
{
DaoUtils
.
update
(
HPZL003
.
DELETE
,
hpzl002
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
hgzl002List
.
size
()
+
"]条数据删除成功!"
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"删除失败"
);
}
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"工序质检单"
,
operType
=
"保存"
,
operDesc
=
"操作"
)
public
EiInfo
save
(
EiInfo
inInfo
)
{
try
{
List
<
HPZL003
>
hgzl002List
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HPZL003
.
class
);
//List<Long> ids = Optional.ofNullable(hgzl002List).orElse(new ArrayList<>()).stream().map(HPZL002::getId).collect(Collectors.toList());
//List<HPZL002> dbList = HPZLTools.THGZL002.list(ids);
// 写入数据
for
(
HPZL003
hpzl002
:
hgzl002List
)
{
AssertUtils
.
isTrue
(
hpzl002
.
getCheckStatus
().
compareTo
(
CheckStatusEnum
.
CHECKED
.
getCode
())==
0
,
String
.
format
(
"质检单号[%s]已经质检完成不能修改!"
,
hpzl002
.
getCheckCode
()));
if
(
hpzl002
.
getId
()
==
null
||
hpzl002
.
getId
()
==
0
)
{
this
.
add
(
hpzl002
);
}
else
{
this
.
modify
(
hpzl002
);
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
hgzl002List
.
size
()
+
"]条数据保存成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
}
return
inInfo
;
}
/**
* 新增操作
*/
public
void
add
(
HPZL003
hpzl002
)
{
hpzl002
.
setCheckCode
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
HPZL002_CHECK_CODE
));
DaoUtils
.
insert
(
HPZL003
.
INSERT
,
hpzl002
);
}
/**
* 修改操作
*/
public
void
modify
(
HPZL003
hpsb002
)
{
DaoUtils
.
update
(
HPZL003
.
UPDATE
,
hpsb002
);
}
@OperationLogAnnotation
(
operModul
=
"工序质检单"
,
operType
=
"提交"
,
operDesc
=
"修改状态操作"
)
public
EiInfo
updateStatus
(
EiInfo
inInfo
){
int
i
=
0
;
try
{
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
HPZL003
hpzl003
=
new
HPZL003
();
hpzl003
.
fromMap
(
map
);
DaoUtils
.
update
(
HPZL003
.
UPDATE_STATUS
,
hpzl003
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
i
+
"]条数据修改状态成功!"
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"审批失败"
);
return
inInfo
;
}
return
inInfo
;
}
}
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL003.xml
0 → 100644
View file @
40914985
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-11-16 20:09:56
Version : 1.0
schema : hpjx
tableName : T_HPZL003
id BIGINT NOT NULL primarykey,
company_code VARCHAR NOT NULL,
dep_code VARCHAR,
dep_name VARCHAR,
created_by VARCHAR,
created_name VARCHAR,
created_time VARCHAR,
updated_by VARCHAR,
updated_name VARCHAR,
updated_time VARCHAR,
factory_code VARCHAR,
factory_name VARCHAR,
org_no VARCHAR,
org_name VARCHAR,
proj_code VARCHAR,
proj_name VARCHAR,
mat_id BIGINT NOT NULL,
work_id BIGINT NOT NULL,
process_code VARCHAR,
process_name VARCHAR,
work_code VARCHAR,
check_code VARCHAR,
prdt_type TINYINT,
prdt_code VARCHAR,
prdt_name VARCHAR,
prdt_length DECIMAL,
prdt_width DECIMAL,
prdt_thick DECIMAL,
prdt_spec VARCHAR,
part_type TINYINT,
part_code VARCHAR,
part_name VARCHAR,
part_length DECIMAL,
part_width DECIMAL,
part_thick DECIMAL,
part_spec VARCHAR,
quantity DECIMAL,
pass_quantity DECIMAL,
unpass_quantity DECIMAL,
single_weight DECIMAL,
total_weight DECIMAL,
check_by VARCHAR,
check_name VARCHAR,
check_date VARCHAR,
check_status TINYINT,
register_date VARCHAR
-->
<sqlMap
namespace=
"HPZL003"
>
<sql
id=
"columns"
>
id as "id",
company_code as "companyCode",
<!-- 企业编码 -->
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",
<!-- 更改时间 -->
factory_code as "factoryCode",
<!-- 工厂编号 -->
factory_name as "factoryName",
<!-- 工厂名称 -->
org_no as "orgNo",
<!-- 生产组编码 -->
org_name as "orgName",
<!-- 生产组名称 -->
proj_code as "projCode",
<!-- 项目编码 -->
proj_name as "projName",
<!-- 项目名称 -->
mat_id as "matId",
<!-- 物料清单ID -->
work_id as "workId",
<!-- 报工单ID -->
process_code as "processCode",
<!-- 工序编码 -->
process_name as "processName",
<!-- 工序名称 -->
work_code as "workCode",
<!-- 报工单编码 -->
check_code as "checkCode",
<!-- 质检单编码 -->
prdt_type as "prdtType",
<!-- 产品类型 -->
prdt_code as "prdtCode",
<!-- 产品编码 -->
prdt_name as "prdtName",
<!-- 产品名称 -->
prdt_length as "prdtLength",
<!-- 产品-长 -->
prdt_width as "prdtWidth",
<!-- 产品-宽 -->
prdt_thick as "prdtThick",
<!-- 产品-厚 -->
prdt_spec as "prdtSpec",
<!-- 产品规格 -->
part_type as "partType",
<!-- 零件类型 -->
part_code as "partCode",
<!-- 零件编码 -->
part_name as "partName",
<!-- 零件名称 -->
part_length as "partLength",
<!-- 零件-长 -->
part_width as "partWidth",
<!-- 零件-宽 -->
part_thick as "partThick",
<!-- 零件-厚 -->
part_spec as "partSpec",
<!-- 零件规格 -->
quantity as "quantity",
<!-- 数量 -->
pass_quantity as "passQuantity",
<!-- 合格数量 -->
unpass_quantity as "unpassQuantity",
<!-- 不合格数量 -->
single_weight as "singleWeight",
<!-- 单重 -->
total_weight as "totalWeight",
<!-- 总重 -->
check_by as "checkBy",
<!-- 质检人 -->
check_name as "checkName",
<!-- 质检人名称 -->
check_date as "checkDate",
<!-- 质检日期 -->
check_status as "checkStatus",
<!-- 提交状态 0:质检中;1:质检完成 -->
register_date as "registerDate"
<!-- 报工日期 -->
</sql>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
id = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
company_code = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
dep_code = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
created_by = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
created_name = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
created_time = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
updated_by = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
updated_name = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
updated_time = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
factory_code = #factoryCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
factory_name like concat('%',#factoryName#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"orgNo"
>
org_no = #orgNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"orgName"
>
org_name = #orgName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
proj_code = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
proj_name = #projName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"matId"
>
mat_id = #matId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"workId"
>
work_id = #workId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processCode"
>
process_code = #processCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processName"
>
process_name = #processName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"workCode"
>
work_code = #workCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkCode"
>
check_code like concat('%',#checkCode#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtType"
>
prdt_type = #prdtType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtCode"
>
prdt_code = #prdtCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtName"
>
prdt_name = #prdtName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtLength"
>
prdt_length = #prdtLength#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtWidth"
>
prdt_width = #prdtWidth#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtThick"
>
prdt_thick = #prdtThick#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtSpec"
>
prdt_spec = #prdtSpec#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partType"
>
part_type = #partType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partCode"
>
part_code = #partCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partName"
>
part_name = #partName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partLength"
>
part_length = #partLength#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partWidth"
>
part_width = #partWidth#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partThick"
>
part_thick = #partThick#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partSpec"
>
part_spec = #partSpec#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"quantity"
>
quantity = #quantity#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"passQuantity"
>
pass_quantity = #passQuantity#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"unpassQuantity"
>
unpass_quantity = #unpassQuantity#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"singleWeight"
>
single_weight = #singleWeight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"totalWeight"
>
total_weight = #totalWeight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkBy"
>
check_by = #checkBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkName"
>
check_name like concat('%',#checkName#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkDate"
>
check_date = #checkDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkStatus"
>
check_status = #checkStatus#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"registerDate"
>
register_date = #registerDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkDateFrom"
>
check_date
>
= #checkDateFrom#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkDateTo"
>
check_date
<
= #checkDateTo#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.zl.domain.HPZL003"
>
SELECT
<include
refid=
"columns"
/>
FROM ${hpjxSchema}.T_HPZL003 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
check_date desc, id desc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPZL003 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
id = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
company_code = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
dep_code = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depName">
dep_name = #depName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
created_by = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
created_name = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
created_time = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
updated_by = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
updated_name = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
updated_time = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="factoryCode">
factory_code = #factoryCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="factoryName">
factory_name = #factoryName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="orgNo">
org_no = #orgNo#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="orgName">
org_name = #orgName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
proj_code = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
proj_name = #projName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="matId">
mat_id = #matId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="workId">
work_id = #workId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="processCode">
process_code = #processCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="processName">
process_name = #processName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="workCode">
work_code = #workCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkCode">
check_code = #checkCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="prdtType">
prdt_type = #prdtType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="prdtCode">
prdt_code = #prdtCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="prdtName">
prdt_name = #prdtName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="prdtLength">
prdt_length = #prdtLength#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="prdtWidth">
prdt_width = #prdtWidth#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="prdtThick">
prdt_thick = #prdtThick#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="prdtSpec">
prdt_spec = #prdtSpec#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partType">
part_type = #partType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partCode">
part_code = #partCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partName">
part_name = #partName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partLength">
part_length = #partLength#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partWidth">
part_width = #partWidth#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partThick">
part_thick = #partThick#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partSpec">
part_spec = #partSpec#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quantity">
quantity = #quantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="passQuantity">
pass_quantity = #passQuantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="unpassQuantity">
unpass_quantity = #unpassQuantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="singleWeight">
single_weight = #singleWeight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="totalWeight">
total_weight = #totalWeight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkBy">
check_by = #checkBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkName">
check_name = #checkName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkDate">
check_date = #checkDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkStatus">
check_status = #checkStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="registerDate">
register_date = #registerDate#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.T_HPZL003 (id,
company_code,
<!-- 企业编码 -->
dep_code,
<!-- 部门编码 -->
created_by,
<!-- 创建人 -->
created_name,
<!-- 创建人名称 -->
created_time,
<!-- 创建时间 -->
updated_by,
<!-- 更改人 -->
updated_name,
<!-- 更改人名称 -->
updated_time,
<!-- 更改时间 -->
factory_code,
<!-- 工厂编号 -->
factory_name,
<!-- 工厂名称 -->
org_no,
<!-- 生产组编码 -->
org_name,
<!-- 生产组名称 -->
proj_code,
<!-- 项目编码 -->
proj_name,
<!-- 项目名称 -->
mat_id,
<!-- 物料清单ID -->
work_id,
<!-- 报工单ID -->
process_code,
<!-- 工序编码 -->
process_name,
<!-- 工序名称 -->
work_code,
<!-- 报工单编码 -->
check_code,
<!-- 质检单编码 -->
prdt_type,
<!-- 产品类型 -->
prdt_code,
<!-- 产品编码 -->
prdt_name,
<!-- 产品名称 -->
prdt_length,
<!-- 产品-长 -->
prdt_width,
<!-- 产品-宽 -->
prdt_thick,
<!-- 产品-厚 -->
prdt_spec,
<!-- 产品规格 -->
part_type,
<!-- 零件类型 -->
part_code,
<!-- 零件编码 -->
part_name,
<!-- 零件名称 -->
part_length,
<!-- 零件-长 -->
part_width,
<!-- 零件-宽 -->
part_thick,
<!-- 零件-厚 -->
part_spec,
<!-- 零件规格 -->
quantity,
<!-- 数量 -->
pass_quantity,
<!-- 合格数量 -->
unpass_quantity,
<!-- 不合格数量 -->
single_weight,
<!-- 单重 -->
total_weight,
<!-- 总重 -->
check_by,
<!-- 质检人 -->
check_name,
<!-- 质检人名称 -->
check_date,
<!-- 质检日期 -->
check_status,
<!-- 提交状态 0:质检中;1:质检完成 -->
register_date
<!-- 报工日期 -->
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#,
#updatedName#, #updatedTime#, #factoryCode#, #factoryName#, #orgNo#, #orgName#, #projCode#, #projName#, #matId#,
#workId#, #processCode#, #processName#, #workCode#, #checkCode#, #prdtType#, #prdtCode#, #prdtName#,
#prdtLength#, #prdtWidth#, #prdtThick#, #prdtSpec#, #partType#, #partCode#, #partName#, #partLength#,
#partWidth#, #partThick#, #partSpec#, #quantity#, #passQuantity#, #unpassQuantity#, #singleWeight#,
#totalWeight#, #checkBy#, #checkName#, #checkDate#, #checkStatus#, #registerDate#)
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
SELECT MAX(ID) AS "id" FROM ${hpjxSchema}.T_HPZL003
</selectKey>
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.T_HPZL003 WHERE
id = #id#
</delete>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.T_HPZL003
SET
updated_by = #updatedBy#,
<!-- 更改人 -->
updated_name = #updatedName#,
<!-- 更改人名称 -->
updated_time = #updatedTime#,
<!-- 更改时间 -->
factory_code = #factoryCode#,
<!-- 工厂编号 -->
factory_name = #factoryName#,
<!-- 工厂名称 -->
org_no = #orgNo#,
<!-- 生产组编码 -->
org_name = #orgName#,
<!-- 生产组名称 -->
proj_code = #projCode#,
<!-- 项目编码 -->
proj_name = #projName#,
<!-- 项目名称 -->
mat_id = #matId#,
<!-- 物料清单ID -->
work_id = #workId#,
<!-- 报工单ID -->
process_code = #processCode#,
<!-- 工序编码 -->
process_name = #processName#,
<!-- 工序名称 -->
work_code = #workCode#,
<!-- 报工单编码 -->
check_code = #checkCode#,
<!-- 质检单编码 -->
prdt_type = #prdtType#,
<!-- 产品类型 -->
prdt_code = #prdtCode#,
<!-- 产品编码 -->
prdt_name = #prdtName#,
<!-- 产品名称 -->
prdt_length = #prdtLength#,
<!-- 产品-长 -->
prdt_width = #prdtWidth#,
<!-- 产品-宽 -->
prdt_thick = #prdtThick#,
<!-- 产品-厚 -->
prdt_spec = #prdtSpec#,
<!-- 产品规格 -->
part_type = #partType#,
<!-- 零件类型 -->
part_code = #partCode#,
<!-- 零件编码 -->
part_name = #partName#,
<!-- 零件名称 -->
part_length = #partLength#,
<!-- 零件-长 -->
part_width = #partWidth#,
<!-- 零件-宽 -->
part_thick = #partThick#,
<!-- 零件-厚 -->
part_spec = #partSpec#,
<!-- 零件规格 -->
quantity = #quantity#,
<!-- 数量 -->
pass_quantity = #passQuantity#,
<!-- 合格数量 -->
unpass_quantity = #unpassQuantity#,
<!-- 不合格数量 -->
single_weight = #singleWeight#,
<!-- 单重 -->
total_weight = #totalWeight#,
<!-- 总重 -->
check_by = #checkBy#,
<!-- 质检人 -->
check_name = #checkName#,
<!-- 质检人名称 -->
check_date = #checkDate#,
<!-- 质检日期 -->
check_status = #checkStatus#,
<!-- 提交状态 0:质检中;1:质检完成 -->
register_date = #registerDate#
<!-- 报工日期 -->
WHERE
id = #id#
</update>
<update
id=
"updateStatus"
>
UPDATE ${hpjxSchema}.T_HPZL003
SET
UPDATED_BY = #updatedBy#,
<!-- 修改人 -->
UPDATED_NAME = #updatedName#,
<!-- 修改人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 修改时间 -->
check_status = 1
<!-- 提交状态 0:质检中;1:质检完成 -->
WHERE
ID = #id#
</update>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/zl/tools/HPZLTools.java
View file @
40914985
...
...
@@ -3,6 +3,7 @@ package com.baosight.hpjx.hp.zl.tools;
import
com.baosight.hpjx.core.dao.DaoBase
;
import
com.baosight.hpjx.hp.constant.HPSqlConstant
;
import
com.baosight.hpjx.hp.zl.domain.HPZL001
;
import
com.baosight.hpjx.hp.zl.domain.HPZL003
;
import
com.baosight.hpjx.hp.zl.domain.HPZL004
;
import
com.baosight.hpjx.hp.zl.domain.HPZL004C
;
import
com.baosight.hpjx.util.AssertUtils
;
...
...
@@ -66,7 +67,51 @@ public class HPZLTools {
List
<
HPZL001
>
results
=
DaoBase
.
getInstance
().
query
(
HPZL001
.
QUERY
,
queryMap
);
return
CollectionUtils
.
isEmpty
(
results
)?
null
:
results
;
}
public
static
class
THGZL002
{
/**
* @param id
*/
public
static
HPZL003
get
(
Long
id
)
{
AssertUtils
.
isNull
(
id
,
"ID不能为空"
);
Map
paramMap
=
new
HashMap
();
paramMap
.
put
(
HPZL003
.
FIELD_id
,
id
);
List
<
HPZL003
>
results
=
DaoBase
.
getInstance
().
query
(
HPZL003
.
QUERY
,
paramMap
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
0
);
}
/**
* @param ids
*/
public
static
List
<
HPZL003
>
list
(
List
<
Long
>
ids
)
{
AssertUtils
.
isEmpty
(
ids
,
"ID不能为空"
);
Map
paramMap
=
new
HashMap
();
paramMap
.
put
(
"ids"
,
ids
);
List
<
HPZL003
>
results
=
DaoBase
.
getInstance
().
query
(
HPZL003
.
QUERY
,
paramMap
);
return
results
;
}
private
static
void
cleanBaseInfo
(
HPZL003
hgzl002
)
{
hgzl002
.
setCreatedBy
(
null
);
hgzl002
.
setCreatedName
(
null
);
hgzl002
.
setCreatedTime
(
null
);
hgzl002
.
setUpdatedBy
(
null
);
hgzl002
.
setUpdatedName
(
null
);
hgzl002
.
setUpdatedTime
(
null
);
hgzl002
.
setDepCode
(
null
);
hgzl002
.
setId
(
null
);
}
public
static
List
<
HPZL003
>
listByWorkIds
(
List
<
Long
>
workIds
)
{
if
(
CollectionUtils
.
isEmpty
(
workIds
))
{
return
null
;
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"workIds"
,
workIds
);
return
DaoBase
.
getInstance
().
query
(
HPZL003
.
QUERY
,
queryMap
);
}
}
/**
* 整改通知单
...
...
src/main/webapp/HP/ZL/HPZL003.js
0 → 100644
View file @
40914985
$
(
function
()
{
let
prdtNameGlobalData
=
[];
var
projRecordBox
=
__eiInfo
.
getBlock
(
"proj_record_block_id"
).
getMappedRows
();
var
factoryCodeBox_block_id
=
__eiInfo
.
getBlock
(
"factoryCodeBox_block_id"
).
getMappedRows
();
var
groupRecordBox
=
__eiInfo
.
getBlock
(
"group_record_block_id"
).
getMappedRows
();
var
inventNameBox
=
__eiInfo
.
getBlock
(
"invent_name_block_id"
).
getMappedRows
();
var
userIdBox
=
__eiInfo
.
getBlock
(
"userIdBox_block_id"
).
getMappedRows
();
IPLATUI
.
EFGrid
=
{
"result"
:
{
pageable
:
{
input
:
true
,
numeric
:
false
,
pageSize
:
20
,
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
]
},
columns
:
[
{
field
:
"orgNo"
,
filter
:
function
(
options
)
{
var
province
=
options
.
model
[
'factoryCode'
];
if
(
province
)
{
// 返回我们过滤后的数据集
return
_
.
filter
(
groupRecordBox
,
function
(
item
)
{
return
item
[
"param1Field"
]
==
province
;
})
}
return
options
.
values
;
},
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
groupRecordBox
.
length
;
i
++
)
{
if
(
groupRecordBox
[
i
][
'valueField'
]
===
dataItem
[
'orgNo'
])
{
return
groupRecordBox
[
i
][
'textField'
].
split
(
']'
)[
1
]
}
}
return
dataItem
[
"orgNo"
];
},
},
{
field
:
"prdtCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
inventNameBox
.
length
;
i
++
)
{
if
(
inventNameBox
[
i
][
'valueField'
]
===
dataItem
[
'prdtCode'
])
{
return
inventNameBox
[
i
][
'textField'
]
}
}
return
dataItem
[
"prdtCode"
];
},
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-factoryCode"
,
options
.
model
[
"factoryCode"
]);
inInfo
.
set
(
"inqu_status-0-orgNo"
,
options
.
model
[
"orgNo"
]);
inInfo
.
set
(
"inqu_status-0-projCode"
,
options
.
model
[
"projCode"
]);
inInfo
.
set
(
"inqu_status-0-isSplicingSymbol"
,
false
);
inInfo
.
set
(
"serviceName"
,
"HPSC005B"
);
inInfo
.
set
(
"methodName"
,
"queryComboBox"
);
inInfo
.
set
(
"blockId"
,
"prdtCode_block_id"
);
inInfo
.
set
(
"field"
,
options
.
field
);
prdtNameGlobalData
=
refreshSelect
(
container
,
inInfo
);
}
},
{
field
:
"checkDate"
,
attributes
:
{
class
:
"i-input-readonly"
},
defaultValue
:
function
()
{
return
currShortDate
();
}
},
],
onSuccess
:
function
(
e
)
{
if
(
e
.
eiInfo
.
extAttr
.
methodName
==
'save'
||
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
){
query
();
}
},
loadComplete
:
function
(
grid
)
{
$
(
"#SUBMIT"
).
on
(
"click"
,
updateStatus
)
// 此 grid 对象
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
// 判断父级节点是否发生变化
/*if (e.field == "unpassQuantity") {
// loadChange(grid,e,"passQuantity");
var passQuantity = parseFloat(e.items[0]['quantity'])
- parseFloat(e.items[0]['unpassQuantity']);
resultGrid.setCellValue(e.items[0], "passQuantity", passQuantity);
}
if (e.field == "passQuantity") {
// loadChange(grid,e,"unpassQuantity");
var unpassQuantity = parseFloat(e.items[0]['quantity'])
- parseFloat(e.items[0]['passQuantity']);
resultGrid.setCellValue(e.items[0], "unpassQuantity", unpassQuantity);
}*/
/*if (e.field == "prdtCode"){
var item = e.items[0];
for (let i = 0; i < prdtNameGlobalData.length; i++) {
if (prdtNameGlobalData[i]['valueField'] === item["prdtCode"]) {
resultGrid.setCellValue(item, "prdtName", prdtNameGlobalData[i]['textField'].split(']')[1]);
resultGrid.setCellValue(item, "workCode", prdtNameGlobalData[i]['param1Field']);
resultGrid.setCellValue(item, "prdtSpec", prdtNameGlobalData[i]['param2Field']);
resultGrid.setCellValue(item, "partCode", prdtNameGlobalData[i]['param3Field']);
resultGrid.setCellValue(item, "partName", prdtNameGlobalData[i]['param4Field']);
resultGrid.setCellValue(item, "partSpec", prdtNameGlobalData[i]['param5Field']);
resultGrid.setCellValue(item, "registerDate", prdtNameGlobalData[i]['param6Field']);
resultGrid.setCellValue(item, "quantity", prdtNameGlobalData[i]['param7Field']);
resultGrid.setCellValue(item, "unitWt", prdtNameGlobalData[i]['param8Field']);
resultGrid.setCellValue(item, "childId", prdtNameGlobalData[i]['param9Field']);
break
}
}
}*/
var
item
=
e
.
items
[
0
];
if
(
e
.
field
==
"projCode"
){
for
(
let
i
=
0
;
i
<
projRecordBox
.
length
;
i
++
)
{
if
(
projRecordBox
[
i
][
'valueField'
]
===
item
[
'projCode'
])
{
resultGrid
.
setCellValue
(
item
,
"projName"
,
projRecordBox
[
i
][
'textField'
]);
break
}
}
}
else
if
(
e
.
field
==
"factoryCode"
){
for
(
let
i
=
0
;
i
<
factoryCodeBox_block_id
.
length
;
i
++
)
{
if
(
factoryCodeBox_block_id
[
i
][
'valueField'
]
===
item
[
'factoryCode'
])
{
resultGrid
.
setCellValue
(
item
,
"factoryName"
,
factoryCodeBox_block_id
[
i
][
'textField'
]);
break
}
}
}
else
if
(
e
.
field
==
"orgNo"
){
for
(
let
i
=
0
;
i
<
groupRecordBox
.
length
;
i
++
)
{
if
(
groupRecordBox
[
i
][
'valueField'
]
===
item
[
'orgNo'
])
{
resultGrid
.
setCellValue
(
item
,
"orgName"
,
groupRecordBox
[
i
][
'textField'
]);
break
}
}
}
});
},
onSave
:
function
(
e
){
// 阻止默认请求,使用自定义保存
e
.
preventDefault
();
let
btnNode
=
$
(
this
);
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
save
(
btnNode
);
}
}
}
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
query
);
});
$
(
window
).
load
(
function
()
{
// 查
query
();
});
/**
* 查询
*/
function
query
()
{
resultGrid
.
dataSource
.
page
(
1
);
}
/**
* 提交操作
*
* @param id
* @param checkNo
*/
let
save
=
function
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
)
return
;
}
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
let
passQuantity
=
rows
[
i
][
'passQuantity'
];
let
unpassQuantity
=
rows
[
i
][
'unpassQuantity'
];
let
quantity
=
rows
[
i
][
'quantity'
];
let
checkBy
=
rows
[
i
][
'checkBy'
];
let
checkCode
=
rows
[
i
][
'checkCode'
];
let
checkStatus
=
rows
[
i
][
'checkStatus'
];
if
(
!
isNumber
(
passQuantity
)
||!
isNumber
(
unpassQuantity
))
{
message
(
"质检单号["
+
checkCode
+
"]合格数量与不合格数量必须是大于等于0的数字!"
);
return
;
}
/*if (passQuantity > quantity) {
message("质检单号[" + checkCode + "]合格数量不能大于报工数量!");
return;
}
if (unpassQuantity > quantity) {
message("质检单号[" + checkCode + "]不合格数量不能大于报工数量!");
return;
}*/
if
(
!
checkBy
||
checkBy
===
' '
){
message
(
"质检单号["
+
checkCode
+
"]质检人员不能为空!"
);
return
;
}
if
(
checkStatus
===
'1'
){
message
(
"质检单号["
+
checkCode
+
"]已经质检完成不能修改!"
);
return
;
}
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做保存操作吗? "
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HPZL003"
,
"save"
,
true
);
}
});
}
function
updateStatus
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
)
return
;
}
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
let
checkStatus
=
rows
[
i
][
'checkStatus'
];
if
(
checkStatus
===
'1'
){
message
(
"质检单号["
+
checkCode
+
"]已经质检完成不能提交!"
);
return
;
}
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做质检完成操作吗? "
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HPZL003"
,
"updateStatus"
,
true
,
function
(
res
)
{
if
(
res
.
status
>
-
1
)
{
query
();
}
else
{
message
(
res
.
msg
);
}
});
}
});
}
src/main/webapp/HP/ZL/HPZL003.jsp
0 → 100644
View file @
40914985
<%@ page import="com.baosight.iplat4j.core.web.threadlocal.UserSession" %><%--
Created by IntelliJ IDEA.
User: 1
Date: 2024/11/16
Time: 20:40
To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<%
String loginName = UserSession.getLoginName();
String loginCName = UserSession.getLoginCName();
%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="loginName" value="<%=loginName%>" />
<c:set var="loginCName" value="<%=loginCName%>" />
<EF:EFPage title="工序质检单">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<EF:EFDateSpan startCname="质检日期" endCname="到" blockId="inqu_status"
startName="checkDateFrom" endName="checkDateTo" row="0" role="date"
format="yyyy-MM-dd" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="true">
</EF:EFDateSpan>
<EF:EFInput blockId="inqu_status" row="0" ename="checkCode" cname="质检单号" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="checkName" cname="质检员" placeholder="模糊查询" colWidth="3"/>
</div>
<div class="row">
<EF:EFInput blockId="inqu_status" row="0" ename="factoryName" cname="工厂名称" placeholder="模糊查询" colWidth="3"/>
<EF:EFSelect cname="质检状态" ename="checkStatus" blockId="inqu_status" row="0" colWidth="3">
<EF:EFOption label="全部" value=""/>
<EF:EFOption label="质检中" value="0"/>
<EF:EFOption label="已质检" value="1"/>
</EF:EFSelect>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row">
<EF:EFColumn ename="id" cname="内码" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="企业编码" hidden="true"/>
<EF:EFComboColumn ename="factoryCode" cname="工厂"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="120" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="factoryCodeBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="factoryName" cname="工厂名称" hidden="true"/>
<EF:EFComboColumn ename="orgNo" cname="生产组"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="120" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="group_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="orgName" cname="生产组" hidden="true"/>
<EF:EFComboColumn ename="projCode" cname="项目名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="120" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="proj_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="projName" cname="项目名称" hidden="true"/>
<EF:EFColumn ename="workCode" cname="生产任务单号" width="130" hidden="true"/>
<EF:EFColumn ename="checkCode" cname="质检单号" width="130" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="processName" cname="工序" width="100" hidden="true"/>
<EF:EFComboColumn ename="prdtCode" cname="产品名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="120" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="invent_name_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="prdtName" cname="产品名称" width="100" hidden="true"/>
<EF:EFColumn ename="prdtSpec" cname="产品规格" enable="false" width="120" align="center" hidden="true"/>
<EF:EFColumn ename="partCode" cname="零件名称" enable="false" width="120" align="center" hidden="true"/>
<EF:EFColumn ename="partName" cname="零件名称" enable="false" width="120" align="center" hidden="true"/>
<EF:EFColumn ename="partSpec" cname="零件规格" enable="false" width="120" align="center" hidden="true"/>
<EF:EFColumn ename="quantity" cname="派工数量" width="90" enable="false" readonly="true" align="center" hidden="true"/>
<EF:EFColumn ename="registerDate" cname="派工日期" width="120" enable="true" align="center" editType="date" hidden="true"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="passQuantity" cname="合格数量" format="{0:0.0}" width="90" align="center" required="true"/>
<EF:EFColumn ename="unpassQuantity" cname="不合格数量" format="{0:0.0}" width="100" align="center"
required="true"/>
<EF:EFColumn ename="checkDate" cname="质检日期" width="120" enable="true" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFComboColumn ename="checkBy" cname="质检员" columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField" defaultValue="${loginName}"
maxLength="16" width="100" readonly="false" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="userIdBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="checkName" cname="质检员" width="100" enable="" readonly="true" align="center" hidden="true"
defaultValue="${loginCName}"/>
<EF:EFComboColumn ename="checkStatus" cname="质检状态" width="80" align="center" enable="false"
readonly="true" defaultValue="0">
<EF:EFOption label="质检中" value="0"/>
<EF:EFOption label="已质检" value="1"/>
</EF:EFComboColumn>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment