Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
094c55ad31
|
@ -10,8 +10,10 @@ import kd.bos.dataentity.resource.ResManager;
|
||||||
import kd.bos.entity.datamodel.IDataModel;
|
import kd.bos.entity.datamodel.IDataModel;
|
||||||
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.form.ClientProperties;
|
||||||
import kd.bos.form.FormShowParameter;
|
import kd.bos.form.FormShowParameter;
|
||||||
import kd.bos.form.control.AttachmentPanel;
|
import kd.bos.form.control.AttachmentPanel;
|
||||||
|
import kd.bos.form.control.EntryGrid;
|
||||||
import kd.bos.form.events.AfterDoOperationEventArgs;
|
import kd.bos.form.events.AfterDoOperationEventArgs;
|
||||||
import kd.bos.form.events.PreOpenFormEventArgs;
|
import kd.bos.form.events.PreOpenFormEventArgs;
|
||||||
import kd.bos.form.events.SetFilterEvent;
|
import kd.bos.form.events.SetFilterEvent;
|
||||||
|
@ -28,9 +30,7 @@ import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
import kd.bos.servicehelper.QueryServiceHelper;
|
import kd.bos.servicehelper.QueryServiceHelper;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.EventObject;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 对公报销单无合同列表插件
|
* 对公报销单无合同列表插件
|
||||||
|
@ -61,6 +61,17 @@ public class PublicreimbursebillNoContractPlugin extends AbstractBillPlugIn impl
|
||||||
boolean isec=(boolean)this.getModel().getValue("zcgj_isec");
|
boolean isec=(boolean)this.getModel().getValue("zcgj_isec");
|
||||||
if(isec){
|
if(isec){
|
||||||
this.getView().setFormTitle(new LocaleString("无合同付款申请单"));
|
this.getView().setFormTitle(new LocaleString("无合同付款申请单"));
|
||||||
|
this.getModel().setValue("zcgj_nocontract","NOCONTRACT");
|
||||||
|
this.getView().setEnable(false,"zcgj_nocontract");
|
||||||
|
|
||||||
|
//修改单据体高级面板字段名称
|
||||||
|
Map<String, Object> cyf = new HashMap<String, Object>();
|
||||||
|
Map<String, Object>cyf1 = new HashMap<String, Object>();
|
||||||
|
cyf.put("zh_CN", "冲预付");
|
||||||
|
cyf1.put("text", cyf);
|
||||||
|
this.getView().updateControlMetadata("advconap", cyf1);//参数1:单据体标识
|
||||||
|
this.getView().updateView("advconap");
|
||||||
|
|
||||||
}
|
}
|
||||||
BillShowParameter bsp=(BillShowParameter)this.getView().getFormShowParameter();
|
BillShowParameter bsp=(BillShowParameter)this.getView().getFormShowParameter();
|
||||||
if(bsp.getStatus()!=OperationStatus.ADDNEW){
|
if(bsp.getStatus()!=OperationStatus.ADDNEW){
|
||||||
|
@ -76,6 +87,9 @@ public class PublicreimbursebillNoContractPlugin extends AbstractBillPlugIn impl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* EntryGrid entryGrid = this.getControl("writeoffmoney");
|
||||||
|
entryGrid.setColumnProperty("advconap",
|
||||||
|
ClientProperties.Header, new LocaleString("冲预付"));*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -228,6 +228,7 @@ public class FundingplanapplyPlugin extends AbstractBillPlugIn implements Plugin
|
||||||
this.getView().updateView("zcgj_fundplyentry",rowIndex);
|
this.getView().updateView("zcgj_fundplyentry",rowIndex);
|
||||||
this.getView().updateView("zcgj_fundplyentry",6);
|
this.getView().updateView("zcgj_fundplyentry",6);
|
||||||
|
|
||||||
|
//本月申请金额带入财务部核定金额分录
|
||||||
if(rowIndex == 2){
|
if(rowIndex == 2){
|
||||||
BigDecimal amt = (BigDecimal) changeData.getNewValue();
|
BigDecimal amt = (BigDecimal) changeData.getNewValue();
|
||||||
BigDecimal zcgjCashamt2 = fundplyentry.get(2).getBigDecimal("zcgj_cashamt")== null?BigDecimal.ZERO:fundplyentry.get(2).getBigDecimal("zcgj_cashamt");
|
BigDecimal zcgjCashamt2 = fundplyentry.get(2).getBigDecimal("zcgj_cashamt")== null?BigDecimal.ZERO:fundplyentry.get(2).getBigDecimal("zcgj_cashamt");
|
||||||
|
@ -243,18 +244,23 @@ public class FundingplanapplyPlugin extends AbstractBillPlugIn implements Plugin
|
||||||
if("XJ".equals(zcgjSetttype)){
|
if("XJ".equals(zcgjSetttype)){
|
||||||
dynamicObject.set("zcgj_applymonthamt",zcgjCashamt2);
|
dynamicObject.set("zcgj_applymonthamt",zcgjCashamt2);
|
||||||
dynamicObject.set("zcgj_hdamount",zcgjCashamt2);
|
dynamicObject.set("zcgj_hdamount",zcgjCashamt2);
|
||||||
|
dynamicObject.set("zcgj_amount_remaining",zcgjCashamt2);
|
||||||
}else if("YHCD".equals(zcgjSetttype)){
|
}else if("YHCD".equals(zcgjSetttype)){
|
||||||
dynamicObject.set("zcgj_applymonthamt",zcgjBankamt2);
|
dynamicObject.set("zcgj_applymonthamt",zcgjBankamt2);
|
||||||
dynamicObject.set("zcgj_hdamount",zcgjBankamt2);
|
dynamicObject.set("zcgj_hdamount",zcgjBankamt2);
|
||||||
|
dynamicObject.set("zcgj_amount_remaining",zcgjBankamt2);
|
||||||
}else if("SYCD".equals(zcgjSetttype)){
|
}else if("SYCD".equals(zcgjSetttype)){
|
||||||
dynamicObject.set("zcgj_applymonthamt",zcgjBusinessamt2);
|
dynamicObject.set("zcgj_applymonthamt",zcgjBusinessamt2);
|
||||||
dynamicObject.set("zcgj_hdamount",zcgjBusinessamt2);
|
dynamicObject.set("zcgj_hdamount",zcgjBusinessamt2);
|
||||||
|
dynamicObject.set("zcgj_amount_remaining",zcgjBusinessamt2);
|
||||||
}else if("GYL".equals(zcgjSetttype)){
|
}else if("GYL".equals(zcgjSetttype)){
|
||||||
dynamicObject.set("zcgj_applymonthamt",zcgjSupplyamt2);
|
dynamicObject.set("zcgj_applymonthamt",zcgjSupplyamt2);
|
||||||
dynamicObject.set("zcgj_hdamount",zcgjSupplyamt2);
|
dynamicObject.set("zcgj_hdamount",zcgjSupplyamt2);
|
||||||
|
dynamicObject.set("zcgj_amount_remaining",zcgjSupplyamt2);
|
||||||
}else if("QTJRCP".equals(zcgjSetttype)){
|
}else if("QTJRCP".equals(zcgjSetttype)){
|
||||||
dynamicObject.set("zcgj_applymonthamt",zcgjOtheramt2);
|
dynamicObject.set("zcgj_applymonthamt",zcgjOtheramt2);
|
||||||
dynamicObject.set("zcgj_hdamount",zcgjOtheramt2);
|
dynamicObject.set("zcgj_hdamount",zcgjOtheramt2);
|
||||||
|
dynamicObject.set("zcgj_amount_remaining",zcgjOtheramt2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getView().updateView("zcgj_fin_approved_amount");
|
getView().updateView("zcgj_fin_approved_amount");
|
||||||
|
|
Loading…
Reference in New Issue