1.合同签章合同盖章
2.发运明细变更单修改数量逻辑修改
This commit is contained in:
ljw 2024-11-18 17:40:57 +08:00
parent 5787908a4d
commit c817f189c0
3 changed files with 25 additions and 6 deletions

View File

@ -16,8 +16,10 @@ import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.dataentity.entity.DynamicObjectCollection;
import kd.bos.entity.datamodel.IDataModel;
import kd.bos.entity.datamodel.RowDataEntity;
import kd.bos.entity.datamodel.events.*;
import kd.bos.entity.operate.Delete;
import kd.bos.entity.datamodel.events.AfterAddRowEventArgs;
import kd.bos.entity.datamodel.events.AfterDeleteRowEventArgs;
import kd.bos.entity.datamodel.events.BeforeDeleteRowEventArgs;
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
import kd.bos.entity.operate.result.OperationResult;
import kd.bos.form.FormShowParameter;
import kd.bos.form.IFormView;
@ -671,6 +673,25 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
countSmallCabinetQty(model);//汇总表头小柜数量
break;
case "yem_qty":
// DynamicObjectCollection collects = this.getModel().getEntryEntity("yem_es_salesorder_total");
// List<Integer> ies = new ArrayList<>();
// Map<Long, Integer> map1 = new HashMap<>();
// for (int i1 = 0; i1 < collects.size(); i1++) {
// DynamicObject collect = (DynamicObject) collects.get(i1);
// DynamicObject yemAccesmaterialTl = collect.getDynamicObject("yem_accesmaterial_tl");
// if (yemAccesmaterialTl != null) {
// long aLong = yemAccesmaterialTl.getLong("id");
// if (map1.get(aLong) == null) {
// map1.put(aLong, i1);
// } else {
// ies.add(i1);
// }
// }else {
// ies.add(i1);
// }
// }
// int[] intArray = ies.stream().mapToInt(Integer::intValue).toArray();
// this.getModel().deleteEntryRows("yem_es_salesorder_total", intArray);
Boolean aseqty = aseqty();
if (aseqty) {
this.getView().showMessage("数量不允许低于关联调拨数量;,请重新填写");

View File

@ -2,7 +2,6 @@ package com.yem.wm.es.shippingdetails.form;
import com.yem.wm.es.Util.TotalUtil;
import com.yem.wm.es.Util.ZJUtils;
import com.yem.wm.im.clientdemand.utils.ClientUtils;
import kd.bos.bill.AbstractBillPlugIn;
import kd.bos.bill.OperationStatus;
import kd.bos.dataentity.entity.DynamicObject;
@ -12,7 +11,6 @@ import kd.bos.entity.datamodel.events.ChangeData;
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
import kd.bos.form.IFormView;
import java.math.BigDecimal;
import java.util.EventObject;
/**

View File

@ -39,7 +39,7 @@ public class ContactSignUtils {
throw new RuntimeException(e);
}
}catch (Exception e ){
throw new KDBizException("无法解析文件 ");
throw new KDBizException("不支持doc格式的word文档请上传docx格式的word文档!!!");
}
return list;
}