private void btnSearch_Tafsili_Click(object sender, EventArgs e)
 {
     try
     {
         frmAllAccount f = new frmAllAccount();
         f.op = "All";
         f.Fill_All_Account();
         f.ShowDialog();
         txtTafsili.Text = f.Acc_Code;
     }
     catch
     {
     }
 }
예제 #2
0
 private void btnSearchAcc_Click(object sender, EventArgs e)
 {
     try
     {
         frmAllAccount f = new frmAllAccount();
         f.op = "Rael_And_Right_Acc";
         f.Fill_Real_And_Right_Account();
         f.ShowDialog();
         txtCode.Text = f.Acc_Code;
     }
     catch
     {
     }
 }
예제 #3
0
 private void btnSearchAcc_Click(object sender, EventArgs e)
 {
     try
     {
         frmAllAccount f = new frmAllAccount();
         f.op = "Loan";
         f.Fill_Loan();
         f.ShowDialog();
         txtCode.Text = f.Acc_Code;
     }
     catch
     {
         txtCode.Text = "";
     }
 }
 private void txtTafsili_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 13)
     {
         if (txtTafsili_Name.Text != "")
         {
             btnFinish.Focus();
         }
         else
         {
             frmAllAccount f = new frmAllAccount();
             f.op = "All";
             f.Fill_All_Account();
             f.txtSearch.Text = txtTafsili.Text;
             f.ShowDialog();
             txtCode.Text = f.Acc_Code;
         }
     }
 }
 private void txtMaqsad_Code_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 13)
     {
         if (txtMaqsad_Name.Text != "")
         {
             SendKeys.Send("{tab}");
         }
         else
         {
             frmAllAccount f = new frmAllAccount();
             f.op = "All";
             f.Fill_All_Account();
             f.txtSearch.Text = txtMaqsad_Code.Text;
             f.ShowDialog();
             txtMaqsad_Code.Text = f.Acc_Code;
         }
     }
 }
 private void txtAcc_Code_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 13)
     {
         if (txtAcc_Name.Text != "")
         {
             txtDescription.Focus();
         }
         else
         {
             frmAllAccount f = new frmAllAccount();
             f.Fill_All_Account();
             f.op             = "All";
             f.txtSearch.Text = txtAcc_Code.Text;
             f.ShowDialog();
             txtAcc_Code.Text = f.Acc_Code;
         }
     }
 }
 private void txtCode_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 13)
     {
         if (txtName.Text != "")
         {
             txtDate.Focus();
         }
         else
         {
             frmAllAccount f = new frmAllAccount();
             f.op = "Rael_And_Right_Acc";
             f.Fill_Real_And_Right_Account();
             f.txtSearch.Text = txtCode.Text;
             f.ShowDialog();
             txtCode.Text = f.Acc_Code;
         }
     }
 }