Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
		
						commit
						b67b71ba86
					
				| 
						 | 
				
			
			@ -67,6 +67,16 @@ public class EquipmentCardListPlugin extends AbstractListPlugin implements Plugi
 | 
			
		|||
            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", new QFilter[]{new QFilter("id", "in", setIds)});
 | 
			
		||||
            DynamicObjectCollection collection = new DynamicObjectCollection();
 | 
			
		||||
            for (DynamicObject equipment : equipments) {
 | 
			
		||||
                DynamicObject org = equipment.getDynamicObject("org");
 | 
			
		||||
                equipment.set("zcgj_headusedepts",org);
 | 
			
		||||
                collection.add(equipment);
 | 
			
		||||
            }
 | 
			
		||||
            SaveServiceHelper.save(collection.toArray(new DynamicObject[]{}));
 | 
			
		||||
        }else if (itemKey.equals("zcgj_asset")) {//同步资产卡片
 | 
			
		||||
            Set<String> strings = new HashSet();
 | 
			
		||||
            DynamicObject[] equipmenttype = BusinessDataServiceHelper.load("zcgj_equipmenttype", "number,zcgj_assetcat",new QFilter[]{new QFilter("zcgj_assetcat.number", QCP.is_notnull,"" )});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue