Exemplo n.º 1
0
 void initLazyLoaders()
 {
     _memberLoader = new EnumerableLazyLoader <MemberManage>(() =>
     {
         return(OnLineCustomerService.QueryMembers(this.Id));
     });
 }
Exemplo n.º 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));
     });
 }
Exemplo n.º 3
0
 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));
 }
Exemplo n.º 4
0
 internal OrderBill(decimal orderId)
 {
     this.OrderId            = orderId;
     _mainPayBillLoader      = new LazyLoader <NormalPayBill>(() => DistributionQueryService.QueryNormalPayBill(this.OrderId));
     _postponePayBillsLoader = new EnumerableLazyLoader <PostponePayBill>(() => DistributionQueryService.QueryPostponePayBills(this.OrderId));
 }
Exemplo n.º 5
0
 internal NormalPayBill(decimal orderId)
     : base(orderId)
 {
     _refundBillsLoader = new EnumerableLazyLoader <NormalRefundBill>(() => DistributionQueryService.QueryNormalRefundBills(OrderId));
 }