Пример #1
0
 /// <summary>
 /// 查询供应商编号
 /// </summary>
 /// <returns></returns>
 public DataTable GetSupplierCode()
 {
     using (PersistentManager pm = new PersistentManager())
     {
         DownSupplierDao dao = new DownSupplierDao();
         dao.SetPersistentManager(pm);
         return(dao.GetSupplierCode());
     }
 }
Пример #2
0
 /// <summary>
 /// 把下载的数据插入到数据库
 /// </summary>
 /// <param name="ds"></param>
 public void InsertSpplier(DataSet ds)
 {
     using (PersistentManager pm = new PersistentManager())
     {
         DownSupplierDao dao = new DownSupplierDao();
         dao.SetPersistentManager(pm);
         dao.Insert(ds);
     }
 }
Пример #3
0
 /// <summary>
 /// 下载厂商信息
 /// </summary>
 /// <returns></returns>
 public DataTable GetSpplierInfo(string spplierCode)
 {
     using (PersistentManager dbPm = new PersistentManager("YXConnection"))
     {
         DownSupplierDao dao = new DownSupplierDao();
         dao.SetPersistentManager(dbPm);
         return(dao.GetSupplierInfo(spplierCode));
     }
 }