private void GetFillID() { string year = Request["year"]; string month = Request["month"]; TEnvFillRiver30Vo envFillRiver30Vo = new TEnvFillRiver30Vo(); envFillRiver30Vo.YEAR = year; envFillRiver30Vo.MONTH = month; envFillRiver30Vo = new TEnvFillRiver30Logic().Details(envFillRiver30Vo); string json = "{\"ID\":\"" + envFillRiver30Vo.ID + "\",\"STATUS\":\"" + envFillRiver30Vo.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"]; if (year != "") { strWhere += " and YEAR='" + year + "'"; } if (month != "") { strWhere += " and MONTH='" + month + "'"; } if (pointId != "") { strWhere += " and ID='" + pointId + "'"; } DataTable dtShow = new DataTable();//填报表需要显示信息 dtShow = new TEnvFillRiver30Logic().CreateShowDT(); CommonLogic com = new CommonLogic(); DataTable dt = com.GetFillData(strWhere, dtShow, TEnvPRiver30Vo.T_ENV_P_RIVER30_TABLE, TEnvPRiver30VVo.T_ENV_P_RIVER30_V_TABLE, TEnvPRiver30VItemVo.T_ENV_P_RIVER30_V_ITEM_TABLE, TEnvFillRiver30Vo.T_ENV_FILL_RIVER30_TABLE, TEnvFillRiver30ItemVo.T_ENV_FILL_RIVER30_ITEM_TABLE, SerialType.T_ENV_FILL_RIVER30, SerialType.T_ENV_FILL_RIVER30_ITEM, "1"); string json = DataTableToJsonUnsureCol(dt); Response.ContentType = "application/json;charset=utf-8"; Response.Write(json); Response.End(); }