// GET: ServiceType
        //public ActionResult Index()
        //{
        //    return View();
        //}

        #region ServiceType SelectList
        public ActionResult ServiceTypeSelectList(string required)
        {
            ViewBag.IsRequired = required;
            ServiceTypeViewModel serviceTypeVM = new ServiceTypeViewModel();

            serviceTypeVM.ServiceTypeSelectList = _serviceTypeBusiness.GetServiceTypeSelectList();
            return(PartialView("_ServiceTypeSelectList", serviceTypeVM));
        }
Beispiel #2
0
        public ActionResult Index(string id)
        {
            ViewBag.ID = id;
            ServiceCallAdvanceSearchViewModel serviceCallAdvanceSearchVM = new ServiceCallAdvanceSearchViewModel();

            serviceCallAdvanceSearchVM.AdvArea = new AreaViewModel();
            serviceCallAdvanceSearchVM.AdvArea.AreaSelectList         = _areaBusiness.GetAreaForSelectList();
            serviceCallAdvanceSearchVM.AdvCustomer                    = new CustomerViewModel();
            serviceCallAdvanceSearchVM.AdvCustomer.CustomerSelectList = _customerBusiness.GetCustomerSelectList();
            serviceCallAdvanceSearchVM.AdvBranch = new BranchViewModel();
            AppUA appUA = Session["AppUA"] as AppUA;

            serviceCallAdvanceSearchVM.AdvBranch.BranchList = _branchBusiness.GetBranchForSelectList(appUA.UserName);
            serviceCallAdvanceSearchVM.AdvDocumentStatus    = new DocumentStatusViewModel();
            serviceCallAdvanceSearchVM.AdvDocumentStatus.DocumentStatusSelectList = _documentStatusBusiness.GetSelectListForDocumentStatus("SRC");
            serviceCallAdvanceSearchVM.AdvEmployee = new EmployeeViewModel();
            serviceCallAdvanceSearchVM.AdvEmployee.EmployeeSelectList         = _employeeBusiness.GetEmployeeSelectList();
            serviceCallAdvanceSearchVM.AdvServicedEmployee                    = new EmployeeViewModel();
            serviceCallAdvanceSearchVM.AdvServicedEmployee.EmployeeSelectList = _employeeBusiness.GetEmployeeSelectList();
            serviceCallAdvanceSearchVM.AdvServiceType = new ServiceTypeViewModel();
            serviceCallAdvanceSearchVM.AdvServiceType.ServiceTypeSelectList = _serviceTypeBusiness.GetServiceTypeSelectList();
            return(View(serviceCallAdvanceSearchVM));
        }