protected void btnDelete_Click(object sender, EventArgs e) { try { if (EmpHistList.Count <= 0) { return; } CustomList <HRM_Eval> HRM_EvalList = EmpHistList; CustomList <HRM_EvalDet> DelatislList = HRM_EvalDettList; foreach (HRM_Eval list in HRM_EvalList) { list.Delete(); } foreach (HRM_EvalDet list in DelatislList) { list.Delete(); } _evalManager.SaveEvalution(ref HRM_EvalList, ref DelatislList); FormUtil.ClearForm(this, FormClearOptions.ClearAll, false); ((PageBase)this.Page).SuccessMessage = ASL.STATIC.StaticInfo.DeletedSuccessfullyMsg; } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
public void ClearControls() { try { FormUtil.ClearForm(this, FormClearOptions.ClearAll, true); InitializeSession(); Session["EmpKey"] = null; Image img = (Image)ctrlEmployeeGeneralInfo.FindControl("ctrlPictureUpload").FindControl("imgEmp"); Image signature = (Image)ctrlEmployeeGeneralInfo.FindControl("imgSignature"); img.ImageUrl = null; signature.ImageUrl = null; EmployeeAddressInformation empAddrInfo = ctrlEmployeeAddressInfo as EmployeeAddressInformation; empAddrInfo.InitializeSession(); EmployeeEducationInformation empEdu = ctrlEmployeeEducationInfo as EmployeeEducationInformation; empEdu.InitializeSession(); EmpHistory empHist = ctrlEmpHistory as EmpHistory; empHist.InitializationSession(); EmpAttachmentInfo empFile = ctrlEmpAttachmentInfo as EmpAttachmentInfo; empFile.ClearControl(); ctrlLanguage.InitializationSession(); btnUpdate.Visible = false; btnSave.Visible = true; btnDelete.Visible = false; } catch (Exception ex) { throw (ex); } }
protected void btnNew_Click(object sender, ImageClickEventArgs e) { FormUtil.ClearForm(this, FormClearOptions.ClearAll, true); InitializeSession(); txtVoucherDate_nc.Text = DateTime.Now.ToString(StaticInfo.GridDateFormat); txtChequeDate.Text = DateTime.Now.ToString(StaticInfo.GridDateFormat); }
private void ClearControls() { try { FormUtil.ClearForm(this, FormClearOptions.ClearAll, false); } catch (Exception ex) { throw (ex); } }
protected void btnClear_Click(object sender, EventArgs e) { try { FormUtil.ClearForm(this, FormClearOptions.ClearAll, false); } catch (Exception ex) { throw (ex); } }
protected void btnClear_Click(object sender, EventArgs e) { var page = this.Page as EvalManagement; page.ClearControl(); ClearControl(); EnableControl(false); FormUtil.ClearForm(this, FormClearOptions.ClearAll, false); HRM_EvalDettList = new CustomList <HRM_EvalDet>(); }
private void ClearControls() { try { //ddlLVPolicyId.SelectedIndex = 0; FormUtil.ClearForm(this, FormClearOptions.ClearAll, false); } catch (Exception ex) { throw (ex); } }
private void ClearControls() { try { FormUtil.ClearForm(this, FormClearOptions.ClearAll, true); LoanProcessList = new CustomList <LoanProcess>(); } catch (Exception ex) { throw (ex); } }
private void ClearControls() { try { FormUtil.ClearForm(this, FormClearOptions.ClearAll, true); grdSalaryRuleList = new CustomList <SalaryRuleBackup>(); } catch (Exception ex) { throw (ex); } }
private void ClearControls() { try { FormUtil.ClearForm(this, FormClearOptions.ClearAll, true); CustomList <HRM_Emp> EmpList = new CustomList <HRM_Emp>(); HttpContext.Current.Session["View_EmpList"] = EmpList; InitializeSession(); } catch (Exception ex) { throw (ex); } }
private void ClearControls() { try { FormUtil.ClearForm(this, FormClearOptions.ClearAll, true); InitializeSession(); rdoPersonalAttn.Checked = true; rdoFixed.Checked = true; ddlFixedPerDay.Checked = true; } catch (Exception ex) { throw (ex); } }
protected void btnNew_Click(object sender, ImageClickEventArgs e) { FormUtil.ClearForm(this, FormClearOptions.ClearAll, true); InitializeSession(); //txtVoucher.Text = StaticInfo.NewIDString; txtVoucherDate_nc.Text = DateTime.Now.ToString(StaticInfo.GridDateFormatAcc); if (ddlVoucherType_nc.SelectedItem.Text == "BP" || ddlVoucherType_nc.SelectedItem.Text == "BR") { txtChequeNo.Enabled = true; txtChequeDate.Enabled = true; } else { txtChequeNo.Enabled = false; txtChequeDate.Enabled = false; } }
private void clearForm() { _SelectedCOAKey = 0; FormUtil.ClearForm(this, FormClearOptions.ClearAll, false); }
protected void btnNew_Click(object sender, ImageClickEventArgs e) { FormUtil.ClearForm(this, FormClearOptions.ClearAll, true); InitializeSession(); }
protected void btnClear_Click(object sender, EventArgs e) { FormUtil.ClearForm(this, FormClearOptions.ClearAll, true); btnNew_Click(null, null); }