private void InitDepartmentTree() { string json = ""; DepartmentTreeHelper departmentTree = new DepartmentTreeHelper(); json = departmentTree.GetJson(); Response.Write(json); }
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); }
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); }