protected void lbtnConfig_Click(object sender, EventArgs e) { GridViewRow gr = (GridViewRow)((LinkButton)sender).NamingContainer; string testingNo = ((Label)gr.FindControl("lblTestingNo")).Text; string examPlaceCode = ((Label)gr.FindControl("lblExamPlaceCode")).Text; hdfExamPlaceCode.Value = examPlaceCode; BindPopUp(testingNo, examPlaceCode); PopUpLicense.Show(); UplPopUp.Update(); }
protected void btnSave_Click(object sender, EventArgs e) { ExamScheduleBiz biz = new ExamScheduleBiz(); try { DTO.ExamSchedule ent = new DTO.ExamSchedule(); ent.TESTING_NO = txtSetTestingNo.Text; ent.EXAM_PLACE_CODE = hdfExamPlaceCode.Value; ent.PRIVILEGE_STATUS = rblSetImport.SelectedValue; var res = biz.UpdateExam(ent); if (!res.IsError) { PopUpLicense.Hide(); this.MasterSite.ModelSuccess.ShowMessageSuccess = SysMessage.SaveSucess; this.MasterSite.ModelSuccess.ShowModalSuccess(); btnSearch_Click(sender, e); //uplConditionDelay.Update(); UplPopUp.Update(); } else { PopUpLicense.Show(); this.MasterSite.ModelError.ShowMessageError = res.ErrorMsg; this.MasterSite.ModelError.ShowModalError(); UplPopUp.Update(); } } catch (Exception ex) { PopUpLicense.Show(); this.MasterSite.ModelError.ShowMessageError = ex.Message; this.MasterSite.ModelError.ShowModalError(); UplPopUp.Update(); } }