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; using System.IO; namespace HNWD.Pregrant.WebService.MgrCSharp { public partial class SetWD_PatientInfo : PageBase { protected void Page_Load(object sender, EventArgs e) { string BedID = this.GetValueByKey("BedID"); string actionflag = this.GetValueByKey("actionflag"); string data = this.GetValueByKey("data"); string patientid = this.GetValueByKey("patientid"); if(string.IsNullOrEmpty(BedID)) { this.ResponseDefaultError(); return; } if (string.IsNullOrEmpty(actionflag)) { this.ResponseDefaultError(); return; } WD_PatientInfoBusinessLogic wd_PatientInfoBusinessLogic = new WD_PatientInfoBusinessLogic(patientid , BedID); if (!wd_PatientInfoBusinessLogic.bSuccess) { Response.Write(JsonHelper.SerializeWithSuffix(wd_PatientInfoBusinessLogic.Message)); return; } if (actionflag.ToLower() == "query") { Response.Write(JsonHelper.SerializeWithSuffix(wd_PatientInfoBusinessLogic.Query(patientid))); return; } if (actionflag.ToLower() == "business") { Response.Write(JsonHelper.SerializeWithSuffix(wd_PatientInfoBusinessLogic.Business(data))); return; } } } }