private void GetFillID() { string year = Request["year"]; string month = Request["month"]; TEnvFillEstuariesVo envFillEstuariesVo = new TEnvFillEstuariesVo(); envFillEstuariesVo.YEAR = year; envFillEstuariesVo.MONTH = month; envFillEstuariesVo = new TEnvFillEstuariesLogic().Details(envFillEstuariesVo); string json = "{\"ID\":\"" + envFillEstuariesVo.ID + "\",\"STATUS\":\"" + envFillEstuariesVo.STATUS + "\"}"; Response.ContentType = "application/json;charset=utf-8"; Response.Write(json); Response.End(); }
private void GetData() { string strWhere = "1=1"; string year = Request["year"]; string month = Request["month"]; string pointId = Request["pointId"]; //DataTable dt = new TEnvFillEstuariesLogic().GetEstuariesFillData(year, month, pointId); //string json = DataTableToJsonUnsureCol(dt, "_unSure"); //Response.ContentType = "application/json"; if (year != "") { strWhere += " and YEAR='" + year + "'"; } if (month != "") { strWhere += " and MONTH='" + month + "'"; } if (pointId != "") { strWhere += " and ID='" + pointId + "'"; } DataTable dtShow = new DataTable();//填报表需要显示信息 dtShow = new TEnvFillEstuariesLogic().CreateShowDT(); CommonLogic com = new CommonLogic(); DataTable dt = com.GetFillData(strWhere, dtShow, TEnvPointEstuariesVo.T_ENV_POINT_ESTUARIES_TABLE, TEnvPointEstuariesVerticalVo.T_ENV_POINT_ESTUARIES_VERTICAL_TABLE, TEnvPointEstuariesVItemVo.T_ENV_POINT_ESTUARIES_V_ITEM_TABLE, TEnvFillEstuariesVo.T_ENV_FILL_ESTUARIES_TABLE, TEnvFillEstuariesItemVo.T_ENV_FILL_ESTUARIES_ITEM_TABLE, SerialType.T_ENV_FILL_ESTUARIES, SerialType.T_ENV_FILL_ESTUARIES_ITEM, "1"); string json = DataTableToJsonUnsureCol(dt); Response.ContentType = "application/json;charset=utf-8"; Response.Write(json); Response.End(); }