parent
10f238949f
commit
35bba33183
@ -659,7 +659,50 @@ public class StorageTransEdit extends AbstractBillPlugIn implements BeforeF7Sele
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ("creditconfirm".equals(operateKey)) {
|
if ("creditconfirm".equals(operateKey)) {
|
||||||
|
// DynamicObjectCollection dynamicObjectCollection = dataEntity.getDynamicObjectCollection("yem_creditdetail");
|
||||||
|
// if (dynamicObjectCollection.size()>0){
|
||||||
|
// Map<Long,BigDecimal> map = new HashMap<>();
|
||||||
|
// for (DynamicObject dynamicObject : dynamicObjectCollection) {
|
||||||
|
// DynamicObject yemSalecontractno = dynamicObject.getDynamicObject("yem_salecontractno");
|
||||||
|
// BigDecimal yemCreditamtCd = dynamicObject.getBigDecimal("yem_creditamt_cd");
|
||||||
|
// if (yemSalecontractno!=null){
|
||||||
|
// long aLong = yemSalecontractno.getLong("id");
|
||||||
|
// if (map.get(aLong)!=null){
|
||||||
|
// BigDecimal bigDecimal = map.get(aLong);
|
||||||
|
// map.put(aLong, yemCreditamtCd.add(bigDecimal));
|
||||||
|
// }else {
|
||||||
|
// map.put(aLong, yemCreditamtCd);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// for (DynamicObject dynamicObject : dynamicObjectCollection) {
|
||||||
|
// DynamicObject yemSalecontractno = dynamicObject.getDynamicObject("yem_salecontractno");
|
||||||
|
// if (yemSalecontractno!=null){
|
||||||
|
// long aLong = yemSalecontractno.getLong("id");
|
||||||
|
// BigDecimal bigDecimal = map.get(aLong);
|
||||||
|
// String selectfield = DynamicObjectUtil.getSelectfields("yem_es_salesorder", false);
|
||||||
|
// String selectfields = DynamicObjectUtil.getEntrySelectfields(selectfield, "yem_es_salesorder", "yem_es_salescontrac_s", false);
|
||||||
|
// DynamicObject yemEsSalesorder = BusinessDataServiceHelper.loadSingle("yem_es_salesorder", selectfields
|
||||||
|
// , new QFilter[]{new QFilter("id", QCP.equals, aLong)});
|
||||||
|
// if (yemEsSalesorder != null) {
|
||||||
|
// DynamicObjectCollection yemEsMaterialinfo = yemEsSalesorder.getDynamicObjectCollection("yem_es_salescontrac_s");
|
||||||
|
// if (yemEsMaterialinfo.size()>0){
|
||||||
|
// BigDecimal salescontrac = BigDecimal.ZERO;
|
||||||
|
// for (DynamicObject object : yemEsMaterialinfo) {
|
||||||
|
// boolean yemIspre = object.getBoolean("yem_ispre");
|
||||||
|
// if (!yemIspre){
|
||||||
|
// salescontrac = salescontrac.add(object.getBigDecimal("yem_rapamt"));
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// if (salescontrac.compareTo(bigDecimal)<0){
|
||||||
|
// view.showTipNotification(yemEsSalesorder.getString("billno")+"非预收收汇金额不足,请修改金额!!!");
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
int rowCount = model.getEntryRowCount("yem_creditdetail");
|
int rowCount = model.getEntryRowCount("yem_creditdetail");
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
for (int i = 0; i < rowCount; i++) {
|
for (int i = 0; i < rowCount; i++) {
|
||||||
|
@ -46,6 +46,18 @@ public class StorageTransEdit_xbs extends AbstractBillPlugIn {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void beforeDoOperation(BeforeDoOperationEventArgs e) {
|
||||||
|
super.beforeDoOperation(e);
|
||||||
|
FormOperate source = (FormOperate) e.getSource();
|
||||||
|
String operateKey = source.getOperateKey();
|
||||||
|
IDataModel model = this.getModel();
|
||||||
|
IFormView view = this.getView();
|
||||||
|
if ("creditconfirm".equals(operateKey)) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterDoOperation(AfterDoOperationEventArgs e) {
|
public void afterDoOperation(AfterDoOperationEventArgs e) {
|
||||||
super.afterDoOperation(e);
|
super.afterDoOperation(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user