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