SetWD_StaffInfo.aspx.cs 1.6 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. using System.IO;
  14. namespace HNWD.Pregrant.WebService.MgrCSharp
  15. {
  16. public partial class SetWD_StaffInfo : 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 staffid = this.GetValueByKey("staffid");
  23. if (string.IsNullOrEmpty(actionflag))
  24. {
  25. this.ResponseDefaultError();
  26. return;
  27. }
  28. WD_StaffInfoBusinessLogic wd_StaffInfoBusinessLogic = new WD_StaffInfoBusinessLogic(staffid);
  29. if (!wd_StaffInfoBusinessLogic.bSuccess)
  30. {
  31. Response.Write(JsonHelper.SerializeWithSuffix(wd_StaffInfoBusinessLogic.Message));
  32. return;
  33. }
  34. if (actionflag.ToLower() == "query")
  35. {
  36. Response.Write(JsonHelper.SerializeWithSuffix(wd_StaffInfoBusinessLogic.Query(staffid)));
  37. return;
  38. }
  39. if (actionflag.ToLower() == "business")
  40. {
  41. Response.Write(JsonHelper.SerializeWithSuffix(wd_StaffInfoBusinessLogic.Business(data)));
  42. return;
  43. }
  44. }
  45. }
  46. }