예제 #1
0
 /// <summary>
 /// Function to fill master grid
 /// </summary>
 public void GridFill()
 {
     try
     {
         DataTable      dtblAccountName = new DataTable();
         AccountGroupSP spAccountGroup  = new AccountGroupSP();
         if (cmbGroupUnderSearch.Text.Trim() == string.Empty)
         {
             cmbGroupUnderSearch.Text = "All";
         }
         dtblAccountName            = spAccountGroup.AccountGroupSearch(txtAccountGroupNameSearch.Text.Trim(), cmbGroupUnderSearch.Text);
         dgvAccountGroup.DataSource = dtblAccountName;
     }
     catch (Exception ex)
     {
         MessageBox.Show("AG1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #2
0
 /// <summary>
 /// Function to fill master grid
 /// </summary>
 public void GridFill()
 {
     try
     {
         DataTable dtblAccountName = new DataTable();
         AccountGroupSP spAccountGroup = new AccountGroupSP();
         if (cmbGroupUnderSearch.Text.Trim() == string.Empty)
         {
             cmbGroupUnderSearch.Text = "All";
         }
         dtblAccountName = spAccountGroup.AccountGroupSearch(txtAccountGroupNameSearch.Text.Trim(), cmbGroupUnderSearch.Text);
         dgvAccountGroup.DataSource = dtblAccountName;
     }
     catch (Exception ex)
     {
         MessageBox.Show("AG1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #3
0
 /// <summary>
 /// Function to fill master grid
 /// </summary>
 public void GridFill()
 {
     try
     {
         DataTable      dtblAccountName = new DataTable();
         AccountGroupSP spAccountGroup  = new AccountGroupSP();
         if (cmbGroupUnderSearch.Text.Trim() == string.Empty)
         {
             cmbGroupUnderSearch.Text = "All";
         }
         dtblAccountName            = spAccountGroup.AccountGroupSearch(txtAccountGroupNameSearch.Text.Trim(), cmbGroupUnderSearch.Text);
         dgvAccountGroup.DataSource = dtblAccountName;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "AG1:" + ex.Message;
     }
 }