private string getTree()
    {
        DataSet ds = UserInfoManage.getTree(GetUserInfo().companyId.ToString());

        if (ds == null)
        {
            return("F");
        }
        UserTreeHelper tree = new UserTreeHelper(ds.Tables[0]);
        string         json = tree.GetJson();

        return(json);
    }
Exemple #2
0
    private void InitUserTree()
    {
        DataSet        ds   = UserInfoManage.getTree(GetUserInfo().companyId.ToString());
        string         json = "";
        UserTreeHelper users;

        if (ds != null && ds.Tables[0].Rows.Count > 0)
        {
            users = new UserTreeHelper(ds.Tables[0], true);
            json  = users.GetJson();
        }
        Response.Write(json);
    }
Exemple #3
0
    private string getTree()
    {
        UserInfo user = (UserInfo)Session["user"];
        DataSet  ds   = UserInfoManage.getTree(user.companyId.ToString());

        if (ds == null)
        {
            return("F");
        }
        UserTreeHelper tree = new UserTreeHelper(ds.Tables[0]);
        string         json = tree.GetJson();

        return(json);
    }
Exemple #4
0
    private string InitUserTree()
    {
        DataSet        ds   = UserInfoManage.getTree(GetUserInfo().companyId.ToString());
        string         json = "";
        UserTreeHelper users;

        if (ds != null && ds.Tables[0].Rows.Count > 0)
        {
            users = new UserTreeHelper(ds.Tables[0]);
            json  = users.GetJson();
        }

        return(json);
    }