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