// // GET: /Claim/ public ActionResult Index() { if (Session["Username"] == null) { return(RedirectToAction("Login", "Home")); } STD_CODE code = new STD_CODE(); CUSTOMER cus = new CUSTOMER(); EMPLOYEE em = new EMPLOYEE(); ViewBag.Emp = em.SelectSimple(); ViewBag.Customer = cus.GetSimple(); ViewBag.EndUser = cus.GetEndUser(); ViewBag.ClaimStatus = code.Select("CLIAM_STATUS"); ViewBag.DefectLine = code.Select("DEFECT_LINE"); return(View()); }
public ActionResult Index() { if (Session["Username"] == null) { return(RedirectToAction("Login", "Home")); } STD_CODE code = new STD_CODE(); CUSTOMER cus = new CUSTOMER(); EMPLOYEE em = new EMPLOYEE(); ViewBag.Emp = em.SelectSimple(); ViewBag.Customer = cus.GetSimple(); ViewBag.Code = code.Select(); return(View()); }