| | |
| | | /// <param name="dateTime"></param> |
| | | /// <param name="error"></param> |
| | | /// <returns></returns> |
| | | public List<Model.PumpRunParasDays> GetPumpRunParasOneDay(DateTime dateTime,out string error) |
| | | public Model.RunParasData GetPumpRunParasOneDay(DateTime dateTime,out string error) |
| | | { |
| | | string apiServiceUrl = System.Configuration.ConfigurationManager.AppSettings["ApiServiceUrl"]; |
| | | if (string.IsNullOrEmpty(apiServiceUrl)) |
| | |
| | | error = "利用StreamReader就可以从响应内容从头读到尾"; |
| | | return null; |
| | | } |
| | | var ret = (new System.Web.Script.Serialization.JavaScriptSerializer()).Deserialize<IStation.Dto.ApiResult< List<Model.PumpRunParasDays>>>(returnData); |
| | | var ret = (new System.Web.Script.Serialization.JavaScriptSerializer()).Deserialize<IStation.Dto.ApiResult<Model.RunParasData>>(returnData); |
| | | reader.Close(); |
| | | myResponse.Close(); |
| | | error = null; |
| | |
| | | /// <param name="dateTime"></param> |
| | | /// <param name="error"></param> |
| | | /// <returns></returns> |
| | | public Common.PumpRunParasHelper.RunParasData GetByHistoryOneData(DateTime dateTime ,out string error) |
| | | public Model.RunParasData GetByHistoryOneData(DateTime dateTime ,out string error) |
| | | { |
| | | string apiServiceUrl = System.Configuration.ConfigurationManager.AppSettings["ApiServiceUrl"]; |
| | | if (string.IsNullOrEmpty(apiServiceUrl)) |
| | |
| | | error = "利用StreamReader就可以从响应内容从头读到尾"; |
| | | return null; |
| | | } |
| | | var ret = (new System.Web.Script.Serialization.JavaScriptSerializer()).Deserialize<IStation.Dto.ApiResult<Common.PumpRunParasHelper.RunParasData>>(returnData); |
| | | var ret = (new System.Web.Script.Serialization.JavaScriptSerializer()).Deserialize<IStation.Dto.ApiResult<Model.RunParasData>>(returnData); |
| | | reader.Close(); |
| | | myResponse.Close(); |
| | | error = null; |