/// <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)); } }
/// <summary> /// 添加数据到数据库 /// </summary> /// <param name="reachDt"></param> public void Insert(DataTable reachDt) { using (PersistentManager dbPm = new PersistentManager()) { DownReachDao dao = new DownReachDao(); dao.SetPersistentManager(dbPm); dao.Insert(reachDt); } }
/// <summary> /// 清除送货区域表 /// </summary> public void Delete() { using (PersistentManager dbPm = new PersistentManager()) { DownReachDao dao = new DownReachDao(); dao.SetPersistentManager(dbPm); dao.Delete(); } }
/// <summary> /// 查询送货区域编码 /// </summary> /// <returns></returns> public DataTable QueryReachCode() { using (PersistentManager dbPm = new PersistentManager()) { DownReachDao dao = new DownReachDao(); dao.SetPersistentManager(dbPm); return(dao.QueryReachCode()); } }