SetWD_ZoneInfo.aspx.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 SetWD_ZoneInfo : PageBase
  16. {
  17. protected void Page_Load(object sender, EventArgs e)
  18. {
  19. string actionflag = this.GetValueByKey("actionflag");
  20. string data = this.GetValueByKey("data");
  21. string id = this.GetValueByKey("id");
  22. if (string.IsNullOrEmpty(actionflag))
  23. {
  24. this.ResponseDefaultError();
  25. return;
  26. }
  27. WD_ZoneInfoBusinessLogic wd_ZoneInfoBusinessLogic = new WD_ZoneInfoBusinessLogic(actionflag);
  28. if (!wd_ZoneInfoBusinessLogic.bSuccess)
  29. {
  30. Response.Write(JsonHelper.SerializeWithSuffix(wd_ZoneInfoBusinessLogic.Message));
  31. return;
  32. }
  33. if (actionflag.ToLower() == "query")
  34. {
  35. Response.Write(JsonHelper.SerializeWithSuffix(wd_ZoneInfoBusinessLogic.Query(id)));
  36. return;
  37. }
  38. if (actionflag.ToLower() == "business")
  39. {
  40. Response.Write(JsonHelper.SerializeWithSuffix(wd_ZoneInfoBusinessLogic.Business(data)));
  41. return;
  42. }
  43. }
  44. }
  45. }