public static string deleteTwoGridInfo(string strValue) { bool isSuccess = new TEnvPAlkaliItemLogic().Delete(strValue); if (isSuccess) { new PageBase().WriteLog("删除环境空气监测点项目信息", "", new UserLogInfo().UserInfo.USER_NAME + "删除环境空气监测点" + strValue + "项目信息"); } return(isSuccess == true ? "1" : "0"); }
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"]); TEnvPAlkaliItemVo TEnvPointRainItemVo = new TEnvPAlkaliItemVo(); // TEnvPointRainItemVo.ID = oneGridId; TEnvPointRainItemVo.POINT_ID = oneGridId; //TEnvPointRainItemVo.ITEM_ID = strSortorder; DataTable dt = new TEnvPAlkaliItemLogic().SelectByTable(TEnvPointRainItemVo, intPageIndex, intPageSize); int intTotalCount = new TEnvPAlkaliItemLogic().GetSelectResultCount(TEnvPointRainItemVo); string strJson = CreateToJson(dt, intTotalCount); return(strJson); }