Exemple #1
0
        public ActionResult Create()
        {
            var model = new RemarkItem();
            var list1 = _documentTypeBLL.GetDocumentType();

            model.DocumentTypeList = new SelectList(list1, "MstDocumentTypeId", "DocumentType");

            var list2 = new List <SelectListItem>
            {
                new SelectListItem {
                    Text = "HR", Value = "HR"
                },
                new SelectListItem {
                    Text = "Fleet", Value = "Fleet"
                },
                new SelectListItem {
                    Text = "Admin", Value = "Admin"
                },
            };

            model.RoleTypeList = new SelectList(list2, "Value", "Text");
            model.MainMenu     = _mainMenu;
            model.CurrentLogin = CurrentUser;
            return(View(model));
        }
Exemple #2
0
        public ActionResult Create()
        {
            var model = new ReasonItem();
            var list1 = _documentTypeBLL.GetDocumentType();

            var list2 = new List <SelectListItem>()
            {
                new SelectListItem()
                {
                    Text = "BENEFIT", Value = "BENEFIT"
                },
                new SelectListItem()
                {
                    Text = "WTC", Value = "WTC"
                }
            };

            model.DocumentTypeList = new SelectList(list1, "MstDocumentTypeId", "DocumentType");
            model.VehicleTypeList  = new SelectList(list2, "Text", "Value");
            model.MainMenu         = _mainMenu;
            model.CurrentLogin     = CurrentUser;
            return(View(model));
        }