12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using HNWD.Pregrant.WebService;
- using HNWD.Pregrant.Model;
- using System.Text;
- using HNWD.Pregrant.DataAccess;
- using HNWD.Pregrant.Common;
- using HNWD.Pregrant.BusinessLogic;
- namespace HNWD.Pregrant.WebService.MgrCSharp
- {
- public partial class WD_UrgeInfo : PageBase
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string action = this.GetValueByKey("actionflag");
- string data = this.GetValueByKey("data");
- string patientid = this.GetValueByKey("patientid");
- if (string.IsNullOrEmpty(action) || string.IsNullOrEmpty(patientid))
- {
- this.ResponseDefaultError();
- return;
- }
- WD_UrgeInfoBusinessLogic wd_UrgeInfoBusinessLogic = new WD_UrgeInfoBusinessLogic(patientid);
- if (!wd_UrgeInfoBusinessLogic.bSuccess)
- {
- Response.Write(JsonHelper.SerializeWithSuffix(wd_UrgeInfoBusinessLogic.Message));
- return;
- }
- if(action.ToLower() == "query")
- {
- Response.Write(JsonHelper.SerializeWithSuffix(wd_UrgeInfoBusinessLogic.Query(patientid)));
- return;
- }
-
- if(action.ToLower() == "business")
- {
- Response.Write(JsonHelper.SerializeWithSuffix(wd_UrgeInfoBusinessLogic.Business(data)));
- return;
- }
-
- }
- }
- }
|