/// <summary> /// 查询已下载过的客户编码 /// </summary> /// <returns></returns> public DataTable GetCustomerCode() { using (PersistentManager dbPm = new PersistentManager()) { DownCustomerDao dao = new DownCustomerDao(); dao.SetPersistentManager(dbPm); return(dao.GetCustomerCode()); } }
/// <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); } }
/// <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)); } }