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 GetWD_UrgeInfoList : PageBase { protected void Page_Load(object sender, EventArgs e) { string PatientID = this.GetValueByKey("PatientID"); if(string.IsNullOrEmpty(PatientID)) { this.ResponseDefaultError(); return; } if (!this.InitializeDataAccess()) { this.ResponseDefaultError(); return; } this.wd_UrgeInfoDataAccess.ext.messageDataList = this.wd_UrgeInfoDataAccess.ext.messageDataList.FindAll(f=>f.URGE_PATIENT_ID == PatientID); this.wd_UrgeInfoDataAccess.ext.UrgeInfoArray = this.wd_UrgeInfoDataAccess.ext.messageDataList; this.wd_UrgeInfoDataAccess.ext.Rows = this.wd_UrgeInfoDataAccess.ext.UrgeInfoArray.Count; this.Response.Write(JsonHelper.SerializeWithSuffix(this.wd_UrgeInfoDataAccess.ext)); } } }