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; }
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); }
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; }
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); }