Commit 12d827a1 by 徐澳

下拉框

parent adabdf89
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.common.CompanyTypeEnum;
import com.baosight.hpjx.util.CommonMethod; import com.baosight.hpjx.util.CommonMethod;
import com.baosight.iplat4j.core.ei.EiBlock; import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant; import com.baosight.iplat4j.core.ei.EiConstant;
...@@ -22,8 +23,11 @@ public class ServiceHPPZ002 extends ServiceBase { ...@@ -22,8 +23,11 @@ public class ServiceHPPZ002 extends ServiceBase {
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
THppz002 hppz002 = new THppz002(); THppz002 hppz002 = new THppz002();
EiInfo outInfo = new EiInfo(); EiInfo outInfo = new EiInfo();
outInfo.addBlock(EiConstant.queryBlock);
outInfo.getBlock(EiConstant.queryBlock).addBlockMeta(hppz002.eiMetadata);
outInfo.addBlock(EiConstant.resultBlock); outInfo.addBlock(EiConstant.resultBlock);
outInfo.getBlock(EiConstant.resultBlock).addBlockMeta(hppz002.eiMetadata); outInfo.getBlock(EiConstant.resultBlock).addBlockMeta(hppz002.eiMetadata);
outInfo.setBlock(CompanyTypeEnum.generatorEiBlock());
return outInfo; return outInfo;
} }
...@@ -50,7 +54,6 @@ public class ServiceHPPZ002 extends ServiceBase { ...@@ -50,7 +54,6 @@ public class ServiceHPPZ002 extends ServiceBase {
for (int i = 0; i < eiBlock.getRowCount(); i++) { for (int i = 0; i < eiBlock.getRowCount(); i++) {
Map<?, ?> map = eiBlock.getRow(i); Map<?, ?> map = eiBlock.getRow(i);
hppz002.fromMap(map); hppz002.fromMap(map);
this.dao.insert("HPPZ002.insert", hppz002.toMap()); this.dao.insert("HPPZ002.insert", hppz002.toMap());
} }
inInfo.setStatus(EiConstant.STATUS_SUCCESS); inInfo.setStatus(EiConstant.STATUS_SUCCESS);
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
<EF:EFRegion id="inqu" title="查询条件"> <EF:EFRegion id="inqu" title="查询条件">
<div class="row"> <div class="row">
<EF:EFInput ename="inqu_status-0-custName" cname="供应商名称" colWidth="4" readonly="false"/> <EF:EFInput ename="inqu_status-0-custName" cname="供应商名称" colWidth="4" readonly="false"/>
<EF:EFSelect ename="inqu_status-0-custType" cname="供应商类型" colWidth="4"> <EF:EFSelect ename="inqu_status-0-custType" cname="供应商类型" colWidth="4"
<EF:EFOption label="--请选择--" value=""/> template="#=valueField#-#=textField#" valueTemplate="#=valueField#-#=textField#" enable="true">
<EF:EFOption label="国企" value="1"></EF:EFOption> <EF:EFOption label="全部" value=""/>
<EF:EFOption label="民营" value="2"></EF:EFOption> <EF:EFOptions blockId="company_type_block_id" textField="valueField" valueField="textField"/>
</EF:EFSelect> </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=""/>
...@@ -28,12 +28,10 @@ ...@@ -28,12 +28,10 @@
<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="#=valueField#-#=textField#" optionLabel=" " blockName="company_type_block_id"
itemTemplate="#=valueField#-#=textField#" textField="textField" columnTemplate="#=textField#-#=valueField#" optionLabel=" "
valueField="valueField" width="100" required="true"> itemTemplate="#=textField#-#=valueField#" textField="valueField"
<EF:EFOption label="--请选择--" value=""></EF:EFOption> valueField="textField" width="100" required="true">
<EF:EFOption label="国企" value="1"></EF:EFOption>
<EF:EFOption label="民营" value="2"></EF:EFOption>
</EF:EFComboColumn> </EF:EFComboColumn>
<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"/>
......
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