Пример #1
0
        // GET: Customer/Edit/5
        public ActionResult Edit(string QuoteNo)
        {
            DL_QuoteViewModel  view         = new DL_QuoteViewModel();
            QuoteBusinessLogic CBL          = new QuoteBusinessLogic();
            QuoteViewModel     CustomerView = new QuoteViewModel();

            view = CBL.BL_GetOpportunityByQuoteNo(QuoteNo);

            QuoteViewModel ViewModel = PopulateBOMViewModel(view);

            ViewBag.Territorylist = ViewModel.TerritoryListModel;

            return(View("Edit", ViewModel));
        }
Пример #2
0
        public ActionResult Index(string QuoteNo = "")
        {
            if (QuoteNo == "")
            {
                DL_QuoteViewModel  QuoteLst = new DL_QuoteViewModel();
                QuoteViewModel     QuoteVM  = new QuoteViewModel();
                QuoteBusinessLogic BL       = new QuoteBusinessLogic();
                QuoteLst = BL.GetCustomersList();
                QuoteViewModel CustLst = PopulateQuoteViewModel(QuoteLst);
                return(View(CustLst));
            }
            else
            {
                DL_QuoteViewModel  view         = new DL_QuoteViewModel();
                QuoteBusinessLogic CBL          = new QuoteBusinessLogic();
                QuoteViewModel     CustomerView = new QuoteViewModel();
                view = CBL.BL_GetOpportunityByQuoteNo(QuoteNo);

                QuoteViewModel ViewModel = PopulateBOMViewModel(view);

                return(View("Edit", ViewModel));
            }
        }