// GET: PendingOutbound public ActionResult Index(string sms, string SegmentId, string YearId, string MonthId) { try { TempData["Msg"] = sms; DropDownList ddl = new DropDownList(); var ddlDept = ddl.GetDropDownList("Department"); var ddlSec = ddl.GetDropDownList("Section"); var ddlYear = ddl.GetDropDownListDeliveryMonth("Year"); var ddlMonth = ddl.GetDropDownListDeliveryMonth("Month"); var ddlMatName = ddl.GetDropDownListDeliveryMonth("Matname"); ViewBag.DepartmentId = new SelectList(ddlDept.ToList(), "Id", "Name"); ViewBag.SectionId = new SelectList(ddlSec.ToList(), "Id", "Name"); ViewBag.YearId = new SelectList(ddlYear.ToList(), "Id", "Name"); ViewBag.MonthId = new SelectList(ddlMonth.ToList(), "Id", "Name"); ViewBag.MatNameId = new SelectList(ddlMatName.ToList(), "Id", "Name"); return View(); } catch (Exception ex) { return RedirectToAction("Index", new { sms = "Operation Outbound failed " + ex.InnerException.InnerException.Message.ToString() }); } }
// GET: AdjustOntimed public ActionResult Index(string sms, string DepartmentId, string SectionId, string YearId, string MonthId, string MatNameId) { try { TempData["Msg"] = sms; DropDownList ddl = new DropDownList(); var ddlDept = ddl.GetDropDownList("Department"); var ddlSec = ddl.GetDropDownList("Section"); var ddlYear = ddl.GetDropDownListDeliveryMonth("Year"); var ddlMonth = ddl.GetDropDownListDeliveryMonth("Month"); var ddlMatName = ddl.GetDropDownListDeliveryMonth("Matname"); ViewBag.DepartmentId = new SelectList(ddlDept.ToList(), "Id", "Name"); ViewBag.SectionId = new SelectList(ddlSec.ToList(), "Id", "Name"); ViewBag.YearId = new SelectList(ddlYear.ToList(), "Id", "Name"); ViewBag.MonthId = new SelectList(ddlMonth.ToList(), "Id", "Name"); ViewBag.MatNameId = new SelectList(ddlMatName.ToList(), "Id", "Name"); var ddlReason = (from m in objBs.reasonDocReturnBs.GetAll() select new { Id = m.Id, Name = m.Name, }).Distinct(); ViewBag.ReasonId = new SelectList(ddlReason.ToList(), "Id", "Name"); return View(); } catch (Exception ex) { return RedirectToAction("Index", new { sms = "Operation DocReturn failed " + ex.ToString() }); } }
// GET: OntimeAcceptedChart public ActionResult Index(string DepartmentId, string SectionId, DateTime? FromDateSearch, DateTime? ToDateSearch, string MatNameId) { try { DropDownList ddl = new DropDownList(); var ddlDept = ddl.GetDropDownList("Department"); var ddlSec = ddl.GetDropDownList("Section"); var ddlMatName = ddl.GetDropDownListAcceptedMonth("Matname"); ViewBag.DepartmentId = new SelectList(ddlDept.ToList(), "Id", "Name"); ViewBag.SectionId = new SelectList(ddlSec.ToList(), "Id", "Name"); ViewBag.MatNameId = new SelectList(ddlMatName.ToList(), "Id", "Name"); return View(); } catch (Exception ex) { return RedirectToAction("Index", new { sms = "Operation Accept failed " + ex.InnerException.InnerException.Message.ToString() }); } }