123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- 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_cost : 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_CostInfoDataAccess.ext.messageDataList.FindAll(f=>f.COST_PATIENT_ID == deviceHumanID).ForEach(f=> wd_PatientInfo.CostArray.Add(new Cost(){ costName = f.COST_NAME , date = f.COST_CREATEDATE , money = f.COST_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);
-
- }
- }
- }
|