当前单价变动 提醒
This commit is contained in:
parent
3f1eaa90c1
commit
50903445e1
|
@ -4,9 +4,13 @@ import kd.bos.dataentity.entity.DynamicObject;
|
||||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||||
import kd.bos.dataentity.resource.ResManager;
|
import kd.bos.dataentity.resource.ResManager;
|
||||||
import kd.bos.dataentity.utils.StringUtils;
|
import kd.bos.dataentity.utils.StringUtils;
|
||||||
|
import kd.bos.entity.MainEntityType;
|
||||||
import kd.bos.entity.datamodel.events.ChangeData;
|
import kd.bos.entity.datamodel.events.ChangeData;
|
||||||
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
||||||
|
import kd.bos.entity.property.DecimalProp;
|
||||||
|
import kd.bos.form.ClientProperties;
|
||||||
import kd.bos.form.CloseCallBack;
|
import kd.bos.form.CloseCallBack;
|
||||||
|
import kd.bos.form.IClientViewProxy;
|
||||||
import kd.bos.form.ShowFormHelper;
|
import kd.bos.form.ShowFormHelper;
|
||||||
import kd.bos.form.control.Control;
|
import kd.bos.form.control.Control;
|
||||||
import kd.bos.form.field.TextEdit;
|
import kd.bos.form.field.TextEdit;
|
||||||
|
@ -192,6 +196,9 @@ public class InContractMeasurementBillEditPlugin extends InContractMeasureBillEd
|
||||||
|
|
||||||
BigDecimal oldValue = (BigDecimal)changeData.getOldValue();
|
BigDecimal oldValue = (BigDecimal)changeData.getOldValue();
|
||||||
if(oldValue.compareTo(new BigDecimal(0)) == 0){return;}
|
if(oldValue.compareTo(new BigDecimal(0)) == 0){return;}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BigDecimal thisqty = (BigDecimal)this.getModel().getValue("thisqty", rowIndex, parentRowIndex);//本期计量数量
|
BigDecimal thisqty = (BigDecimal)this.getModel().getValue("thisqty", rowIndex, parentRowIndex);//本期计量数量
|
||||||
BigDecimal thisoftaxmount =(BigDecimal) this.getModel().getValue("thisoftaxmount", rowIndex, parentRowIndex);//本期计量含税金额
|
BigDecimal thisoftaxmount =(BigDecimal) this.getModel().getValue("thisoftaxmount", rowIndex, parentRowIndex);//本期计量含税金额
|
||||||
BigDecimal totalqty =(BigDecimal) this.getModel().getValue("totalqty", rowIndex, parentRowIndex);//数量
|
BigDecimal totalqty =(BigDecimal) this.getModel().getValue("totalqty", rowIndex, parentRowIndex);//数量
|
||||||
|
@ -219,9 +226,10 @@ public class InContractMeasurementBillEditPlugin extends InContractMeasureBillEd
|
||||||
// this.getModel().setValue("currenttaxamt",curtaxprice.multiply(totalqty).subtract(currentprice.multiply(totalqty)),rowIndex, parentRowIndex);
|
// this.getModel().setValue("currenttaxamt",curtaxprice.multiply(totalqty).subtract(currentprice.multiply(totalqty)),rowIndex, parentRowIndex);
|
||||||
// this.getModel().setValue("currentoftax",curtaxprice.multiply(totalqty),rowIndex, parentRowIndex);
|
// this.getModel().setValue("currentoftax",curtaxprice.multiply(totalqty),rowIndex, parentRowIndex);
|
||||||
this.getView().updateView();
|
this.getView().updateView();
|
||||||
|
PriceChangedWarn(oldPrice,currentprice,rowIndex, parentRowIndex);
|
||||||
}
|
}
|
||||||
// String resname = (String)this.getModel().getValue("resname", rowIndex, parentRowIndex);
|
// String resname = (String)this.getModel().getValue("resname", rowIndex, parentRowIndex);
|
||||||
PriceChangedWarn(oldPrice,currentprice,rowIndex, parentRowIndex);
|
// PriceChangedWarn(oldPrice,currentprice,rowIndex, parentRowIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,6 +247,7 @@ public class InContractMeasurementBillEditPlugin extends InContractMeasureBillEd
|
||||||
descEdit.setMustInput(true);
|
descEdit.setMustInput(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue