1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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
- {
- /// <summary>
- /// 通知栏
- /// </summary>
- public partial class callingBed_notice :PageBase
- {
- /// <summary>
- /// 测试用例列表:
- /// 测试case传入参数 :
- /// deviceHumanId =
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- 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);
- }
-
- }
- }
|