コード例 #1
0
 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));
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
ファイル: Voucher.ascx.cs プロジェクト: samnuriu13/APIXERP
 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);
 }
コード例 #4
0
 private void ClearControls()
 {
     try
     {
         FormUtil.ClearForm(this, FormClearOptions.ClearAll, false);
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
コード例 #5
0
 protected void btnClear_Click(object sender, EventArgs e)
 {
     try
     {
         FormUtil.ClearForm(this, FormClearOptions.ClearAll, false);
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
コード例 #6
0
        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>();
        }
コード例 #7
0
 private void ClearControls()
 {
     try
     {
         //ddlLVPolicyId.SelectedIndex = 0;
         FormUtil.ClearForm(this, FormClearOptions.ClearAll, false);
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
コード例 #8
0
 private void ClearControls()
 {
     try
     {
         FormUtil.ClearForm(this, FormClearOptions.ClearAll, true);
         LoanProcessList = new CustomList <LoanProcess>();
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
コード例 #9
0
 private void ClearControls()
 {
     try
     {
         FormUtil.ClearForm(this, FormClearOptions.ClearAll, true);
         grdSalaryRuleList = new CustomList <SalaryRuleBackup>();
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
コード例 #10
0
 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);
     }
 }
コード例 #11
0
 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);
     }
 }
コード例 #12
0
 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;
     }
 }
コード例 #13
0
 private void clearForm()
 {
     _SelectedCOAKey = 0;
     FormUtil.ClearForm(this, FormClearOptions.ClearAll, false);
 }
コード例 #14
0
 protected void btnNew_Click(object sender, ImageClickEventArgs e)
 {
     FormUtil.ClearForm(this, FormClearOptions.ClearAll, true);
     InitializeSession();
 }
コード例 #15
0
 protected void btnClear_Click(object sender, EventArgs e)
 {
     FormUtil.ClearForm(this, FormClearOptions.ClearAll, true);
     btnNew_Click(null, null);
 }