コード例 #1
0
ファイル: frmNewEmployee.cs プロジェクト: dreamzedu/csms
 private void txtLoanDeduction_TextChanged(object sender, EventArgs e)
 {
     if (txtLoanDeduction.Text == "")
     {
         txtLoanDeduction.Text = "0";
         txtLoanDeduction.SelectAll();
     }
     ControlValidation.CheckNumericValueOnly1(txtLoanDeduction);
 }
コード例 #2
0
ファイル: frmNewEmployee.cs プロジェクト: dreamzedu/csms
 private void txtSpcIncentive_TextChanged(object sender, EventArgs e)
 {
     if (txtSpcIncentive.Text == "")
     {
         txtSpcIncentive.Text = "0";
         txtSpcIncentive.SelectAll();
     }
     ControlValidation.CheckNumericValueOnly1(txtSpcIncentive);
 }
コード例 #3
0
ファイル: frmNewEmployee.cs プロジェクト: dreamzedu/csms
 private void txtESICPer_TextChanged(object sender, EventArgs e)
 {
     if (txtpfPer.Text == "")
     {
         txtpfPer.Text = "0";
         txtpfPer.SelectAll();
     }
     if (ControlValidation.CheckNumericValueOnly1(txtpfPer))
     {
         calculateDA();
     }
 }
コード例 #4
0
ファイル: frmNewEmployee.cs プロジェクト: dreamzedu/csms
 private void txtda_TextChanged(object sender, EventArgs e)
 {
     // ControlValidation.CheckNumericValueOnly1(txtda );
     //calculateDA();
     if (txtda.Text == "")
     {
         txtda.Text = "0";
         txtda.SelectAll();
     }
     if (ControlValidation.CheckNumericValueOnly1(txtda))
     {
         calculateDA();
     }
 }
コード例 #5
0
ファイル: frmNewEmployee.cs プロジェクト: dreamzedu/csms
 private void txtEmpName_Leave(object sender, EventArgs e)
 {
     ControlValidation.checkEmptyTextBox(txtEmpName);
     txtEmpName.Text = myTextInfo.ToTitleCase(txtEmpName.Text);
 }
コード例 #6
0
ファイル: frmNewEmployee.cs プロジェクト: dreamzedu/csms
 private void txtDesignation_TextChanged(object sender, EventArgs e)
 {
     ControlValidation.checkEmptyTextBox(txtDesignation);
 }
コード例 #7
0
ファイル: frmNewEmployee.cs プロジェクト: dreamzedu/csms
 private void txtAllowedEL_TextChanged(object sender, EventArgs e)
 {
     ControlValidation.CheckNumericValueOnly1(txtAllowedEL);
 }
コード例 #8
0
ファイル: frmNewEmployee.cs プロジェクト: dreamzedu/csms
 private void txtcontactno_Validating(object sender, CancelEventArgs e)
 {
     ControlValidation.CheckMobileNumber(txtcontactno, e);
 }
コード例 #9
0
ファイル: frmNewEmployee.cs プロジェクト: dreamzedu/csms
 private void txtFatherName_Validating(object sender, CancelEventArgs e)
 {
     ControlValidation.CheckalphasOnly(txtFatherName, e);
     txtFatherName.Text = myTextInfo.ToTitleCase(txtFatherName.Text);
 }
コード例 #10
0
ファイル: frmNewEmployee.cs プロジェクト: dreamzedu/csms
 private void txtEmpName_Validating(object sender, CancelEventArgs e)
 {
     ControlValidation.checkEmptyTextBox(txtEmpName);
 }
コード例 #11
0
ファイル: frmrollnogenerate.cs プロジェクト: dreamzedu/csms
 private void Txtrollno_Validating(object sender, CancelEventArgs e)
 {
     ControlValidation.CheckNumericValueOnly(txtrollno, e);
 }