Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
79a38fedee
|
@ -100,13 +100,9 @@ public class PublicreimbursebillNoContractPlugin extends AbstractBillPlugIn impl
|
|||
this.getModel().setValue("zcgj_ec_project", project[0]);
|
||||
}
|
||||
}
|
||||
List<ComboItem> comboList = new ArrayList<>();
|
||||
comboList.add(new ComboItem(new LocaleString("供应商"), "bd_supplier"));
|
||||
//comboList.add(new ComboItem(new LocaleString("个人"), "er_payeer"));
|
||||
ComboEdit comboEdit = getView().getControl("payertype");
|
||||
comboEdit.setComboItems(comboList);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -156,27 +152,39 @@ public class PublicreimbursebillNoContractPlugin extends AbstractBillPlugIn impl
|
|||
}else if(name.equals("zcgj_ecpaytype")){
|
||||
ChangeData changeData = e.getChangeSet()[0];
|
||||
String ecpaytype = (String)changeData.getNewValue();
|
||||
DynamicObjectCollection accountentry = this.getModel().getDataEntity().getDynamicObjectCollection("accountentry");
|
||||
accountentry.clear();
|
||||
DynamicObject dynamicObject = accountentry.addNew();
|
||||
|
||||
List<ComboItem> comboList = new ArrayList<>();
|
||||
if("DG".equals(ecpaytype)){
|
||||
comboList.add(new ComboItem(new LocaleString("供应商"), "bd_supplier"));
|
||||
dynamicObject.set("payertype","bd_supplier");
|
||||
}else if("DS".equals(ecpaytype)){
|
||||
comboList.add(new ComboItem(new LocaleString("个人"), "er_payeer"));
|
||||
dynamicObject.set("payertype","er_payeer");
|
||||
}
|
||||
ComboEdit comboEdit = getView().getControl("payertype");
|
||||
comboEdit.setComboItems(comboList);
|
||||
|
||||
DynamicObjectCollection accountentry = this.getModel().getDataEntity().getDynamicObjectCollection("accountentry");
|
||||
if(accountentry!=null){
|
||||
String type= "";
|
||||
if("DG".equals(ecpaytype)){
|
||||
type = "bd_supplier";
|
||||
}else if("DS".equals(ecpaytype)){
|
||||
type = "er_payeer";
|
||||
}
|
||||
for (DynamicObject dynamicObject : accountentry) {
|
||||
dynamicObject.set("payertype",type);
|
||||
}
|
||||
}
|
||||
this.getView().updateView("accountentry");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected DynamicObject getCurrency() {
|
||||
QFilter numberFilter = new QFilter("number", "=", "CNY");
|
||||
return BusinessDataServiceHelper.loadSingle("bd_currency", "", new QFilter[]{numberFilter});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerListener(EventObject e) {
|
||||
super.registerListener(e);
|
||||
|
@ -188,6 +196,9 @@ public class PublicreimbursebillNoContractPlugin extends AbstractBillPlugIn impl
|
|||
RefBillEdit zcgj_maintenanceack = this.getView().getControl("zcgj_maintenanceack");//设备维修确认单
|
||||
zcgj_maintenanceack.addBeforeF7SelectListener(this);
|
||||
|
||||
BasedataEdit project = this.getView().getControl("zcgj_ec_project");//设备维修确认单
|
||||
project.addBeforeF7SelectListener(this);
|
||||
|
||||
this.addItemClickListeners("receiveentrytoolbar");//收款信息 增行
|
||||
|
||||
}
|
||||
|
@ -195,6 +206,8 @@ public class PublicreimbursebillNoContractPlugin extends AbstractBillPlugIn impl
|
|||
|
||||
@Override
|
||||
public void beforeF7Select(BeforeF7SelectEvent beforeF7SelectEvent) {
|
||||
boolean isec=(boolean)this.getModel().getValue("zcgj_isec");
|
||||
if(isec){
|
||||
ListShowParameter formShowParameter = (ListShowParameter) beforeF7SelectEvent.getFormShowParameter();
|
||||
IDataEntityProperty property = beforeF7SelectEvent.getProperty();//过滤字段信息
|
||||
String propertyName = property.getName();//过滤字段标识
|
||||
|
@ -231,12 +244,23 @@ public class PublicreimbursebillNoContractPlugin extends AbstractBillPlugIn impl
|
|||
qFilter.add(new QFilter("billstatus", QCP.equals, "C"));
|
||||
formShowParameter.getListFilterParameter().setQFilters(qFilter);
|
||||
|
||||
}else if("zcgj_ec_project".equals(propertyName)){
|
||||
DynamicObject costcompany = (DynamicObject)this.getModel().getValue("costcompany");
|
||||
List<QFilter> qFilter = new ArrayList<>();
|
||||
if(costcompany!=null){
|
||||
Long companyId = costcompany.getLong("id");
|
||||
qFilter.add(new QFilter("fiaccountorg", QCP.equals, companyId));
|
||||
}
|
||||
formShowParameter.getListFilterParameter().setQFilters(qFilter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void itemClick(ItemClickEvent evt) {
|
||||
super.itemClick(evt);
|
||||
boolean isec=(boolean)this.getModel().getValue("zcgj_isec");
|
||||
if(isec){
|
||||
//付款计划增行
|
||||
if (evt.getItemKey().equals("addaccount1")) {
|
||||
String zcgjEcpaytype = (String) this.getModel().getValue("zcgj_ecpaytype");
|
||||
|
@ -255,4 +279,5 @@ public class PublicreimbursebillNoContractPlugin extends AbstractBillPlugIn impl
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,6 +67,7 @@ public class FundingplanapplyPlugin extends AbstractBillPlugIn implements Plugin
|
|||
initData(org);
|
||||
}
|
||||
}
|
||||
this.getView().setEnable(false, 6, "zcgj_cashamt","zcgj_bankamt","zcgj_businessamt","zcgj_supplyamt","zcgj_otheramt","zcgj_totalamt");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -82,7 +83,7 @@ public class FundingplanapplyPlugin extends AbstractBillPlugIn implements Plugin
|
|||
DynamicObject[] load = BusinessDataServiceHelper.load("zcgj_ec_fundingplanapply",
|
||||
"zcgj_period," +
|
||||
"zcgj_infundproject_entry.zcgj_in_fundproject,zcgj_infundproject_entry.zcgj_in_custom,zcgj_infundproject_entry.zcgj_iinitialreceivable " +
|
||||
",zcgj_infundproject_entry.zcgj_expectedmonetarycap,zcgj_infundproject_entry.zcgj_expectedmonetaryfund,zcgj_infundproject_entry.zcgj_otheramount,zcgj_infundproject_entry.zcgj_expectedreceivableba,zcgj_infundproject_entry.zcgj_plannedoutputvalue "+
|
||||
",zcgj_infundproject_entry.zcgj_expectedmonetarycap,zcgj_infundproject_entry.zcgj_expectedmonetaryfund,zcgj_infundproject_entry.zcgj_otheramount,zcgj_infundproject_entry.zcgj_expectedreceivableba,zcgj_infundproject_entry.zcgj_plannedoutputvalue,zcgj_infundproject_entry.zcgj_expectedtotalcollect "+
|
||||
",zcgj_outfundproject_entry.zcgj_out_fundproject,zcgj_outfundproject_entry.zcgj_out_supplier,zcgj_outfundproject_entry.zcgj_openingpayable" +
|
||||
",createtime",
|
||||
searchFilterList.toArray(new QFilter[]{}), "createtime desc");
|
||||
|
@ -98,6 +99,7 @@ public class FundingplanapplyPlugin extends AbstractBillPlugIn implements Plugin
|
|||
BigDecimal lastotheramtall = BigDecimal.ZERO;
|
||||
BigDecimal lastplanarbalanceall = BigDecimal.ZERO;
|
||||
BigDecimal lastplanvalall = BigDecimal.ZERO;
|
||||
BigDecimal lastplanrec = BigDecimal.ZERO;
|
||||
for (DynamicObject dynamicObject : indataentry) {
|
||||
DynamicObject newData = inentry.addNew();
|
||||
newData.set("zcgj_in_fundproject",dynamicObject.get("zcgj_in_fundproject"));
|
||||
|
@ -117,6 +119,7 @@ public class FundingplanapplyPlugin extends AbstractBillPlugIn implements Plugin
|
|||
lastotheramtall = lastotheramtall.add(dynamicObject.getBigDecimal("zcgj_otheramount"));
|
||||
lastplanarbalanceall = lastplanarbalanceall.add(dynamicObject.getBigDecimal("zcgj_expectedreceivableba"));
|
||||
lastplanvalall = lastplanvalall.add(dynamicObject.getBigDecimal("zcgj_plannedoutputvalue"));
|
||||
lastplanrec = lastplanrec.add(dynamicObject.getBigDecimal("zcgj_expectedtotalcollect"));
|
||||
}
|
||||
this.getView().updateView("zcgj_infundproject_entry");
|
||||
|
||||
|
@ -145,6 +148,8 @@ public class FundingplanapplyPlugin extends AbstractBillPlugIn implements Plugin
|
|||
//本月预计收款(其他) zcgj_otheramount 其中:上月预计收其他 zcgj_lastotheramt
|
||||
//本月预计应收余额 zcgj_expectedreceivableba 上月预计应收余额 zcgj_lastplanarbalance
|
||||
//本月计划产值 zcgj_plannedoutputvalue 上月计划产值 zcgj_lastplanval
|
||||
//本月预计收款(合计) zcgj_expectedtotalcollect 上月预计收款 zcgj_lastplanrec
|
||||
|
||||
|
||||
DynamicObjectCollection infundlastentry = this.getModel().getDataEntity().getDynamicObjectCollection("zcgj_infundlastentry");
|
||||
DynamicObject infundlastentryObject = infundlastentry.addNew();
|
||||
|
@ -153,6 +158,7 @@ public class FundingplanapplyPlugin extends AbstractBillPlugIn implements Plugin
|
|||
infundlastentryObject.set("zcgj_lastotheramt",lastotheramtall);
|
||||
infundlastentryObject.set("zcgj_lastplanarbalance",lastplanarbalanceall);
|
||||
infundlastentryObject.set("zcgj_lastplanval",lastplanvalall);
|
||||
infundlastentryObject.set("zcgj_lastplanrec",lastplanrec);
|
||||
this.getView().updateView("zcgj_infundlastentry");
|
||||
}
|
||||
|
||||
|
@ -224,7 +230,8 @@ public class FundingplanapplyPlugin extends AbstractBillPlugIn implements Plugin
|
|||
.add(fundplyentry.get(6).getBigDecimal("zcgj_supplyamt"))
|
||||
.add(fundplyentry.get(6).getBigDecimal("zcgj_otheramt"));
|
||||
fundplyentry.get(6).set("zcgj_totalamt",allAmt);
|
||||
|
||||
//锁定
|
||||
this.getView().setEnable(false, 6, "zcgj_cashamt","zcgj_bankamt","zcgj_businessamt","zcgj_supplyamt","zcgj_otheramt","zcgj_totalamt");
|
||||
this.getView().updateView("zcgj_fundplyentry",rowIndex);
|
||||
this.getView().updateView("zcgj_fundplyentry",6);
|
||||
|
||||
|
|
Loading…
Reference in New Issue