/// <summary> /// 绑定菜单 /// </summary> public string GetBindingMenu() { string dwbm = this.userInfo.DWBM; string gh = this.userInfo.GH; if (string.IsNullOrEmpty(dwbm) || string.IsNullOrEmpty(gh)) { return(ReturnString.JsonToString(Prompt.error, "参数错误", null)); } string where = ""; //switch (this.UserDwbm.DWJB) { // case "1": // where = " and sfgjysy='Y'"; // break; // case "2": // where = " and sfsysy='Y'"; // break; // case "3": // where = " and sfsjysy='Y'"; // break; // case "4": // where = " and sfqysy='Y'"; // break; //} EDRS.BLL.XT_QX_GNDY bll = new EDRS.BLL.XT_QX_GNDY(this.Request); DataSet ds = bll.GetListByBound(dwbm, gh, where, null); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { bool isOpen = true; return(new TreeJson(ds.Tables[0], "flbm", "flmc", "fflbm", "gnct", "", "", "", isOpen, true).ResultJson.ToString()); } return(ReturnString.JsonToString(Prompt.error, "该账号未设置任何功能", null)); }
/// <summary> /// 根据工号和单位编码获取功能列表 /// </summary> /// <param name="dwbm"></param> /// <param name="gh"></param> /// <returns></returns> private DataSet GetListByBound(string dwbm, string gh) { EDRS.BLL.XT_QX_GNDY bll = new EDRS.BLL.XT_QX_GNDY(this.Request); return(bll.GetListByBound(dwbm, gh, "", null)); }