Beispiel #1
0
 /// <summary>
 /// 获取配送中心编码
 /// </summary>
 /// <returns></returns>
 public string GetCompany()
 {
     using (PersistentManager dbpm = new PersistentManager())
     {
         DownDistDao dao = new DownDistDao();
         dao.SetPersistentManager(dbpm);
         return(dao.GetCompany().ToString());
     }
 }
Beispiel #2
0
 public void Insert(DataTable distTable)
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownDistDao dao = new DownDistDao();
         dao.SetPersistentManager(dbPm);
         dao.Insert(distTable);
     }
 }
Beispiel #3
0
 /// <summary>
 /// 下载配送中心信息
 /// </summary>
 /// <returns></returns>
 public DataTable GetDistInfo()
 {
     using (PersistentManager dbPm = new PersistentManager("YXConnection"))
     {
         DownDistDao dao = new DownDistDao();
         dao.SetPersistentManager(dbPm);
         return(dao.GetDistInfo());
     }
 }
Beispiel #4
0
 /// <summary>
 /// 清除配送中心信息
 /// </summary>
 public void Delete()
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownDistDao dao = new DownDistDao();
         dao.SetPersistentManager(dbPm);
         dao.Delete();
     }
 }