Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SRoleID = Convert.ToInt16(Request.QueryString["SRoleID"].ToString());
     Tz888.SQLServerDAL.Sys.SysRoleTab CheckDAL = new Tz888.SQLServerDAL.Sys.SysRoleTab();
     CheckDAL.Check(SRoleID);
     Response.Redirect("Role.aspx");
 }
Esempio n. 2
0
 /// <summary>
 /// 绑定所有角色类型信息到页面
 /// </summary>
 private void BindIndustry()
 {
     // Tz888.BLL.Common.IndustryBLL objIndustry = new Tz888.BLL.Common.IndustryBLL();
     Tz888.SQLServerDAL.Sys.SysRoleTab role = new Tz888.SQLServerDAL.Sys.SysRoleTab();
     this.sltIndustryName_all.DataSource     = role.dvGetAllIndustry();
     this.sltIndustryName_all.DataTextField  = "SRName";
     this.sltIndustryName_all.DataValueField = "SRoleID";
     this.sltIndustryName_all.DataBind();
 }
Esempio n. 3
0
    /// <summary>
    /// 审核角色
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void LinkCheck_Click(object sender, EventArgs e)
    {
        LinkButton link    = sender as LinkButton;
        int        SRoleID = Convert.ToInt32(link.CommandArgument.ToString());

        Tz888.SQLServerDAL.Sys.SysRoleTab CheckDAL = new Tz888.SQLServerDAL.Sys.SysRoleTab();
        CheckDAL.Check(SRoleID);
        GetRoleTable();
        //Response.Redirect("InsertRoleTab.aspx?SRoleID=" + id);
    }
Esempio n. 4
0
    /// <summary>
    /// 用户绑定
    /// </summary>
    /// <param name="tem"></param>
    private void GetRoleTable(string tem)
    {
        // Tz888.BLL.Sys.SysRoleTab bll = new Tz888.BLL.Sys.SysRoleTab();
        //DataSet dt = bll.GetList("");
        Tz888.SQLServerDAL.Sys.SysRoleTab SysDAL = new Tz888.SQLServerDAL.Sys.SysRoleTab();
        DataSet dt = SysDAL.GetUserList(tem);

        GridView1.DataSource = dt;
        GridView1.DataBind();
    }
Esempio n. 5
0
    /// <summary>
    /// 转换角色
    /// </summary>
    /// <param name="SRoleID"></param>
    /// <returns></returns>
    public static string ReturnJiaose(string RoleID)
    {
        string Role = "";

        string[] SRoleID = RoleID.Split(',');
        int      len     = SRoleID.Length;

        Tz888.SQLServerDAL.Sys.SysRoleTab RoleName = new Tz888.SQLServerDAL.Sys.SysRoleTab();

        for (int i = 0; i < len - 1; i++)
        {
            Role += RoleName.GetNameByID(SRoleID[i].ToString()) + " ";
        }
        return(Role);
    }