Ejemplo n.º 1
0
 public static ProductStainlessCirculationRecordDao getInstance()
 {
     if (dao == null)
     {
         dao = new ProductStainlessCirculationRecordDao();
     }
     return(dao);
 }
 public override bool updateRecords(int ID, List <ProductCirculationRecord> records)
 {
     try
     {
         ProductStainlessCirculationRecordDao.getInstance().DeleteByCirculationID(ID);
         this.insertRecords(ID, records);
         return(true);
     }
     catch {
         return(false);
     }
 }
 private void insertRecords(int ID, List <ProductCirculationRecord> records)
 {
     try
     {
         foreach (ProductStainlessCirculationRecord record in records)
         {
             record.CirculationID = ID;
             ProductStainlessCirculationRecordDao.getInstance().Insert(record);
         }
     }
     catch (Exception ex) {
         throw ex;
     }
 }
 public override ProductCirculationRecordDao getRecordDao()
 {
     return(ProductStainlessCirculationRecordDao.getInstance());
 }