public void SaveAlcoholizeBill(DataRow masterRow, DataTable detailTable, Dictionary<string, DataTable> productState, string userID) { using (PersistentManager pm = new PersistentManager()) { try { BillDao billDao = new BillDao(); ProductStateDao stateDao = new ProductStateDao(); ScheduleDao scheduleDao = new ScheduleDao(); string billNo = masterRow["BILLNO"].ToString(); pm.BeginTransaction(); //���뵥������ billDao.UpdateMaster2(masterRow); //���뵥����ϸ�� billDao.SaveAlcoholizeDetail(billNo, detailTable); //����ProductState�� if (productState != null) { foreach (string productCode in productState.Keys) { DataTable stateTable = productState[productCode]; //stateDao.Delete(billNo, productCode); stateDao.Insert(billNo, masterRow["SCHEDULENO"].ToString(), stateTable, userID); } } pm.Commit(); } catch (Exception e) { pm.Rollback(); throw new Exception(e.Message); } } }