Commit 1a8f1078 by 宋祥

1.生产销售页面下拉联动调整

parent dd8026da
...@@ -22,6 +22,8 @@ public class HPConstant { ...@@ -22,6 +22,8 @@ public class HPConstant {
public static final String HPZL001_NUMBER = "HPZL001_NUMBER"; public static final String HPZL001_NUMBER = "HPZL001_NUMBER";
// 生产入库单号 // 生产入库单号
public static final String HPKC003_PROD_NO = "HPKC003_PROD_NO"; public static final String HPKC003_PROD_NO = "HPKC003_PROD_NO";
// 生产销售单号
public static final String HPKC004_SALE_NO = "HPKC004_SALE_NO";
} }
/** /**
......
...@@ -11,6 +11,7 @@ import com.baosight.hpjx.hp.pz.domain.HPPZ009; ...@@ -11,6 +11,7 @@ import com.baosight.hpjx.hp.pz.domain.HPPZ009;
import com.baosight.hpjx.hp.pz.domain.THppz004; import com.baosight.hpjx.hp.pz.domain.THppz004;
import com.baosight.hpjx.hp.pz.tools.HPPZTools; import com.baosight.hpjx.hp.pz.tools.HPPZTools;
import com.baosight.hpjx.util.CommonMethod; import com.baosight.hpjx.util.CommonMethod;
import com.baosight.hpjx.util.EiInfoUtils;
import com.baosight.hpjx.util.LogUtils; import com.baosight.hpjx.util.LogUtils;
import com.baosight.hpjx.util.StringUtil; import com.baosight.hpjx.util.StringUtil;
import com.baosight.iplat4j.core.ei.EiBlock; import com.baosight.iplat4j.core.ei.EiBlock;
...@@ -20,6 +21,8 @@ import com.baosight.iplat4j.core.exception.PlatException; ...@@ -20,6 +21,8 @@ import com.baosight.iplat4j.core.exception.PlatException;
import com.baosight.iplat4j.core.service.impl.ServiceBase; import com.baosight.iplat4j.core.service.impl.ServiceBase;
import com.baosight.iplat4j.ed.util.SequenceGenerator; import com.baosight.iplat4j.ed.util.SequenceGenerator;
import org.apache.commons.collections.MapUtils;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
...@@ -57,6 +60,10 @@ public class ServiceHPKC003 extends ServiceBase { ...@@ -57,6 +60,10 @@ public class ServiceHPKC003 extends ServiceBase {
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
Map queryRow = EiInfoUtils.getFirstRow(inInfo);
String receiptDate = MapUtils.getString(queryRow, "documentDate");
queryRow.put("documentDate", StringUtil.removeSpecifiedCharacter(receiptDate,
StringUtil.DEFAULT_CHARACTER_TO_BE_REMOVED));
inInfo = super.query(inInfo, "HPKC003.query", new HPPZ009()); inInfo = super.query(inInfo, "HPKC003.query", new HPPZ009());
} catch (Exception e) { } catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败"); LogUtils.setDetailMsg(inInfo, e, "查询失败");
......
package com.baosight.hpjx.hp.kc.service; package com.baosight.hpjx.hp.kc.service;
import com.baosight.hpjx.common.DdynamicEnum; 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.kc.domain.HPKC003;
import com.baosight.hpjx.hp.kc.domain.HPKC004; import com.baosight.hpjx.hp.kc.domain.HPKC004;
import com.baosight.hpjx.hp.pz.domain.HPPZ007; import com.baosight.hpjx.hp.pz.domain.HPPZ007;
import com.baosight.hpjx.hp.pz.domain.HPPZ009;
import com.baosight.hpjx.hp.pz.domain.THppz004; import com.baosight.hpjx.hp.pz.domain.THppz004;
import com.baosight.hpjx.hp.pz.tools.HPPZTools;
import com.baosight.hpjx.util.CommonMethod; import com.baosight.hpjx.util.CommonMethod;
import com.baosight.hpjx.util.EiInfoUtils;
import com.baosight.hpjx.util.LogUtils;
import com.baosight.hpjx.util.StringUtil; import com.baosight.hpjx.util.StringUtil;
import com.baosight.hpjx.util.contants.ACConstants; import com.baosight.hpjx.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiBlock; import com.baosight.iplat4j.core.ei.EiBlock;
...@@ -12,6 +19,9 @@ import com.baosight.iplat4j.core.ei.EiConstant; ...@@ -12,6 +19,9 @@ import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo; import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException; import com.baosight.iplat4j.core.exception.PlatException;
import com.baosight.iplat4j.core.service.impl.ServiceBase; import com.baosight.iplat4j.core.service.impl.ServiceBase;
import com.baosight.iplat4j.ed.util.SequenceGenerator;
import org.apache.commons.collections.MapUtils;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -21,104 +31,104 @@ import java.util.stream.Collectors; ...@@ -21,104 +31,104 @@ import java.util.stream.Collectors;
* @date 2024年01月09日 10:18 * @date 2024年01月09日 10:18
*/ */
public class ServiceHPKC004 extends ServiceBase { public class ServiceHPKC004 extends ServiceBase {
/** /**
* 画面初始化. * 画面初始化
*/ *
public EiInfo initLoad(EiInfo inInfo) { * @param inInfo
HPKC004 HPKC004 = new HPKC004(); * @return
EiInfo outInfo = super.initLoad(inInfo, HPKC004); */
outInfo.addBlock(EiConstant.queryBlock).setCell(0,"receiptDate",CommonMethod.getCurrentSameYearMonth()); public EiInfo initLoad(EiInfo inInfo) {
outInfo.getBlock(EiConstant.resultBlock).getRows().clear(); try {
CommonMethod.initBlock(outInfo, Arrays.asList(DdynamicEnum.WH_RECORD_BLOCK_ID), null); CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.WH_RECORD_QUERY_BLOCK_ID), null);
EiBlock block = outInfo.addBlock(EiConstant.queryBlock); CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.INVENT_NAME_BLOCK_ID), null);
block.setCell(ACConstants.ROW_CODE_0, ACConstants.PARAM_WH_CODE, outInfo.getBlock(ACConstants.WH_CODE_BLOCK_ID).getRow(ACConstants.ROW_CODE_0).get(ACConstants.FIELD_VALUE)); inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPKC004().eiMetadata);
} catch (Exception e) {
return outInfo; LogUtils.setDetailMsg(inInfo, e, "初始化失败");
} }
return inInfo;
/** }
* 查询操作.
*/ /**
@Override * 查询操作
public EiInfo query(EiInfo inInfo) { *
String receiptDate = inInfo.getCellStr(EiConstant.queryBlock,0,"receiptDate"); * @param inInfo
inInfo.setCell(EiConstant.queryBlock,0,"receiptDate", StringUtil.removeHorizontalLine(receiptDate)); * @return
/* 调用EI查询方法.*/ */
return super.query(inInfo, "HPKC004.query", new HPKC004()); @Override
public EiInfo query(EiInfo inInfo) {
try {
Map queryRow = EiInfoUtils.getFirstRow(inInfo);
String receiptDate = MapUtils.getString(queryRow, "receiptDate");
queryRow.put("receiptDate", StringUtil.removeSpecifiedCharacter(receiptDate,
StringUtil.DEFAULT_CHARACTER_TO_BE_REMOVED));
inInfo = super.query(inInfo, "HPKC004.query", new HPKC004());
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败");
}
return inInfo;
} }
/** /**
* 新增操作. * 新增操作
*/ *
@Override * @param inInfo
public EiInfo insert(EiInfo inInfo) { * @return
*/
CommonMethod.creatorInfo(inInfo,EiConstant.resultBlock); @Override
for (int i = 0; i < inInfo.getBlock(EiConstant.resultBlock).getRowCount(); i++) { public EiInfo insert(EiInfo inInfo) {
String receiptDate = inInfo.getCellStr(EiConstant.resultBlock,i,"receiptDate"); CommonMethod.creatorInfo(inInfo, EiConstant.resultBlock);
inInfo.setCell(EiConstant.resultBlock,i,"receiptDate", StringUtil.removeHorizontalLine(receiptDate)); try {
String whCode = inInfo.getCellStr(EiConstant.resultBlock,i,"whCode"); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
String matCode = inInfo.getCellStr(EiConstant.resultBlock,i,"matCode"); // 数据写入
Map params=new HashMap<>(); for (int i = 0; i < resultRows.size(); i++) {
params.put("whCode", whCode); HPKC004 fKc004 = new HPKC004();
List query = dao.query("HPPZ007.queryByWhCode",params); fKc004.fromMap(resultRows.get(i));
String whName = ((HPPZ007)query.get(0)).getWhName(); fKc004.setReceiptDate(StringUtil.removeHorizontalLine(fKc004.getReceiptDate()));
inInfo.setCell(EiConstant.resultBlock,i,"whName", whName); // 仓库名称
Map params1=new HashMap<>(); fKc004.setWhName(HPPZTools.getWhNameByCode(fKc004.getWhCode()));
params1.put("inventCode", matCode); // 物料名称
List query1 = dao.query("HPPZ004.queryMatNameByCode",params1); fKc004.setInventName(HPPZTools.getInventNameByCode(fKc004.getInventCode()));
String matName = ((THppz004)query1.get(0)).getInventName(); // 生成销售单号
inInfo.setCell(EiConstant.resultBlock,i,"matName", matName); fKc004.setSaleNo(SequenceGenerator.getNextSequence(HPConstant.SequenceId.HPKC004_SALE_NO));
} DaoUtils.insert("HPKC004.insert", fKc004);
return super.insert(inInfo,"HPKC004.insert"); }
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据新增成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "新增失败");
}
return inInfo;
} }
/**
/** * 修改操作
* 修改操作. *
*/ * @param inInfo
public EiInfo update(EiInfo inInfo) { * @return
try { */
HPKC004 HPKC004 = new HPKC004(); public EiInfo update(EiInfo inInfo) {
EiBlock eiBlock = inInfo.getBlock(EiConstant.resultBlock); CommonMethod.creatorInfo(inInfo, EiConstant.resultBlock);
List<String> list = new ArrayList<>(); try {
for (int i = 0; i < eiBlock.getRowCount(); i++) { List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
Map<?, ?> map = eiBlock.getRow(i); for (int i = 0; i < resultRows.size(); i++) {
HPKC004.fromMap(map); HPKC004 fKc004 = new HPKC004();
if (HPKC004.getStatus() == 1) { fKc004.fromMap(resultRows.get(i));
list.add(HPKC004.getSaleNumber()); fKc004.setReceiptDate(StringUtil.removeHorizontalLine(fKc004.getReceiptDate()));
continue; // 仓库名称
} fKc004.setWhName(HPPZTools.getWhNameByCode(fKc004.getWhCode()));
Map params=new HashMap<>(); // 物料名称
params.put("whCode", HPKC004.getWhCode()); fKc004.setInventName(HPPZTools.getInventNameByCode(fKc004.getInventCode()));
List query = dao.query("HPPZ007.queryByWhCode",params); DaoUtils.update("HPKC004.update", fKc004);
String whName = ((HPPZ007)query.get(0)).getWhName(); }
HPKC004.setWhName(whName); inInfo = this.query(inInfo);
Map params1=new HashMap<>(); inInfo.setStatus(EiConstant.STATUS_DEFAULT);
params1.put("inventCode", HPKC004.getMatCode()); inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据修改成功!");
List query1 = dao.query("HPPZ004.queryMatNameByCode",params1); } catch (Exception e) {
String matName = ((THppz004)query1.get(0)).getInventName(); LogUtils.setDetailMsg(inInfo, e, "修改失败");
HPKC004.setMatName(matName); }
this.dao.update("HPKC004.update", HPKC004.toMap()); return inInfo;
}
if (list.size() > 0) {
inInfo.setStatus(EiConstant.STATUS_SUCCESS);
inInfo.setMsg("部分数据修改成功!销售出库单号为:" + list.stream()
.collect(Collectors.joining(",")) + "状态为已审核不能进行修改!");
} else {
inInfo.setStatus(EiConstant.STATUS_SUCCESS);
inInfo.setMsg("修改成功!");
}
} catch (PlatException e) {
inInfo.setStatus(EiConstant.STATUS_FAILURE);
inInfo.setMsg("操作失败!原因参见详细错误描述!");
inInfo.setDetailMsg(e.getMessage());
logError("修改失败", e.getMessage());
return inInfo;
}
return query(inInfo);
} }
/** /**
......
...@@ -257,7 +257,7 @@ public class ServiceHPKC009 extends ServiceBase { ...@@ -257,7 +257,7 @@ public class ServiceHPKC009 extends ServiceBase {
List<HPKC004> cItems = dao.query("HPKC004.statDate", queryMap); List<HPKC004> cItems = dao.query("HPKC004.statDate", queryMap);
Map<String, HPKC004> cItemMap = cItems.stream().collect(Collectors.toMap(item -> Map<String, HPKC004> cItemMap = cItems.stream().collect(Collectors.toMap(item ->
item.getCompanyCode() + "#" + item.getDepCode() + "#" + item.getWhCode() + "#" item.getCompanyCode() + "#" + item.getDepCode() + "#" + item.getWhCode() + "#"
+ item.getMatType() + "#" + item.getMatCode(), item -> item)); + item.getInventType() + "#" + item.getInventCode(), item -> item));
// 1.4、期初库存 // 1.4、期初库存
queryMap.put("dateProc", queryMap.get("beforeDate")); queryMap.put("dateProc", queryMap.get("beforeDate"));
queryMap.put("kcType", HPConstant.KcType.SC); queryMap.put("kcType", HPConstant.KcType.SC);
......
let inventNameGlobalData = [];
$(function () { $(function () {
var eiInfo = new EiInfo(); var eiInfo = new EiInfo();
var globalData = []; var globalData = [];
var day1 = new Date(); // var day1 = new Date();
day1.setTime(day1.getTime()); // day1.setTime(day1.getTime());
var s1 = day1.getFullYear() + "-" + (day1.getMonth() + 1) + "-" + day1.getDate(); // var s1 = day1.getFullYear() + "-" + (day1.getMonth() + 1) + "-" + day1.getDate();
$("#inqu_status-0-receiptDate").val(s1); // $("#inqu_status-0-receiptDate").val(s1);
// 查询 // 查询
$("#QUERY").on("click", function () { $("#QUERY").on("click", query);
resultGrid.dataSource.page(1); // 点击查询按钮,从第1页开始查询
var dataSource;
eiInfo = new EiInfo();
EiCommunicator.send("HPPZ004", "queryComboBox", eiInfo, {
onSuccess: function (ei) {
dataSource = ei.getBlock("invent_name_block_id").getMappedRows();
globalData = dataSource;
}, onFail: function (ei) {
}
}, {async: false});
});
IPLATUI.EFGrid = { IPLATUI.EFGrid = {
"result": { "result": {
columns: [ columns: [{
{ field: "inventCode",
field: "matCode", template: function (dataItem) {
template: function(dataItem) { for (let i = 0; i < inventNameGlobalData.length; i++) {
for (var i = 0 ; i < globalData.length ; i++) { if (inventNameGlobalData[i]['valueField'] === dataItem['inventCode']) {
if ( globalData[i]['valueField'] === dataItem['matCode']) { return inventNameGlobalData[i]['textField'];
return globalData[i]['textField']; }
} }
} return "";
return ""; },
editor: function (container, options) {
}, var grid = container.closest(".k-grid").data("kendoGrid");
editor: function (container, options) { var cellIndex = grid.cellIndex(container);
var grid = container.closest(".k-grid").data("kendoGrid"); var input = $('<input />');
var cellIndex = grid.cellIndex(container); input.attr("name", options.field);
var input = $('<input />'); input.attr("id", options.field);
input.attr("name", options.field); input.appendTo(container);
input.attr("id", options.field); let eiInfo = new EiInfo();
input.appendTo(container); eiInfo.set("inventType", options.model["inventType"]);
var dataSource;
eiInfo.set("inventType", options.model["matType"]); EiCommunicator.send("HPPZ004", "queryComboBox", eiInfo, {
var dataSource; onSuccess: function (ei) {
dataSource = ei.getBlock("invent_name_block_id").getMappedRows();
EiCommunicator.send("HPPZ004", "queryComboBox", eiInfo, { inventNameGlobalData = dataSource;
onSuccess: function (ei) { },
dataSource = ei.getBlock("invent_name_block_id").getMappedRows(); onFail: function (ei) {
globalData = dataSource; }
}, onFail: function (ei) { }, {async: false});
} input.kendoDropDownList({
}, {async: false}); valuePrimitive: true,
dataTextField: "textField",
input.kendoDropDownList({ dataValueField: "valueField",
valuePrimitive: true, dataSource: dataSource,
dataTextField: "textField", template: "#=textField#"
dataValueField: "valueField", });
dataSource: dataSource, }
template: "#=textField#" }],
});
}
}
],
loadComplete: function (grid) { loadComplete: function (grid) {
// 新增
$("#BTN_INSERT").on("click", function () {
var btnNode = $(this);
//禁用按钮
btnNode.attr("disabled", true);
IPLAT.submitNode($("#HPKC004"), "HPKC004", "insert", {
onSuccess: function (ei) {
if (ei["status"] == -1) {
NotificationUtil(ei, "error");
} else {
// 绑定grid
resultGrid.setEiInfo(ei);
NotificationUtil({
msg: '新增成功'
});
}
//释放禁用按钮
btnNode.attr("disabled", false);
resultGrid.dataSource.page(1);
},
onFail: function (ei) { // onFail 表示失败回调函数
// 发生异常
console.log(ei);
//释放禁用按钮
btnNode.attr("disabled", false);
}
});
});
// 修改
$("#BTN_UPDATE").on("click", function () {
var rowCount = resultGrid.getCheckedRows();
// 检验是否选中数据
if (rowCount == null || rowCount == "") {
NotificationUtil({
msg: '请选择一条或多条数据'
}, "warning");
return false;
}
var btnNode = $(this);
//禁用按钮
btnNode.attr("disabled", true);
IPLAT.submitNode($("#HPKC004"), "HPKC004", "update", {
onSuccess: function (ei) {
if (ei["status"] == -1) {
NotificationUtil(ei, "error");
} else {
NotificationUtil({
msg: '修改成功'
});
// 绑定grid
resultGrid.setEiInfo(ei);
}
//释放禁用按钮
btnNode.attr("disabled", false);
},
onFail: function (ei) { // onFail 表示失败回调函数
// 发生异常
console.log(ei);
//释放禁用按钮
btnNode.attr("disabled", false);
}
});
});
//删除 //删除
$("#DELETE").on("click", function () { $("#DELETE").on("click", function () {
var btnNode = $(this); var btnNode = $(this);
//禁用按钮 //禁用按钮
btnNode.attr("disabled", true); btnNode.attr("disabled", true);
var dataItems = resultGrid.getCheckedRows(); var dataItems = resultGrid.getCheckedRows();
if (dataItems == null || dataItems == "") { if (dataItems == null || dataItems == "") {
NotificationUtil({ NotificationUtil({
...@@ -157,11 +72,9 @@ $(function () { ...@@ -157,11 +72,9 @@ $(function () {
NotificationUtil({ NotificationUtil({
msg: '删除成功' msg: '删除成功'
}); });
// 绑定grid // 绑定grid
resultGrid.setEiInfo(ei); resultGrid.setEiInfo(ei);
} }
//释放禁用按钮 //释放禁用按钮
btnNode.attr("disabled", false); btnNode.attr("disabled", false);
}, },
...@@ -169,20 +82,37 @@ $(function () { ...@@ -169,20 +82,37 @@ $(function () {
// 表示失败回调函数 // 表示失败回调函数
// 发生异常 // 发生异常
console.log(ei); console.log(ei);
//释放禁用按钮 //释放禁用按钮
btnNode.attr("disabled", false); btnNode.attr("disabled", false);
} }
}); });
}); });
} }
}
},
} }
; });
/**
* 页面加载时执行
*/
$(window).load(function () {
// 存货名称
let inInfo = new EiInfo();
EiCommunicator.send("HPPZ004", "queryComboBox", inInfo, {
onSuccess: function (ei) {
inventNameGlobalData = ei.getBlock("invent_name_block_id").getMappedRows();
},
onFail: function (ei) {
}
}, {async: false});
// 查询
query();
}); });
/**
* 查询
*/
let query = function () {
resultGrid.dataSource.page(1);
}
...@@ -6,55 +6,51 @@ ...@@ -6,55 +6,51 @@
<c:set var="ctx" value="${pageContext.request.contextPath}"/> <c:set var="ctx" value="${pageContext.request.contextPath}"/>
<EF:EFPage title="销售出库单"> <EF:EFPage title="销售出库单">
<EF:EFRegion id="inqu" title="查询条件"> <EF:EFRegion id="inqu" title="查询条件">
<div class="row"> <div class="row">
<EF:EFDatePicker ename="inqu_status-0-receiptDate" cname="单据日期" colWidth="3" format="yyyy-MM-dd"
<EF:EFDatePicker ename="inqu_status-0-receiptDate" cname="单据日期" readonly="true"/>
format="yyyy-MM-dd" required="true"/> <EF:EFInput ename="inqu_status-0-saleNo" cname="生产销售单号" colWidth="3"/>
<EF:EFSelect ename="inqu_status-0-whCode" cname="仓库名称" colWidth="3" filter="contains" defultValue="">
<EF:EFInput ename="inqu_status-0-saleNumber" cname="销售出库单号" colWidth="4" readonly="false"/> <EF:EFOption label="请选择" value=""/>
<EF:EFOptions blockId="whName_block_id" textField="textField" valueField="valueField"/>
<EF:EFInput ename="inqu_status-0-whName" cname="仓库名称" colWidth="4" readonly="false"/> </EF:EFSelect>
</div> <EF:EFSelect ename="inqu_status-0-inventCode" cname="存货名称" colWidth="3" filter="contains" defultValue="">
<EF:EFOption label="请选择" value=""/>
<EF:EFOptions blockId="invent_name_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
</div>
</EF:EFRegion> </EF:EFRegion>
<EF:EFRegion id="result" title="明细信息"> <EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="false" isFloat="true" autoFit="true"> <EF:EFGrid blockId="result" autoDraw="false" isFloat="true" autoFit="true">
<EF:EFColumn ename="id" cname="内码" hidden="true"/> <EF:EFColumn ename="id" cname="内码" hidden="true"/>
<EF:EFColumn ename="receiptDate" cname="单据日期" editType="date" dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" width="100" readonly="false" align="center" /> <EF:EFColumn ename="saleNo" cname="销售出库单号" enable="false" width="130" align="center"/>
<EF:EFColumn ename="saleNumber" cname="销售出库单号" width="100" readonly="false" /> <EF:EFColumn ename="receiptDate" cname="单据日期" width="100" align="center" editType="date"
<EF:EFComboColumn ename="whCode" dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
cname="仓库编码" <EF:EFComboColumn cname="仓库名称" ename="whCode" columnTemplate="#=textField#"
columnTemplate="#=textField#" itemTemplate="#=textField#" blockName="whName_block_id"
itemTemplate="#=textField#" textField="textField" valueField="valueField"
blockName="wh_record_block_id" align="center" filter="contains" width="120">
textField="textField" </EF:EFComboColumn>
valueField="valueField" <EF:EFComboColumn cname="存货类型" ename="inventType" width="100" align="center">
align="center" <EF:EFCodeOption codeName="hpjx.hpkc.inventType"/>
filter="contains" </EF:EFComboColumn>
width="100" <EF:EFColumn cname="存货名称" ename="inventCode" width="120" align="center"/>
> <EF:EFColumn cname="数量" ename="amount" format="{0:N3}" maxLength="20" width="100"
</EF:EFComboColumn> align="center"/>
<%-- <EF:EFColumn ename="whName" cname="仓库名称" width="100" enable = "false"/>--%> <EF:EFColumn cname="重量" ename="weight" format="{0:N3}" maxLength="20" width="100"
<EF:EFComboColumn ename="matType" cname="物料类型" width="100" readonly="false" align="center"/>
textField="textField" valueField="valueField" align="center"> <EF:EFComboColumn cname="单据状态" ename="status" width="100" readonly="true"
<EF:EFOption label="1-原材料" value="1"></EF:EFOption> textField="textField" valueField="valueField" align="center">
<EF:EFOption label="2-耗材" value="2"></EF:EFOption> <EF:EFOption label="0-待审核" value="0"></EF:EFOption>
<EF:EFOption label="3-半成品" value="3"></EF:EFOption> <EF:EFOption label="1-已审核" value="1"></EF:EFOption>
<EF:EFOption label="4-产成品" value="4"></EF:EFOption> </EF:EFComboColumn>
</EF:EFComboColumn> <EF:EFColumn cname="备注" ename="remark" width="100" readonly="false" align="center"/>
<EF:EFColumn ename="matCode" cname="物料编码" width="100" readonly="false" align="center"/> <EF:EFColumn cname="创建人名称" ename="createdName" enable="false" width="120" align="center"/>
<%-- <EF:EFColumn ename="matName" cname="物料名称" width="100" readonly="false"/>--%> <EF:EFColumn cname="创建时间" ename="createdTime" enable="false" width="140" align="center"
<EF:EFColumn ename="amount" cname="数量" format="{0:N3}" maxLength="20" width="100" readonly="false" align="center"/> editType="datetime" parseFormats="['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"/>
<EF:EFColumn ename="weight" cname="重量" format="{0:N3}" maxLength="20" width="100" readonly="false" align="center"/> </EF:EFGrid>
<EF:EFComboColumn ename="status" cname="单据状态" width="100" readonly="true"
textField="textField" valueField="valueField" align="center">
<EF:EFOption label="0-待审核" value="0"></EF:EFOption>
<EF:EFOption label="1-已审核" value="1"></EF:EFOption>
</EF:EFComboColumn>
<EF:EFColumn ename="notes" cname="备注" width="100" readonly="false" align="center"/>
</EF:EFGrid>
</EF:EFRegion> </EF:EFRegion>
......
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