GetWD_PatientInfo.aspx.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.WebService;
  8. using HNWD.Pregrant.Model;
  9. using System.Text;
  10. using HNWD.Pregrant.DataAccess;
  11. using HNWD.Pregrant.Common;
  12. using HNWD.Pregrant.BusinessLogic;
  13. namespace HNWD.Pregrant.WebService.MgrCSharp
  14. {
  15. public partial class GetWD_PatientInfo : PageBase
  16. {
  17. protected void Page_Load(object sender, EventArgs e)
  18. {
  19. string ID = this.GetValueByKey("ID");
  20. if(string.IsNullOrEmpty(ID))
  21. {
  22. this.ResponseDefaultError();
  23. return;
  24. }
  25. if (!this.InitializeDataAccess())
  26. {
  27. this.ResponseDefaultError();
  28. return;
  29. }
  30. WD_PatientInfo wd_PatientInfo = this.wd_PatientInfoDataAccess.ext.messageDataList.Find(f=>f.ID == ID);
  31. if(wd_PatientInfo == null)
  32. {
  33. this.ResponseDefaultError(PromptingMessage.Error_PatientInfo);
  34. return;
  35. }
  36. this.Response.Write(JsonHelper.SerializeWithSuffix(wd_PatientInfo));
  37. WD_SysLogInfo wd_SysLogInfo = new WD_SysLogInfo();
  38. wd_SysLogInfo.LOG_TYPE = "3";
  39. wd_SysLogInfo.LOG_SOURCE ="MGR";
  40. wd_SysLogInfo.LOG_CONTENT ="下载了病人数据";
  41. this.DataBaseLog(wd_SysLogInfo);
  42. }
  43. }
  44. }