callingMainDoctor_colleague.aspx.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. using HNWD.Pregrant.Common;
  8. using HNWD.Pregrant.WebService;
  9. using HNWD.Pregrant.Model;
  10. namespace HNWD.DoctorHost.WebService.WDYS_I
  11. {
  12. public partial class callingMainDoctor_colleague : PageBase
  13. {
  14. protected void Page_Load(object sender, EventArgs e)
  15. {
  16. string deviceId = this.GetValueByKey("deviceId");
  17. //if (string.IsNullOrEmpty(deviceId))
  18. //{
  19. // this.ResponseDefaultError("传入参数无效或错误:{[1]-----[deviceId]-----设备ID}");
  20. // return;
  21. //}
  22. if (!this.InitializeDataAccess())
  23. {
  24. this.ResponseDefaultError(PromptingMessage.Error_Data_Initialized);
  25. return;
  26. }
  27. ColleagueExt colExt = new ColleagueExt();
  28. foreach(WD_StaffInfo staffInfo in this.wd_StaffInfoDataAccess.ext.messageDataList )
  29. {
  30. WD_StaffInfo_Simple staff_Simple = new WD_StaffInfo_Simple();
  31. staff_Simple.bSuccess = staffInfo.bSuccess;
  32. staff_Simple.Message = staffInfo.Message;
  33. staff_Simple.Code =staffInfo.Code;
  34. staff_Simple.currentPosition =staffInfo.currentPosition;
  35. staff_Simple.deviceSipIp = staffInfo.deviceSipIp;
  36. staff_Simple.deviceSipPassWord =staffInfo.deviceSipPassWord;
  37. staff_Simple.donors =staffInfo.donors;
  38. staff_Simple.dutyTime =staffInfo.dutyTime;
  39. staff_Simple.honorLevel =staffInfo.honorLevel;
  40. staff_Simple.id =staffInfo.id;
  41. staff_Simple.job =staffInfo.job;
  42. staff_Simple.latestEvaluation =staffInfo.latestEvaluation;
  43. staff_Simple.mobileid =staffInfo.mobileid;
  44. staff_Simple.staffBirthday =staffInfo.staffBirthday;
  45. staff_Simple.staffContent =staffInfo.staffContent;
  46. staff_Simple.staffDateTime = staffInfo.staffDateTime;
  47. staff_Simple.staffDuty =staffInfo.staffDuty;
  48. staff_Simple.staffId =staffInfo.id;
  49. staff_Simple.staffIdCard =staffInfo.staffIdCard;
  50. staff_Simple.staffMobile =staffInfo.staffMobile;
  51. staff_Simple.staffName =staffInfo.staffName;
  52. staff_Simple.staffNamePy =staffInfo.staffNamePy;
  53. staff_Simple.staffPassWordCode =staffInfo.staffPassWordCode;
  54. staff_Simple.staffPicture =staffInfo.staffPicture;
  55. staff_Simple.staffSex =staffInfo.staffSex ;
  56. staff_Simple.staffType =staffInfo.staffType;
  57. staff_Simple.staffWorkDate =staffInfo.staffWorkDate;
  58. staff_Simple.staffWorkTel =staffInfo.staffWorkTel;
  59. colExt.staffInfoSimple.Add(staff_Simple);
  60. }
  61. foreach(WD_DeviceInfo deviceInfo in this.wd_DeviceInfoDataAccess.ext.messageDataList.FindAll(f=>f.DEVICE_TYPE == "1" ))
  62. {
  63. WD_DeviceInfo_Simple device_Simple = new WD_DeviceInfo_Simple();
  64. device_Simple.bSuccess = deviceInfo.bSuccess;
  65. device_Simple.Message = deviceInfo.Message;
  66. device_Simple.Code =deviceInfo.Code;
  67. device_Simple.deviceBedName =deviceInfo.deviceBedName;
  68. device_Simple.deviceBedNum = deviceInfo.deviceBedNum;
  69. //device_Simple.deviceHostingID =deviceInfo.DEVICE_SIP_HOSTING_ID;
  70. device_Simple.deviceHumanId =deviceInfo.deviceHumanId;
  71. device_Simple.deviceHumanType =deviceInfo.deviceHumanType;
  72. device_Simple.devicelrCfg =deviceInfo.devicelrCfg;
  73. device_Simple.deviceName =deviceInfo.deviceName;
  74. device_Simple.deviceRoomId =deviceInfo.deviceRoomId;
  75. device_Simple.deviceRoomNum =deviceInfo.deviceRoomNum;
  76. device_Simple.deviceSipId =deviceInfo.deviceSipId;
  77. device_Simple.deviceSipIp =deviceInfo.deviceSipIp;
  78. device_Simple.deviceSipPassWord =deviceInfo.deviceSipPassWord;
  79. device_Simple.deviceSipStatus =deviceInfo.deviceSipStatus;
  80. device_Simple.deviceStatus =deviceInfo.deviceStatus;
  81. device_Simple.deviceType =deviceInfo.deviceType;
  82. device_Simple.deviceWifiHostName =deviceInfo.deviceWifiHostName;
  83. device_Simple.deviceZone0 =deviceInfo.deviceZone0;
  84. device_Simple.deviceZone1 =deviceInfo.deviceZone1;
  85. device_Simple.deviceZone2 =deviceInfo.deviceZone2;
  86. device_Simple.deviceZone3 =deviceInfo.deviceZone3;
  87. device_Simple.deviceZone4 =deviceInfo.deviceZone4;
  88. device_Simple.deviceZone5 =deviceInfo.deviceZone5 ;
  89. device_Simple.id =deviceInfo.id;
  90. device_Simple.deviceMac = deviceInfo.DEVICE_ETH_MAC;
  91. colExt.deviceInfoSimple.Add(device_Simple);
  92. }
  93. Response.Write(JsonHelper.SerializeWithSuffix(colExt));
  94. }
  95. }
  96. }