private void loadStudentInfo() { lblSuccessMessage.Visible = false; divStudentInfo.Visible = false; divCheckOutSection.Visible = false; btnSearchAsset.Visible = false; txtTagID.Visible = false; string selected_studentid = txtStudentLookup.SelectedStudentID; if (!isNull(selected_studentid)) { txtTagID.Visible = true; txtStudentLookup.Visible = false; divStudentInfo.Visible = true; btnSearchAsset.Visible = true; divCheckOutSection.Visible = true; txtTagID.txtTagID.Focus(); Student_Info.LoadStudentInfo(selected_studentid); LoadCurrentAssignmentDG(selected_studentid); LoadPendingAssignment(); } }
private void LoadStudentAssetDetails(string asset_student_transaction_id) { DataSet ds = DatabaseUtilities.DsGetByTableColumnValue(Constants.DB_VIEW_STUDENT_ASSET_SEARCH, "Asset_Student_Transaction_ID", asset_student_transaction_id, ""); Utilities.DataBindForm(divStudentTransactionDetails, ds); string found_date = ""; //load Student Info Control if (ds.Tables[0].Rows.Count > 0) { string studentid = ds.Tables[0].Rows[0]["Student_ID"].ToString(); found_date = ds.Tables[0].Rows[0]["Date_Found_Formatted"].ToString(); if (!isNull(studentid)) { Student_Info.LoadStudentInfo(studentid); } } bool isDisplayFoundInfo = !isNull(found_date); trFoundDisposition.Visible = isDisplayFoundInfo; trFoundCondition.Visible = isDisplayFoundInfo; trFoundDate.Visible = isDisplayFoundInfo; }
private void LoadStudentInfo(string studentid) { divStudentInfo.Visible = false; divCurrentlyAssigned.Visible = false; if (!isNull(studentid)) { divStudentInfo.Visible = true; divCurrentlyAssigned.Visible = true; Student_Info.LoadStudentInfo(studentid); LoadCurrentAssignmentDG(studentid, "", "", false); } }
private void LoadControlByCheckInType() { string student_id = Student_Info.lblStudentID.Text; Initialize_Controls(); string check_in_type = ddlCheckInType.SelectedValue; switch (check_in_type) { case Constants.CHECK_IN_TYPE_CODE_UNIDENTIFIED: case Constants.CHECK_IN_TYPE_CODE_LOST: case Constants.CHECK_IN_TYPE_CODE_STOLEN: divStudentLookup.Visible = true; if (!isNull(student_id)) { divStudentInfo.Visible = true; txtStudentLookup.Visible = false; Student_Info.LoadStudentInfo(student_id); LoadAssignmentDG(); } else { txtStudentLookup.Visible = true; txtStudentLookup.txtStudentLookup.Focus(); } break; case Constants.CHECK_IN_TYPE_CODE_STANDARD: case Constants.CHECK_IN_TYPE_CODE_FOUND: case Constants.CHECK_IN_TYPE_CODE_RETURN: divSearchBy.Visible = true; LoadControlByRadioSearchType(); break; } //updatePanelStudentInfo.Update(); }
private void LoadStudentInfo(string studentid) { divStudentInfo.Visible = false; btnSearchTagID.Visible = false; txtTagID.Visible = false; txtSerialNumber.Visible = false; divCurrentlyAssigned.Visible = false; hdnStudentID.Value = ""; Student_Info.Visible = false; if (!isNull(studentid)) { hdnStudentID.Value = studentid; txtTagID.Visible = true; divStudentInfo.Visible = true; btnSearchTagID.Visible = true; divCurrentlyAssigned.Visible = true; Student_Info.Visible = true; txtTagID.txtTagID.Focus(); Student_Info.LoadStudentInfo(studentid); } }