Ejemplo n.º 1
0
 /// <summary>
 /// ɾ��7��֮ǰ����·����ּ��м��ͷּ��(����ϸ��)����ҵ���ȱ�
 /// </summary>
 public void DeleteTable()
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownRouteDao dao = new DownRouteDao();
         dao.DeleteTable();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// ɾ��7��֮ǰ����·����ּ��м��ͷּ��(����ϸ��)����ҵ���ȱ�
 /// </summary>
 public void DeleteTable()
 {
     try
     {
         using (PersistentManager dbPm = new PersistentManager())
         {
             DownRouteDao dao = new DownRouteDao();
             dao.DeleteTable();
         }
     }
     catch (Exception e)
     {
         throw new Exception("ɾ������ʧ�ܣ�ԭ��" + e.Message);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// ��������������ӵ����ݿ�
 /// </summary>
 /// <param name="ds"></param>
 public void Insert(DataSet ds)
 {
     using (PersistentManager dbPm = new PersistentManager())
        {
        DownRouteDao dao = new DownRouteDao();
        dao.Insert(ds);
        }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// �ӷּ���������·��Ϣ
 /// </summary>
 /// <returns></returns>
 public DataTable GetSortRouteInfo(string routeCodeList)
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownRouteDao dao = new DownRouteDao();
         return dao.GetSortRouteInfo(routeCodeList);
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// ������·��Ϣ
 /// </summary>
 /// <returns></returns>
 public DataTable GetRouteInfo(string routeCodeList)
 {
     using (PersistentManager dbPm = new PersistentManager("YXConnection"))
        {
        DownRouteDao dao = new DownRouteDao();
        dao.SetPersistentManager(dbPm);
        return dao.GetRouteInfo(routeCodeList);
        }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// ��ѯ�ֿ���·���
 /// </summary>
 /// <returns></returns>
 public DataTable GetRouteCode()
 {
     using (PersistentManager dbPm = new PersistentManager())
        {
        DownRouteDao dao = new DownRouteDao();
        return dao.GetRouteCode();
        }
 }