/// <summary>
 /// Function to fill the accountgroup combo box
 /// </summary>
 public void AccountGroupComboFill()
 {
     try
     {
         AccountGroupSP spAccountGroup = new AccountGroupSP();
         DataTable dtblAccountGroup = new DataTable();
         dtblAccountGroup = spAccountGroup.AccountGroupViewAllComboFillForAccountLedger();
         DataRow dr = dtblAccountGroup.NewRow();
         dr["accountGroupName"] = "All";
         dr["accountGroupId"] = -1;
         dtblAccountGroup.Rows.InsertAt(dr, 0);
         cmbAccountGroup.DataSource = dtblAccountGroup;
         cmbAccountGroup.ValueMember = "accountGroupId";
         cmbAccountGroup.DisplayMember = "accountGroupName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("ALREP2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to fill the accountgroup combo box
 /// </summary>
 public void AccountGroupComboFill()
 {
     try
     {
         AccountGroupSP spAccountGroup   = new AccountGroupSP();
         DataTable      dtblAccountGroup = new DataTable();
         dtblAccountGroup = spAccountGroup.AccountGroupViewAllComboFillForAccountLedger();
         DataRow dr = dtblAccountGroup.NewRow();
         dr["accountGroupName"] = "All";
         dr["accountGroupId"]   = -1;
         dtblAccountGroup.Rows.InsertAt(dr, 0);
         cmbAccountGroup.DataSource    = dtblAccountGroup;
         cmbAccountGroup.ValueMember   = "accountGroupId";
         cmbAccountGroup.DisplayMember = "accountGroupName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("ALREP2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Function to fill the accountgroup combo box
 /// </summary>
 public void AccountGroupComboFill()
 {
     try
     {
         AccountGroupSP spAccountGroup   = new AccountGroupSP();
         DataTable      dtblAccountGroup = new DataTable();
         dtblAccountGroup = spAccountGroup.AccountGroupViewAllComboFillForAccountLedger();
         DataRow dr = dtblAccountGroup.NewRow();
         dr["accountGroupName"] = "All";
         dr["accountGroupId"]   = -1;
         dtblAccountGroup.Rows.InsertAt(dr, 0);
         cmbAccountGroup.DataSource    = dtblAccountGroup;
         cmbAccountGroup.ValueMember   = "accountGroupId";
         cmbAccountGroup.DisplayMember = "accountGroupName";
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "ALREP2:" + ex.Message;
     }
 }