public static string deleteTwoGridInfo(string strValue) { bool isSuccess = new TEnvPNoiseFunctionItemLogic().Delete(strValue); if (isSuccess) new PageBase().WriteLog("删除环境空气监测点项目信息", "", new UserLogInfo().UserInfo.USER_NAME + "删除环境空气监测点" + strValue + "项目信息"); return isSuccess == true ? "1" : "0"; }
/// <summary> /// 获取监测项目信息 /// </summary> /// <param name="oneGridId">监测点ID</param> /// <returns></returns> public string getTwoGridInfo(string oneGridId) { string strSortname = Request.Params["sortname"]; string strSortorder = Request.Params["sortorder"]; //当前页面 int intPageIndex = Convert.ToInt32(Request.Params["page"]); //每页记录数 int intPageSize = Convert.ToInt32(Request.Params["pagesize"]); TEnvPNoiseFunctionItemVo TEnvPointRainItemVo = new TEnvPNoiseFunctionItemVo(); // TEnvPointRainItemVo.ID = oneGridId; TEnvPointRainItemVo.POINT_ID = oneGridId; //TEnvPointRainItemVo.ITEM_ID = strSortorder; DataTable dt = new TEnvPNoiseFunctionItemLogic().SelectByTable(TEnvPointRainItemVo, intPageIndex, intPageSize); int intTotalCount = new TEnvPNoiseFunctionItemLogic().GetSelectResultCount(TEnvPointRainItemVo); string strJson = CreateToJson(dt, intTotalCount); return strJson; }