protected void GetNewsEventList() { objCommon = new dalCommon(); objDashboard = new dalDashboard(); objCommon.AcaStart = Session["AcaStart"].ToString(); objCommon.SchoolId = Session["SchoolID"].ToString(); objCommon.StudEmp = Session["StudentID"].ToString(); objCommon.strDate = DateTime.Now.Date.ToString("yyyy/MM/dd"); DataTable dt = new DataTable(); try { //dt.Load(objDashboard.GetNewsAndEventList(objCommon)); //if (dt.Rows.Count > 0) //{ rptrNewsEventList.DataSource = objDashboard.GetNewsAndEventList(objCommon); rptrNewsEventList.DataBind(); //} } catch (Exception) { throw; } finally { objCommon = null; objDashboard = null; } }
protected void GetStudentProfile() { dalCommon objCommon = new dalCommon(); dalDashboard objDashboard = new dalDashboard(); try { objCommon.AcaStart = Session["AcaStart"].ToString(); objCommon.StudEmp = Session["StudentID"].ToString(); SqlDataReader rdr1 = objDashboard.GetStudentProfile(objCommon); if (rdr1.Read()) { Name = rdr1.GetValue(1).ToString(); ClassSection = rdr1.GetValue(2).ToString(); ltrlProfileDetail.Text = ""; ltrlProfileDetail.Text += "<li><a href=''>"; if (File.Exists(Server.MapPath("../FatherPhoto") + "/F" + Session["ParentID"] + ".jpg") == true) { ltrlProfileDetail.Text += "<img src='../FatherPhoto/F" + Session["ParentID"] + ".jpg' height='32px' alt='' class='userthumb' />"; } else { ltrlProfileDetail.Text += "<img src='images/photos/thumb1.png' alt='' class='userthumb' />"; } ltrlProfileDetail.Text += "<strong>Mr. " + Convert.ToString(rdr1["FatherName"]) + "</strong>Father Name<small></small> </a></li>"; ltrlProfileDetail.Text += "<li><a href=''>"; if (File.Exists(Server.MapPath("../MotherPhoto") + "/M" + Session["ParentID"] + ".jpg") == true) { ltrlProfileDetail.Text += "<img src='../MotherPhoto/M" + Session["ParentID"] + ".jpg' height='32px' alt='' class='userthumb' />"; } else { ltrlProfileDetail.Text += "<img src='images/photos/thumb1.png' alt='' class='userthumb' />"; } ltrlProfileDetail.Text += "<strong>Mrs. " + Convert.ToString(rdr1["MotherName"]) + "</strong> <small>Mother Name</small> </a></li>"; ltrlProfileDetail.Text += "<li class='viewmore'><a href='../SchoolOnline/PLStudentInformation.aspx'>View Full Details</a></li>"; } rdr1.Close(); rdr1.Dispose(); ClassID = objDashboard.GetClassID(objCommon); SectionID = objDashboard.GetSectionID(objCommon); if (File.Exists(Server.MapPath("~/StudentPhoto") + "/S" + Session["StudentID"].ToString() + ".jpg") == true) { imgStudent.ImageUrl = "~/StudentPhoto/S" + Session["StudentID"].ToString() + ".jpg?" + System.DateTime.Now.ToFileTimeUtc(); } } catch (Exception) { throw; } finally { objDashboard = null; } }
protected void lnkSignout_Click(object sender, EventArgs e) { dalCommon objCommon = new dalCommon(); dalDashboard objDashboard = new dalDashboard(); if (Session["Cache"] != null) { Cache.Remove(Session["Cache"].ToString()); } Session.Clear(); Response.Redirect("~/Logon.aspx"); }
protected void GetParentsProfile() { dalCommon objCommon = new dalCommon(); dalDashboard objDashboard = new dalDashboard(); try { } catch (Exception) { throw; } }
protected void NewsEventBind() { objDashboard = new dalDashboard(); objCommon = new dalCommon(); objCommon.AcaStart = Session["AcaStart"].ToString(); objCommon.SchoolId = Session["SchoolID"].ToString(); objCommon.StudEmp = Session["StudentID"].ToString(); try { rptrEventList.DataSource = objDashboard.GetEventList(objCommon); rptrEventList.DataBind(); } catch (Exception) { throw; } }
protected void GetFeeDetails() { DataTable dt = new DataTable(); objCommon = new dalCommon(); objDashboard = new dalDashboard(); objCommon.AcaStart = Session["AcaStart"].ToString(); objCommon.SchoolId = Session["SchoolID"].ToString(); objCommon.StudEmp = Session["StudentID"].ToString(); try { dt.Load(objDashboard.GetFeeDetails(objCommon)); if (dt.Rows.Count > 0) { ltrlFeedetail.Text = ""; ltrlFeedetail.Text += "<div class='heading'>" + "<div class='col'>Installment</div>" + "<div class='col'>Amount</div>" + "<div class='col'>Paid</div>" + "<div class='col'>Fine/Excess</div>" + "<div class='col'>Balance</div>" + "</div>"; for (int i = 0; i < dt.Rows.Count; i++) { if (i + 1 != dt.Rows.Count) { ltrlFeedetail.Text += "<div class='table-row'>"; ltrlFeedetail.Text += "<div class='col'>"; ltrlFeedetail.Text += "" + dt.Rows[i]["Installment"] + "</div>"; ltrlFeedetail.Text += "<div class='col'>"; ltrlFeedetail.Text += "" + dt.Rows[i]["Amount"] + "</div>"; ltrlFeedetail.Text += "<div class='col'>"; ltrlFeedetail.Text += "" + dt.Rows[i]["Paid"] + "</div>"; ltrlFeedetail.Text += "<div class='col'>"; ltrlFeedetail.Text += "" + dt.Rows[i]["Fine/Excess"] + "</div>"; ltrlFeedetail.Text += "<div class='col'>"; ltrlFeedetail.Text += "" + dt.Rows[i]["Balance"] + "</div>"; ltrlFeedetail.Text += "</div>"; } else { ltrlFeedetail.Text += " <div class='total'>"; ltrlFeedetail.Text += "<div class='col'>"; ltrlFeedetail.Text += "" + dt.Rows[i]["Installment"] + "</div>"; ltrlFeedetail.Text += "<div class=\"col\">" + dt.Rows[i]["Amount"] + "</div>"; ltrlFeedetail.Text += "<div class=\"col\">" + dt.Rows[i]["Paid"] + "</div>"; ltrlFeedetail.Text += "<div class=\"col\">" + dt.Rows[i]["Fine/Excess"] + "</div>"; ltrlFeedetail.Text += "<div class=\"col\">" + dt.Rows[i]["Balance"] + "</div>"; ltrlFeedetail.Text += "</div>"; } } } // rptrFeeDetails.DataSource = objDashboard.GetFeeDetails(objCommon); // rptrFeeDetails.DataBind(); } catch (Exception) { throw; } finally { objCommon = null; objDashboard = null; } }