youhua
This commit is contained in:
		
							parent
							
								
									565e815ef6
								
							
						
					
					
						commit
						f6e06271f4
					
				| 
						 | 
				
			
			@ -209,13 +209,10 @@ public class EquipmentCardTaskPlugin extends AbstractTask {
 | 
			
		|||
                    long id = depresplitdetail.getLong("id");
 | 
			
		||||
                    DynamicObject loadSingle = BusinessDataServiceHelper.loadSingle("fa_depresplitdetail", new QFilter[]{new QFilter("id", QCP.equals, id)});
 | 
			
		||||
                    String billno = loadSingle.getString("billno");
 | 
			
		||||
                    Long periodid = loadSingle.getLong("period");//折旧区间
 | 
			
		||||
                    DynamicObject period = BusinessDataServiceHelper.loadSingle("bd_period", new QFilter[]{new QFilter("id", QCP.equals, periodid)});
 | 
			
		||||
                    Long splitdeptid = loadSingle.getLong("splitdept");//使用部门
 | 
			
		||||
                    DynamicObject splitdept = BusinessDataServiceHelper.loadSingle("bos_adminorg", new QFilter[]{new QFilter("id", QCP.equals, splitdeptid)});
 | 
			
		||||
                    DynamicObject period = loadSingle.getDynamicObject("period");//折旧区间
 | 
			
		||||
                    DynamicObject splitdept = loadSingle.getDynamicObject("splitdept");//使用部门
 | 
			
		||||
                    DynamicObjectCollection assentry = loadSingle.getDynamicObjectCollection("assentry");
 | 
			
		||||
                    Long costcentrerid = assentry.get(0).getLong("costcentrer");//成本中心
 | 
			
		||||
                    DynamicObject costcentrer = BusinessDataServiceHelper.loadSingle("bos_costcenter", new QFilter[]{new QFilter("id", QCP.equals, costcentrerid)});
 | 
			
		||||
                    DynamicObject costcentrer = assentry.get(0).getDynamicObject("costcentrer");//成本中心
 | 
			
		||||
                    BigDecimal splitamount = assentry.get(0).getBigDecimal("splitamount");//分摊金额
 | 
			
		||||
                    DynamicObject addNew = entrys.addNew();
 | 
			
		||||
                    addNew.set("zcgj_debillno", billno);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue