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 Realizelist : System.Web.UI.Page { public IPowerMettersService services; public string type; public string text; public string topic; protected void Page_Load(object sender, EventArgs e) { services = new PowerMettersServiceClient(); type = Request.QueryString["type"] == null ? "" : Request.QueryString["type"].ToString(); topic = type.Replace("0", "即办").Replace("-1", "其他").Replace("2", "全程网上申办,快递送达").Replace("3", "网上申报、预审,窗口核验、取件").Replace("4", "窗口申报,快递送达").Replace("1", "全程网上申办,在线取件"); Branch[] bm = services.GetBranchsByApplyType(Convert.ToInt32(type)); foreach (Branch b in bm) { text = text + "

" + b.ShortName + "

"; } if (text==null) { text = "

未获取到部门事项

"; } } }