WD_UrgeInfo.aspx.cs 1.6 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 WD_UrgeInfo : PageBase
  16. {
  17. protected void Page_Load(object sender, EventArgs e)
  18. {
  19. string action = this.GetValueByKey("actionflag");
  20. string data = this.GetValueByKey("data");
  21. string patientid = this.GetValueByKey("patientid");
  22. if (string.IsNullOrEmpty(action) || string.IsNullOrEmpty(patientid))
  23. {
  24. this.ResponseDefaultError();
  25. return;
  26. }
  27. WD_UrgeInfoBusinessLogic wd_UrgeInfoBusinessLogic = new WD_UrgeInfoBusinessLogic(patientid);
  28. if (!wd_UrgeInfoBusinessLogic.bSuccess)
  29. {
  30. Response.Write(JsonHelper.SerializeWithSuffix(wd_UrgeInfoBusinessLogic.Message));
  31. return;
  32. }
  33. if(action.ToLower() == "query")
  34. {
  35. Response.Write(JsonHelper.SerializeWithSuffix(wd_UrgeInfoBusinessLogic.Query(patientid)));
  36. return;
  37. }
  38. if(action.ToLower() == "business")
  39. {
  40. Response.Write(JsonHelper.SerializeWithSuffix(wd_UrgeInfoBusinessLogic.Business(data)));
  41. return;
  42. }
  43. }
  44. }
  45. }