SetWD_PatientInfo.aspx.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. using System.IO;
  14. namespace HNWD.Pregrant.WebService.MgrCSharp
  15. {
  16. public partial class SetWD_PatientInfo : PageBase
  17. {
  18. protected void Page_Load(object sender, EventArgs e)
  19. {
  20. string BedID = this.GetValueByKey("BedID");
  21. string actionflag = this.GetValueByKey("actionflag");
  22. string data = this.GetValueByKey("data");
  23. string patientid = this.GetValueByKey("patientid");
  24. if(string.IsNullOrEmpty(BedID))
  25. {
  26. this.ResponseDefaultError();
  27. return;
  28. }
  29. if (string.IsNullOrEmpty(actionflag))
  30. {
  31. this.ResponseDefaultError();
  32. return;
  33. }
  34. WD_PatientInfoBusinessLogic wd_PatientInfoBusinessLogic = new WD_PatientInfoBusinessLogic(patientid , BedID);
  35. if (!wd_PatientInfoBusinessLogic.bSuccess)
  36. {
  37. Response.Write(JsonHelper.SerializeWithSuffix(wd_PatientInfoBusinessLogic.Message));
  38. return;
  39. }
  40. if (actionflag.ToLower() == "query")
  41. {
  42. Response.Write(JsonHelper.SerializeWithSuffix(wd_PatientInfoBusinessLogic.Query(patientid)));
  43. return;
  44. }
  45. if (actionflag.ToLower() == "business")
  46. {
  47. Response.Write(JsonHelper.SerializeWithSuffix(wd_PatientInfoBusinessLogic.Business(data)));
  48. return;
  49. }
  50. }
  51. }
  52. }