新增设备单据列表插件优化按钮点击提示时机
This commit is contained in:
parent
23b7a20e55
commit
f52b7ad44a
|
@ -67,9 +67,11 @@ public class EquipmentCardListPlugin extends AbstractListPlugin implements Plugi
|
|||
}
|
||||
Object[] save = SaveServiceHelper.save(equipments);
|
||||
System.out.println();
|
||||
this.getView().showMessage("闲置成功!");
|
||||
IFormView view = this.getView();
|
||||
view.invokeOperation("refresh");
|
||||
if (equipments.length > 0) {
|
||||
this.getView().showMessage("闲置成功!");
|
||||
IFormView view = this.getView();
|
||||
view.invokeOperation("refresh");
|
||||
}
|
||||
}else if (itemKey.equals("zcgj_used")){//在用
|
||||
Set<Long> setIds = getSelectOrderIds(this.getSelectedRows());
|
||||
DynamicObject[] equipments = BusinessDataServiceHelper.load("eceq_equipment_card",
|
||||
|
@ -78,9 +80,11 @@ public class EquipmentCardListPlugin extends AbstractListPlugin implements Plugi
|
|||
equipment.set("equipstatus","USED");
|
||||
}
|
||||
SaveServiceHelper.save(equipments);
|
||||
this.getView().showMessage("成功转为在用!");
|
||||
IFormView view = this.getView();
|
||||
view.invokeOperation("refresh");
|
||||
if (equipments.length > 0) {
|
||||
this.getView().showMessage("成功转为在用!");
|
||||
IFormView view = this.getView();
|
||||
view.invokeOperation("refresh");
|
||||
}
|
||||
}else if(itemKey.equals("zcgj_assetorg")){//同步使用组织
|
||||
Set<Long> setIds = getSelectOrderIds(this.getSelectedRows());
|
||||
DynamicObject[] equipments = BusinessDataServiceHelper.load("eceq_equipment_card", "billno,billname,equipstatus,org,zcgj_headusedepts,useorg", new QFilter[]{new QFilter("id", "in", setIds)});
|
||||
|
|
Loading…
Reference in New Issue