/// <summary> /// 取对应关系列表数据 /// </summary> /// <returns>返回Json串</returns> public string GetRelationYSBMRightList() { string userCode = System.Web.HttpContext.Current.Request.Params["userCode"];//查询条件 //DataStoreParam dataStoreParam = this.GetDataStoreParam(); var result = CorrespondenceSettingsService.GetRelationYSBMRightList(userCode); return(DataConverterHelper.EntityListToJson <OrganizeModel>(result.Results, (Int32)result.TotalItems)); }
/// <summary> /// 取列表数据 /// </summary> /// <returns>返回Json串</returns> public string GetQtBaseProjectSelect() { //long Fphid = Convert.ToInt64(System.Web.HttpContext.Current.Request.Params["Fphid"]); string userCode = System.Web.HttpContext.Current.Request.Params["userCode"]; string FKMLB = System.Web.HttpContext.Current.Request.Params["FKMLB"]; string FType = System.Web.HttpContext.Current.Request.Params["FType"]; string FYear = System.Web.HttpContext.Current.Request.Params["FYear"]; Dictionary <string, object> dicWhere = new Dictionary <string, object>(); var DeptList = CorrespondenceSettingsService.GetRelationYSBMRightList(userCode).Results.ToList().Select(x => x.OCode).Distinct().ToList(); new CreateCriteria(dicWhere) .Add(ORMRestrictions <string> .Eq("FKMLB", FKMLB)) .Add(ORMRestrictions <string> .NotEq("FProjCode", "")) .Add(ORMRestrictions <List <string> > .In("FFillDept", DeptList)); if (!string.IsNullOrEmpty(FYear)) { new CreateCriteria(dicWhere) .Add(ORMRestrictions <string> .Eq("FYear", FYear)); } DataStoreParam storeparam = this.GetDataStoreParam(); //var result = QtBaseProjectService.LoadWithPage(storeparam.PageIndex, storeparam.PageSize, dicWhere, new string[] { "FKmdm", "NgInsertDt" }); var result = new PagedResult <QtBaseProjectModel>(); if (FType == "c") { result = QtBaseProjectService.ServiceHelper.LoadWithPageInfinity("GQT.QT.TBJD.c", dicWhere); } else { result = QtBaseProjectService.ServiceHelper.LoadWithPageInfinity("GQT.QT.TBJD.z", dicWhere); foreach (QtBaseProjectModel a in result.Results) { if (a.FType == "c") { a.FProjName = a.FProjName + "(年初新增)"; } if (a.FType == "z") { a.FProjName = a.FProjName + "(年中新增)"; } if (a.FType == "tz") { a.FProjName = a.FProjName + "(年中调整)"; } } } //var result = QtBaseProjectService.ServiceHelper.LoadWithPageInfinity("GQT.QT.TBJD", dicWhere); return(DataConverterHelper.EntityListToJson <QtBaseProjectModel>(result.Results, (Int32)result.TotalItems)); }