public ActionResult Create()
        {
            MakePaymentModel model = new MakePaymentModel();

            ViewData["Bank"]                = new SelectList(ser.AllBank(), "BankId", "BankName");
            ViewData["BankBranch"]          = new SelectList(ser.AllBankBranch(model.BankId), "BankBranchId", "BranchName");
            ViewData["ChequeDrawnOnBank"]   = new SelectList(ser.GetBank(), "BankId", "BankName");
            model.CreditRequestCurrencyList = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.ChequeCurrencyList        = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.DraftCurrencyList         = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.CashCurrencyList          = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.BankTransferCurrencyList  = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.RTGSCurrencyList          = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.CashGivenToCurrencyList   = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.SalesAgentList            = ser.GetAllGetSalesAgentList();

            return(View(model));
        }
Beispiel #2
0
        public ActionResult Create()
        {
            var ts = SessionStore.GetTravelSession();
            MakePaymentModel model = new MakePaymentModel();

            ViewData["Bank"]              = new SelectList(ser.AllBank(), "BankId", "BankName");
            ViewData["BankBranch"]        = new SelectList(ser.AllBankBranch(model.BankId), "BankBranchId", "BranchName");
            ViewData["ChequeDrawnOnBank"] = new SelectList(ser.GetBank(), "BankId", "BankName");

            model.ChequeCurrencyList       = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.DraftCurrencyList        = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.CashCurrencyList         = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.BankTransferCurrencyList = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.RTGSCurrencyList         = new SelectList(ser.GetCurrenciesList(), "Value", "Text");
            model.CashGivenToCurrencyList  = new SelectList(ser.GetCurrenciesList(), "Value", "Text");

            model.SalesAgentList = ser.GetAllGetSalesAgentList();
            model.AgentList      = new CreditLimitProvider().GetAllBranchDistributorList(ts.LoginTypeId);

            return(View(model));
        }