/// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public List <DataTable> AccountGroupViewAllComboFill()
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spAccountGroup.AccountGroupViewAllComboFill();
            }
            catch (Exception ex)
            {
                MessageBox.Show("AG2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Function to fill account group combo
 /// </summary>
 public void GroupUnderComboFill()
 {
     try
     {
         AccountGroupSP spAccountGroup   = new AccountGroupSP();
         DataTable      dtblEmployeeCode = new DataTable();
         dtblEmployeeCode            = spAccountGroup.AccountGroupViewAllComboFill();
         cmbGroupUnder.DataSource    = dtblEmployeeCode;
         cmbGroupUnder.ValueMember   = "accountGroupId";
         cmbGroupUnder.DisplayMember = "accountGroupName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("AG2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Function to fill account group combo for Search
 /// </summary>
 public void GroupUnderSearchComboFill()
 {
     try
     {
         AccountGroupSP spAccountGroup   = new AccountGroupSP();
         DataTable      dtblEmployeeCode = new DataTable();
         dtblEmployeeCode = spAccountGroup.AccountGroupViewAllComboFill();
         DataRow dr = dtblEmployeeCode.NewRow();
         dr[1] = "All";
         dtblEmployeeCode.Rows.InsertAt(dr, 0);
         cmbGroupUnderSearch.DataSource    = dtblEmployeeCode;
         cmbGroupUnderSearch.ValueMember   = "accountGroupId";
         cmbGroupUnderSearch.DisplayMember = "accountGroupName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("AG3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }