duheng
2024-03-28 6c93aedfeeb66023f9506083517aee1a4e18e24d
BLL/IStation.BLL.Connect/PumpRunHelper.cs
@@ -17,7 +17,7 @@
        /// <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))
@@ -50,7 +50,7 @@
                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;
@@ -64,7 +64,7 @@
        /// <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))
@@ -97,7 +97,7 @@
                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;