Пример #1
0
 /// <summary>
 /// Function to fill the grid
 /// </summary>
 public void Gridfill()
 {
     try
     {
         DataTable dtbl   = new DataTable();
         RoleSP    spRole = new RoleSP();
         dtbl = spRole.RoleViewGridFill();
         dgvRole.DataSource = dtbl;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #2
0
 /// <summary>
 /// Function to fill the grid
 /// </summary>
 public void Gridfill()
 {
     try
     {
         DataTable dtbl   = new DataTable();
         RoleSP    spRole = new RoleSP();
         dtbl = spRole.RoleViewGridFill();
         dgvRole.DataSource = dtbl;
     }
     catch (Exception ex)
     {
         MessageBox.Show("RL:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Пример #3
0
        /// <summary>
        /// Function to get all role details
        /// </summary>
        /// <returns></returns>
        public List <DataTable> RoleViewGridFill()
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spRole.RoleViewGridFill();
            }
            catch (Exception ex)
            {
                MessageBox.Show("RL2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }