bug修复
This commit is contained in:
parent
8117925d64
commit
515dfde32e
|
@ -61,21 +61,21 @@ public class EcInFinalsettleJusCustPlugin extends AbstractBillPlugIn implements
|
||||||
@Override
|
@Override
|
||||||
public void propertyChanged(PropertyChangedArgs e) {
|
public void propertyChanged(PropertyChangedArgs e) {
|
||||||
super.propertyChanged(e);
|
super.propertyChanged(e);
|
||||||
String name = e.getProperty().getName();
|
// String name = e.getProperty().getName();
|
||||||
if (name.equals("contract")){
|
// if (name.equals("contract")){
|
||||||
Object objcontract = this.getModel().getValue("contract");
|
// Object objcontract = this.getModel().getValue("contract");
|
||||||
if (objcontract!=null){
|
// if (objcontract!=null){
|
||||||
DynamicObject contract = (DynamicObject) objcontract;
|
// DynamicObject contract = (DynamicObject) objcontract;
|
||||||
DynamicObject contractInfo = BusinessDataServiceHelper.loadSingle("ec_in_contract", "id,billno,billname,zcgj_renewal,zcgj_isrenewal,zcgj_enddate", new QFilter[]{new QFilter("id", QCP.equals, contract.getLong("id"))});
|
// DynamicObject contractInfo = BusinessDataServiceHelper.loadSingle("ec_in_contract", "id,billno,billname,zcgj_renewal,zcgj_isrenewal,zcgj_enddate", new QFilter[]{new QFilter("id", QCP.equals, contract.getLong("id"))});
|
||||||
Date zcgjEnddate = contractInfo.getDate("zcgj_enddate");
|
// Date zcgjEnddate = contractInfo.getDate("zcgj_enddate");
|
||||||
Date nowdate = new Date();
|
// Date nowdate = new Date();
|
||||||
int timeDays = PluginUtils.getTimeDays(zcgjEnddate, nowdate);
|
// int timeDays = PluginUtils.getTimeDays(zcgjEnddate, nowdate);
|
||||||
int endDays = Integer.parseInt(System.getProperty("contract.enddays"));
|
// int endDays = Integer.parseInt(System.getProperty("contract.enddays"));
|
||||||
// int endDays = 100;
|
//// int endDays = 100;
|
||||||
if (timeDays-endDays<=0){
|
// if (timeDays-endDays<=0){
|
||||||
this.getView().showTipNotification("当前选择合同距离到期不足"+endDays+"天!");
|
// this.getView().showTipNotification("当前选择合同距离到期不足"+endDays+"天!");
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,9 +80,9 @@ public class EquipmentCardListPlugin extends AbstractListPlugin implements Plugi
|
||||||
String manufacturer = realcard.getString("zcgj_manufacturer");//生产厂家
|
String manufacturer = realcard.getString("zcgj_manufacturer");//生产厂家
|
||||||
Date prodate = realcard.getDate("zcgj_prodate");//出场日期
|
Date prodate = realcard.getDate("zcgj_prodate");//出场日期
|
||||||
DynamicObject storeplace = realcard.getDynamicObject("storeplace");//存放地点
|
DynamicObject storeplace = realcard.getDynamicObject("storeplace");//存放地点
|
||||||
DynamicObject storeplaceinfo = BusinessDataServiceHelper.loadSingle("fa_storeplace", new QFilter[]{new QFilter("id", QCP.equals, storeplace.getLong("id"))});
|
|
||||||
String fulladdress = null;
|
String fulladdress = null;
|
||||||
if(storeplaceinfo!=null){
|
if(storeplace!=null){
|
||||||
|
DynamicObject storeplaceinfo = BusinessDataServiceHelper.loadSingle("fa_storeplace", new QFilter[]{new QFilter("id", QCP.equals, storeplace.getLong("id"))});
|
||||||
fulladdress = storeplaceinfo.getString("fulladdress");
|
fulladdress = storeplaceinfo.getString("fulladdress");
|
||||||
}
|
}
|
||||||
DynamicObject creator = realcard.getDynamicObject("creator");//创建人
|
DynamicObject creator = realcard.getDynamicObject("creator");//创建人
|
||||||
|
|
Loading…
Reference in New Issue