Exemplo n.º 1
0
    protected void rcmb_Module_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
    {
        try
        {
            SMHR_FORMS _obj_smhr_privileges = new SMHR_FORMS();
            _obj_smhr_privileges.MODE = 3;
            _obj_smhr_privileges.FORMS_PACKAGE_ID = Convert.ToInt32(rcmb_Package.SelectedItem.Value);
            _obj_smhr_privileges.FORMS_MODULE_ID = Convert.ToInt32(rcmb_Module.SelectedItem.Value);
            DataTable dt = new DataTable();
            dt = BLL.get_FormsbyModuleId(_obj_smhr_privileges);
            if (dt.Rows.Count > 0)
            {
                Rg_Privilege.DataSource = dt;
                Rg_Privilege.DataBind();

            }
            else
            {
                Rg_Privilege.DataSource = null;
                Rg_Privilege.DataBind();
                BLL.ShowMessage(this, "No Records Found");

            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_userPrivileges", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
Exemplo n.º 2
0
 protected void btn_Cancel_Click(object sender, EventArgs e)
 {
     try
     {
         rcmb_Module.SelectedIndex = 0;
         rcmb_Package.SelectedIndex = 0;
         Rg_Privilege.DataSource = null;
         Rg_Privilege.DataBind();
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_userPrivileges", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }