// GET: Admin/PreviewStudent public ActionResult Index(string studentid = "", string Name = "") { TempData["studentid"] = studentid; TempData["studentname"] = Name; DashboardRepository _objRepository = new DashboardRepository(); DataSet _ds = _objRepository.Get_Dashboard_Data(studentid); List <Student_dashbaord> _list = new List <Student_dashbaord>(); if (_ds != null) { if (_ds.Tables[0].Rows.Count > 0) { foreach (DataRow _dr in _ds.Tables[0].Rows) { Student_dashbaord _Obj = new Student_dashbaord(); _Obj.FirstName = _dr["FirstName"].ToString(); _Obj.Mobile = _dr["Mobile"].ToString(); _Obj.Email = _dr["Email"].ToString(); _Obj.DateOfBirth = _dr["DateOfBirth"].ToString(); _Obj.Nationality = _dr["Nationality"].ToString(); _Obj.PassportNo = _dr["PassportNo"].ToString(); _Obj.CitizenshipNumber = _dr["CitizenshipNumber"].ToString(); _Obj.Residential = _dr["Residential"].ToString(); _Obj.Permanent = _dr["Permanent"].ToString(); _Obj.StudentRefrenceDetail = _dr["StudentRefrenceDetail"].ToString(); _Obj.AcademicInformation_EC = _dr["AcademicInformation_EC"].ToString(); _Obj.AcademicInformation_AE = _dr["AcademicInformation_AE"].ToString(); _Obj.Disciplinelist = _dr["Disciplinelist"].ToString(); _Obj.TotalChoicefill = _dr["TotalChoicefill"].ToString(); _Obj.Doc_required = _dr["Doc_required"].ToString(); _Obj.Uploded_doc = _dr["Uploded_doc"].ToString(); _Obj.finalSubmit = _dr["finalSubmit"].ToString(); _list.Add(_Obj); } } } ViewBag.StudentdDashboard = _list; return(View()); }
// GET: admission/Dashboard #region Dashboard Views public ActionResult Index() { DashboardRepository _objRepository = new DashboardRepository(); DataSet _ds = _objRepository.Get_Dashboard_Data(Session["studentid"].ToString()); List <Student_dashbaord> _list = new List <Student_dashbaord>(); if (_ds != null) { if (_ds.Tables[0].Rows.Count > 0) { foreach (DataRow _dr in _ds.Tables[0].Rows) { Student_dashbaord _Obj = new Student_dashbaord(); _Obj.FirstName = _dr["FirstName"].ToString(); _Obj.Mobile = _dr["Mobile"].ToString(); _Obj.Email = _dr["Email"].ToString(); _Obj.DateOfBirth = _dr["DateOfBirth"].ToString(); _Obj.Nationality = _dr["Nationality"].ToString(); _Obj.PassportNo = _dr["PassportNo"].ToString(); _Obj.CitizenshipNumber = _dr["CitizenshipNumber"].ToString(); _Obj.Residential = _dr["Residential"].ToString(); _Obj.Permanent = _dr["Permanent"].ToString(); _Obj.StudentRefrenceDetail = _dr["StudentRefrenceDetail"].ToString(); _Obj.Disciplinelist = _dr["Disciplinelist"].ToString(); _Obj.TotalChoicefill = _dr["TotalChoicefill"].ToString(); _Obj.Doc_required = _dr["Doc_required"].ToString(); _Obj.Uploded_doc = _dr["Uploded_doc"].ToString(); _Obj.finalSubmit = _dr["finalSubmit"].ToString(); _Obj.IndSATCenter = _dr["IndSATCenter"].ToString(); if (Session["CountryID"].ToString() == "252") { Session["IndSATCenter"] = "False"; } else { Session["IndSATCenter"] = _dr["IndSATCenter"].ToString(); } ViewBag.DocumentVerified = _dr["DocumentVerified"].ToString(); _list.Add(_Obj); } } } ViewBag.StudentdDashboard = _list; ChoiceFillingRepository _objRepo = new ChoiceFillingRepository(); _ds = _objRepo.Opr_TestCentreRegitration(new TestCentreRegitration { Type = "SELECT", studentid = Session["studentid"].ToString() }); if (_ds != null) { if (_ds.Tables[0].Rows.Count > 0) { ViewBag.IndSATFilled = "True"; } } return(View()); }