public void Save(InstrumentCheckLogModel model) { if (model.LogId == 0) { DataProvider.measureLabInstrumentCheckLogDAO.Add(model); } else { DataProvider.measureLabInstrumentCheckLogDAO.Update(model); } }
/// <summary> /// 更新周检记录. /// </summary> public void Update(InstrumentCheckLogModel model) { DBProvider.dbMapper.Update("Instrument_CheckLog.Update", model); }
/// <summary> /// 增加周检记录. /// </summary> public void Add(InstrumentCheckLogModel model) { DBProvider.dbMapper.Insert("Instrument_CheckLog.Insert", model); }