1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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.WDFJ_I
- {
- public partial class CallingBed_doctor : PageBase
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string deviceHumanID = this.GetValueByKey("deviceHumanId");
- if(string.IsNullOrEmpty(deviceHumanID))
- {
- this.ResponseDefaultError();
- return;
- }
- if(!this.InitializeDataAccess())
- {
- this.ResponseDefaultError(PromptingMessage.Error_PatientInfo);
- return;
- }
- WD_PatientInfo wd_PatientInfo = this.wd_PatientInfoDataAccess.ext.messageDataList.Find(f=>f.ID == deviceHumanID.Trim());
- if(wd_PatientInfo == null)
- {
- this.ResponseDefaultError(PromptingMessage.Error_PatientInfo);
- return;
- }
- wd_PatientInfo.name = wd_PatientInfo.PATIENT_NAME;
- wd_PatientInfo.inpatientNum = wd_PatientInfo.PATIENT_ID;
- this.wd_UrgeInfoDataAccess.ext.messageDataList.FindAll(f => f.URGE_PATIENT_ID == wd_PatientInfo.ID).ForEach(f => wd_PatientInfo.DoctorChargeArray.Add(new CDoctorCharge() { DoctorCharge = f.URGE_VALUE }));
- this.Response.Write(JsonHelper.SerializeWithSuffix(wd_PatientInfo));
-
-
- WD_SysLogInfo wd_SysLogInfo = new WD_SysLogInfo();
- wd_SysLogInfo.LOG_TYPE = "3";
- wd_SysLogInfo.LOG_SOURCE ="病人ID号【" + deviceHumanID + "】";
- wd_SysLogInfo.LOG_CONTENT ="请求【医嘱信息】数据!";
- this.DataBaseLog(wd_SysLogInfo);
-
- }
- }
- }
|