示例#1
0
 BLL.AccountGroup AccountGroupDAL_BLL(DAL.AccountGroup d)
 {
     BLL.AccountGroup b = d.toCopy <BLL.AccountGroup>(new BLL.AccountGroup());
     b.Company = d.CompanyDetail == null ? new BLL.CompanyDetail() : d.CompanyDetail.toCopy <BLL.CompanyDetail>(new BLL.CompanyDetail());
     //b.UnderAccountGroup = d.AccountGroup2 == null ? new BLL.AccountGroup() : AccountGroupDAL_BLL(d.AccountGroup2);
     b.UnderAccountGroup = d.AccountGroup2 == null ? new BLL.AccountGroup() : new BLL.AccountGroup()
     {
         GroupName = d.AccountGroup2.GroupName, GroupCode = d.AccountGroup2.GroupCode
     };
     return(b);
 }
 BLL.AccountGroup AccountGroupDAL_BLL(DAL.AccountGroup d)
 {
     BLL.AccountGroup b = d.toCopy <BLL.AccountGroup>(new BLL.AccountGroup());
     b.Fund = d.FundMaster == null ? new BLL.FundMaster() : d.FundMaster.toCopy <BLL.FundMaster>(new BLL.FundMaster());
     //b.UnderAccountGroup = d.AccountGroup2 == null ? new BLL.AccountGroup() : AccountGroupDAL_BLL(d.AccountGroup2);
     b.UnderAccountGroup = d.AccountGroup2 == null ? new BLL.AccountGroup() : new BLL.AccountGroup()
     {
         GroupName = d.AccountGroup2.GroupName, GroupCode = d.AccountGroup2.GroupCode
     };
     return(b);
 }