/// <summary> /// 通过帐号获取行程信息 /// </summary> /// <param name="account"></param> /// <returns></returns> public ReturnRoad Get(string account) { ReturnRoad tmpReturnRoad = new ReturnRoad(); List <Dictionary <string, string> > tmpList = new List <Dictionary <string, string> >(); try { Dictionary <string, string> returnDictionary = new Dictionary <string, string>(); returnDictionary.Add("RoadID", null); returnDictionary.Add("RoadName", null); returnDictionary.Add("Introduction", null); tmpList = myConnent.MySqlReadDictionary("SELECT * FROM 路径表 WHERE account ='" + account + "' ORDER BY EndTime DESC", returnDictionary); tmpReturnRoad.returnMessage = tmpList; return(tmpReturnRoad); } catch (Exception e) { Debug.WriteLine(e.ToString()); tmpReturnRoad.returnMessage = tmpList; return(tmpReturnRoad); } }