Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
		
						commit
						b67b71ba86
					
				| 
						 | 
					@ -67,7 +67,17 @@ public class EquipmentCardListPlugin extends AbstractListPlugin implements Plugi
 | 
				
			||||||
            this.getView().showMessage("闲置成功!");
 | 
					            this.getView().showMessage("闲置成功!");
 | 
				
			||||||
            IFormView view = this.getView();
 | 
					            IFormView view = this.getView();
 | 
				
			||||||
            view.invokeOperation("refresh");
 | 
					            view.invokeOperation("refresh");
 | 
				
			||||||
        } else if (itemKey.equals("zcgj_asset")) {//同步资产卡片
 | 
					        }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();
 | 
					            Set<String> strings = new HashSet();
 | 
				
			||||||
            DynamicObject[] equipmenttype = BusinessDataServiceHelper.load("zcgj_equipmenttype", "number,zcgj_assetcat",new QFilter[]{new QFilter("zcgj_assetcat.number", QCP.is_notnull,"" )});
 | 
					            DynamicObject[] equipmenttype = BusinessDataServiceHelper.load("zcgj_equipmenttype", "number,zcgj_assetcat",new QFilter[]{new QFilter("zcgj_assetcat.number", QCP.is_notnull,"" )});
 | 
				
			||||||
            for (DynamicObject dynamicObject : equipmenttype) {
 | 
					            for (DynamicObject dynamicObject : equipmenttype) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue