1 分录赋初始值方法(EU)
- protected IObjectValue createNewDetailData(KDTable table)
- {
- BornRecEntryInfo into = new com.kingdee.eas.custom.broiler.hatch.BornRecEntryInfo();
- into.setHenQty(new BigDecimal("0.00"));
- return into;
- }
------------------------------------------------------------------------------------------------
2 单据头赋初始值方法(EU)
- protected IObjectValue createNewData()
- {
- BornRecInfo objectValue = new com.kingdee.eas.custom.broiler.hatch.BornRecInfo();
- objectValue.setCompany((CompanyOrgUnitInfo) (SysContext.getSysContext().getCurrentFIUnit()));
- objectValue.setCreator((UserInfo) (SysContext.getSysContext().getCurrentUser()));
- return objectValue;
- }
转载于:https://blog.51cto.com/huqianhao/955334