mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 08:53:00 +08:00
53 lines
1.5 KiB
Python
53 lines
1.5 KiB
Python
from felicity.apps.abstract import BaseRepository
|
|
from felicity.apps.instrument.entities import (CalibrationCertificate,
|
|
Instrument,
|
|
InstrumentCalibration,
|
|
InstrumentCompetence,
|
|
InstrumentType,
|
|
LaboratoryInstrument, Method)
|
|
|
|
SEQUENCE_BEGIN = 5
|
|
SEQUENCE_CUTOFF = 10
|
|
|
|
|
|
class MethodRepository(BaseRepository[Method]):
|
|
def __init__(self) -> None:
|
|
super().__init__(Method)
|
|
|
|
|
|
class InstrumentRepository(BaseRepository[Instrument]):
|
|
def __init__(self) -> None:
|
|
super().__init__(Instrument)
|
|
|
|
|
|
class LaboratoryInstrumentRepository(
|
|
BaseRepository[LaboratoryInstrument],
|
|
):
|
|
def __init__(
|
|
self,
|
|
):
|
|
super().__init__(LaboratoryInstrument)
|
|
|
|
|
|
class InstrumentTypeRepository(BaseRepository[InstrumentType]):
|
|
def __init__(self) -> None:
|
|
super().__init__(InstrumentType)
|
|
|
|
|
|
class InstrumentCalibrationRepository(BaseRepository[InstrumentCalibration]):
|
|
def __init__(self) -> None:
|
|
super().__init__(InstrumentCalibration)
|
|
|
|
|
|
class CalibrationCertificateRepository(BaseRepository[CalibrationCertificate]):
|
|
def __init__(self) -> None:
|
|
super().__init__(CalibrationCertificate)
|
|
|
|
|
|
class InstrumentCompetenceRepository(
|
|
BaseRepository[InstrumentCompetence],
|
|
):
|
|
def __init__(
|
|
self,
|
|
):
|
|
super().__init__(InstrumentCompetence)
|