新增设备单据列表插件优化按钮点击提示时机
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);
|
Object[] save = SaveServiceHelper.save(equipments);
|
||||||
System.out.println();
|
System.out.println();
|
||||||
this.getView().showMessage("闲置成功!");
|
if (equipments.length > 0) {
|
||||||
IFormView view = this.getView();
|
this.getView().showMessage("闲置成功!");
|
||||||
view.invokeOperation("refresh");
|
IFormView view = this.getView();
|
||||||
|
view.invokeOperation("refresh");
|
||||||
|
}
|
||||||
}else if (itemKey.equals("zcgj_used")){//在用
|
}else if (itemKey.equals("zcgj_used")){//在用
|
||||||
Set<Long> setIds = getSelectOrderIds(this.getSelectedRows());
|
Set<Long> setIds = getSelectOrderIds(this.getSelectedRows());
|
||||||
DynamicObject[] equipments = BusinessDataServiceHelper.load("eceq_equipment_card",
|
DynamicObject[] equipments = BusinessDataServiceHelper.load("eceq_equipment_card",
|
||||||
|
@ -78,9 +80,11 @@ public class EquipmentCardListPlugin extends AbstractListPlugin implements Plugi
|
||||||
equipment.set("equipstatus","USED");
|
equipment.set("equipstatus","USED");
|
||||||
}
|
}
|
||||||
SaveServiceHelper.save(equipments);
|
SaveServiceHelper.save(equipments);
|
||||||
this.getView().showMessage("成功转为在用!");
|
if (equipments.length > 0) {
|
||||||
IFormView view = this.getView();
|
this.getView().showMessage("成功转为在用!");
|
||||||
view.invokeOperation("refresh");
|
IFormView view = this.getView();
|
||||||
|
view.invokeOperation("refresh");
|
||||||
|
}
|
||||||
}else if(itemKey.equals("zcgj_assetorg")){//同步使用组织
|
}else if(itemKey.equals("zcgj_assetorg")){//同步使用组织
|
||||||
Set<Long> setIds = getSelectOrderIds(this.getSelectedRows());
|
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)});
|
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