示例#1
0
        /// <summary>
        /// Function to get particular values from Role table based on the parameter
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        public RoleInfo RoleView(decimal roleId)
        {
            RoleInfo infoRole = new RoleInfo();

            try
            {
                infoRole = spRole.RoleView(roleId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("RL5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(infoRole);
        }
示例#2
0
 /// <summary>
 /// Function to fill the Controls for updation
 /// </summary>
 public void FillControls()
 {
     try
     {
         RoleInfo infoRole = new RoleInfo();
         RoleSP   spRole   = new RoleSP();
         infoRole          = spRole.RoleView(decRoleId);
         txtRole.Text      = infoRole.Role;
         txtNarration.Text = infoRole.Narration;
     }
     catch (Exception ex)
     {
         MessageBox.Show("RL:6" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
示例#3
0
 /// <summary>
 /// Function to fill the controls
 /// </summary>
 public void FillControls()
 {
     try
     {
         RoleInfo roleinfo = new RoleInfo();
         RoleSP   spRole   = new RoleSP();
         roleinfo          = spRole.RoleView(decRoleId);
         txtRole.Text      = roleinfo.Role;
         txtNarration.Text = roleinfo.Narration;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }