1 分录赋初始值方法(EU)

 
  
  1. protected IObjectValue createNewDetailData(KDTable table)  
  2.  
  3. {  
  4.  
  5. BornRecEntryInfo into = new com.kingdee.eas.custom.broiler.hatch.BornRecEntryInfo();  
  6.  
  7. into.setHenQty(new BigDecimal("0.00"));  
  8.  
  9. return into;  
  10.  
  11. }  
  12.  

------------------------------------------------------------------------------------------------

2 单据头赋初始值方法(EU)

 

 
  
  1. protected IObjectValue createNewData()  
  2.  
  3. {  
  4.  
  5. BornRecInfo objectValue = new com.kingdee.eas.custom.broiler.hatch.BornRecInfo();  
  6.  
  7. objectValue.setCompany((CompanyOrgUnitInfo) (SysContext.getSysContext().getCurrentFIUnit()));  
  8.  
  9. objectValue.setCreator((UserInfo) (SysContext.getSysContext().getCurrentUser()));  
  10.  
  11. return objectValue;  
  12.  
  13. }