示例#1
0
    private void InitDepartmentTree()
    {
        string json = "";
        DepartmentTreeHelper departmentTree = new DepartmentTreeHelper();

        json = departmentTree.GetJson();

        Response.Write(json);
    }
示例#2
0
    private string getTree()
    {
        DataSet ds = UserInfoManage.getTree(GetUserInfo().companyId.ToString());

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

        return(json);
    }
示例#3
0
    private string getDepartmentTree()
    {
        UserInfo user = (UserInfo)Session["user"];
        DataSet  ds   = UserInfoManage.getTree(user.companyId.ToString());

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

        return(json);
    }