Commit f3c46019 by YG6494

Merge remote-tracking branch 'origin/dev' into dev

parents c7a3e335 5ba56f3b
...@@ -14,19 +14,42 @@ package com.baosight.hpjx.common; ...@@ -14,19 +14,42 @@ package com.baosight.hpjx.common;
*}}); *}});
*/ */
public enum DdynamicEnum { public enum DdynamicEnum {
//------------------------------------配置管理-----------------------------------
/** /**
* 模块:供应商档案 * 模块:供应商档案
* 用途:供应商档案下拉框. * 用途:供应商档案下拉框
* 编写:wwl. * 编写:wwl
*/ */
SUPPLIER_RECORD_BLOCK_ID("supplier_record_block_id","CUST_CODE","CUST_NAME","HPPZ002.queryComboBox"), SUPPLIER_RECORD_BLOCK_ID("supplier_record_block_id","custCode","custName","HPPZ002.queryComboBox"),
/** /**
* 模块:客户档案 * 模块:客户档案
* 用途:客户档案下拉框. * 用途:客户档案下拉框
* 编写:wwl. * 编写:wwl
*/ */
CUSTOMER_RECORD_BLOCK_ID("customer_record_block_id","CUST_CODE","CUST_NAME","HPPZ003.queryComboBox"); CUSTOMER_RECORD_BLOCK_ID("customer_record_block_id","custCode","custName","HPPZ003.queryComboBox"),
/**
* 模块:存货名称
* 用途:存货名称下拉框
* 编写:wwl
*/
INVENT_NAME_BLOCK_ID("invent_name_block_id","inventCode","inventName","HPPZ004.queryComboBox"),
/**
* 模块:仓库档案
* 用途:仓库档案下拉框
* 编写:wwl
*/
WH_RECORD_BLOCK_ID("wh_record_block_id","whCode","whName","HPPZ007.queryComboBox"),
//------------------------------------生产管理-----------------------------------
/**
* 模块:项目档案
* 用途:项目档案下拉框
* 编写:wwl
*/
PROJ_RECORD_BLOCK_ID("proj_record_block_id","projCode","projName","HPSC001.queryComboBox");
/** 将结果集放入的块名 */ /** 将结果集放入的块名 */
......
package com.baosight.hpjx.common;
import com.baosight.iplat4j.core.ei.EiBlock;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @Author wwl
* @Date 2024/1/10 14:29
*/
public enum InventTypeEnun {
MATERIAL(1,"原材料"),
CONSUMABLE(2,"耗材"),
SEMI_FINISHED_PRODUCT(2,"半成品"),
FINISHED_PRODUCT(2,"产成品");
private Integer code;
private String value;
InventTypeEnun(Integer code, String value) {
this.code = code;
this.value = value;
}
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;
}
public static EiBlock generatorEiBlock() {
EiBlock block = new EiBlock("customer_type_block_id");
List<Map<String, Object>> rows = new ArrayList<Map<String, Object>>() {{
add(new HashMap<String, Object>() {{
put(HPConstants.TEXT_FIELD, MATERIAL.code);
put(HPConstants.VALUE_FIELD, MATERIAL.value);
}});
add(new HashMap<String, Object>() {{
put(HPConstants.TEXT_FIELD, CONSUMABLE.code);
put(HPConstants.VALUE_FIELD, CONSUMABLE.value);
}});
add(new HashMap<String, Object>() {{
put(HPConstants.TEXT_FIELD, SEMI_FINISHED_PRODUCT.code);
put(HPConstants.VALUE_FIELD, SEMI_FINISHED_PRODUCT.value);
}});
add(new HashMap<String, Object>() {{
put(HPConstants.TEXT_FIELD, FINISHED_PRODUCT.code);
put(HPConstants.VALUE_FIELD, FINISHED_PRODUCT.value);
}});
}};
block.setRows(rows);
return block;
}
}
...@@ -16,7 +16,7 @@ import com.baosight.iplat4j.core.util.StringUtils; ...@@ -16,7 +16,7 @@ import com.baosight.iplat4j.core.util.StringUtils;
*/ */
public class THppz004 extends DaoEPBase { public class THppz004 extends DaoEPBase {
private Integer id = 0; private Long id = 0L;
private String companyCode = " "; /* 企业编码 预留*/ private String companyCode = " "; /* 企业编码 预留*/
private String inventName = " "; /* 存货名称*/ private String inventName = " "; /* 存货名称*/
private String inventCode = " "; /* 存货编码*/ private String inventCode = " "; /* 存货编码*/
...@@ -87,20 +87,20 @@ public THppz004() { ...@@ -87,20 +87,20 @@ public THppz004() {
initMetaData(); initMetaData();
} }
/** /**
* get the id * get the id
* @return the id * @return the id
*/ */
public Integer getId() { public Long getId() {
return this.id; return this.id;
} }
/** /**
* set the id * set the id
*/ */
public void setId(Integer id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
/** /**
* get the companyCode - 企业编码 预留 * get the companyCode - 企业编码 预留
* @return the companyCode * @return the companyCode
...@@ -246,7 +246,7 @@ initMetaData(); ...@@ -246,7 +246,7 @@ initMetaData();
*/ */
public void fromMap(Map map) { public void fromMap(Map map) {
setId(NumberUtils.toInteger(StringUtils.toString(map.get("id")), id)); setId(NumberUtils.toLong(StringUtils.toString(map.get("id")), id));
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("companyCode")), companyCode)); setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("companyCode")), companyCode));
setInventName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inventName")), inventName)); setInventName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inventName")), inventName));
setInventCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inventCode")), inventCode)); setInventCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inventCode")), inventCode));
......
...@@ -133,5 +133,19 @@ ...@@ -133,5 +133,19 @@
WHERE WHERE
ID = #id# ID = #id#
</update> </update>
<select id="queryComboBox" parameterClass="java.util.HashMap"
resultClass="java.util.HashMap">
SELECT DISTINCT
CUST_CODE as "custCode",
CUST_CNAME as "custName"
FROM hpjx.t_hppz003 WHERE 1=1
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="custType">
CUST_TYPE = #custType#
</isNotEmpty>
ORDER BY CUST_CODE
</select>
</sqlMap> </sqlMap>
\ No newline at end of file
...@@ -127,5 +127,20 @@ ...@@ -127,5 +127,20 @@
WHERE WHERE
ID = #id# ID = #id#
</update> </update>
<select id="queryComboBox" parameterClass="java.util.HashMap"
resultClass="java.util.HashMap">
SELECT DISTINCT
INVENT_CODE as "inventCode",
INVENT_NAME as "inventName"
FROM hpjx.t_hppz004 WHERE 1=1
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventType">
INVENT_TYPE = #inventType#
</isNotEmpty>
ORDER BY INVENT_CODE
</select>
</sqlMap> </sqlMap>
\ No newline at end of file
...@@ -131,5 +131,19 @@ ...@@ -131,5 +131,19 @@
WHERE WHERE
ID = #id# ID = #id#
</update> </update>
<select id="queryComboBox" parameterClass="java.util.HashMap"
resultClass="java.util.HashMap">
SELECT DISTINCT
WH_CODE = #whCode#,
WH_NAME = #whName#
FROM hpjx.t_hppz004 WHERE 1=1
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="whType">
WH_TYPE = #whType#
</isNotEmpty>
ORDER BY WH_CODE
</select>
</sqlMap> </sqlMap>
\ No newline at end of file
...@@ -148,5 +148,20 @@ ...@@ -148,5 +148,20 @@
WHERE WHERE
ID = #id# ID = #id#
</update> </update>
<select id="queryComboBox" parameterClass="java.util.HashMap"
resultClass="java.util.HashMap">
SELECT DISTINCT
PROJ_CODE = #projCode#,
PROJ_NAME = #projName#
FROM hpjx.t_hpsc001 WHERE 1=1
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projType">
PROJ_TYPE = #projType#
</isNotEmpty>
ORDER BY PROJ_CODE
</select>
</sqlMap> </sqlMap>
\ No newline at end of file
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
<EF:EFColumn ename="id" cname="内码" hidden="true"/> <EF:EFColumn ename="id" cname="内码" hidden="true"/>
<EF:EFComboColumn ename="custType" cname="供应商类型" align="center" <EF:EFComboColumn ename="custType" cname="供应商类型" align="center"
columnTemplate="#=textField#-#=valueField#" optionLabel=" " columnTemplate="#=valueField#-#=textField#" optionLabel=" "
itemTemplate="#=textField#-#=valueField#" textField="textField" itemTemplate="#=valueField#-#=textField#" textField="textField"
valueField="valueField" width="100" required="true"> valueField="valueField" width="100" required="true">
<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>
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
<EF:EFColumn ename="custCode" cname="供应商编码" width="100" readonly="false" required="true"/> <EF:EFColumn ename="custCode" cname="供应商编码" width="100" readonly="false" required="true"/>
<EF:EFColumn ename="custName" cname="供应商名称" width="100" readonly="false" required="true"/> <EF:EFColumn ename="custName" cname="供应商名称" width="100" readonly="false" required="true"/>
<EF:EFColumn ename="address" cname="地址" width="100" readonly="false" required="true"/> <EF:EFColumn ename="address" cname="地址" width="100" readonly="false" required="true"/>
<EF:EFComboColumn ename="status" cname="状态" align="center" columnTemplate="#=textField#-#=valueField#" optionLabel=" " <EF:EFComboColumn ename="status" cname="状态" align="center" columnTemplate="#=valueField#-#=textField#" optionLabel=" "
itemTemplate="#=textField#-#=valueField#" textField="textField" itemTemplate="#=valueField#-#=textField#" textField="textField"
valueField="valueField" width="100" required="true"> valueField="valueField" width="100" required="true">
<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>
......
...@@ -40,7 +40,7 @@ $(function() { ...@@ -40,7 +40,7 @@ $(function() {
}); });
// 修改 // 修改
$("#UPDATE").on("click", function () { $("#BTN_UPDATE").on("click", function () {
var rowCount = resultGrid.getCheckedRows(); var rowCount = resultGrid.getCheckedRows();
// 检验是否选中数据 // 检验是否选中数据
if (rowCount == null || rowCount == "") { if (rowCount == null || rowCount == "") {
......
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
<EF:EFRegion id="inqu" title="查询条件"> <EF:EFRegion id="inqu" title="查询条件">
<div class="row"> <div class="row">
<EF:EFInput ename="inqu_status-0-inventName" cname="存货类型" colWidth="4" readonly="false"/> <EF:EFSelect ename="inqu_status-0-inventType" cname="存货类型" colWidth="4">
<EF:EFOption label="--请选择--" value=""/>
<EF:EFOption label="待定" value="1"></EF:EFOption>
</EF:EFSelect>
<EF:EFSelect ename="inqu_status-0-status" cname="状态" colWidth="4"> <EF:EFSelect ename="inqu_status-0-status" cname="状态" colWidth="4">
<EF:EFOption label="--请选择--" value=""/> <EF:EFOption label="--请选择--" value=""/>
<EF:EFOption label="启用" value="1"></EF:EFOption> <EF:EFOption label="启用" value="1"></EF:EFOption>
...@@ -24,9 +27,14 @@ ...@@ -24,9 +27,14 @@
<EF:EFColumn ename="id" cname="内码" hidden="true"/> <EF:EFColumn ename="id" cname="内码" hidden="true"/>
<EF:EFColumn ename="inventCode" cname="类型编码" width="100" readonly="false" required="true"/> <EF:EFColumn ename="inventCode" cname="类型编码" width="100" readonly="false" required="true"/>
<EF:EFColumn ename="inventName" cname="存货名称" width="100" readonly="false" required="true"/> <EF:EFColumn ename="inventName" cname="存货名称" width="100" readonly="false" required="true"/>
<EF:EFColumn ename="inventType" cname="存货类型" width="100" readonly="false" required="true"/> <EF:EFComboColumn ename="inventType" cname="存货类型" align="center" columnTemplate="#=valueField#-#=textField#" optionLabel=" "
<EF:EFComboColumn ename="status" cname="状态" align="center" columnTemplate="#=textField#-#=valueField#" optionLabel=" " itemTemplate="#=valueField#-#=textField#" textField="textField"
itemTemplate="#=textField#-#=valueField#" textField="textField" valueField="valueField" width="100" required="true">
<EF:EFOption label="--请选择--" value=""></EF:EFOption>
<EF:EFOption label="待定" value="1"></EF:EFOption>
</EF:EFComboColumn>
<EF:EFComboColumn ename="status" cname="状态" align="center" columnTemplate="#=valueField#-#=textField#" optionLabel=" "
itemTemplate="#=valueField#-#=textField#" textField="textField"
valueField="valueField" width="100" required="true"> valueField="valueField" width="100" required="true">
<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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment