protected string getFlowList() { UserLogInfo userLoginInfo = this.LogInfo; TSysUserVo user = userLoginInfo.UserInfo; string info = CCFlowFacade.GetEmpStart(user.USER_NAME); XmlDocument document = new XmlDocument(); document.LoadXml(info); XmlNodeList rows = document.SelectNodes("/root/record/row"); IList <Dictionary <string, string> > list = new List <Dictionary <string, string> >(); IList <Dictionary <string, string> > sort = new List <Dictionary <string, string> >(); for (int i = 0; i < rows.Count; i++) { XmlNode node = rows.Item(i); XmlNodeList children = node.ChildNodes; Dictionary <string, string> dic = new Dictionary <string, string>(); for (int j = 0; j < children.Count; j++) { XmlNode element = children[j]; dic.Add(element.Name, Server.UrlDecode(element.InnerText)); if (element.Name == "FlowPic") { string FlowPicUrl = dic["FlowPic"]; string[] arrayUrl = FlowPicUrl.Split('/'); arrayUrl[3] = Server.UrlEncode(arrayUrl[3]); string temp = string.Concat(FlowPicUrl, "/"); dic["FlowPic"] = temp.Substring(0, temp.LastIndexOf("/")); } } list.Add(dic); } JavaScriptSerializer serializer = new JavaScriptSerializer(); return(serializer.Serialize(new { Rows = list })); }