callingMainDoctor_getcolleague.aspx.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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_getcolleague : PageBase
  13. {
  14. protected void Page_Load(object sender, EventArgs e)
  15. {
  16. string staffid = this.GetValueByKey("staffid");
  17. if (string.IsNullOrEmpty(staffid))
  18. {
  19. this.ResponseDefaultError("传入参数无效或错误:{[1]-----[staffid]-----员工ID}");
  20. return;
  21. }
  22. if (!this.InitializeDataAccess())
  23. {
  24. this.ResponseDefaultError(PromptingMessage.Error_Data_Initialized);
  25. return;
  26. }
  27. Response.Write(JsonHelper.SerializeWithSuffix(this.wd_StaffInfoDataAccess.ext.messageDataList.Find(f => f.ID == staffid)));
  28. }
  29. }
  30. }