Ejemplo n.º 1
0
 /// <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));
     }
 }
Ejemplo n.º 2
0
 /// <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);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 清除线路表
 /// </summary>
 public void DeleteRoute()
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownRouteDao dao = new DownRouteDao();
         dao.SetPersistentManager(dbPm);
         dao.Delete();
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 查询仓库线路编号
 /// </summary>
 /// <returns></returns>
 public DataTable GetRouteCode()
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownRouteDao dao = new DownRouteDao();
         dao.SetPersistentManager(dbPm);
         return(dao.GetRouteCode());
     }
 }