GetWD_ZoneInfo.aspx.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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_ZoneInfo : 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. this.wd_ZoneInfoDataAccess.ext.FileList = this.wd_ZoneInfoDataAccess.ext.FileList.OrderBy(f => Convert.ToInt32(f.ID)).ToList();
  25. this.wd_ZoneInfoDataAccess.ext.Rows = this.wd_ZoneInfoDataAccess.ext.FileList.Count;
  26. this.Response.Write(JsonHelper.SerializeWithSuffix(this.wd_ZoneInfoDataAccess.ext));
  27. }
  28. }
  29. }