Revert "fix:明细信息的销售方式包含CKD时,装柜信息的整机件数不锁定,其他情况都锁定"
This reverts commit 93fa1a00
This commit is contained in:
parent
96e7ad5152
commit
727a10a3a3
@ -87,6 +87,7 @@ public class EncaseMentEdit extends AbstractBillPlugIn implements Plugin, Before
|
|||||||
if (OperationStatus.ADDNEW == status) {
|
if (OperationStatus.ADDNEW == status) {
|
||||||
setDefaultBoxScheme();
|
setDefaultBoxScheme();
|
||||||
}
|
}
|
||||||
|
salesmethod();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -589,6 +590,9 @@ public class EncaseMentEdit extends AbstractBillPlugIn implements Plugin, Before
|
|||||||
// case "yem_wholecube"://整柜立方
|
// case "yem_wholecube"://整柜立方
|
||||||
// ZJHZ();//汇总至表头
|
// ZJHZ();//汇总至表头
|
||||||
// break;
|
// break;
|
||||||
|
|
||||||
|
case "yem_salesmethod":
|
||||||
|
salesmethod();
|
||||||
case "yem_lenghtunit":
|
case "yem_lenghtunit":
|
||||||
case "yem_vol":
|
case "yem_vol":
|
||||||
TotalUtil.countVolM3(model, rowIndex, "yem_lenghtunit", "yem_vol", "yem_volm3");
|
TotalUtil.countVolM3(model, rowIndex, "yem_lenghtunit", "yem_vol", "yem_volm3");
|
||||||
@ -648,6 +652,28 @@ public class EncaseMentEdit extends AbstractBillPlugIn implements Plugin, Before
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void salesmethod() {
|
||||||
|
DynamicObjectCollection yemImMaterialinfoMi = this.getModel().getEntryEntity("yem_im_materialinfo_mi");
|
||||||
|
if (!yemImMaterialinfoMi.isEmpty()) {
|
||||||
|
boolean bool = true;
|
||||||
|
for (DynamicObject dynamicObject : yemImMaterialinfoMi) {
|
||||||
|
DynamicObject yemSalesmethod = dynamicObject.getDynamicObject("yem_salesmethod");
|
||||||
|
if (yemSalesmethod != null) {
|
||||||
|
String yemSalesmethodString = yemSalesmethod.getString("name");
|
||||||
|
if (yemSalesmethodString.equals("CKD")) {
|
||||||
|
bool = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
DynamicObjectCollection yemImPackinginforPi = this.getModel().getEntryEntity("yem_im_packinginfor_pi");
|
||||||
|
if (!yemImPackinginforPi.isEmpty()){
|
||||||
|
for (int i = 0; i < yemImPackinginforPi.size(); i++) {
|
||||||
|
this.getView().setEnable(bool, i,"yem_numberunits");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 选择柜型时,携带柜型体积到整柜立方数字段
|
* 选择柜型时,携带柜型体积到整柜立方数字段
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user