Ejemplo n.º 1
0
        public IActionResult Index(PriceQuotation request)
        {
            _logger.LogTrace($"Received price quotation request for subtotal {request.Subtotal} and discount percent {request.DiscountPercent}.");

            if (ModelState.IsValid)
            {
                return(View(_calculator.Calculate(request.Subtotal.Value, request.DiscountPercent.Value)));
            }

            return(Index());
        }
 public PriceQuotationUI()
 {
     InitializeComponent();
     loPriceQuotation       = new PriceQuotation();
     loPriceQuotationDetail = new PriceQuotationDetail();
     loCommon                  = new Common();
     ldtPriceQuotation         = new System.Data.DataTable();
     loPriceQuotationRpt       = new PriceQuotationRpt();
     loPriceQuotationDetailRpt = new PriceQuotationDetailRpt();
     loReportViewer            = new ReportViewerUI();
 }
 public PriceQuotationDetailUI(string pPriceQuotationId)
 {
     InitializeComponent();
     lOperation             = GlobalVariables.Operation.Edit;
     loPriceQuotation       = new PriceQuotation();
     loPriceQuotationDetail = new PriceQuotationDetail();
     loCustomer             = new Customer();
     loSalesPerson          = new SalesPerson();
     loStock  = new Stock();
     loCommon = new Common();
     //loStockReceivingDetailRpt = new StockReceivingDetailRpt();
     loReportViewer    = new ReportViewerUI();
     lPriceQuotationId = pPriceQuotationId;
 }
 public SalesOrderDetailUI(string pSalesOrderId)
 {
     InitializeComponent();
     lOperation             = GlobalVariables.Operation.Edit;
     loSalesOrder           = new SalesOrder();
     loSalesOrderDetail     = new SalesOrderDetail();
     loPriceQuotation       = new PriceQuotation();
     loPriceQuotationDetail = new PriceQuotationDetail();
     loCustomer             = new Customer();
     loSalesPerson          = new SalesPerson();
     loStock  = new Stock();
     loCommon = new Common();
     loLookUpPriceQuotation = new LookUpPriceQuotationUI();
     loReportViewer         = new ReportViewerUI();
     lSalesOrderId          = pSalesOrderId;
 }
Ejemplo n.º 5
0
 public LookUpPriceQuotationUI()
 {
     InitializeComponent();
     loPriceQuotation = new PriceQuotation();
     lFromSelection   = false;
 }