Exemple #1
0
 /// <summary>
 /// 下载单位数据
 /// </summary>
 /// <returns></returns>
 public DataTable GetUnitInfo(string unitCodeList)
 {
     using (PersistentManager dbPm = new PersistentManager("YXConnection"))
     {
         DownUnitDao dao = new DownUnitDao();
         dao.SetPersistentManager(dbPm);
         return(dao.GetUnitInfo(unitCodeList));
     }
 }
Exemple #2
0
 /// <summary>
 /// 下载单位数据
 /// </summary>
 /// <returns></returns>
 public DataTable GetUnitInfo()
 {
     using (PersistentManager dbPm = new PersistentManager("DB2Connection"))
     {
         DownUnitDao dao = new DownUnitDao();
         dao.SetPersistentManager(dbPm);
         return(dao.GetUnitInfo());
     }
 }