Realizelist.aspx.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Data;
  7. using System.Text;
  8. using System.Web.UI.WebControls;
  9. using ServiceReference;
  10. public partial class Realizelist : System.Web.UI.Page
  11. {
  12. public IPowerMettersService services;
  13. public string type;
  14. public string text;
  15. public string topic;
  16. protected void Page_Load(object sender, EventArgs e)
  17. {
  18. services = new PowerMettersServiceClient();
  19. type = Request.QueryString["type"] == null ? "" : Request.QueryString["type"].ToString();
  20. topic = type.Replace("0", "即办").Replace("-1", "其他").Replace("2", "全程网上申办,快递送达").Replace("3", "网上申报、预审,窗口核验、取件").Replace("4", "窗口申报,快递送达").Replace("1", "全程网上申办,在线取件");
  21. Branch[] bm = services.GetBranchsByApplyType(Convert.ToInt32(type));
  22. foreach (Branch b in bm)
  23. {
  24. text = text + "<p class='list3' onclick='javascript:window.location.href=\"Rlist.aspx?guid=" + b.GUID + "&type="+type+"\"'> <span>" + b.ShortName + "</span></p> ";
  25. }
  26. if (text==null)
  27. {
  28. text = "<p class='list3'>未获取到部门事项</p><p class='list3' style='background:url();'></p>";
  29. }
  30. }
  31. }