Exemplo n.º 1
0
 public void InsertReturnInBillDetail(DataSet ds)
 {
     using (PersistentManager pm = new PersistentManager())
     {
         DownInBillDao dao = new DownInBillDao();
         dao.SetPersistentManager(pm);
         dao.InsertInBillDetail(ds);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 把查询的数据添加到仓储数据库
 /// </summary>
 /// <param name="masterds"></param>
 /// <param name="detailds"></param>
 public void Insert(DataSet masterds, DataSet detailds)
 {
     using (PersistentManager pm = new PersistentManager())
     {
         DownInBillDao dao = new DownInBillDao();
         if (masterds.Tables["WMS_IN_BILLMASTER"].Rows.Count > 0)
         {
             dao.InsertInBillMaster(masterds);
         }
         if (detailds.Tables["WMS_IN_BILLDETAIL"].Rows.Count > 0)
         {
             dao.InsertInBillDetail(detailds);
         }
     }
 }