Rlist.aspx.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 Rlist : System.Web.UI.Page
  11. {
  12. public IPowerMettersService services;
  13. public string guid;
  14. public string type;
  15. public string text;
  16. protected void Page_Load(object sender, EventArgs e)
  17. {
  18. services = new PowerMettersServiceClient();
  19. guid = Request.QueryString["guid"] == null ? "" : Request.QueryString["guid"].ToString();
  20. type = Request.QueryString["type"] == null ? "" : Request.QueryString["type"].ToString();
  21. if (guid != "")
  22. {
  23. PowerMattersBase[] lm = services.GetPowerMattersByBranchGuidAndApplyType(guid, Convert.ToInt32(type));
  24. foreach (PowerMattersBase c in lm)
  25. {
  26. //text = text + "<li><a class='list1_one'><span>" + c.QL_NAME.Replace("$", "") + "</span></a><div class='list1_li_pj' onclick='javascript:window.location.href=\"naireone.aspx?uid=1&ROWGUID=" + c.QL_INNER_CODE + "\"'>评价</div></li>";
  27. if (services.GetPowerMattersDetailByRowID(c.QL_INNER_CODE) != null)
  28. {
  29. text = text + "<li><a class='list1_one' href='show.aspx?ROWGUID=" + c.QL_INNER_CODE + "' ><span>" + c.QL_NAME.Replace("$", "") + "</span></a><div class='list1_li_pj' onclick='javascript:window.location.href=\"naire.aspx?uid=1&ROWGUID=" + c.QL_INNER_CODE + "\"'>评价</div></li>";
  30. }
  31. else
  32. {
  33. text = text + "<li><a class='list1_one' href='show.aspx?ROWGUID=" + c.QL_INNER_CODE + "' ><span>" + c.QL_NAME.Replace("$", "") + "</span></a><div class='list1_li_pj' onclick='javascript:window.location.href=\"naireone.aspx?uid=1&ROWGUID=" + c.QL_INNER_CODE + "&&q_name=" + c.QL_NAME.Replace("$", "") + "\"'>评价</div></li>";
  34. }
  35. }
  36. }
  37. if (text == null)
  38. {
  39. text = "<li><a class='list1_one' href='#'>未获取到事项!</a></li>";
  40. }
  41. }
  42. }