Ejemplo n.º 1
0
        internal static Expression <Func <LotCustomerAllowance, LotCustomerAllowanceReturn> > Select()
        {
            var customerKey = CustomerProjectors.SelectKey();

            return(a => new LotCustomerAllowanceReturn
            {
                CustomerKeyReturn = customerKey.Invoke(a.Customer),
                CustomerName = a.Customer.Company.Name
            });
        }
        internal static Expression <Func <LotSalesOrderAllowance, LotCustomerOrderAllowanceReturn> > Select()
        {
            var customerOrderKeyReturn = SalesOrderProjectors.SelectKey();
            var customerKey            = CustomerProjectors.SelectKey();

            return(a => new LotCustomerOrderAllowanceReturn
            {
                SalesOrderKeyReturn = customerOrderKeyReturn.Invoke(a.SalesOrder),
                OrderNumber = a.SalesOrder.InventoryShipmentOrder.MoveNum,
                CustomerKeyReturn = customerKey.Invoke(a.SalesOrder.Customer),
                CustomerName = a.SalesOrder.Customer.Company.Name
            });
        }
Ejemplo n.º 3
0
        internal static Expression <Func <LotContractAllowance, LotContractAllowanceReturn> > Select()
        {
            var contractKey = ContractProjectors.SelectKey();
            var customerKey = CustomerProjectors.SelectKey();

            return(a => new LotContractAllowanceReturn
            {
                ContractKeyReturn = contractKey.Invoke(a.Contract),
                TermBegin = a.Contract.TermBegin,
                TermEnd = a.Contract.TermEnd,
                CustomerKeyReturn = customerKey.Invoke(a.Contract.Customer),
                CustomerName = a.Contract.Customer.Company.Name
            });
        }