protected void ButtonRefresh_Click(object sender, EventArgs e) { try { Student stu = new Student(); int strID = stu.GetStudentOIDByStudentBannerID(lblID.Text.ToString()); //string strID = null; //strID = ViewState["STDOID"].ToString(); populateDropdownList(); string strOID = stu.GetStudentIDByStudentBannerOID(Convert.ToInt32(strID)); Populate(strOID); PopulateSection(ddlAssesment.Text.ToString(), lblID.Text); PopulateSectionNoScore(ddlAssesment.Text.ToString(), lblID.Text); PopulateCourseByStudentID(); PopulateGridIntervention(Convert.ToInt32(ViewState["ROID"])); } catch (Exception ex) { } }
private int Prev() { int i = 0; Student stu = new Student(); //if (lblDate.Text != "") //{ // i = stu.GetPrevStudentOID(Convert.ToDateTime(lblDate.Text.ToString())); //} i = stu.GetStudentOIDByStudentBannerID(lbtnID.Text.ToString()); if (i > 1) { i = i - 1; string strID = stu.GetStudentIDByStudentBannerOID(i); if (strID == "" || strID == null) { i--; for (int j = i; j > 0; j--) { strID = stu.GetStudentIDByStudentBannerOID(j); if (strID != "" && strID != null) { i = j; return i; } } } } else { i = 1; } return i; }
private int Next() { int i = 1; string strID=null ; Student stu = new Student(); //if (lblDate.Text != "") //{ // i = stu.GetNextStudentOID(Convert.ToDateTime(lblDate.Text.ToString())); //} i = stu.GetStudentOIDByStudentBannerID(lbtnID.Text.ToString()); i++; strID = stu.GetStudentIDByStudentBannerOID(i); if (strID == "" || strID == null) { i++; for (int j = i; j < 25000000; j++) { strID = stu.GetStudentIDByStudentBannerOID(j); if (strID != "" && strID != null) { i = j; return i; } } } return i; }
private int Prev() { int i = 0; Student stu = new Student(); i = stu.GetStudentOIDByStudentBannerID(lblID.Text.ToString()); if (i > 1) { i = i - 1; string strID = stu.GetStudentIDByStudentBannerOID(i); if (strID == "" || strID == null) { i--; for (int j = i; j > 0; j--) { strID = stu.GetStudentIDByStudentBannerOID(j); if (strID != "" && strID != null) { i = j; return i; } } } } else { i = 1; } return i; }
private int Next() { int i = 0; string strID = "1"; Student stu = new Student(); i = stu.GetStudentOIDByStudentBannerID(lblID.Text.ToString()); i++; strID = stu.GetStudentIDByStudentBannerOID(i); if (strID == "" || strID == null) { i++; for (int j = i; j < 25000000; j++) { strID = stu.GetStudentIDByStudentBannerOID(j); if (strID != "" && strID != null) { i = j; return i; } } } return i; }
protected void Page_Load(object sender, EventArgs e) { connectionString = System.Web.Configuration.WebConfigurationManager.AppSettings["ConnectionString"].ToString(); if (!Page.IsPostBack) { string strID = null; if (Request.QueryString["id"] != null) { strID = Request.QueryString["id"].ToString(); ViewState["STDOID"] = strID; Session["STUOID"] = strID; } populateDropdownList(); Student stu = new Student(); string strOID = stu.GetStudentIDByStudentBannerOID(Convert.ToInt32(strID)); Populate(strOID); populateDropdownList(); PopulateSection(ddlAssesment.Text, strOID); PopulateSectionNoScore(ddlAssesment.Text, strOID); PopulateCourseByStudentID(); int AOID = 0; if (ddlAssesment.Text != null && ddlAssesment.Text != "") { AOID = new Sections().GetAssessmentOIDByAssessmentName(ddlAssesment.Text); } if (!string.IsNullOrEmpty(strID)) { this.BindRiskCalculation(AOID, Convert.ToInt32(strID)); } int RiskOID = 0; if (LabelRisk.Text != "") { RiskOID = new RiskCalculation().GetRiskOIDByAOIDAndName(AOID, LabelRisk.Text); } ViewState["ROID"] = RiskOID; HiddenRiskOID.Value = RiskOID.ToString(); PopulateGridIntervention(RiskOID); rowID = stu.GetStudentRowIDByBannerID(lblID.Text.Trim()); ViewState["RowID"] = rowID; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["id"]!=null) { string strID = Request.QueryString["id"].ToString(); ViewState["STDOID"] = strID; Student stu = new Student(); string strOID = stu.GetStudentIDByStudentBannerOID(Convert.ToInt32(strID)); ViewState["BannerID"] = strOID; Populate(strOID); } connectionString = System.Web.Configuration.WebConfigurationManager.AppSettings["ConnectionString"].ToString(); populateProgram(); populateStatus(); } }