| 12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Data;
- using System.Text;
- using System.Web.UI.WebControls;
- using ServiceReference;
- public partial class Slist : System.Web.UI.Page
- {
- public IPowerMettersService services;
- public string keywords;
- public string text;
- protected void Page_Load(object sender, EventArgs e)
- {
- services = new PowerMettersServiceClient();
- keywords = Request.Form["keywords"] == null ? "" : Request.Form["keywords"].ToString();
- if (keywords != "")
- {
- PowerMattersBase[] lm = services.SearchByQLName(keywords,0,300);
- foreach (PowerMattersBase c in lm)
- {
- 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>";
- }
- }
- if (text == null)
- {
- text = "<li><a class='list1_one' href='#'>未搜索到事项!</a></li>";
- }
- }
- }
|