コード例 #1
0
ファイル: DivideGroupManage.cs プロジェクト: 842549829/Pool
 void initLazyLoaders()
 {
     _memberLoader = new EnumerableLazyLoader <MemberManage>(() =>
     {
         return(OnLineCustomerService.QueryMembers(this.Id));
     });
 }
コード例 #2
0
 void initLazyLoaders(bool newOrder)
 {
     _OemInfoLoader = new LazyLoader <OEMInfo>(() => OEMService.QueryOEMById(OEMID.Value));
     if (newOrder)
     {
         _applyformLoader    = new EnumerableLazyLoader <BaseApplyform>();
         _operationLoader    = new EnumerableLazyLoader <Log.Domain.OrderLog>();
         _coordinationLoader = new EnumerableLazyLoader <Coordination>();
     }
     else
     {
         _applyformLoader = new EnumerableLazyLoader <BaseApplyform>(() => {
             return(ApplyformQueryService.QueryApplyforms(this.Id));
         });
         _operationLoader = new EnumerableLazyLoader <Log.Domain.OrderLog>(() => {
             return(LogService.QueryOrderLog(this.Id));
         });
         _coordinationLoader = new EnumerableLazyLoader <Coordination>(() => {
             return(CoordinationService.QueryOrderCoordinations(this.Id));
         });
     }
     _associateOrderLoader   = new LazyLoader <Order>();
     _distributionBillLoader = new LazyLoader <Service.Distribution.Domain.OrderBill>(() => {
         return(DistributionQueryService.QueryOrderBill(this.Id));
     });
 }
コード例 #3
0
ファイル: BaseApplyform.cs プロジェクト: 842549829/Pool
 void initLazyLoaders()
 {
     _operationLoader    = new EnumerableLazyLoader <Log.Domain.OrderLog>(() => LogService.QueryApplyformLog(this.Id));
     _coordinationLoader = new EnumerableLazyLoader <Coordination>(() => CoordinationService.QueryApplyformCoordinations(this.Id));
     _orderLoader        = new LazyLoader <Order>(() => OrderQueryService.QueryOrder(this.OrderId));
     _purchaserLoader    = new LazyLoader <DataTransferObject.Organization.CompanyInfo>(() => Organization.CompanyService.GetCompanyDetail(this.PurchaserId));
     _providerLoader     = new LazyLoader <DataTransferObject.Organization.CompanyInfo>(() => Organization.CompanyService.GetCompanyDetail(this.ProviderId));
     _OemInfoLoader      = new LazyLoader <OEMInfo>(() => OEMService.QueryOEMById(OEMID.Value));
 }
コード例 #4
0
ファイル: OrderBill.cs プロジェクト: 842549829/Pool
 internal OrderBill(decimal orderId)
 {
     this.OrderId            = orderId;
     _mainPayBillLoader      = new LazyLoader <NormalPayBill>(() => DistributionQueryService.QueryNormalPayBill(this.OrderId));
     _postponePayBillsLoader = new EnumerableLazyLoader <PostponePayBill>(() => DistributionQueryService.QueryPostponePayBills(this.OrderId));
 }
コード例 #5
0
ファイル: NormalPayBill.cs プロジェクト: 842549829/Pool
 internal NormalPayBill(decimal orderId)
     : base(orderId)
 {
     _refundBillsLoader = new EnumerableLazyLoader <NormalRefundBill>(() => DistributionQueryService.QueryNormalRefundBills(OrderId));
 }