using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using HNWD.Pregrant.Common; using HNWD.Pregrant.WebService; using HNWD.Pregrant.Model; namespace HNWD.DoctorHost.WebService.WDYS_I { public partial class callingMainDoctor_colleague : PageBase { protected void Page_Load(object sender, EventArgs e) { string deviceId = this.GetValueByKey("deviceId"); //if (string.IsNullOrEmpty(deviceId)) //{ // this.ResponseDefaultError("传入参数无效或错误:{[1]-----[deviceId]-----设备ID}"); // return; //} if (!this.InitializeDataAccess()) { this.ResponseDefaultError(PromptingMessage.Error_Data_Initialized); return; } ColleagueExt colExt = new ColleagueExt(); foreach(WD_StaffInfo staffInfo in this.wd_StaffInfoDataAccess.ext.messageDataList ) { WD_StaffInfo_Simple staff_Simple = new WD_StaffInfo_Simple(); staff_Simple.bSuccess = staffInfo.bSuccess; staff_Simple.Message = staffInfo.Message; staff_Simple.Code =staffInfo.Code; staff_Simple.currentPosition =staffInfo.currentPosition; staff_Simple.deviceSipIp = staffInfo.deviceSipIp; staff_Simple.deviceSipPassWord =staffInfo.deviceSipPassWord; staff_Simple.donors =staffInfo.donors; staff_Simple.dutyTime =staffInfo.dutyTime; staff_Simple.honorLevel =staffInfo.honorLevel; staff_Simple.id =staffInfo.id; staff_Simple.job =staffInfo.job; staff_Simple.latestEvaluation =staffInfo.latestEvaluation; staff_Simple.mobileid =staffInfo.mobileid; staff_Simple.staffBirthday =staffInfo.staffBirthday; staff_Simple.staffContent =staffInfo.staffContent; staff_Simple.staffDateTime = staffInfo.staffDateTime; staff_Simple.staffDuty =staffInfo.staffDuty; staff_Simple.staffId =staffInfo.id; staff_Simple.staffIdCard =staffInfo.staffIdCard; staff_Simple.staffMobile =staffInfo.staffMobile; staff_Simple.staffName =staffInfo.staffName; staff_Simple.staffNamePy =staffInfo.staffNamePy; staff_Simple.staffPassWordCode =staffInfo.staffPassWordCode; staff_Simple.staffPicture =staffInfo.staffPicture; staff_Simple.staffSex =staffInfo.staffSex ; staff_Simple.staffType =staffInfo.staffType; staff_Simple.staffWorkDate =staffInfo.staffWorkDate; staff_Simple.staffWorkTel =staffInfo.staffWorkTel; colExt.staffInfoSimple.Add(staff_Simple); } foreach(WD_DeviceInfo deviceInfo in this.wd_DeviceInfoDataAccess.ext.messageDataList.FindAll(f=>f.DEVICE_TYPE == "1" )) { WD_DeviceInfo_Simple device_Simple = new WD_DeviceInfo_Simple(); device_Simple.bSuccess = deviceInfo.bSuccess; device_Simple.Message = deviceInfo.Message; device_Simple.Code =deviceInfo.Code; device_Simple.deviceBedName =deviceInfo.deviceBedName; device_Simple.deviceBedNum = deviceInfo.deviceBedNum; //device_Simple.deviceHostingID =deviceInfo.DEVICE_SIP_HOSTING_ID; device_Simple.deviceHumanId =deviceInfo.deviceHumanId; device_Simple.deviceHumanType =deviceInfo.deviceHumanType; device_Simple.devicelrCfg =deviceInfo.devicelrCfg; device_Simple.deviceName =deviceInfo.deviceName; device_Simple.deviceRoomId =deviceInfo.deviceRoomId; device_Simple.deviceRoomNum =deviceInfo.deviceRoomNum; device_Simple.deviceSipId =deviceInfo.deviceSipId; device_Simple.deviceSipIp =deviceInfo.deviceSipIp; device_Simple.deviceSipPassWord =deviceInfo.deviceSipPassWord; device_Simple.deviceSipStatus =deviceInfo.deviceSipStatus; device_Simple.deviceStatus =deviceInfo.deviceStatus; device_Simple.deviceType =deviceInfo.deviceType; device_Simple.deviceWifiHostName =deviceInfo.deviceWifiHostName; device_Simple.deviceZone0 =deviceInfo.deviceZone0; device_Simple.deviceZone1 =deviceInfo.deviceZone1; device_Simple.deviceZone2 =deviceInfo.deviceZone2; device_Simple.deviceZone3 =deviceInfo.deviceZone3; device_Simple.deviceZone4 =deviceInfo.deviceZone4; device_Simple.deviceZone5 =deviceInfo.deviceZone5 ; device_Simple.id =deviceInfo.id; device_Simple.deviceMac = deviceInfo.DEVICE_ETH_MAC; colExt.deviceInfoSimple.Add(device_Simple); } Response.Write(JsonHelper.SerializeWithSuffix(colExt)); } } }