예제 #1
0
 private async void btnTafsilSearch_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new frmSelectTafsil(false);
         if (frm.ShowDialog(this) == DialogResult.OK)
         {
             await SetTafilAsync(frm.SelectedGuid);
         }
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
     }
 }
예제 #2
0
 private void btnRegion_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new frmSelectTafsil(HesabType.Bank);
         if (frm.ShowDialog(this) != DialogResult.OK)
         {
             return;
         }
         _bankGuid        = frm.SelectedGuid;
         txtBankName.Text = TafsilBussines.Get(_bankGuid)?.Name;
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
     }
 }
예제 #3
0
 private void SetTafsil()
 {
     try
     {
         var frm = new frmSelectTafsil();
         if (frm.ShowDialog(this) == DialogResult.OK)
         {
             var tafsil = TafsilBussines.Get(frm.SelectedGuid);
             if (tafsil != null)
             {
                 txtTafsilName.Text = tafsil.Name;
                 _tafsilGuid        = tafsil.Guid;
             }
         }
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
     }
 }
예제 #4
0
 private void btnSearchTafsil2_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new frmSelectTafsil();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             var tafsil = TafsilBussines.Get(frm.SelectedGuid);
             if (tafsil == null)
             {
                 return;
             }
             txtCode2.Value = tafsil.Code.ParseToDecimal();
         }
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
     }
 }