SetWD_PartInfo.aspx.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. using System.IO;
  14. namespace HNWD.Pregrant.WebService.MgrCSharp
  15. {
  16. public partial class SetWD_PartInfo : PageBase
  17. {
  18. protected void Page_Load(object sender, EventArgs e)
  19. {
  20. string actionflag = this.GetValueByKey("actionflag");
  21. string data = this.GetValueByKey("data");
  22. string id = this.GetValueByKey("id");
  23. if (string.IsNullOrEmpty(actionflag))
  24. {
  25. this.ResponseDefaultError();
  26. return;
  27. }
  28. WD_PartInfoBusinessLogic2 wd_PartInfoBusinessLogic2 = new WD_PartInfoBusinessLogic2(id);
  29. if (!wd_PartInfoBusinessLogic2.bSuccess)
  30. {
  31. Response.Write(JsonHelper.SerializeWithSuffix(wd_PartInfoBusinessLogic2.Message));
  32. return;
  33. }
  34. if (actionflag.ToLower() == "query")
  35. {
  36. Response.Write(JsonHelper.SerializeWithSuffix(wd_PartInfoBusinessLogic2.Query(id)));
  37. return;
  38. }
  39. if (actionflag.ToLower() == "business")
  40. {
  41. Response.Write(JsonHelper.SerializeWithSuffix(wd_PartInfoBusinessLogic2.Business(data)));
  42. return;
  43. }
  44. }
  45. }
  46. }