public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string type = context.Request["type"]; try { GgfzInfoModel model = new GgfzInfoModel(); object sessionAppUser = context.Session[ConfigManager.GetSignInAppUserSessionName()]; WorkUser = (AppUser)sessionAppUser; DataTable dt; // BLL = new SzgcBLL(WorkUser); bll = new SzqyBLL(WorkUser); switch (type) { case "getZzmc": json = bll.getZTreeOfZzmc(); break; case "getTxlTree": ZlctBLL zlctBLL = new ZlctBLL(WorkUser); string gzzsId = context.Request.QueryString["gzzsId"]; if (String.IsNullOrEmpty(gzzsId)) { json = zlctBLL.ZTreeJsonOfTxl(model); } else { json = zlctBLL.ZTreeJsonOfTxl(model, gzzsId); } break; case "getTxlCombox": zlctBLL = new ZlctBLL(WorkUser); dt = zlctBLL.ZComboxJsonOfTxl(); json = Dtb2Json(dt);; break; case "getTxlTree_Dxjb": zlctBLL = new ZlctBLL(WorkUser); string dxjbId = context.Request.QueryString["dxjbId"]; if (String.IsNullOrEmpty(dxjbId)) { json = zlctBLL.ZTreeJsonOfDxjb(model); } else { json = zlctBLL.ZTreeJsonOfDxjb(model, dxjbId); } break; case "getYear": GetYear(context); break; case "getMonth": GetMonth(context); break; case "ssdq": json = GetSsdq(context); break; case "QySsdq": json = this.GetQySsdq(context); break; case "xmxx": //File.AppendAllText("E:\\test.txt", "111"); json = GetXmxx(context); break; case "QueryProjectList": json = QueryProjectList(context); break; case "SetLxxmGIS": json = SetLxxmGIS(context); break; case "rysd": json = this.GetQySsdq(context); //json = GetRysd(context); break; case "roleRights": json = GetRoleRights(context); break; case "saveRoles": json = SaveRoles(context); break; case "saveRoleRights": json = SaveRoleRights(context); break; case "getUserRights": json = GetUserRights(context); break; case "getXxcjMenu": json = GetXxcjMenu(context); break; case "getIndexTopMenu": json = GetIndexTopMenu(context); break; case "xxgx_csjk": json = GetXxgx_Csjk(context); break; //往省厅上传项目信息 case "uploadToStTBProjectInfo": json = uploadToStTBProjectInfo(context); break; //往省厅上传项目补充信息 case "uploadToStTBProjectAddInfo": json = uploadToStTBProjectAddInfo(context); break; //从一站式申报平台按uuid下行安监、质监申报数据 case "downloadByUuid": json = downloadByUuid(context); break; //下载企业注册人员数据 case "downloadCorpRegStaff": json = downloadCorpRegStaff(context); break; //下载企业资质信息 case "downloadCorpCert": json = downloadCorpCert(context); break; //从部里下载企业资质信息 case "downloadCorpCertFromMohurd": json = downloadCorpCertFromMohurd(context); break; //保存合同备案-工程类型 case "saveHtbaPrjType": json = saveHtbaPrjType(context); break; //保存合同备案-联合体 case "saveHtbaUnion": json = saveHtbaUnion(context); break; } } catch (Exception ex) { json = ex.Message; } context.Response.Write(json); context.Response.End(); }