using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using HNWD.Pregrant.Model; using HNWD.Pregrant.Common; using System.Text; using HNWD.Pregrant.DataAccess; using HNWD.Pregrant.WebService; namespace HNWD.Pregrant.WebService.WDFJ_I { /// /// 通知栏 /// public partial class callingBed_notice :PageBase { /// /// 测试用例列表: /// 测试case传入参数 : /// deviceHumanId = /// /// /// protected void Page_Load(object sender, EventArgs e) { string deviceHumanId = this.GetValueByKey("deviceHumanId"); if (string.IsNullOrEmpty(deviceHumanId)) { this.ResponseDefaultError(); return; } /// ///根据病人ID号 /// //////////////////////////////////////// /////////////////////////////////////// if (!this.InitializeDataAccess()) { this.ResponseDefaultError(PromptingMessage.Error_Data_Initialized); return; } if (wd_NoticeInfoDataAccess.ext.messageDataList.FindAll(f => f.NOTICE_PATIENT_ID == deviceHumanId).Count == 0) { this.ResponseDefaultError(PromptingMessage.Error_Notice); return; } else { wd_NoticeInfoDataAccess.ext.messageDataList = wd_NoticeInfoDataAccess.ext.messageDataList.FindAll(f => f.NOTICE_PATIENT_ID == deviceHumanId); wd_NoticeInfoDataAccess.ext.NoticeArray = wd_NoticeInfoDataAccess.ext.messageDataList.FindAll(f => f.NOTICE_PATIENT_ID == deviceHumanId); wd_NoticeInfoDataAccess.ext.Rows = wd_NoticeInfoDataAccess.ext.NoticeArray.Count; Response.Write(JsonHelper.SerializeWithSuffix(wd_NoticeInfoDataAccess.ext)); } WD_SysLogInfo wd_SysLogInfo = new WD_SysLogInfo(); wd_SysLogInfo.LOG_TYPE = "3"; wd_SysLogInfo.LOG_SOURCE = "病人ID号【" + deviceHumanId + "】"; wd_SysLogInfo.LOG_CONTENT = "请求【定时提供】数据!"; this.DataBaseLog(wd_SysLogInfo); } } }