protected void btnAddComments_Click(object sender, EventArgs e) { try { BCommon objBCommon = new BCommon(); BECommon objBECommon = new BECommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Session[BaseClass.EnumPageSessions.TransID].ToString())); objBECommon.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID].ToString()); objBECommon.StrComments = txtComments.Text.ToString(); //objBECommon.StrddlComments = getSelectFlag().ToString(); objBECommon.StrddlComments = ddlFlags.SelectedValue.ToString(); objBECommon.intAlertID = Convert.ToInt32(ddlAlerts.SelectedValue.ToString()); objBCommon.BAddComments(objBECommon); objBECommon = null; objBECommon = null; txtComments.Text = string.Empty; gvComments.Rebind(); ddlFlags.SelectedValue = "-1"; // txtComments.Visible = false; ddlAlerts.Items.Clear(); } catch (Exception Ex) { throw Ex; } }
public string GetLockTransID() { //if (btnClsoeExam.Visible) return(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()) + "#" + System.Configuration.ConfigurationManager.AppSettings["LockDownPrefix"].ToString()); //else // return ""; }
protected void Page_Load(object sender, EventArgs e) { this.Page.Title = EnumPageTitles.APPNAME + EnumPageTitles.STUDENT_SCHEDULE; ((LinkButton)this.Page.Master.FindControl("lnkSchedule")).CssClass = "main_menu_active"; if (!IsPostBack) { if (Request.QueryString["ExamDate"] != null) { calSchedular.SelectedDate = Convert.ToDateTime(AppSecurity.Decrypt(Request.QueryString["ExamDate"].ToString()).Replace("EC", "/")); ExamScheduler.SelectedDate = Convert.ToDateTime(AppSecurity.Decrypt(Request.QueryString["ExamDate"].ToString()).Replace("EC", "/")); } else { calSchedular.SelectedDate = DateTime.Now; } Session["update"] = Server.UrlEncode(System.DateTime.Now.ToString()); //calSchedular.SelectedDate = DateTime.Now; this.BindCourse(); this.Bind_GetBookedExamSlots(); } else { this.Bind_GetBookedExamSlots(); } }
protected void BindDetails() { try { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); if (Request.QueryString["TransID"] != null) { ViewState[BaseClass.EnumPageSessions.TransID] = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBECommon.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID]); objBCommon.BGetStudentExamDetails(objBECommon); if (objBECommon.DsResult != null && objBECommon.DsResult.Tables[0].Rows.Count > 0) { lblTransactionID.Text = AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()); lblStudentName.Text = objBECommon.DsResult.Tables[0].Rows[0]["Name"].ToString(); lblCourseName.Text = objBECommon.DsResult.Tables[0].Rows[0]["CourseName"].ToString(); lblExamName.Text = objBECommon.DsResult.Tables[0].Rows[0]["ExamName"].ToString(); lblDAte.Text = objBECommon.DsResult.Tables[0].Rows[0]["ExamDate"].ToString(); lblSlot.Text = objBECommon.DsResult.Tables[0].Rows[0]["TimeDuration"].ToString(); } } } catch (Exception ex) { throw ex; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { bindGOTOMeetingLink(); this.BindAlerts(); //lblfileupload.Visible = false; lblError.Visible = false; lblfileupload.Text = string.Empty; //if (Request.QueryString.ToString() != "") //{ // SessionID = AppSecurity.Decrypt(Request.QueryString["OTSessionID"]); //} //else //{ // //Show errors if any //} //OpenTokSDK opentok = new OpenTokSDK(); //TokenID = opentok.GenerateToken(SessionID); lblTools.Visible = false; imgCalc.Visible = false; imgStickyNotes.Visible = false; setExamDetails(); this.BindStudentIdentity(); this.GetUploadedFileDetails(Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()))); } ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page); scriptManager.RegisterPostBackControl(this.lnlFile); scriptManager.RegisterPostBackControl(this.lnkProviderFile); }
protected void btnnext_Click(object sender, EventArgs e) { if (Request.QueryString["TransID"] != null) { Int64 TransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntTransID = TransID; objBEStudent.IntFlag = Convert.ToInt32(frompage); objBStudent.BGetAuthenticationOverrideStatus(objBEStudent); if (objBEStudent.DtResult.Rows.Count > 0 && objBEStudent.DtResult.Rows[0][0].ToString() != "") { if (TYPE == "1") { if (objBEStudent.DtResult.Rows[0][0].ToString() == "AGREE") { Response.Redirect("StudentAgreements.aspx?TransID=" + Request.QueryString["TransID"].ToString() + "&&ExamiKEY=" + AppSecurity.Encrypt("1"), false); } else if (objBEStudent.DtResult.Rows[0][0].ToString() == "KEY") { Response.Redirect("studentexamiKEY.aspx?TransID=" + Request.QueryString["TransID"].ToString() + "&&ExamiKEY=" + AppSecurity.Encrypt("1"), false); } } else { if (objBEStudent.DtResult.Rows[0][0].ToString() == "AGREE") { Response.Redirect("StudentAgreements.aspx?TransID=" + Request.QueryString["TransID"].ToString() + "&&ExamiKEY=" + AppSecurity.Encrypt("0"), false); } } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // txtFromDate.SelectedDate = DateTime.Now; DateTime firstDate = GetNextFirstDateOfWeek(DateTime.Now, DayOfWeek.Monday); DateTime lastDate = GetNextLastDateOfWeek(DateTime.Now, DayOfWeek.Sunday); //lblfirstdate.Text = firstDate.ToString("MM/dd/yyyy"); //lblLastDate.Text = lastDate.ToString("MM/dd/yyyy"); //if any dates in tabs selected the same dates should be displayed in all the tabs if (Request.QueryString["fdate"] != null && Request.QueryString["ldate"] != null) { lblfirstdate.Text = AppSecurity.Decrypt(Request.QueryString["fdate"].ToString()); lblLastDate.Text = AppSecurity.Decrypt(Request.QueryString["ldate"].ToString()); txtFromDate.SelectedDate = Convert.ToDateTime(lblfirstdate.Text); } else { txtFromDate.SelectedDate = firstDate; lblfirstdate.Text = firstDate.ToString("MM/dd/yyyy"); lblLastDate.Text = lastDate.ToString("MM/dd/yyyy"); } PopulatedGrids(); } }
protected void btnAddComments_Click(object sender, EventArgs e) { if (Page.IsValid) { try { BCommon objBCommon = new BCommon(); BECommon objBECommon = new BECommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBECommon.IntUserID = Convert.ToInt32(Session[EnumPageSessions.USERID].ToString()); objBECommon.StrComments = txtComments.Text.ToString(); objBECommon.StrddlComments = getSelectFlag().ToString(); objBECommon.intAlertID = Convert.ToInt32(ddlAlerts.SelectedValue.ToString()); objBCommon.BAddComments(objBECommon); objBECommon = null; objBCommon = null; txtComments.Text = string.Empty; gvComments.Rebind(); } catch (Exception Ex) { throw Ex; } } }
protected void gvComments_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { DataTable objDT = (DataTable)ViewState["ALERTS"]; if (e.CommandName == "DELETE") { for (int i = 0; i < objDT.Rows.Count; i++) { if (e.CommandArgument.ToString() == objDT.Rows[i][0].ToString()) { objDT.Rows.RemoveAt(i); objDT.AcceptChanges(); BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBECommon.intTypeID = 0; objBECommon.intCommentID = Convert.ToInt32(e.CommandArgument); objBECommon.StrComments = string.Empty; objBCommon.BDeleteUpdateAlerts(objBECommon); } ViewState["ALERTS"] = objDT; gvComments.DataSource = objDT; gvComments.DataBind(); } } }
protected void GetStudentDetails() { BECourseAdmin objBECourseAdmin = new BECourseAdmin(); BCourseAdmin objBCourseAdmin = new BCourseAdmin(); objBECourseAdmin.IntStudentID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["StudentID"].ToString())); objBCourseAdmin.BGetStudentDetails(objBECourseAdmin); if (objBECourseAdmin.DtResult != null) { if (objBECourseAdmin.DtResult.Rows.Count > 0) { lblstudentfirstname.Text = objBECourseAdmin.DtResult.Rows[0]["studentName"].ToString(); lblEmail.Text = objBECourseAdmin.DtResult.Rows[0]["EmailAddress"].ToString(); lblPhoneNumber.Text = CommonFunctions.CheckNullValue(objBECourseAdmin.DtResult.Rows[0]["PhoneNumber"].ToString()); lblTimeZone.Text = objBECourseAdmin.DtResult.Rows[0]["TimeZone"].ToString(); lblSpecialNeeds.Text = objBECourseAdmin.DtResult.Rows[0]["SpecialNeeds"].ToString(); string imgpath = objBECourseAdmin.DtResult.Rows[0]["PhotoIdentity"].ToString(); if (imgpath != "") { //imgstudent.ImageUrl = "~/Student/Student_Identity/" + imgpath.Substring(3).ToString(); imgstudent.ImageUrl = new AppSecurity().ImageToBase64(imgpath.Substring(3).ToString()); } if (objBECourseAdmin.DtResult.Rows[0]["Comments"] != DBNull.Value && objBECourseAdmin.DtResult.Rows[0]["Comments"].ToString() != string.Empty) { lblComments.Text = objBECourseAdmin.DtResult.Rows[0]["Comments"].ToString(); } else { lblComments.Text = "N/A"; } } } }
protected void Page_Load(object sender, EventArgs e) { try { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); if (Request.QueryString["TransID"] != null) { this.Page.Title = EnumPageTitles.APPNAME + EnumPageTitles.STUDENT_SCHEDULEDetails; //((LinkButton)this.Page.Master.FindControl("lnkReschedule")).CssClass = "main_menu_active"; objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBECommon.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID]); objBCommon.BGetStudentExamDetails(objBECommon); if (objBECommon.DsResult != null) { if (objBECommon.DsResult.Tables[0].Rows.Count > 0) { lblTransactionID.Text = AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()); lblStudentName.Text = objBECommon.DsResult.Tables[0].Rows[0]["Name"].ToString(); lblCourseName.Text = objBECommon.DsResult.Tables[0].Rows[0]["CourseName"].ToString(); lblExamName.Text = objBECommon.DsResult.Tables[0].Rows[0]["ExamName"].ToString(); lblDAte.Text = objBECommon.DsResult.Tables[0].Rows[0]["ExamDate"].ToString(); lblSlot.Text = objBECommon.DsResult.Tables[0].Rows[0]["TimeDuration"].ToString(); //lblHead.Text = "Exam Cancellation Request"; } } lblInfo.Text = "<img src='../Images/yes.png'align='middle'/> <font color='#00C000'>" + "Appointment " + Resources.ResMessages.AppointmentDeleteSuccess + "</font>"; } } catch (Exception) { //ErrorLog.WriteError(Ex); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int courseId = 0, examId = 0; string appStatus = string.Empty; if (Request.QueryString["cid"] != null) { courseId = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["cid"].ToString())); } if (Request.QueryString["eid"] != null) { examId = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["eid"].ToString())); } if (Request.QueryString["sch"] != null) { appStatus = AppSecurity.Decrypt(Request.QueryString["sch"].ToString()); } if (appStatus == "true") { lblAppHeader.Text = "Scheduled Appointments"; } else if (appStatus == "false") { lblAppHeader.Text = "Unscheduled Appointments"; } //here we are loading the grid LoadAppointments(courseId, examId, appStatus); } }
private void GetCourseEditDetails() { try { BEAdmin objBEAdmin = new BEAdmin(); BAdmin objBAdmin = new BAdmin(); objBEAdmin.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID].ToString()); objBEAdmin.IntCourseID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["CourseID"])); objBAdmin.BGetCourseDetails(objBEAdmin); if (objBEAdmin.DtResult != null && objBEAdmin.DtResult.Rows.Count > 0) { TxtCourseID.Text = objBEAdmin.DtResult.Rows[0]["Course_ID"].ToString(); txtCourseName.Text = objBEAdmin.DtResult.Rows[0]["CourseName"].ToString(); //lblProviderName.Text = objBEAdmin.DtResult.Rows[0]["ProviderName"].ToString(); lblProviderName.Text = objBEAdmin.DtResult.Rows[0]["ProviderFirstName"].ToString() + ' ' + objBEAdmin.DtResult.Rows[0]["ProviderLastName"].ToString(); } else { TxtCourseID.Text = string.Empty; txtCourseName.Text = string.Empty; lblProviderName.Text = string.Empty; } } catch (Exception ex) { throw ex; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //if any dates in tabs selected the same dates should be displayed in all the tabs if (Request.QueryString["fdate"] != null && Request.QueryString["ldate"] != null) { rdpFromDate.SelectedDate = Convert.ToDateTime(AppSecurity.Decrypt(Request.QueryString["fdate"].ToString())); rdpToDate.SelectedDate = Convert.ToDateTime(AppSecurity.Decrypt(Request.QueryString["ldate"].ToString())); } else { DateTime firstDate = GetFirstDateOfWeek(DateTime.Now, DayOfWeek.Monday); DateTime lastDate = GetLastDateOfWeek(DateTime.Now, DayOfWeek.Sunday); //for date controls default population with the current date rdpFromDate.SelectedDate = firstDate; rdpToDate.SelectedDate = lastDate; } //for date controls default population with the current date // rdpFromDate.SelectedDate = firstDate; // rdpToDate.SelectedDate = lastDate; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.iTimeZoneID = Convert.ToInt32(Session["TimeZoneID"].ToString()); objBCommon.BGetTimeDelay(objBECommon); dtpstartdate.SelectedDate = DateTime.UtcNow.AddMinutes(objBECommon.IntResult); dtpEnddate.SelectedDate = DateTime.UtcNow.AddMinutes(objBECommon.IntResult); } this.Page.Title = EnumPageTitles.APPNAME + EnumPageTitles.EXAMPROVIDER_EXAMPROVIDERREPORTS; ((LinkButton)this.Page.Master.FindControl("lnkReports")).CssClass = "main_menu_active"; if (Request.QueryString != null && Request.QueryString.ToString() != null) { int intReportID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["ReportID"].ToString())); int intTypeID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["ReportTypeID"].ToString())); if (intTypeID == 1) { trSearchCriteria1.Visible = true; // trSearchCriteria2.Visible = false; } else { trSearchCriteria1.Visible = false; // trSearchCriteria2.Visible = true; } } }
protected void btnContinue_Click(object sender, EventArgs e) { try { BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBStudent.BGetIdentityValidation(objBEStudent); if (objBEStudent.StudentIdentity) { Response.Redirect("ValidateStudent.aspx?" + Request.QueryString.ToString(), false); } else { lblError.Visible = true; } } catch (Exception) { //ErrorLog.WriteError(Ex); } }
public string GetTransID() { //if (btnClsoeExam.Visible) return(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); //else // return ""; }
protected void GetStudentDetails() { BEProvider objBEProvider = new BEProvider(); BProvider objBProvider = new BProvider(); objBEProvider.IntStudentID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["StudentID"].ToString())); objBProvider.BGetStudentDetails(objBEProvider); if (objBEProvider.DtResult != null) { if (objBEProvider.DtResult.Rows.Count > 0) { lblstudentfirstname.Text = objBEProvider.DtResult.Rows[0]["studentName"].ToString(); lblEmail.Text = objBEProvider.DtResult.Rows[0]["EmailAddress"].ToString(); lblPhoneNumber.Text = CommonFunctions.CheckNullValue(objBEProvider.DtResult.Rows[0]["PhoneNumber"].ToString()); lblTimeZone.Text = objBEProvider.DtResult.Rows[0]["TimeZone"].ToString(); lblSpecialNeeds.Text = objBEProvider.DtResult.Rows[0]["SpecialNeeds"].ToString(); string imgpath = objBEProvider.DtResult.Rows[0]["PhotoIdentity"].ToString(); if (imgpath != "") { //imgstudent.ImageUrl = "~/Student/Student_Identity/" + imgpath.Substring(3).ToString(); imgstudent.ImageUrl = new AppSecurity().ImageToBase64(imgpath.Substring(3).ToString()); } //if (System.IO.File.Exists(Server.MapPath("../Uploads/StudentIdentity/") + imgpath.ToString())) // imgstudent.ImageUrl = "../Uploads/StudentIdentity/" + imgpath.ToString(); if (objBEProvider.DtResult.Rows[0]["Comments"] != DBNull.Value && objBEProvider.DtResult.Rows[0]["Comments"].ToString() != string.Empty) { lblComments.Text = objBEProvider.DtResult.Rows[0]["Comments"].ToString(); } else { lblComments.Text = "N/A"; } } } }
public string GetIsexamiFACEDownLoad() { BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBStudent.BCheckIsexamiFACEDownLoad(objBEStudent); return(objBEStudent.DtResult.Rows[0]["IsexamiFACE"].ToString());; }
protected void lnklaunch_Click(object sender, EventArgs e) { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Session[BaseClass.EnumPageSessions.TransID].ToString())); objBECommon.IntstatusFlag = 3; objBCommon.BReenableBeginExamstatus(objBECommon); }
protected void btnSubmit_Click(object sender, EventArgs e) { BStudent objBStudent = new BStudent(); BEStudent objBEStudent = new BEStudent(); objBEStudent.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID].ToString()); objBEStudent.strAnswer1 = txtAnswer1.Text; objBEStudent.strQuestion1 = hfQid.Value; if (Request.QueryString["TransID"] != null) { objBEStudent.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); } else { Response.Redirect("StartAnExam.aspx"); } // objBEStudent.IntTransID = Convert.ToInt32(HfTransID.Value); objBStudent.BAARandomSecurityQuestionsValidation(objBEStudent); if (objBEStudent.IntResult == 1) { objBEStudent.IntType = 8; objBStudent.BUpdatePLTime(objBEStudent); Response.Redirect("examiKEY.aspx?TransID=" + Request.QueryString["TransID"].ToString(), false); } else { var arr = objBEStudent.StrResult.Split('|'); var x = arr[0]; if (x == "nextQuestion") { hfQid.Value = arr[1].ToString(); lblQuestion1.Text = arr[2].ToString(); lblFailed.Text = ""; txtAnswer1.Text = ""; txtAnswer1.Focus(); } else if (x == "Locked") { Response.Redirect("AuthenticationFailed.aspx?TransID=" + Request.QueryString["TransID"].ToString(), false); } else { lblFailed.Text = x.ToString(); txtAnswer1.Text = ""; txtAnswer1.Focus(); } // lblFailed.Text = objBEStudent.StrResult.ToString(); } }
protected void btnReject_Click(object sender, EventArgs e) { try { if (Request.QueryString["type"].ToString() == "0") { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBCommon.BGetExamProviderDetails(objBECommon); if (objBECommon.DsResult.Tables[0].Rows.Count > 0) { // objBECommon.StrEmailID = objBECommon.DsResult.Tables[0].Rows[0]["StudentEmail"].ToString(); objBECommon.IntUserID = Convert.ToInt32(objBECommon.DsResult.Tables[0].Rows[0]["UserID"]); objBECommon.IntProviderID = Convert.ToInt32(objBECommon.DsResult.Tables[0].Rows[0]["ProviderUserID"]); // objBECommon.strProviderEmailID = objBECommon.DsResult.Tables[0].Rows[0]["ExamProviderEmail"].ToString(); } Approve_Transaction(0); try { //EmailMsg obj = new EmailMsg(); //obj.ExamApprovedStudent(Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())), "Rejected"); //obj.ExamApprovedProvider(Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())), "Rejected"); //obj = null; BEMail objBEMail = new BEMail(); BMail objBMail = new BMail(); objBEMail.IntTransID = objBECommon.IntTransID; string FYI = "FYI"; string mail = "Mail"; if (mail == "Mail") { //objBEMail.IntUserID = objBECommon.IntUserID; //objBEMail.StrTemplateName = BaseClass.EnumEmails.ExamRejectedbyAuditor.ToString(); //objBMail.BSendEmail(objBEMail); } if (FYI == "FYI") { //objBEMail.IntUserID = objBECommon.IntProviderID; //objBEMail.StrTemplateName = BaseClass.EnumEmails.ExamRejectedbyAuditorFYI.ToString(); //objBMail.BSendEmail(objBEMail); } } catch (Exception ex) { throw ex; } } } catch (Exception ex) { throw ex; } }
public string GetExamDetailsByTransID() { BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBStudent.BGetExamDetailsByTransID(objBEStudent); return(objBEStudent.DtResult.Rows[0]["LockDownBrowser"].ToString()); }
protected void SetFlags(string strType, int intValue) { BEProctor objBEProctor = new BEProctor(); BProctor objBProctor = new BProctor(); objBEProctor.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBEProctor.strStatus = strType; objBEProctor.IntResult = intValue; objBProctor.BSetTransactionFlags(objBEProctor); }
protected void lnkscdule_Click(object sender, EventArgs e) { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Session[BaseClass.EnumPageSessions.TransID].ToString())); objBECommon.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID].ToString()); objBCommon.BReenableschedulestatus(objBECommon); gvexamdetails.Rebind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["SCHEDULEDETAILS"] != null) { string[] str = Session["SCHEDULEDETAILS"].ToString().Split('^'); this.GetExamDetails(Convert.ToInt32(AppSecurity.Decrypt(str[0].ToString())), str[1].ToString()); } } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["examiKEY"] != null) { TYPE = AppSecurity.Decrypt(Request.QueryString["examiKEY"].ToString()); } if (Request.QueryString["From"] != null) { frompage = AppSecurity.Decrypt(Request.QueryString["From"].ToString()); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GetEmailID(); if (Request.QueryString["TransID"] != null) { ViewState["TransID"] = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); } } }
protected void btnSubmit_Click(object sender, EventArgs e) { Int64 TransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntTransID = TransID;//Convert.ToInt32(AppSecurity.Decrypt(Request.Form["TransID"].ToString())); objBEStudent.IntstatusFlag = 2; objBStudent.BUpdateExamStatus(objBEStudent); Response.Redirect("BeginExamProcess.aspx?TransID=" + Request.QueryString["TransID"].ToString() + "&&ExamiKEY=" + Request.QueryString["examiKEY"].ToString()); }
//protected void gvStudentNotes_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) //{ // try // { // this.GetComments(); // } // catch (Exception Ex) // { // throw Ex; // } //} //protected void GetComments() //{ // BEProctor objBEProctor = new BEProctor(); // BProctor objBProctor = new BProctor(); // objBEProctor.IntExamID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["ExamID"].ToString())); // objBEProctor.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID]); // objBProctor.BGetExamDetails(objBEProctor); // if (objBEProctor.DsResult != null) // { // if (objBEProctor.DsResult.Tables[0].Rows.Count > 0) // { // if (objBEProctor.DsResult.Tables[1].Rows.Count > 0) // { // gvStudentNotes.Visible = true; // gvStudentNotes.DataSource = objBEProctor.DsResult.Tables[1]; // } // else // { // // gvStudentNotes.DataSource = new object[] { }; // gvStudentNotes.Visible = false; // } // } // } //} protected void lnkFile_Click(object sender, EventArgs e) { BEProctor objBEProctor = new BEProctor(); BProctor objBProctor = new BProctor(); objBEProctor.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID]); objBEProctor.IntExamID1 = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBProctor.BGetExamDetails(objBEProctor); if (objBEProctor.DsResult.Tables[0].Rows.Count > 0) { if (objBEProctor.DsResult.Tables[0].Rows[0]["StoredFileName"] != null && objBEProctor.DsResult.Tables[0].Rows[0]["StoredFileName"].ToString() != "") { string UploadedFile = objBEProctor.DsResult.Tables[0].Rows[0]["StoredFileName"].ToString(); string MapPath = System.Web.HttpContext.Current.Server.MapPath("../Provider/Provider_Uploads"); string fullPath = MapPath + '\\' + UploadedFile; FileInfo fi = new FileInfo(fullPath); if (fi.Exists) { long sz = fi.Length; Response.ClearContent(); Response.ContentType = MimeType(Path.GetExtension(fullPath)); Response.AddHeader("Content-Disposition", string.Format("attachment; filename = {0}", System.IO.Path.GetFileName(fullPath))); Response.AddHeader("Content-Length", sz.ToString("F0")); Response.TransmitFile(fullPath); Response.End(); } else { //ScriptManager.RegisterStartupScript(this, this.GetType(), "NotSaved", "alert('File doesnot exist');", true); Page.ClientScript.RegisterStartupScript(GetType(), "MyScript", "alert('File doesnot exist');", true); } } else { lnkProviderFile.Visible = false; lblError.Visible = true; lblError.Text = "N/A"; } } }