fix:
1.装箱单提交效验
This commit is contained in:
parent
a7a7995a19
commit
ea5dd8a01a
@ -225,6 +225,31 @@ public class EncaseMentEdit extends AbstractBillPlugIn implements Plugin, Before
|
||||
sbStr.append("明细信息总净重合计值不允许超过整机总重量,请检查!!");
|
||||
// throw new KDBizException("明细信息总净重合计值不允许超过整机总重量,请检查!!");
|
||||
}
|
||||
String yemPackingmethod = (String) this.getModel().getValue("yem_packingmethod");
|
||||
if ("B".equals(yemPackingmethod)) {
|
||||
//yem_businesssort = 'Z' AND (yem_long = null OR yem_wide = null OR yem_high = null OR yem_vol = null OR yem_volm3 = null OR yem_volm3sum = null)
|
||||
DynamicObjectCollection yemImMaterialinfoMi = this.getModel().getEntryEntity("yem_im_materialinfo_mi");
|
||||
if (yemImMaterialinfoMi.size() > 0) {
|
||||
for (DynamicObject dynamicObject : yemImMaterialinfoMi) {
|
||||
String yemBusinesssort = dynamicObject.getString("yem_businesssort");
|
||||
if ("Z".equals(yemBusinesssort)) {
|
||||
BigDecimal yemLong = dynamicObject.getBigDecimal("yem_long");
|
||||
BigDecimal yemWide = dynamicObject.getBigDecimal("yem_wide");
|
||||
BigDecimal yemHigh = dynamicObject.getBigDecimal("yem_high");
|
||||
BigDecimal yemVol = dynamicObject.getBigDecimal("yem_vol");
|
||||
BigDecimal yemVolm3 = dynamicObject.getBigDecimal("yem_volm3");
|
||||
BigDecimal yemVolm3sum = dynamicObject.getBigDecimal("yem_volm3sum");
|
||||
String seq = dynamicObject.getString("seq");
|
||||
if (yemLong.compareTo(BigDecimal.ZERO) == 0) sbStr.append("第"+seq+"行,"+ "长为空,请填写!\n");
|
||||
if (yemWide.compareTo(BigDecimal.ZERO) == 0) sbStr.append("第"+seq+"行,"+ "宽为空,请填写!\n");
|
||||
if (yemHigh.compareTo(BigDecimal.ZERO) == 0) sbStr.append("第"+seq+"行,"+ "高为空,请填写!\n");
|
||||
if (yemVol.compareTo(BigDecimal.ZERO) == 0) sbStr.append("第"+seq+"行,"+ "单台体积为空,请填写!\n");
|
||||
if (yemVolm3.compareTo(BigDecimal.ZERO) == 0) sbStr.append("第"+seq+"行,"+ "单台体积m³为空,请填写!\n");
|
||||
if (yemVolm3sum.compareTo(BigDecimal.ZERO) == 0) sbStr.append("第"+seq+"行,"+ "总体积(CBM)为空,请填写!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sbStr.length() > 0) {
|
||||
throw new KDBizException(sbStr.toString());
|
||||
@ -359,7 +384,7 @@ public class EncaseMentEdit extends AbstractBillPlugIn implements Plugin, Before
|
||||
dataEntity.set("yem_affirmmanpj", user);
|
||||
dataEntity.set("yem_affirmdatepj", new Date());
|
||||
}
|
||||
if ("statusconvertqrzj".equals(operateKey)){
|
||||
if ("statusconvertqrzj".equals(operateKey)) {
|
||||
if (!yemWeightconfirmed.isEmpty()) {
|
||||
dataEntity.set("yem_completionstatuszj", "B");
|
||||
dataEntity.set("yem_affirmmanzj", user);
|
||||
|
Loading…
Reference in New Issue
Block a user