/// <summary> /// 插入数据 /// </summary> /// <param name="orgDt"></param> public void Insert(DataTable saleTable) { using (PersistentManager dbPm = new PersistentManager()) { DownSaleRegionDao dao = new DownSaleRegionDao(); dao.Insert(saleTable); } }
/// <summary> /// 清除营销区域信息 /// </summary> public void Delete() { using (PersistentManager dbPm = new PersistentManager()) { DownSaleRegionDao dao = new DownSaleRegionDao(); dao.Delete(); } }
/// <summary> /// 下载营销区域信息 /// </summary> /// <returns></returns> public DataTable GetSaleInfo() { using (PersistentManager dbPm = new PersistentManager("YXConnection")) { DownSaleRegionDao dao = new DownSaleRegionDao(); dao.SetPersistentManager(dbPm); return(dao.GetSaleInfo()); } }