Пример #1
0
 /// <summary>
 /// 添加数据到数据库
 /// </summary>
 /// <param name="reachDt"></param>
 public void Insert(DataTable reachDt)
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownReachDao dao = new DownReachDao();
         dao.Insert(reachDt);
     }
 }
Пример #2
0
 /// <summary>
 /// 清除送货区域表
 /// </summary>
 public void Delete()
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownReachDao dao = new DownReachDao();
         dao.Delete();
     }
 }
Пример #3
0
 /// <summary>
 /// 查询送货区域编码
 /// </summary>
 /// <returns></returns>
 public DataTable QueryReachCode()
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownReachDao dao = new DownReachDao();
         return(dao.QueryReachCode());
     }
 }
Пример #4
0
 /// <summary>
 /// 根据编号下载送货区域
 /// </summary>
 /// <returns></returns>
 public DataTable GetReachInfo(string reachCode)
 {
     using (PersistentManager dbPm = new PersistentManager("YXConnection"))
     {
         DownReachDao dao = new DownReachDao();
         dao.SetPersistentManager(dbPm);
         return(dao.GetReachInfo(reachCode));
     }
 }