public ActionResult DdlPriorityLvl(string source, string empPost, string prospect) { TaskInquiryProvider taskInquiryProvider = new TaskInquiryProvider(); var result = taskInquiryProvider.ddlPriorityLevel(source, empPost, prospect); return(Json(result)); }
// GET: TaskInquiry public ActionResult Index(string emp_no) { try { TaskInquiryProvider taskInquiryProvider = new TaskInquiryProvider(); Boolean isSucceed = true; var model = new IndexViewModel(); model.ddlRegion = taskInquiryProvider.ddlRegion().ToList(); model.ddlBranch = taskInquiryProvider.ddlBranch().ToList(); model.ddlEmpPosition = taskInquiryProvider.ddlEmpPosition().ToList(); model.ddlStsProspek = taskInquiryProvider.ddlStsProspek().ToList(); model.ddlPriorityLevel = taskInquiryProvider.ddlPriorityLevel("All", "All", "All").ToList(); model.ddlStatusDukcapil = taskInquiryProvider.ddlStatusDukcapil().ToList(); model.ddlSourceData = taskInquiryProvider.ddlSourceData().ToList(); var base64EncodedBytes = System.Convert.FromBase64String(emp_no); var empNo = System.Text.Encoding.UTF8.GetString(base64EncodedBytes); model.empNo = empNo; isSucceed = taskInquiryProvider.validasiUser(model.empNo); model.empName = taskInquiryProvider.getUser(model.empNo); if (isSucceed) { ViewData["empNames"] = model.empName; return(View(model)); } else { return(View("~/Views/Shared/Error.cshtml")); } } catch (Exception ex) { return(View("~/Views/Shared/Error.cshtml")); } }