/// <summary> /// 获取预警结果的详细信息 /// </summary> /// <param name="warningId">预警结果Id</param> /// <returns>预警结果详细信息列表</returns> /// <summary> /// 获取历史预警结果的详细信息 /// </summary> /// <param name="warningId">预警结果Id</param> ///// <returns>预警结果详细信息列表</returns> //public List<WarningResultDetailEntity> getHistoryWarningResultDetails(string sTunnelId, // string sDate, string sShift, // string sWarningResult, string sWarningType, // string sWarningItem) //{ // HttpPost postMethod = new HttpPost(new Uri("http://" + serverIp + ":" + restPort + "/rest/warnings/history")); // List<NameValuePair> nameValuePairList = new List<NameValuePair>(); // nameValuePairList.Add(new NameValuePair("Tunnel", sTunnelId)); // nameValuePairList.Add(new NameValuePair("Date", sDate)); // nameValuePairList.Add(new NameValuePair("Shift", sShift)); //班次 // nameValuePairList.Add(new NameValuePair("WarningResult", sWarningResult)); // 预警结果 // nameValuePairList.Add(new NameValuePair("WarningType", sWarningType)); // 预警类型 // nameValuePairList.Add(new NameValuePair("WarningItem", sWarningItem)); // // UrlEncodedFormEntity formEntity = new UrlEncodedFormEntity(nameValuePairList, Encoding.UTF8); // postMethod.Entity = formEntity; // HttpResponse response = client.Execute(postMethod); // int responseCode = response.ResponseCode; // if (responseCode < 400) // { // string content = EntityUtils.ToString(response.Entity); // List<WarningResultDetailEntity> entityList = // (List<WarningResultDetailEntity>)Newtonsoft.Json.JsonConvert.DeserializeObject(content, typeof(List<WarningResultDetailEntity>)); // return entityList; // } // return null; //} public List <WarningResultDetail> getHistoryWarningResultDetails(string sWorkingface, string sDate, string sShift, string sWarningResult, string sWarningType, string sWarningItem) { return(PreWarningDetailsBLL.getHistoryWarningResultDetails(sWorkingface, sDate, sShift, sWarningResult, sWarningType, sWarningItem)); }
public List <WarningResultDetail> getHistoryWarningResultDetails(string warningId) { return(PreWarningDetailsBLL.getHistoryWarningResultDetails(warningId)); }