tangxu
2024-03-26 edd23f115dba31d764fdaf75a6207d888d0419d3
BLL/IStation.BLL.Connect/RiverWaterLevelDrop.cs
@@ -10,21 +10,22 @@
{
    public class RiverWaterLevelDrop
    {
        public static List<Model.RiverWaterLevelDrop> GetList()
        public static void Initial()
        {
            if (!ServiceParas.IsRemote)
            {
                return IStation.Common.RiverWaterLevelDropHelper.GetList();
                AnaGlobalParas.RiverWaterLevelDropList = IStation.Common.RiverWaterLevelDropHelper.ReadFile();
                return;
            }
            if (string.IsNullOrEmpty(ServiceParas.ApiServiceUrl))
            {
                return null;
                return  ;
            }
            string url = string.Format(@"{0}\RiverWaterLevelDrop\GetList", ServiceParas.ApiServiceUrl);
            string url = string.Format(@"{0}/RiverWaterLevelDrop/GetList", ServiceParas.ApiServiceUrl);
            //先根据用户请求的uri构造请求地址
@@ -65,14 +66,16 @@
            if (string.IsNullOrEmpty(returnData))
            {
                myResponse.Close();
                return null;
                return  ;
            }
            var ret = (new System.Web.Script.Serialization.JavaScriptSerializer()).Deserialize<IStation.Dto.ApiResult<List<Model.RiverWaterLevelDrop>>>(returnData);
            reader.Close();
            myResponse.Close();
            return ret.Data;
            AnaGlobalParas.RiverWaterLevelDropList = ret.Data;
        }
 
@@ -84,13 +87,13 @@
                IStation.Common.RiverWaterLevelDropHelper.SaveList(list);
                return;
            }
            AnaGlobalParas.RiverWaterLevelDropList = list;
            if (string.IsNullOrEmpty(ServiceParas.ApiServiceUrl))
            {
                return;
            }
            string url = string.Format(@"{0}\RiverWaterLevelDrop\SaveList", ServiceParas.ApiServiceUrl);
            string url = string.Format(@"{0}/RiverWaterLevelDrop/SaveList", ServiceParas.ApiServiceUrl);