예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        gdvPriData.Style.Add("display", "none");
        gdvUserGroupData.Style.Add("display", "none");

        Power.PowerService services = new Power.PowerService();
        gdvPriData.DataSource = services.Get_GroupList("");
        gdvPriData.DataBind();

        txtAccount.Value = strAccount;

        gdvUserGroupData.DataSource = services.UserGroup_GetList("GROUP_ID,GROUP_NAME,USER_ID", "USER_ID is null or USER_ID='' or USER_ID='" + strAccount + "'");
        gdvUserGroupData.DataBind();
    }
예제 #2
0
 public void LoadPriv()
 {
     System.Text.StringBuilder strBuilder = new System.Text.StringBuilder();
     Power.PowerService services = new Power.PowerService();
     DataSet ds = services.Get_GroupList("");
     if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
     {
         foreach (DataRow dr in ds.Tables[0].Rows)
         {
             strBuilder.Append("<tr class='TableControl'>");
             string strID=dr["ID"].ToString();
             strBuilder.Append("<td align='center' class='menulines' id='" + strID + "'  onclick=javascript:click_priv('" + strID + "') style=cursor:hand>" + dr["GroupName"].ToString());
             strBuilder.Append("</td></tr>");
         }
         Response.Write(strBuilder.ToString());
     }
 }