コード例 #1
0
 internal SetShipmentInformationConductor(IInventoryShipmentOrderUnitOfWork inventoryShipmentOrderUnitOfWork)
 {
     if (inventoryShipmentOrderUnitOfWork == null)
     {
         throw new ArgumentNullException("inventoryShipmentOrderUnitOfWork");
     }
     _inventoryShipmentOrderUnitOfWork = inventoryShipmentOrderUnitOfWork;
 }
 public SetInterWarehouseOrderPickedInventoryConductor(IInventoryShipmentOrderUnitOfWork inventoryShipmentUnitOfWork)
 {
     if (inventoryShipmentUnitOfWork == null)
     {
         throw new ArgumentNullException("inventoryShipmentUnitOfWork");
     }
     _inventoryShipmentUnitOfWork = inventoryShipmentUnitOfWork;
 }
コード例 #3
0
 internal CustomerOrderInvoiceConductor(IInventoryShipmentOrderUnitOfWork inventoryShipmentOrderUnitOfWork)
 {
     if (inventoryShipmentOrderUnitOfWork == null)
     {
         throw new ArgumentNullException("inventoryShipmentOrderUnitOfWork");
     }
     _inventoryShipmentOrderUnitOfWork = inventoryShipmentOrderUnitOfWork;
 }
コード例 #4
0
 internal PendingOrderDetailsConductor(IInventoryShipmentOrderUnitOfWork inventoryShipmentOrderUnitOfWork)
 {
     if (inventoryShipmentOrderUnitOfWork == null)
     {
         throw new ArgumentNullException("inventoryShipmentOrderUnitOfWork");
     }
     _inventoryShipmentOrderUnitOfWork = inventoryShipmentOrderUnitOfWork;
 }
コード例 #5
0
 public TreatmentOrderPickedInventoryConductor(IInventoryShipmentOrderUnitOfWork inventoryShipmentUnitOfWork) : base(inventoryShipmentUnitOfWork)
 {
 }
コード例 #6
0
 internal DeleteTreatmentOrderConductor(IInventoryShipmentOrderUnitOfWork unitOfWork) : base(unitOfWork)
 {
 }
コード例 #7
0
 public SyncCompleteExpiredContracts(IInventoryShipmentOrderUnitOfWork unitOfWork) : base(unitOfWork)
 {
 }
コード例 #8
0
        internal static IEnumerable <Expression <Func <SalesOrder, SalesOrderDetailReturn> > > SplitSelectDetail(IInventoryShipmentOrderUnitOfWork inventoryUnitOfWork, DateTime currentDate)
        {
            var company = CompanyProjectors.SelectSummary();

            return(new Projectors <SalesOrder, SalesOrderDetailReturn>
            {
                { InventoryShipmentOrderProjectors.SplitSelectInventoryShipmentOrderDetailBase(inventoryUnitOfWork, currentDate, InventoryOrderEnum.CustomerOrder, inventoryUnitOfWork), p => p.Translate().To <SalesOrder, SalesOrderDetailReturn>(o => o.InventoryShipmentOrder) },
                o => new SalesOrderDetailReturn
                {
                    IsMiscellaneous = o.InventoryShipmentOrder.OrderType == InventoryShipmentOrderTypeEnum.MiscellaneousOrder,
                    SalesOrderStatus = o.OrderStatus,
                    PaymentTerms = o.PaymentTerms,
                    ShipFromReplace = o.SoldTo,
                    CreditMemo = o.CreditMemo,
                    InvoiceDate = o.InvoiceDate,
                    InvoiceNotes = o.InvoiceNotes,
                    FreightCharge = o.FreightCharge,

                    Customer = new[] { o.Customer }.Where(c => c != null).Select(c => company.Invoke(c.Company)).FirstOrDefault(),
                    Broker = new[] { o.Broker }.Where(b => b != null).Select(b => company.Invoke(b)).FirstOrDefault()
                },
                { SplitSelectPickOrderDetail(), p => o => new SalesOrderDetailReturn
                  {
                      PickOrder = p.Invoke(o)
                  } }
            });
        }
コード例 #9
0
 public SyncContractsStatus(IInventoryShipmentOrderUnitOfWork unitOfWork) : base(unitOfWork)
 {
 }