出库单修改系统代码:去除领料人和合同编号必录赋值逻辑
This commit is contained in:
parent
dbd9228959
commit
5eb834008f
|
@ -60,7 +60,7 @@ import kd.ec.material.formplugin.materialout.PoundAutoFetchBiz;
|
||||||
import kd.ec.material.utils.UnitProjectUtil;
|
import kd.ec.material.utils.UnitProjectUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 出库单扩展系统代码:修改领料人必填逻辑
|
* 出库单扩展系统代码:修改领料人和合同编号必填逻辑
|
||||||
*/
|
*/
|
||||||
public class MaterialOutBillEditPluginExt extends AbstractEcmaBillPlugin implements BeforeF7SelectListener, HyperLinkClickListener {
|
public class MaterialOutBillEditPluginExt extends AbstractEcmaBillPlugin implements BeforeF7SelectListener, HyperLinkClickListener {
|
||||||
private static final String PROJECT = "project";
|
private static final String PROJECT = "project";
|
||||||
|
@ -605,7 +605,8 @@ public class MaterialOutBillEditPluginExt extends AbstractEcmaBillPlugin impleme
|
||||||
BasedataEdit contract = (BasedataEdit) this.getControl("contract");
|
BasedataEdit contract = (BasedataEdit) this.getControl("contract");
|
||||||
BasedataEdit labour = (BasedataEdit) this.getControl("labour");
|
BasedataEdit labour = (BasedataEdit) this.getControl("labour");
|
||||||
if (StringUtils.equals(costType, "b")) {
|
if (StringUtils.equals(costType, "b")) {
|
||||||
contract.setMustInput(true);
|
// contract.setMustInput(true);//系统代码
|
||||||
|
contract.setMustInput(false);//二开替代
|
||||||
labour.setMustInput(true);
|
labour.setMustInput(true);
|
||||||
this.getView().setVisible(true, new String[]{"labour"});
|
this.getView().setVisible(true, new String[]{"labour"});
|
||||||
} else {
|
} else {
|
||||||
|
@ -696,14 +697,16 @@ public class MaterialOutBillEditPluginExt extends AbstractEcmaBillPlugin impleme
|
||||||
reqPersonCombo.setMustInput(false);
|
reqPersonCombo.setMustInput(false);
|
||||||
BasedataEdit reqPersonF71 = (BasedataEdit) this.getControl("requestperson");
|
BasedataEdit reqPersonF71 = (BasedataEdit) this.getControl("requestperson");
|
||||||
this.getView().setVisible(true, new String[]{"requestperson"});
|
this.getView().setVisible(true, new String[]{"requestperson"});
|
||||||
reqPersonF71.setMustInput(true);
|
// reqPersonF71.setMustInput(true);//系统代码
|
||||||
|
reqPersonF71.setMustInput(false);//二开替代
|
||||||
} else if ("02".equals(team)) {
|
} else if ("02".equals(team)) {
|
||||||
reqPersonF7 = (BasedataEdit) this.getControl("requestperson");
|
reqPersonF7 = (BasedataEdit) this.getControl("requestperson");
|
||||||
this.getView().setVisible(false, new String[]{"requestperson"});
|
this.getView().setVisible(false, new String[]{"requestperson"});
|
||||||
reqPersonF7.setMustInput(false);
|
reqPersonF7.setMustInput(false);
|
||||||
ComboEdit reqPersonCombo = (ComboEdit) this.getControl("reqpersonname");
|
ComboEdit reqPersonCombo = (ComboEdit) this.getControl("reqpersonname");
|
||||||
this.getView().setVisible(true, new String[]{"reqpersonname"});
|
this.getView().setVisible(true, new String[]{"reqpersonname"});
|
||||||
reqPersonCombo.setMustInput(true);
|
// reqPersonCombo.setMustInput(true);//系统代码
|
||||||
|
reqPersonCombo.setMustInput(false);//二开替代
|
||||||
DynamicObjectCollection personEntryEntitys = labour.getDynamicObjectCollection("entryentity");
|
DynamicObjectCollection personEntryEntitys = labour.getDynamicObjectCollection("entryentity");
|
||||||
ArrayList<ComboItem> comboList = new ArrayList();
|
ArrayList<ComboItem> comboList = new ArrayList();
|
||||||
if (personEntryEntitys != null && personEntryEntitys.size() > 0) {
|
if (personEntryEntitys != null && personEntryEntitys.size() > 0) {
|
||||||
|
|
Loading…
Reference in New Issue