Esempio n. 1
0
        public override void InitializeProperties()
        {
            ACMskTabVM.InitializeProperties();
            ACUmskTabVM.InitializeProperties();
            BCMskTabVM.InitializeProperties();
            BCUmskTabVM.InitializeProperties();
            ACAidedTabVM.InitializeProperties();
            LoudnessTabVM.InitializeProperties();
            SoundFieldTabVM.InitializeProperties();
            IsPureToneTestConducted = false;

            AblbTabVM.InitializeProperties();
            SisiTabVM.InitializeProperties();
            ToneDecayTabVM.InitializeProperties();
            StengerTabVM.InitializeProperties();
            TuningForkVM.InitializeProperties();
            IsSpecialTestConducted = false;
        }
Esempio n. 2
0
        public override bool DeleteRecordFromDatabase(string accNumber, string examDate)
        {
            bool acmskDel  = ACMskTabVM.DeleteRecordFromDatabase(accNumber, examDate);
            bool acumskDel = ACUmskTabVM.DeleteRecordFromDatabase(accNumber, examDate);
            bool bcmskDel  = BCMskTabVM.DeleteRecordFromDatabase(accNumber, examDate);
            bool bcumskDel = BCUmskTabVM.DeleteRecordFromDatabase(accNumber, examDate);
            bool acaidDel  = ACAidedTabVM.DeleteRecordFromDatabase(accNumber, examDate);
            bool loudDel   = LoudnessTabVM.DeleteRecordFromDatabase(accNumber, examDate);
            bool soundDel  = SoundFieldTabVM.DeleteRecordFromDatabase(accNumber, examDate);

            bool ablbDel       = AblbTabVM.DeleteRecordFromDatabase(accNumber, examDate);
            bool sisiDel       = SisiTabVM.DeleteRecordFromDatabase(accNumber, examDate);
            bool tonedecayDel  = ToneDecayTabVM.DeleteRecordFromDatabase(accNumber, examDate);
            bool stengerDel    = StengerTabVM.DeleteRecordFromDatabase(accNumber, examDate);
            bool tuningforkDel = TuningForkVM.DeleteRecordFromDatabase(accNumber, examDate);

            return(acmskDel || acumskDel || bcmskDel || bcumskDel || acaidDel || loudDel || soundDel ||
                   ablbDel || sisiDel || tonedecayDel || stengerDel || tuningforkDel);
        }
Esempio n. 3
0
        public override void OpenRecordFromDatabase(string accNumber, string examDate)
        {
            bool ptTestConducted;
            bool stTestConducted;

            ACMskTabVM.OpenRecordFromDatabase(accNumber, examDate, out ptTestConducted);
            ACUmskTabVM.OpenRecordFromDatabase(accNumber, examDate, out ptTestConducted);
            BCMskTabVM.OpenRecordFromDatabase(accNumber, examDate, out ptTestConducted);
            BCUmskTabVM.OpenRecordFromDatabase(accNumber, examDate, out ptTestConducted);
            ACAidedTabVM.OpenRecordFromDatabase(accNumber, examDate, out ptTestConducted);
            LoudnessTabVM.OpenRecordFromDatabase(accNumber, examDate, out ptTestConducted);
            SoundFieldTabVM.OpenRecordFromDatabase(accNumber, examDate, out ptTestConducted);
            IsPureToneTestConducted = ptTestConducted;

            AblbTabVM.OpenRecordFromDatabase(accNumber, examDate, out stTestConducted);
            SisiTabVM.OpenRecordFromDatabase(accNumber, examDate, out stTestConducted);
            ToneDecayTabVM.OpenRecordFromDatabase(accNumber, examDate, out stTestConducted);
            StengerTabVM.OpenRecordFromDatabase(accNumber, examDate, out stTestConducted);
            TuningForkVM.OpenRecordFromDatabase(accNumber, examDate);
            IsSpecialTestConducted = stTestConducted;
        }
Esempio n. 4
0
        public override bool UpdateRecordInDatabase(string accNumber, string examDate, out string msg)
        {
            string error;
            bool   success = ACMskTabVM.UpdateRecordInDatabase(accNumber, examDate, isPureToneTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = ACUmskTabVM.UpdateRecordInDatabase(accNumber, examDate, isPureToneTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = BCMskTabVM.UpdateRecordInDatabase(accNumber, examDate, isPureToneTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = BCUmskTabVM.UpdateRecordInDatabase(accNumber, examDate, isPureToneTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = ACAidedTabVM.UpdateRecordInDatabase(accNumber, examDate, isPureToneTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = LoudnessTabVM.UpdateRecordInDatabase(accNumber, examDate, isPureToneTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = SoundFieldTabVM.UpdateRecordInDatabase(accNumber, examDate, isPureToneTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = AblbTabVM.UpdateRecordInDatabase(accNumber, examDate, isSpecialTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = SisiTabVM.UpdateRecordInDatabase(accNumber, examDate, isSpecialTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = ToneDecayTabVM.UpdateRecordInDatabase(accNumber, examDate, isSpecialTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = StengerTabVM.UpdateRecordInDatabase(accNumber, examDate, isSpecialTestConducted, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            success = TuningForkVM.UpdateRecordInDatabase(accNumber, examDate, out error);

            if (!success)
            {
                msg = error;
                return(false);
            }

            msg = string.Empty;
            return(true);
        }