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); }
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); }
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); }
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); }