callingBed_notice.aspx.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. using HNWD.Pregrant.Model;
  8. using HNWD.Pregrant.Common;
  9. using System.Text;
  10. using HNWD.Pregrant.DataAccess;
  11. using HNWD.Pregrant.WebService;
  12. namespace HNWD.Pregrant.WebService.WDFJ_I
  13. {
  14. /// <summary>
  15. /// 通知栏
  16. /// </summary>
  17. public partial class callingBed_notice :PageBase
  18. {
  19. /// <summary>
  20. /// 测试用例列表:
  21. /// 测试case传入参数 :
  22. /// deviceHumanId =
  23. /// </summary>
  24. /// <param name="sender"></param>
  25. /// <param name="e"></param>
  26. protected void Page_Load(object sender, EventArgs e)
  27. {
  28. string deviceHumanId = this.GetValueByKey("deviceHumanId");
  29. if (string.IsNullOrEmpty(deviceHumanId))
  30. {
  31. this.ResponseDefaultError();
  32. return;
  33. }
  34. ///
  35. ///根据病人ID号
  36. ///
  37. ////////////////////////////////////////
  38. ///////////////////////////////////////
  39. if (!this.InitializeDataAccess())
  40. {
  41. this.ResponseDefaultError(PromptingMessage.Error_Data_Initialized);
  42. return;
  43. }
  44. if (wd_NoticeInfoDataAccess.ext.messageDataList.FindAll(f => f.NOTICE_PATIENT_ID == deviceHumanId).Count == 0)
  45. {
  46. this.ResponseDefaultError(PromptingMessage.Error_Notice);
  47. return;
  48. }
  49. else
  50. {
  51. wd_NoticeInfoDataAccess.ext.messageDataList = wd_NoticeInfoDataAccess.ext.messageDataList.FindAll(f => f.NOTICE_PATIENT_ID == deviceHumanId);
  52. wd_NoticeInfoDataAccess.ext.NoticeArray = wd_NoticeInfoDataAccess.ext.messageDataList.FindAll(f => f.NOTICE_PATIENT_ID == deviceHumanId);
  53. wd_NoticeInfoDataAccess.ext.Rows = wd_NoticeInfoDataAccess.ext.NoticeArray.Count;
  54. Response.Write(JsonHelper.SerializeWithSuffix(wd_NoticeInfoDataAccess.ext));
  55. }
  56. WD_SysLogInfo wd_SysLogInfo = new WD_SysLogInfo();
  57. wd_SysLogInfo.LOG_TYPE = "3";
  58. wd_SysLogInfo.LOG_SOURCE = "病人ID号【" + deviceHumanId + "】";
  59. wd_SysLogInfo.LOG_CONTENT = "请求【定时提供】数据!";
  60. this.DataBaseLog(wd_SysLogInfo);
  61. }
  62. }
  63. }