GetWD_DeviceInfoArray.aspx.cs 973 B

1234567891011121314151617181920212223242526272829303132333435363738
  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.WebService;
  8. using HNWD.Pregrant.Model;
  9. using System.Text;
  10. using HNWD.Pregrant.DataAccess;
  11. using HNWD.Pregrant.Common;
  12. using HNWD.Pregrant.BusinessLogic;
  13. namespace HNWD.Pregrant.WebService.MgrCSharp
  14. {
  15. public partial class GetWD_DeviceInfoArray :PageBase
  16. {
  17. protected void Page_Load(object sender, EventArgs e)
  18. {
  19. if(!this.InitializeDataAccess())
  20. {
  21. this.ResponseDefaultError(PromptingMessage.Error_Data_Initialized);
  22. return;
  23. }
  24. if(this.wd_DeviceInfoDataAccess.ext.DeviceInfoArray.Count == 0)
  25. {
  26. this.ResponseDefaultError();
  27. return;
  28. }
  29. this.Response.Write(JsonHelper.SerializeWithSuffix(this.wd_DeviceInfoDataAccess.ext));
  30. }
  31. }
  32. }