/// <summary> /// �����ص�������ӵ����ݿ⡣ /// </summary> /// <param name="masterds"></param> /// <param name="detailds"></param> public void Insert(DataSet detailds,DataSet middleds) { using (PersistentManager pm = new PersistentManager()) { DownOutBillDao dao = new DownOutBillDao(); try { if (middleds.Tables["WMS_MIDDLE_OUT_BILLDETAIL"].Rows.Count > 0) { dao.InsertMiddle(middleds); } if (detailds.Tables["WMS_OUT_BILLMASTER"].Rows.Count > 0) { dao.InsertOutBillMaster(detailds); } if (detailds.Tables["WMS_OUT_BILLDETAILA"].Rows.Count > 0) { dao.InsertOutBillDetail(detailds); } } catch (Exception exp) { throw new Exception(exp.Message); } } }