/// <summary> /// 下载线路信息 /// </summary> /// <returns></returns> public DataTable GetRouteInfos(string routeCodeList) { using (PersistentManager dbPm = new PersistentManager("YXConnection")) { DownRouteDao dao = new DownRouteDao(); dao.SetPersistentManager(dbPm); return(dao.GetRouteInfos(routeCodeList)); } }
/// <summary> /// 把虚拟表的数据添加到数据库 /// </summary> /// <param name="ds"></param> public void Insert(DataSet ds) { using (PersistentManager dbPm = new PersistentManager()) { DownRouteDao dao = new DownRouteDao(); dao.SetPersistentManager(dbPm); dao.Insert(ds); } }
/// <summary> /// 清除线路表 /// </summary> public void DeleteRoute() { using (PersistentManager dbPm = new PersistentManager()) { DownRouteDao dao = new DownRouteDao(); dao.SetPersistentManager(dbPm); dao.Delete(); } }
/// <summary> /// 查询仓库线路编号 /// </summary> /// <returns></returns> public DataTable GetRouteCode() { using (PersistentManager dbPm = new PersistentManager()) { DownRouteDao dao = new DownRouteDao(); dao.SetPersistentManager(dbPm); return(dao.GetRouteCode()); } }