GetWD_UrgeInfoList.aspx.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_UrgeInfoList : PageBase
  16. {
  17. protected void Page_Load(object sender, EventArgs e)
  18. {
  19. string PatientID = this.GetValueByKey("PatientID");
  20. if(string.IsNullOrEmpty(PatientID))
  21. {
  22. this.ResponseDefaultError();
  23. return;
  24. }
  25. if (!this.InitializeDataAccess())
  26. {
  27. this.ResponseDefaultError();
  28. return;
  29. }
  30. this.wd_UrgeInfoDataAccess.ext.messageDataList = this.wd_UrgeInfoDataAccess.ext.messageDataList.FindAll(f=>f.URGE_PATIENT_ID == PatientID);
  31. this.wd_UrgeInfoDataAccess.ext.UrgeInfoArray = this.wd_UrgeInfoDataAccess.ext.messageDataList;
  32. this.wd_UrgeInfoDataAccess.ext.Rows = this.wd_UrgeInfoDataAccess.ext.UrgeInfoArray.Count;
  33. this.Response.Write(JsonHelper.SerializeWithSuffix(this.wd_UrgeInfoDataAccess.ext));
  34. }
  35. }
  36. }