/// <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(); dao.SetPersistentManager(pm); if (masterds.Tables["WMS_IN_BILLMASTER"].Rows.Count > 0) { dao.InsertInBillMaster(masterds); } if (masterds.Tables["DWV_IWMS_IN_STORE_BILL"].Rows.Count > 0) { dao.InsertInStoreBill(masterds); } if (detailds.Tables["WMS_IN_BILLDETAIL"].Rows.Count > 0) { dao.InsertInBillDetail(detailds); } if (detailds.Tables["DWV_IWMS_IN_STORE_BILL_DETAIL"].Rows.Count > 0) { dao.InsertInStoreBillDetail(detailds); } } }