Пример #1
0
        public BillQuotationComplete(BILL_BillQuotation bill_billQuotation)
            : base(bill_billQuotation)
        {
            var DALbill = new FacturationDAL.LineBillQuotationDAL();
            lines = DALbill.GetLineBillQuotation(bill_billQuotation.BillQuotation_Id).Select(l => new LineCompleted(l)).ToList();

            var DALstatusChain = new FacturationDAL.StatusChainDAL();
            statusPossible = DALstatusChain.GetStatusChain(bill_billQuotation.BILL_BillQuotationStatus.OrderByDescending(s => s.DateAdvancement).First().Status_Id);
        }
Пример #2
0
        public BillQuotationComplete(BILL_BillQuotation bill_billQuotation)
            : base(bill_billQuotation)
        {
            var DALbill = new FacturationDAL.LineBillQuotationDAL();

            lines = DALbill.GetLineBillQuotation(bill_billQuotation.BillQuotation_Id).Select(l => new LineCompleted(l)).ToList();

            var DALstatusChain = new FacturationDAL.StatusChainDAL();

            statusPossible = DALstatusChain.GetStatusChain(bill_billQuotation.BILL_BillQuotationStatus.OrderByDescending(s => s.DateAdvancement).First().Status_Id);
        }
Пример #3
0
        public ProductExtended(BILL_Product product, long billQuotation_id)
        {
            base.BILL_Category = product.BILL_Category;
            base.BILL_LineBillQuotation = product.BILL_LineBillQuotation;
            base.BILL_Vat = product.BILL_Vat;
            base.Category_Id = product.Category_Id;
            base.DescriptionPro = product.DescriptionPro;
            base.Name = product.Name;
            base.Price = product.Price;
            base.Product_Id = product.Product_Id;
            base.Vat_Id = product.Vat_Id;

            var DAL = new FacturationDAL.LineBillQuotationDAL();
            //var listProduct = DAL.productsIncludedInBill(billQuotation_id);
            included = DAL.productsIncludedInBill(billQuotation_id, Product_Id);
        }
Пример #4
0
        public ProductExtended(BILL_Product product, long billQuotation_id)
        {
            base.BILL_Category          = product.BILL_Category;
            base.BILL_LineBillQuotation = product.BILL_LineBillQuotation;
            base.BILL_Vat       = product.BILL_Vat;
            base.Category_Id    = product.Category_Id;
            base.DescriptionPro = product.DescriptionPro;
            base.Name           = product.Name;
            base.Price          = product.Price;
            base.Product_Id     = product.Product_Id;
            base.Vat_Id         = product.Vat_Id;

            var DAL = new FacturationDAL.LineBillQuotationDAL();

            //var listProduct = DAL.productsIncludedInBill(billQuotation_id);
            included = DAL.productsIncludedInBill(billQuotation_id, Product_Id);
        }