コード例 #1
0
 /// <summary>
 /// 查询已下载过的客户编码
 /// </summary>
 /// <returns></returns>
 public DataTable GetCustomerCode()
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownCustomerDao dao = new DownCustomerDao();
         dao.SetPersistentManager(dbPm);
         return(dao.GetCustomerCode());
     }
 }
コード例 #2
0
 /// <summary>
 /// 保存数据到数据表
 /// </summary>
 /// <param name="customerDt"></param>
 public void Insert(DataSet customerDs)
 {
     using (PersistentManager dbPm = new PersistentManager())
     {
         DownCustomerDao dao = new DownCustomerDao();
         dao.SetPersistentManager(dbPm);
         dao.Insert(customerDs);
     }
 }
コード例 #3
0
 /// <summary>
 /// 下载客户信息
 /// </summary>
 /// <returns></returns>
 public DataTable GetCustomerInfo(string customerCode)
 {
     using (PersistentManager dbPm = new PersistentManager("YXConnection"))
     {
         DownCustomerDao dao = new DownCustomerDao();
         dao.SetPersistentManager(dbPm);
         return(dao.GetCustomerInfo(customerCode));
     }
 }