diff --git a/eDosLocal/UpdateLocal.sql b/eDosLocal/UpdateLocal.sql index a7bc417..eaed41c 100644 --- a/eDosLocal/UpdateLocal.sql +++ b/eDosLocal/UpdateLocal.sql @@ -1,340 +1,288 @@ -USE [eDosLocal]; -GO - -/****** Object: StoredProcedure [dbo].[VisitExit] Script Date: 11/04/2022 14:31:28 ******/ -SET ANSI_NULLS ON; -GO - -SET QUOTED_IDENTIFIER ON; -GO - -IF NOT EXISTS (SELECT * FROM sys.columns WHERE OBJECT_ID=OBJECT_ID('dbo.visit') AND name='eDosBatteryWarning') -begin -ALTER TABLE [dbo].[Visit] ADD eDosBatteryWarning BIT null; -ALTER TABLE [dbo].[Visit] ADD eDosDose07Warning BIT null; -ALTER TABLE [dbo].[Visit] ADD eDosDose07Alarm BIT null; -ALTER TABLE [dbo].[Visit] ADD eDosRate07Warning BIT null; -ALTER TABLE [dbo].[Visit] ADD eDosRate07Alarm BIT null; -ALTER TABLE [dbo].[Visit] ADD eDosDose10Warning BIT null; -ALTER TABLE [dbo].[Visit] ADD eDosDose10Alarm BIT null; -ALTER TABLE [dbo].[Visit] ADD eDosRate10Warning BIT null; -ALTER TABLE [dbo].[Visit] ADD eDosRate10Alarm BIT null; -END -GO - -ALTER PROCEDURE [dbo].[VisitExit] - @EPDVisitID INT, - @HP07 FLOAT, - @HP10 FLOAT, - @HP07Peak FLOAT, - @HP10Peak FLOAT, - @HP07PeakTime DATETIME = NULL, - @HP10PeakTime DATETIME = NULL, - @HP07Total FLOAT, - @HP10Total FLOAT, - @K1 INT, - @K2 INT, - @K3 INT, - @K4 INT, - @K5 INT = NULL, - @K6 INT = NULL, - @SG INT, - @BC INT, - @FB INT, - @HG INT, - @QualityData INT, - @alarmStatus INT, - @otherAlarms INT, - @errorStatus INT, - @operatingStatus INT, - @ENTRY_EPD_CLOCK DECIMAL(10, 0) NULL, - @EXIT_EPD_CLOCK DECIMAL(10, 0) NULL, - @PersID INT = NULL, - @eDosBatteryWarning BIT = NULL, - @eDosDose07Warning BIT = NULL, - @eDosDose07Alarm BIT = NULL, - @eDosRate07Warning BIT = NULL, - @eDosRate07Alarm BIT = NULL, - @eDosDose10Warning BIT = NULL, - @eDosDose10Alarm BIT = NULL, - @eDosRate10Warning BIT = NULL, - @eDosRate10Alarm BIT = NULL -AS -DECLARE @ID_Visit INT, - @ID_Station INT, - @ID_Station_Return INT; - -SET @ID_Station = @EPDVisitID % 100; -SET @ID_Visit = @EPDVisitID / 100; - -IF @ID_Station_Return IS NULL - SELECT @ID_Station_Return = [ID_Station] - FROM [dbo].[StationSettings] - WHERE [PCNr] = HOST_NAME (); - -DECLARE @isComplete BIT = 1; - -IF NOT EXISTS -( - SELECT * - FROM [dbo].[Visit] - WHERE [ID_Visit] = @ID_Visit - AND [ID_Station] = @ID_Station -) -BEGIN - SET @isComplete = 0; - - INSERT [dbo].[Visit] - ( - [ID_Station], - [ID_Visit], - [Inst_CODE], - [isManualExit], - [isDeleted], - [ID_Station_Return], - [isComplete], - [ENTRY_EPD_CLOCK], - [PersID] - ) - VALUES - (@ID_Station, @ID_Visit, 0, 0, 0, @ID_Station_Return, 0, @ENTRY_EPD_CLOCK, @PersID); -END; - -UPDATE [dbo].[Visit] -SET [Hp07Dose] = @HP07, - [Hp10Dose] = @HP10, - [isComplete] = @isComplete, - [ReturnTime] = GETDATE (), - [Hp07Peak] = @HP07Peak, - [Hp10Peak] = @HP10Peak, - [Hp07Time] = @HP07PeakTime, - [Hp10Time] = @HP10PeakTime, - [Hp07Total] = @HP07Total, - [Hp10Total] = @HP10Total, - [K1] = @K1, - [K2] = @K2, - [K3] = @K3, - [K4] = @K4, - [K5] = @K5, - [K6] = @K6, - [SG] = @SG, - [BC] = @BC, - [FB] = @FB, - [HG] = @HG, - [QualityData] = @QualityData, - [alarmStatus] = @alarmStatus, - [otherAlarms] = @otherAlarms, - [errorStatus] = @errorStatus, - [operatingStatus] = @operatingStatus, - --[D1] = @D1, [D2] = @D2, [D3] = @D3, [D4] = @D4, - [isAlarm] = CASE - WHEN ISNULL (@alarmStatus, 0) <> 0 THEN - 1 - ELSE - 0 - END, - [isManualExit] = 0, - [ID_Station_Return] = @ID_Station_Return, - [ENTRY_EPD_CLOCK] = @ENTRY_EPD_CLOCK, - [EXIT_EPD_CLOCK] = @EXIT_EPD_CLOCK, - [PersID] = CASE - WHEN [PersID] IS NULL THEN - @PersID - ELSE - [PersID] - END, - eDosBatteryWarning= @eDosBatteryWarning, - eDosDose07Warning = @eDosDose07Warning , - eDosDose07Alarm=@eDosDose07Alarm, - eDosRate07Warning=@eDosRate07Warning, - eDosRate07Alarm=@eDosRate07Alarm, - eDosDose10Warning=@eDosDose10Warning, - eDosDose10Alarm=@eDosDose10Alarm, - eDosRate10Warning=@eDosRate10Warning, - eDosRate10Alarm=@eDosRate10Alarm -WHERE [ID_Visit] = @ID_Visit - AND [ID_Station] = @ID_Station; - --- local- >PersonInfoSnapshot -IF ISNULL (@alarmStatus, 0) <> 0 - OR ISNULL(@eDosDose07Alarm,0)<>0 - OR ISNULL(@eDosRate07Alarm,0)<>0 - OR ISNULL(@eDosDose10Alarm,0)<>0 - OR ISNULL(@eDosRate10Alarm,0)<>0 -BEGIN - UPDATE [dbo].[PersonInfoSnapshot] - SET [VisitIDLocked] = @ID_Visit * 100 + @ID_Station - WHERE [PersID] = - ( - SELECT [PersID] - FROM [dbo].[Visit] - WHERE [ID_Visit] = @ID_Visit - AND @ID_Station = @ID_Station - ); -END; - -GO -ALTER PROCEDURE [export].[VisitsSelect] -AS -SELECT [ID_Station], - [ID_Visit], - [Inst_CODE], - [PersID], - [ID_Task], - [EntryTime], - [ReturnTime], - [Hp10Dose], - [Hp07Dose], - [Hp10Total], - [Hp07Total], - [Hp10Peak], - [Hp07Peak], - [Hp10Time], - [Hp07Time], - [ID_EPD], - [QualityData], - [K1], - [K2], - [K3], - [K4], - [K5], - [K6], - [SG], - [BC], - [FB], - [HG], - [alarmStatus], - [otherAlarms], - [errorStatus], - [operatingStatus], - [isBG], - [isComplete], - [isDeleted], - [isAlarm], - [isAlarmCleared], - [isManualExit], - [ID_Station_Return], - [ENTRY_EPD_CLOCK], - [EXIT_EPD_CLOCK], - [TIME_LOST], - [VisitStatus] = CONVERT ( TINYINT, - CASE - WHEN [EntryTime] IS NOT NULL - AND [ReturnTime] IS NOT NULL THEN - 3 - WHEN [EntryTime] IS NOT NULL THEN - 1 - WHEN [ReturnTime] IS NOT NULL THEN - 2 - ELSE - 0 - END - ), - [syncedEntry], - [syncedExit], - [epdType], - [eDosBatteryWarning], - [eDosDose07Warning], - [eDosDose07Alarm], - [eDosRate07Warning], - [eDosRate07Alarm], - [eDosDose10Warning], - [eDosDose10Alarm], - [eDosRate10Warning], - [eDosRate10Alarm] -FROM [dbo].[Visit] -WHERE ( - [syncedEntry] = 0 - OR [syncedExit] = 0 - ); -GO - -ALTER TABLE [dbo].[StationSettings] ADD [RestartComFirst] BIT; -ALTER TABLE [dbo].[StationSettings] ADD [OnlyMK2] BIT; -GO - -ALTER PROCEDURE [dbo].[StationSettingsSelect] -AS -SELECT [ID_Station], - [PCNr], - [ComPort], - [Inst_CODE1], - [Inst_CODE2], - [Inst_Name1], - [Inst_Name2], - [TestCSN], - [Reader], - [useTestButtons] = ISNULL ([useTestButtons], 0), - [useBeep] = ISNULL ([useBeep], 22), - [checkUser] = ISNULL ([checkUser], 0), - [EPDTimeout] = ISNULL ([EPDTimeout], 10000), - [EPDRetries] = ISNULL ([EPDREtries], 1), - [RestartCom] = ISNULL ([RestartCom], 0), - [RestartComFirst] = ISNULL ([RestartComFirst], 0), - [OnlyMK2] = ISNULL ([OnlyMK2], 0) -FROM [dbo].[StationSettings] -WHERE [PCNr] = HOST_NAME (); -GO - -ALTER PROCEDURE [dbo].[StationSettingsUpdate] - @ComPort INT = NULL, - @Inst_CODE1 INT = NULL, - @Inst_CODE2 INT = NULL, - @Inst_Name1 VARCHAR(50) = NULL, - @Inst_Name2 VARCHAR(50) = NULL, - @TestCSN VARCHAR(50) = NULL, - @Reader VARCHAR(70) = NULL, - @useTestButtons BIT = 0, - @useBeep TINYINT = 22, - @checkUser BIT = 0, - @EPDTimeout INT = 10000, - @EPDRetries INT = 1, - @RestartCom BIT = 0, - @RestartComFirst BIT = 0, - @OnlyMK2 BIT = 0 -AS -IF NOT EXISTS -( - SELECT * - FROM [dbo].[StationSettings] - WHERE [PCNr] = HOST_NAME () -) - INSERT [dbo].[StationSettings] - ( - [PCNr], - [ComPort], - [Inst_CODE1], - [Inst_CODE2], - [Inst_Name1], - [Inst_Name2], - [TestCSN], - [Reader], - [useTestButtons], - [useBeep], - [checkUser], - [EPDREtries], - [RestartCom], - [RestartComFirst], - [OnlyMK2] - ) - VALUES - (HOST_NAME (), @ComPort, @Inst_CODE1, @Inst_CODE2, @Inst_Name1, @Inst_Name2, @TestCSN, @Reader, @useTestButtons, - @useBeep, @checkUser, @EPDRetries, @RestartCom, @RestartComFirst, @OnlyMK2); -ELSE - UPDATE [dbo].[StationSettings] - SET [ComPort] = @ComPort, - [Inst_CODE1] = @Inst_CODE1, - [Inst_CODE2] = @Inst_CODE2, - [Inst_Name1] = @Inst_Name1, - [Inst_Name2] = @Inst_Name2, - [TestCSN] = @TestCSN, - [Reader] = @Reader, - [useTestButtons] = @useTestButtons, - [useBeep] = @useBeep, - [checkUser] = @checkUser, - [EPDTimeout] = @EPDTimeout, - [EPDREtries] = @EPDRetries, - [RestartCom] = @RestartCom, - [RestartComFirst] = @RestartComFirst, - [OnlyMK2] = @OnlyMK2 - WHERE [PCNr] = HOST_NAME (); +USE [eDosLocal]; +GO +SET ANSI_NULLS ON; +GO +SET QUOTED_IDENTIFIER ON; +GO + +IF NOT EXISTS (SELECT * FROM sys.columns WHERE OBJECT_ID=OBJECT_ID('dbo.visit') AND name='eDosBatteryWarning') +begin +ALTER TABLE [dbo].[Visit] ADD eDosBatteryWarning BIT null; +ALTER TABLE [dbo].[Visit] ADD eDosDose07Warning BIT null; +ALTER TABLE [dbo].[Visit] ADD eDosDose07Alarm BIT null; +ALTER TABLE [dbo].[Visit] ADD eDosRate07Warning BIT null; +ALTER TABLE [dbo].[Visit] ADD eDosRate07Alarm BIT null; +ALTER TABLE [dbo].[Visit] ADD eDosDose10Warning BIT null; +ALTER TABLE [dbo].[Visit] ADD eDosDose10Alarm BIT null; +ALTER TABLE [dbo].[Visit] ADD eDosRate10Warning BIT null; +ALTER TABLE [dbo].[Visit] ADD eDosRate10Alarm BIT null; +END +GO +ALTER PROCEDURE [dbo].[VisitExit] @EPDVisitID INT, + @HP07 FLOAT, + @HP10 FLOAT, + @HP07Peak FLOAT, + @HP10Peak FLOAT, + @HP07PeakTime DATETIME = NULL, + @HP10PeakTime DATETIME = NULL, + @HP07Total FLOAT, + @HP10Total FLOAT, + @K1 INT, + @K2 INT, + @K3 INT, + @K4 INT, + @K5 INT = NULL, + @K6 INT = NULL, + @SG INT, + @BC INT, + @FB INT, + @HG INT, + @QualityData INT, + @alarmStatus INT, + @otherAlarms INT, + @errorStatus INT, + @operatingStatus INT, + @ENTRY_EPD_CLOCK DECIMAL(10, 0) NULL, + @EXIT_EPD_CLOCK DECIMAL(10, 0) NULL, + @PersID INT = NULL, + @eDosBatteryWarning BIT = NULL, + @eDosDose07Warning BIT = NULL, + @eDosDose07Alarm BIT = NULL, + @eDosRate07Warning BIT = NULL, + @eDosRate07Alarm BIT = NULL, + @eDosDose10Warning BIT = NULL, + @eDosDose10Alarm BIT = NULL, + @eDosRate10Warning BIT = NULL, + @eDosRate10Alarm BIT = NULL +AS +DECLARE + @ID_Visit INT, + @ID_Station INT, + @ID_Station_Return INT; + +SET @ID_Station = @EPDVisitID % 100; +SET @ID_Visit = @EPDVisitID / 100; + +IF @ID_Station_Return IS NULL + SELECT + @ID_Station_Return = [ID_Station] + FROM [dbo].[StationSettings] + WHERE [PCNr] = HOST_NAME(); + +DECLARE @isComplete BIT = 1; + +IF NOT EXISTS (SELECT + * + FROM [dbo].[Visit] + WHERE [ID_Visit] = @ID_Visit + AND [ID_Station] = @ID_Station)BEGIN + SET @isComplete = 0; + + INSERT [dbo].[Visit]([ID_Station], [ID_Visit], [Inst_CODE], [isManualExit], [isDeleted], [ID_Station_Return], [isComplete], [ENTRY_EPD_CLOCK], [PersID]) + VALUES(@ID_Station, @ID_Visit, 0, 0, 0, @ID_Station_Return, 0, @ENTRY_EPD_CLOCK, @PersID); +END; + +UPDATE + [dbo].[Visit] +SET + [Hp07Dose] = @HP07, + [Hp10Dose] = @HP10, + [isComplete] = @isComplete, + [ReturnTime] = GETDATE(), + [Hp07Peak] = @HP07Peak, + [Hp10Peak] = @HP10Peak, + [Hp07Time] = @HP07PeakTime, + [Hp10Time] = @HP10PeakTime, + [Hp07Total] = @HP07Total, + [Hp10Total] = @HP10Total, + [K1] = @K1, + [K2] = @K2, + [K3] = @K3, + [K4] = @K4, + [K5] = @K5, + [K6] = @K6, + [SG] = @SG, + [BC] = @BC, + [FB] = @FB, + [HG] = @HG, + [QualityData] = @QualityData, + [alarmStatus] = @alarmStatus, + [otherAlarms] = @otherAlarms, + [errorStatus] = @errorStatus, + [operatingStatus] = @operatingStatus, + --[D1] = @D1, [D2] = @D2, [D3] = @D3, [D4] = @D4, + [isAlarm] = CASE WHEN ISNULL(@alarmStatus, 0) <> 0 THEN 1 ELSE 0 END, + [isManualExit] = 0, + [ID_Station_Return] = @ID_Station_Return, + [ENTRY_EPD_CLOCK] = @ENTRY_EPD_CLOCK, + [EXIT_EPD_CLOCK] = @EXIT_EPD_CLOCK, + [PersID] = CASE WHEN [PersID] IS NULL THEN @PersID ELSE [PersID] END, + [eDosBatteryWarning] = @eDosBatteryWarning, + [eDosDose07Warning] = @eDosDose07Warning, + [eDosDose07Alarm] = @eDosDose07Alarm, + [eDosRate07Warning] = @eDosRate07Warning, + [eDosRate07Alarm] = @eDosRate07Alarm, + [eDosDose10Warning] = @eDosDose10Warning, + [eDosDose10Alarm] = @eDosDose10Alarm, + [eDosRate10Warning] = @eDosRate10Warning, + [eDosRate10Alarm] = @eDosRate10Alarm +WHERE [ID_Visit] = @ID_Visit + AND [ID_Station] = @ID_Station; + +-- local- >PersonInfoSnapshot +IF ISNULL(@alarmStatus, 0) <> 0 + OR ISNULL(@eDosDose07Alarm, 0) <> 0 + OR ISNULL(@eDosRate07Alarm, 0) <> 0 + OR ISNULL(@eDosDose10Alarm, 0) <> 0 + OR ISNULL(@eDosRate10Alarm, 0) <> 0 BEGIN + UPDATE + [dbo].[PersonInfoSnapshot] + SET + [VisitIDLocked] = @ID_Visit * 100 + @ID_Station + WHERE [PersID] = (SELECT + [PersID] + FROM [dbo].[Visit] + WHERE [ID_Visit] = @ID_Visit + AND @ID_Station = @ID_Station); +END; +GO +ALTER PROCEDURE [export].[VisitsSelect] +AS +SELECT + [ID_Station], + [ID_Visit], + [Inst_CODE], + [PersID], + [ID_Task], + [EntryTime], + [ReturnTime], + [Hp10Dose], + [Hp07Dose], + [Hp10Total], + [Hp07Total], + [Hp10Peak], + [Hp07Peak], + [Hp10Time], + [Hp07Time], + [ID_EPD], + [QualityData], + [K1], + [K2], + [K3], + [K4], + [K5], + [K6], + [SG], + [BC], + [FB], + [HG], + [alarmStatus], + [otherAlarms], + [errorStatus], + [operatingStatus], + [isBG], + [isComplete], + [isDeleted], + [isAlarm], + [isAlarmCleared], + [isManualExit], + [ID_Station_Return], + [ENTRY_EPD_CLOCK], + [EXIT_EPD_CLOCK], + [TIME_LOST], + [VisitStatus] = CONVERT(TINYINT, CASE WHEN [EntryTime] IS NOT NULL + AND [ReturnTime] IS NOT NULL THEN 3 + WHEN [EntryTime] IS NOT NULL THEN 1 + WHEN [ReturnTime] IS NOT NULL THEN 2 ELSE 0 END), + [syncedEntry], + [syncedExit], + [epdType], + [epdID], + [eDosBatteryWarning], + [eDosDose07Warning], + [eDosDose07Alarm], + [eDosRate07Warning], + [eDosRate07Alarm], + [eDosDose10Warning], + [eDosDose10Alarm], + [eDosRate10Warning], + [eDosRate10Alarm] +FROM [dbo].[Visit] +WHERE([syncedEntry] = 0 OR [syncedExit] = 0); +GO +IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id=OBJECT_ID('[dbo].[StationSettings]') AND name='RestartComFirst') +begin +ALTER TABLE [dbo].[StationSettings] ADD [RestartComFirst] BIT; +ALTER TABLE [dbo].[StationSettings] ADD [OnlyMK2] BIT; +END +GO +IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id=OBJECT_ID('[dbo].[StationSettings]') AND name='AllowMultipleEPD') +ALTER TABLE [dbo].[StationSettings] ADD AllowMultipleEPD BIT NULL; +IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id=OBJECT_ID('[dbo].[StationSettings]') AND name='EPDRetries') +ALTER TABLE [dbo].[StationSettings] ADD EPDRetries BIT NULL; +GO +ALTER PROCEDURE [dbo].[StationSettingsSelect] AS +SELECT + [ID_Station], + [PCNr], + [ComPort], + [Inst_CODE1], + [Inst_CODE2], + [Inst_Name1], + [Inst_Name2], + [TestCSN], + [Reader], + [useTestButtons] = ISNULL([useTestButtons], 0), + [useBeep] = ISNULL([useBeep], 22), + [checkUser] = ISNULL([checkUser], 0), + [EPDTimeout] = ISNULL([EPDTimeout], 10000), + [EPDRetries] = ISNULL([EPDREtries], 1), + [RestartCom] = ISNULL([RestartCom], 0), + [RestartComFirst] = ISNULL([RestartComFirst], 0), + [OnlyMK2] = ISNULL([OnlyMK2], 0), + [AllowMultipleEPD] = ISNULL([AllowMultipleEPD], 0) +FROM [dbo].[StationSettings] +WHERE [PCNr] = HOST_NAME(); +GO +ALTER PROCEDURE [dbo].[StationSettingsUpdate] @ComPort INT = NULL, + @Inst_CODE1 INT = NULL, + @Inst_CODE2 INT = NULL, + @Inst_Name1 VARCHAR(50) = NULL, + @Inst_Name2 VARCHAR(50) = NULL, + @TestCSN VARCHAR(50) = NULL, + @Reader VARCHAR(70) = NULL, + @useTestButtons BIT = 0, + @useBeep TINYINT = 22, + @checkUser BIT = 0, + @EPDTimeout INT = 10000, + @EPDRetries INT = 1, + @RestartCom BIT = 0, + @RestartComFirst BIT = 0, + @OnlyMK2 BIT = 0, + @AllowMultipleEPD BIT = 0 +AS +IF NOT EXISTS (SELECT * FROM [dbo].[StationSettings] WHERE [PCNr] = HOST_NAME()) + INSERT [dbo].[StationSettings]([PCNr], [ComPort], [Inst_CODE1], [Inst_CODE2], [Inst_Name1], [Inst_Name2], [TestCSN], [Reader], [useTestButtons], [useBeep], [checkUser], [EPDREtries], [RestartCom], [RestartComFirst], [OnlyMK2], [AllowMultipleEPD]) + VALUES(HOST_NAME(), @ComPort, @Inst_CODE1, @Inst_CODE2, @Inst_Name1, @Inst_Name2, @TestCSN, @Reader, @useTestButtons, @useBeep, @checkUser, @EPDRetries, @RestartCom, @RestartComFirst, @OnlyMK2, @AllowMultipleEPD); +ELSE + UPDATE + [dbo].[StationSettings] + SET + [ComPort] = @ComPort, + [Inst_CODE1] = @Inst_CODE1, + [Inst_CODE2] = @Inst_CODE2, + [Inst_Name1] = @Inst_Name1, + [Inst_Name2] = @Inst_Name2, + [TestCSN] = @TestCSN, + [Reader] = @Reader, + [useTestButtons] = @useTestButtons, + [useBeep] = @useBeep, + [checkUser] = @checkUser, + [EPDTimeout] = @EPDTimeout, + [EPDREtries] = @EPDRetries, + [RestartCom] = @RestartCom, + [RestartComFirst] = @RestartComFirst, + [OnlyMK2] = @OnlyMK2, + [AllowMultipleEPD]=@AllowMultipleEPD + WHERE [PCNr] = HOST_NAME(); +go diff --git a/eDosLocal/Updates.sql b/eDosLocal/Updates.sql index ad10176..4de6213 100644 --- a/eDosLocal/Updates.sql +++ b/eDosLocal/Updates.sql @@ -1,362 +1,328 @@ -USE [eDosLocal]; -GO - -/****** Object: StoredProcedure [dbo].[GetPersonInfo] Script Date: 8/03/2022 15:53:18 ******/ -SET ANSI_NULLS ON; -GO - -SET QUOTED_IDENTIFIER ON; -GO - -IF NOT EXISTS -( - SELECT * - FROM [INFORMATION_SCHEMA].[COLUMNS] - WHERE [TABLE_NAME] = 'StationSettings' - AND [COLUMN_NAME] = 'EPDRetries' -) - ALTER TABLE [dbo].[StationSettings] ADD [EPDRetries] INT; - -IF NOT EXISTS -( - SELECT * - FROM [INFORMATION_SCHEMA].[COLUMNS] - WHERE [TABLE_NAME] = 'StationSettings' - AND [COLUMN_NAME] = 'RestartCom' -) - ALTER TABLE [dbo].[StationSettings] ADD [RestartCom] BIT; -GO - -ALTER PROCEDURE [dbo].[StationSettingsSelect] -AS -SELECT [ID_Station], - [PCNr], - [ComPort], - [Inst_CODE1], - [Inst_CODE2], - [Inst_Name1], - [Inst_Name2], - [TestCSN], - [Reader], - [useTestButtons] = ISNULL ([useTestButtons], 0), - [useBeep] = ISNULL ([useBeep], 22), - [checkUser] = ISNULL ([checkUser], 0), - [EPDTimeout], - [EPDRetries], - [RestartCom] -FROM [dbo].[StationSettings] -WHERE [PCNr] = HOST_NAME (); -GO - -ALTER PROCEDURE [dbo].[StationSettingsUpdate] - @ComPort INT = NULL, - @Inst_CODE1 INT = NULL, - @Inst_CODE2 INT = NULL, - @Inst_Name1 VARCHAR(50) = NULL, - @Inst_Name2 VARCHAR(50) = NULL, - @TestCSN VARCHAR(50) = NULL, - @Reader VARCHAR(70) = NULL, - @useTestButtons BIT = 0, - @useBeep TINYINT = 22, - @checkUser BIT = 0, - @EPDTimeout INT = 10000, - @EPDRetries INT = 1, - @RestartCom BIT = 0 -AS -IF NOT EXISTS -( - SELECT * - FROM [dbo].[StationSettings] - WHERE [PCNr] = HOST_NAME () -) - INSERT [dbo].[StationSettings] - ( - [PCNr], - [ComPort], - [Inst_CODE1], - [Inst_CODE2], - [Inst_Name1], - [Inst_Name2], - [TestCSN], - [Reader], - [useTestButtons], - [useBeep], - [checkUser], - [EPDRetries], - [RestartCom] - ) - VALUES - (HOST_NAME (), @ComPort, @Inst_CODE1, @Inst_CODE2, @Inst_Name1, @Inst_Name2, @TestCSN, @Reader, @useTestButtons, - @useBeep, @checkUser, @EPDRetries, @RestartCom); -ELSE - UPDATE [dbo].[StationSettings] - SET [ComPort] = @ComPort, - [Inst_CODE1] = @Inst_CODE1, - [Inst_CODE2] = @Inst_CODE2, - [Inst_Name1] = @Inst_Name1, - [Inst_Name2] = @Inst_Name2, - [TestCSN] = @TestCSN, - [Reader] = @Reader, - [useTestButtons] = @useTestButtons, - [useBeep] = @useBeep, - [checkUser] = @checkUser, - [EPDTimeout] = @EPDTimeout, - [EPDRetries] = @EPDRetries, - [RestartCom] = @RestartCom - WHERE [PCNr] = HOST_NAME (); -GO - -ALTER PROCEDURE [dbo].[StationSettingsSelect] -AS -SELECT [ID_Station], - [PCNr], - [ComPort], - [Inst_CODE1], - [Inst_CODE2], - [Inst_Name1], - [Inst_Name2], - [TestCSN], - [Reader], - [useTestButtons] = ISNULL ([useTestButtons], 0), - [useBeep] = ISNULL ([useBeep], 22), - [checkUser] = ISNULL ([checkUser], 0), - [EPDTimeout] = ISNULL ([EPDTimeout], 10000), - [EPDRetries] = ISNULL ([EPDRetries], 1), - [RestartCom] = ISNULL ([RestartCom], 0) -FROM [dbo].[StationSettings] -WHERE [PCNr] = HOST_NAME (); - -go - -ALTER PROCEDURE [dbo].[GetPersonInfo] @CSN CHAR(14) =NULL, @PersID INT = NULL AS ---DECLARE @PersID INT = null, @CSN CHAR(14) = 'TP10'; -DECLARE - @lid_station INT, - @lid_visit INT; - - if @PersID IS NULL SELECT @PersID=persid FROM [dbo].[PersonInfoSnapshot] where [CSN] = @CSN COLLATE SQL_Latin1_General_CP850_BIN; - -SELECT TOP(1) - @lid_station = id_station, - @lid_visit = id_visit -FROM dbo.Visit -WHERE PersID = @PersID - AND ReturnTime IS NULL - AND [EntryTime] > DATEADD(year, -1, GETDATE()); - -SELECT - [a].[PersID], - [a].[Type], - [a].[CSN], - [a].[FirstName], - [a].[LastName], - [a].[NickName], - [AccessAllow] = CASE WHEN a.[hasEPD] = 1 THEN 0 ELSE a.[AccessAllow] END, - [a].[Language], - [a].[MarginHP10_M], - [a].[MarginHP10_Y], - [a].[Margin], - [a].[VisitIDLocked], - [a].[ID_CommentToPerson], - [a].[Comment], - [a].[Deleted], - [ReasonNoAccess] = CASE WHEN a.[hasEPD] = 1 THEN 'EPD not returned' ELSE a.[ReasonNoAccess] END, - [a].[Dose_52W_microSv], - [a].[hasEPD], - activeStation = @lid_station, - activeVisit = @lid_visit -FROM(SELECT - [p].[PersID], - [p].[Type], - [p].[CSN], - [p].[FirstName], - [p].[LastName], - [p].[NickName], - [p].[AccessAllow], - [p].[Language], - [p].[MarginHP10_M], - [p].[MarginHP10_Y], - [p].[Margin], - [p].[VisitIDLocked], - [p].[ID_CommentToPerson], - [p].[Comment], - [p].[Deleted], - [p].[ReasonNoAccess], - [p].[Dose_52W_microSv], - hasEPD = CONVERT(BIT, CASE WHEN @lid_visit IS NOT NULL THEN 1 ELSE 0 END) - FROM [dbo].[PersonInfoSnapshot] [p] - WHERE [p].[PersID] = @PersID) a - go - ----- Luc 2022-03-25 -IF OBJECT_ID('[syncLoc].[compareVisit]') IS NULL -begin -CREATE TABLE [syncLoc].[compareVisit]( - [ID_Station] [INT] NOT NULL, - [ID_Visit] [INT] NOT NULL, - [Inst_CODE] [INT] NOT NULL, - [PersID] [INT] NULL, - [ID_Task] [INT] NULL, - [EntryTime] [DATETIME] NULL, - [ReturnTime] [DATETIME] NULL, - [Hp10Dose] [FLOAT] NULL, - [Hp07Dose] [FLOAT] NULL, - [Hp10Total] [FLOAT] NULL, - [Hp07Total] [FLOAT] NULL, - [Hp10Peak] [FLOAT] NULL, - [Hp07Peak] [FLOAT] NULL, - [Hp10Time] [DATETIME] NULL, - [Hp07Time] [DATETIME] NULL, - [ID_EPD] [INT] NULL, - [QualityData] [INT] NULL, - [K1] [INT] NULL, - [K2] [INT] NULL, - [K3] [INT] NULL, - [K4] [INT] NULL, - [K5] [INT] NULL, - [K6] [INT] NULL, - [SG] [INT] NULL, - [BC] [INT] NULL, - [FB] [INT] NULL, - [HG] [INT] NULL, - [alarmStatus] [INT] NULL, - [otherAlarms] [INT] NULL, - [errorStatus] [INT] NULL, - [operatingStatus] [INT] NULL, - [isBG] [BIT] NULL, - [isComplete] [BIT] NOT NULL, - [isDeleted] [BIT] NOT NULL, - [isAlarm] [BIT] NOT NULL, - [isAlarmCleared] [BIT] NOT NULL, - [isManualExit] [BIT] NOT NULL, - [ID_Station_Return] [INT] NULL, - [ENTRY_EPD_CLOCK] [NUMERIC](10, 0) NULL, - [EXIT_EPD_CLOCK] [NUMERIC](10, 0) NULL, - [TIME_LOST] [INT] NULL, - [epdID] [INT] NULL, - CONSTRAINT [PK_compareVisit] PRIMARY KEY CLUSTERED -( - [ID_Station] ASC, - [ID_Visit] ASC -)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON ) ON [PRIMARY] -) ON [PRIMARY]; - -GRANT ALTER,INSERT,UPDATE,DELETE,select ON [syncLoc].[compareVisit] TO edosStation - -END -GO - - - -CREATE OR ALTER PROCEDURE [syncLoc].[UpdateRemoteReturns] @ID_LocalStation INT=null AS - -- Luc 2022-03-25 - --DECLARE @ID_LocalStation INT = 9; - DECLARE @pcnr VARCHAR(20) - - select @pcnr=@@servername; - IF @pcnr='EDOS-SCH' SET @pcnr='EDOS-WSCH' - ELSE IF @pcnr='DESKTOP-CCDL4A3' SET @pcnr='EDOS-LNK' - ELSE IF @pcnr='EDOS-ZZZ'SET @pcnr='EDOS-LSCH' - - IF @ID_LocalStation IS NULL SELECT @ID_LocalStation =id_station From stationsettings WHERE pcnr= @pcnr - select @ID_LocalStation,pcnr FROM stationsettings WHERE id_station=@ID_LocalStation; - -TRUNCATE TABLE [syncLoc].[compareVisit]; - -INSERT [syncLoc].[compareVisit]([ID_Station], [ID_Visit], [Inst_CODE], [PersID], [ID_Task], [EntryTime], [ReturnTime], [Hp10Dose], [Hp07Dose], [Hp10Total], [Hp07Total], [Hp10Peak], [Hp07Peak], [Hp10Time], [Hp07Time], [ID_EPD], [QualityData], [K1], [K2], [K3], [K4], [K5], [K6], [SG], [BC], [FB], [HG], [alarmStatus], [otherAlarms], [errorStatus], [operatingStatus], [isBG], [isComplete], [isDeleted], [isAlarm], [isAlarmCleared], [isManualExit], [ID_Station_Return], [ENTRY_EPD_CLOCK], [EXIT_EPD_CLOCK], [TIME_LOST], [epdID]) -SELECT - [v].[ID_Station], - [v].[ID_Visit], - [v].[Inst_CODE], - [v].[PersID], - [v].[ID_Task], - [v].[EntryTime], - [v].[ReturnTime], - [v].[Hp10Dose], - [v].[Hp07Dose], - [v].[Hp10Total], - [v].[Hp07Total], - [v].[Hp10Peak], - [v].[Hp07Peak], - [v].[Hp10Time], - [v].[Hp07Time], - [v].[ID_EPD], - [v].[QualityData], - [v].[K1], - [v].[K2], - [v].[K3], - [v].[K4], - [v].[K5], - [v].[K6], - [v].[SG], - [v].[BC], - [v].[FB], - [v].[HG], - [v].[alarmStatus], - [v].[otherAlarms], - [v].[errorStatus], - [v].[operatingStatus], - [v].[isBG], - [v].[isComplete], - [v].[isDeleted], - [v].[isAlarm], - [v].[isAlarmCleared], - [v].[isManualExit], - [v].[ID_Station_Return], - [v].[ENTRY_EPD_CLOCK], - [v].[EXIT_EPD_CLOCK], - [v].[TIME_LOST], - [v].[epdID] -FROM [EDOS].[edos].[dbo].[visit] [v] - INNER JOIN(SELECT - [ID_Visit] - FROM [dbo].[Visit] - WHERE [ID_Station] = @ID_LocalStation - AND [ReturnTime] IS NULL) [i] ON [i].[ID_Visit] = [v].[ID_Visit] -WHERE [id_station] = @ID_LocalStation - AND [v].[returntime] IS NOT NULL; - -UPDATE - [dbo].[Visit] -SET - [ReturnTime] = [c].[ReturnTime], - [Hp10Dose] = [c].[Hp10Dose], - [Hp07Dose] = [c].[Hp07Dose], - [Hp10Total] = [c].[Hp10Total], - [Hp07Total] = [c].[Hp07Total], - [Hp10Peak] = [c].[Hp10Peak], - [Hp07Peak] = [c].[Hp07Peak], - [Hp10Time] = [c].[Hp10Time], - [Hp07Time] = [c].[Hp07Time], - [QualityData] = [c].[QualityData], - [K1] = [c].[K1], - [K2] = [c].[K2], - [K3] = [c].[K3], - [K4] = [c].[K4], - [K5] = [c].[K5], - [K6] = [c].[K6], - [SG] = [c].[SG], - [BC] = [c].[BC], - [FB] = [c].[FB], - [HG] = [c].[HG], - [alarmStatus] = [c].[alarmStatus], - [otherAlarms] = [c].[otherAlarms], - [errorStatus] = [c].[errorStatus], - [operatingStatus] = [c].[operatingStatus], - [isComplete] = [c].[isComplete], - [isDeleted] = [c].[isDeleted], - [isAlarm] = [c].[isAlarm], - [isAlarmCleared] = [c].[isAlarmCleared], - [isManualExit] = ISNULL([c].[isManualExit], [v].[isManualExit]), - [ID_Station_Return] = ISNULL([c].[ID_Station_Return], [v].[ID_Station_Return]), - [EXIT_EPD_CLOCK] = [c].[EXIT_EPD_CLOCK] -FROM [dbo].[Visit] [v] - INNER JOIN [syncLoc].[compareVisit] [c] ON [c].[ID_Station] = [v].[ID_Station] - AND [c].[ID_Visit] = [v].[ID_Visit] -WHERE [v].[ReturnTime] IS NULL - AND [v].[isComplete] = 0; - -GO - -GRANT EXECUTE ON [syncLoc].[UpdateRemoteReturns] TO [eDosStation] -go \ No newline at end of file +USE [eDosLocal]; +GO + +/****** Object: StoredProcedure [dbo].[GetPersonInfo] Script Date: 8/03/2022 15:53:18 ******/ +SET ANSI_NULLS ON; +GO + +SET QUOTED_IDENTIFIER ON; +GO +ALTER PROCEDURE [dbo].[GetPersonInfo] @CSN CHAR(14) = NULL, + @PersID INT = NULL +AS +--DECLARE @PersID INT = null, @CSN CHAR(14) = 'TP10'; +DECLARE + @lid_station INT, + @lid_visit INT; + +IF @PersID IS NULL + SELECT + @PersID = [PersID] + FROM [dbo].[PersonInfoSnapshot] + WHERE [CSN] = @CSN COLLATE SQL_Latin1_General_CP850_BIN; + +SELECT TOP(1) + @lid_station = [ID_Station], + @lid_visit = [ID_Visit] +FROM [dbo].[Visit] +WHERE [PersID] = @PersID + AND [ReturnTime] IS NULL + AND [EntryTime] > DATEADD(YEAR, -1, GETDATE()); + +SELECT + [a].[PersID], + [a].[Type], + [a].[CSN], + [a].[FirstName], + [a].[LastName], + [a].[NickName], + [AccessAllow] = CASE WHEN [a].[hasEPD] = 1 THEN 0 ELSE [a].[AccessAllow] END, + [a].[Language], + [a].[MarginHP10_M], + [a].[MarginHP10_Y], + [a].[Margin], + [a].[VisitIDLocked], + [a].[ID_CommentToPerson], + [a].[Comment], + [a].[Deleted], + [ReasonNoAccess] = CASE WHEN [a].[hasEPD] = 1 THEN 'EPD not returned' ELSE [a].[ReasonNoAccess] END, + [a].[Dose_52W_microSv], + [a].[hasEPD], + [activeStation] = @lid_station, + [activeVisit] = @lid_visit +FROM(SELECT + [p].[PersID], + [p].[Type], + [p].[CSN], + [p].[FirstName], + [p].[LastName], + [p].[NickName], + [p].[AccessAllow], + [p].[Language], + [p].[MarginHP10_M], + [p].[MarginHP10_Y], + [p].[Margin], + [p].[VisitIDLocked], + [p].[ID_CommentToPerson], + [p].[Comment], + [p].[Deleted], + [p].[ReasonNoAccess], + [p].[Dose_52W_microSv], + [hasEPD] = CONVERT(BIT, CASE WHEN @lid_visit IS NOT NULL THEN 1 ELSE 0 END) + FROM [dbo].[PersonInfoSnapshot] [p] + WHERE [p].[PersID] = @PersID) [a]; +go + +---- Luc 2022-03-25 +USE [eDosLocal] +go +IF SCHEMA_ID('syncloc') IS NULL +BEGIN + exec('CREATE SCHEMA [syncLoc]') +END + +GO +IF OBJECT_ID ('[syncLoc].[compareVisit]') IS NULL +BEGIN + CREATE TABLE [syncLoc].[compareVisit]( + [ID_Station] [INT] NOT NULL, + [ID_Visit] [INT] NOT NULL, + [Inst_CODE] [INT] NOT NULL, + [PersID] [INT] NULL, + [ID_Task] [INT] NULL, + [EntryTime] [DATETIME] NULL, + [ReturnTime] [DATETIME] NULL, + [Hp10Dose] [FLOAT] NULL, + [Hp07Dose] [FLOAT] NULL, + [Hp10Total] [FLOAT] NULL, + [Hp07Total] [FLOAT] NULL, + [Hp10Peak] [FLOAT] NULL, + [Hp07Peak] [FLOAT] NULL, + [Hp10Time] [DATETIME] NULL, + [Hp07Time] [DATETIME] NULL, + [ID_EPD] [INT] NULL, + [QualityData] [INT] NULL, + [K1] [INT] NULL, + [K2] [INT] NULL, + [K3] [INT] NULL, + [K4] [INT] NULL, + [K5] [INT] NULL, + [K6] [INT] NULL, + [SG] [INT] NULL, + [BC] [INT] NULL, + [FB] [INT] NULL, + [HG] [INT] NULL, + [alarmStatus] [INT] NULL, + [otherAlarms] [INT] NULL, + [errorStatus] [INT] NULL, + [operatingStatus] [INT] NULL, + [isBG] [BIT] NULL, + [isComplete] [BIT] NOT NULL, + [isDeleted] [BIT] NOT NULL, + [isAlarm] [BIT] NOT NULL, + [isAlarmCleared] [BIT] NOT NULL, + [isManualExit] [BIT] NOT NULL, + [ID_Station_Return] [INT] NULL, + [ENTRY_EPD_CLOCK] [NUMERIC](10, 0) NULL, + [EXIT_EPD_CLOCK] [NUMERIC](10, 0) NULL, + [TIME_LOST] [INT] NULL, + [epdID] [INT] NULL, + [eDosBatteryWarning] [BIT] NULL, + [eDosDose07Warning] [BIT] NULL, + [eDosDose07Alarm] [BIT] NULL, + [eDosRate07Warning] [BIT] NULL, + [eDosRate07Alarm] [BIT] NULL, + [eDosDose10Warning] [BIT] NULL, + [eDosDose10Alarm] [BIT] NULL, + [eDosRate10Warning] [BIT] NULL, + [eDosRate10Alarm] [BIT] NULL, + CONSTRAINT [PK_compareVisit] PRIMARY KEY CLUSTERED +( + [ID_Station] ASC, + [ID_Visit] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY]; + + GRANT ALTER, + INSERT, + UPDATE, + DELETE, + SELECT + ON [syncLoc].[compareVisit] + TO [edosStation]; +END; +GO + +IF NOT EXISTS (SELECT + * + FROM [sys].[columns] + WHERE [object_id] = OBJECT_ID('[syncLoc].[compareVisit]') + AND [name] = 'eDosBatteryWarning')BEGIN + ALTER TABLE [syncLoc].[compareVisit] ADD [eDosBatteryWarning] BIT NULL; + + ALTER TABLE [syncLoc].[compareVisit] ADD [eDosDose07Warning] BIT NULL; + + ALTER TABLE [syncLoc].[compareVisit] ADD [eDosDose07Alarm] BIT NULL; + + ALTER TABLE [syncLoc].[compareVisit] ADD [eDosRate07Warning] BIT NULL; + + ALTER TABLE [syncLoc].[compareVisit] ADD [eDosRate07Alarm] BIT NULL; + + ALTER TABLE [syncLoc].[compareVisit] ADD [eDosDose10Warning] BIT NULL; + + ALTER TABLE [syncLoc].[compareVisit] ADD [eDosDose10Alarm] BIT NULL; + + ALTER TABLE [syncLoc].[compareVisit] ADD [eDosRate10Warning] BIT NULL; + + ALTER TABLE [syncLoc].[compareVisit] ADD [eDosRate10Alarm] BIT NULL; +END; +GO + +ALTER PROCEDURE [syncLoc].[UpdateRemoteReturns] @ID_LocalStation INT = NULL +AS +-- Luc 2022-03-25 +--DECLARE @ID_LocalStation INT = 9; +DECLARE @pcnr VARCHAR(20); + +SELECT @pcnr = @@serverName; + +IF @pcnr = 'EDOS-SCH' SET @pcnr = 'EDOS-WSCH'; +ELSE IF @pcnr = 'DESKTOP-CCDL4A3' SET @pcnr = 'EDOS-LNK'; +ELSE IF @pcnr = 'EDOS-ZZZ' SET @pcnr = 'EDOS-LSCH'; + +IF @ID_LocalStation IS NULL + SELECT + @ID_LocalStation = [id_station] + FROM [dbo].[stationsettings] + WHERE [pcnr] = @pcnr; + +SELECT + @ID_LocalStation, + [pcnr] +FROM [dbo].[stationsettings] +WHERE [id_station] = @ID_LocalStation; + +TRUNCATE TABLE [syncLoc].[compareVisit]; + +INSERT [syncLoc].[compareVisit]([ID_Station], [ID_Visit], [Inst_CODE], [PersID], [ID_Task], [EntryTime], [ReturnTime], [Hp10Dose], [Hp07Dose], [Hp10Total], [Hp07Total], [Hp10Peak], [Hp07Peak], [Hp10Time], [Hp07Time], [ID_EPD], [QualityData], [K1], [K2], [K3], [K4], [K5], [K6], [SG], [BC], [FB], [HG], [alarmStatus], [otherAlarms], [errorStatus], [operatingStatus], [isBG], [isComplete], [isDeleted], [isAlarm], [isAlarmCleared], [isManualExit], [ID_Station_Return], [ENTRY_EPD_CLOCK], [EXIT_EPD_CLOCK], [TIME_LOST], [epdID], [eDosBatteryWarning], [eDosDose07Warning], [eDosDose07Alarm], [eDosRate07Warning], [eDosRate07Alarm], [eDosDose10Warning], [eDosDose10Alarm], [eDosRate10Warning], [eDosRate10Alarm]) +SELECT + [v].[ID_Station], + [v].[ID_Visit], + [v].[Inst_CODE], + [v].[PersID], + [v].[ID_Task], + [v].[EntryTime], + [v].[ReturnTime], + [v].[Hp10Dose], + [v].[Hp07Dose], + [v].[Hp10Total], + [v].[Hp07Total], + [v].[Hp10Peak], + [v].[Hp07Peak], + [v].[Hp10Time], + [v].[Hp07Time], + [v].[ID_EPD], + [v].[QualityData], + [v].[K1], + [v].[K2], + [v].[K3], + [v].[K4], + [v].[K5], + [v].[K6], + [v].[SG], + [v].[BC], + [v].[FB], + [v].[HG], + [v].[alarmStatus], + [v].[otherAlarms], + [v].[errorStatus], + [v].[operatingStatus], + [v].[isBG], + [v].[isComplete], + [v].[isDeleted], + [v].[isAlarm], + [v].[isAlarmCleared], + [v].[isManualExit], + [v].[ID_Station_Return], + [v].[ENTRY_EPD_CLOCK], + [v].[EXIT_EPD_CLOCK], + [v].[TIME_LOST], + [v].[epdID], + [v].[eDosBatteryWarning], + [v].[eDosDose07Warning], + [v].[eDosDose07Alarm], + [v].[eDosRate07Warning], + [v].[eDosRate07Alarm], + [v].[eDosDose10Warning], + [v].[eDosDose10Alarm], + [v].[eDosRate10Warning], + [v].[eDosRate10Alarm] +FROM [EDOS].[edos].[dbo].[visit] [v] + INNER JOIN(SELECT + [ID_Visit] + FROM [dbo].[Visit] + WHERE [ID_Station] = @ID_LocalStation + AND [ReturnTime] IS NULL) [i] ON [i].[ID_Visit] = [v].[ID_Visit] +WHERE [v].[id_station] = @ID_LocalStation + AND [v].[returntime] IS NOT NULL; + +UPDATE + [dbo].[Visit] +SET + [ReturnTime] = [c].[ReturnTime], + [Hp10Dose] = [c].[Hp10Dose], + [Hp07Dose] = [c].[Hp07Dose], + [Hp10Total] = [c].[Hp10Total], + [Hp07Total] = [c].[Hp07Total], + [Hp10Peak] = [c].[Hp10Peak], + [Hp07Peak] = [c].[Hp07Peak], + [Hp10Time] = [c].[Hp10Time], + [Hp07Time] = [c].[Hp07Time], + [QualityData] = [c].[QualityData], + [K1] = [c].[K1], + [K2] = [c].[K2], + [K3] = [c].[K3], + [K4] = [c].[K4], + [K5] = [c].[K5], + [K6] = [c].[K6], + [SG] = [c].[SG], + [BC] = [c].[BC], + [FB] = [c].[FB], + [HG] = [c].[HG], + [alarmStatus] = [c].[alarmStatus], + [otherAlarms] = [c].[otherAlarms], + [errorStatus] = [c].[errorStatus], + [operatingStatus] = [c].[operatingStatus], + [isComplete] = [c].[isComplete], + [isDeleted] = [c].[isDeleted], + [isAlarm] = [c].[isAlarm], + [isAlarmCleared] = [c].[isAlarmCleared], + [isManualExit] = ISNULL([c].[isManualExit], [v].[isManualExit]), + [ID_Station_Return] = ISNULL([c].[ID_Station_Return], [v].[ID_Station_Return]), + [EXIT_EPD_CLOCK] = [c].[EXIT_EPD_CLOCK], + [eDosBatteryWarning] = CASE WHEN [v].[eDosBatteryWarning] IS NULL + OR [c].[eDosBatteryWarning] = 1 THEN [c].[eDosBatteryWarning] ELSE [v].[eDosBatteryWarning] END, + [eDosDose07Warning ] = CASE WHEN [v].[eDosDose07Warning ] IS NULL + OR [c].[eDosDose07Warning ] = 1 THEN [c].[eDosDose07Warning ] ELSE [v].[eDosDose07Warning ] END, + [eDosDose07Alarm] = CASE WHEN [v].[eDosDose07Alarm] IS NULL + OR [c].[eDosDose07Alarm] = 1 THEN [c].[eDosDose07Alarm] ELSE [v].[eDosDose07Alarm] END, + [eDosRate07Warning] = CASE WHEN [v].[eDosRate07Warning] IS NULL + OR [c].[eDosRate07Warning] = 1 THEN [c].[eDosRate07Warning] ELSE [v].[eDosRate07Warning] END, + [eDosRate07Alarm] = CASE WHEN [v].[eDosRate07Alarm] IS NULL + OR [c].[eDosRate07Alarm] = 1 THEN [c].[eDosRate07Alarm] ELSE [v].[eDosRate07Alarm] END, + [eDosDose10Warning] = CASE WHEN [v].[eDosDose10Warning] IS NULL + OR [c].[eDosDose10Warning] = 1 THEN [c].[eDosDose10Warning] ELSE [v].[eDosDose10Warning] END, + [eDosDose10Alarm] = CASE WHEN [v].[eDosDose10Alarm] IS NULL + OR [c].[eDosDose10Alarm] = 1 THEN [c].[eDosDose10Alarm] ELSE [v].[eDosDose10Alarm] END, + [eDosRate10Warning] = CASE WHEN [v].[eDosRate10Warning] IS NULL + OR [c].[eDosRate10Warning] = 1 THEN [c].[eDosRate10Warning] ELSE [v].[eDosRate10Warning] END, + [eDosRate10Alarm] = CASE WHEN [v].[eDosRate10Alarm] IS NULL + OR [c].[eDosRate10Alarm] = 1 THEN [c].[eDosRate10Alarm] ELSE [v].[eDosRate10Alarm] END +FROM [dbo].[Visit] [v] + INNER JOIN [syncLoc].[compareVisit] [c] ON [c].[ID_Station] = [v].[ID_Station] + AND [c].[ID_Visit] = [v].[ID_Visit] +WHERE [v].[ReturnTime] IS NULL + AND [v].[isComplete] = 0; +GO +GRANT EXECUTE ON [syncLoc].[UpdateRemoteReturns] TO [eDosStation]; +GO diff --git a/eDosStation/DataInterface.cs b/eDosStation/DataInterface.cs index ef6a26c..76b39ca 100644 --- a/eDosStation/DataInterface.cs +++ b/eDosStation/DataInterface.cs @@ -1,466 +1,463 @@ -using System; -using System.Data; -using System.Data.SqlClient; - -namespace eDosStation -{ - public class DataInterface - { - public int ID_Station; - public bool isLocal = false; - private string currentConStr, ConCentralStr; - public System.IO.StreamWriter stationLog; - - public SqlConnection localConnection, centralConnection; - public System.Data.SqlClient.SqlCommand VisitInitCommand; - public static SqlCommand VisitExitCommand; - public static SqlCommand NextIDCommand; - public static SqlCommand LastIDCommand; - public static SqlCommand CheckStatus; - public DataSet1.CommentOnEventDataTable dtCOE; - private bool CheckUser; - - public static string tnow() - { - return DateTime.Now.ToString("HH:mm:ss.fff"); - } - public static int? NextID() - { - int? nxtValue = null; - if (NextIDCommand.Connection.State == ConnectionState.Closed) NextIDCommand.Connection.Open(); - nxtValue = NextIDCommand.ExecuteScalar() as int?; - return nxtValue; - } - public static int? LastID() - { - int? lastValue = null; - if (NextIDCommand.Connection.State == ConnectionState.Closed) LastIDCommand.Connection.Open(); - lastValue = LastIDCommand.ExecuteScalar() as int?; - return lastValue; - } - /// - /// Check connenction. If closed then open oand optianly leave open. - /// - /// If opened leave it open - /// true if connection ok - public bool checkCon(bool leaveOpen = false) - { - bool rv = false; - if (localConnection != null && localConnection.State == System.Data.ConnectionState.Open) return true; - try - { - if (localConnection == null || string.IsNullOrEmpty(localConnection.ConnectionString)) localConnection = new SqlConnection(currentConStr); - localConnection.Open(); - rv = true; - } - catch (System.Exception ex) - { - System.Windows.MessageBox.Show($"Opening '{currentConStr}' error :{ex.Message}"); - } - if (rv && !leaveOpen) localConnection?.Close(); - return rv; - } - public bool checkConCentral(bool leaveOpen = false) - { - bool rv = false; - - if (centralConnection != null && centralConnection.State == System.Data.ConnectionState.Open) return true; - try - { - if (centralConnection == null || string.IsNullOrEmpty(centralConnection.ConnectionString)) centralConnection = new SqlConnection(ConCentralStr); - centralConnection.Open(); - rv = true; - } - catch (System.Exception ex) - { - System.Windows.MessageBox.Show($"Opening '{ConCentralStr}' error :{ex.Message}"); - } - if (rv && !leaveOpen) centralConnection?.Close(); - return rv; - } - internal void SetStation(int curIDStation) - { - ID_Station = curIDStation; - LastIDCommand.Parameters["ID_Station"].Value = curIDStation; - VisitInitCommand.Parameters["ID_Station"].Value = curIDStation; - CheckStatus.Parameters["ID_Station"].Value = curIDStation; - } - public bool isOnline() - { - bool? online = false; - if (checkCon(true)) - { - online = CheckStatus.ExecuteScalar() as bool?; - if (!online.HasValue) online = false; - } - isLocal = !online.Value; - return online.Value; - } - static public void first() - { - var cb = new System.Data.SqlClient.SqlConnectionStringBuilder(Properties.Settings.Default.localConnectionString); - if (string.IsNullOrEmpty(cb.Password)) - { - var f = new AskPwd(); - f.ShowDialog(); - string pwd = f.ResponseText; - string cfg = System.IO.Path.Combine(Environment.CurrentDirectory, System.AppDomain.CurrentDomain.FriendlyName); - Config.ToggleConfigEncryption(cfg, pwd); - System.Windows.Application.Current.Shutdown(); - } - } - private void init() - { - stationLog?.WriteLine($"Datainterface.Init start {tnow()}"); - try - { - var flog = System.Configuration.ConfigurationManager.AppSettings["sqlLogFolder"]; - if (System.IO.Directory.Exists(flog)) - { - string fn = System.IO.Path.Combine(flog, "station.log"); - if (System.IO.File.Exists(fn)) - { - stationLog = new System.IO.StreamWriter(fn, false, System.Text.Encoding.UTF8); - } - } - - first(); - currentConStr = System.Configuration.ConfigurationManager.ConnectionStrings["eDosStation.Properties.Settings.localConnectionString"].ConnectionString; - ConCentralStr = System.Configuration.ConfigurationManager.ConnectionStrings["eDosConnectionString"].ConnectionString; - localConnection = new SqlConnection(currentConStr); - NextIDCommand = new SqlCommand("SELECT NEXT VALUE FOR VisitSequence as VisitID", localConnection); - isLocal = true; - MakeCommands(); - bool rv = checkCon(false); - } catch (Exception ex) - { - System.Windows.MessageBox.Show($"Init error {ex.Message} con={currentConStr}"); - stationLog.WriteLine($"Init error {ex.Message} con={currentConStr}"); - } - stationLog?.WriteLine($"Datainterface.Init end {tnow()}"); - } - public DataInterface( ) - { - init(); - } - - // DataSet1TableAdapters.GetTaskInfoTableAdapter TaskInfoTa() - //{ - // return new DataSet1TableAdapters.GetTaskInfoTableAdapter(); - // //var ta = DataSet1TableAdapters.GetTaskInfoTableAdapter(); - // //if (ta.Connection.ConnectionString!= currentConStr) ta.Connection.ConnectionString = currentConStr; - // //return - //} - - // DataSet1TableAdapters.GetTaskListTableAdapter TaskListTA() - //{ - // return new DataSet1TableAdapters.GetTaskListTableAdapter(); - // //ta.Connection.ConnectionString = currentConStr; - // //return ta; - //} - - internal void SetCheckUser(bool pCheckUser) - { - this.CheckUser = pCheckUser; - } - - //DataSet1TableAdapters.CommentOnEventTableAdapter CommentTA() - //{ - // var ta = new DataSet1TableAdapters.CommentOnEventTableAdapter(); - // ta.Connection.ConnectionString = currentConStr; - // return ta; - //} - - public System.Data.SqlClient.SqlConnection getCon(bool LeaveOpen) - { - checkCon(LeaveOpen); - return localConnection; - } - - public System.Data.SqlClient.SqlConnection getConCentral(bool LeaveOpen) - { - checkConCentral(LeaveOpen); - return centralConnection; - } - - void MakeCommands() - { - LastIDCommand = new SqlCommand("VisitIDLast", localConnection); - LastIDCommand.CommandType = CommandType.StoredProcedure; - var pa = new System.Data.SqlClient.SqlParameter("ID_Station", SqlDbType.Int, 4); LastIDCommand.Parameters.Add(pa); - - CheckStatus = new SqlCommand("[syncLoc].[SyncStatusIsOK]", localConnection); - CheckStatus.CommandType = CommandType.StoredProcedure; - pa = new System.Data.SqlClient.SqlParameter("ID_Station", SqlDbType.Int, 4); CheckStatus.Parameters.Add(pa); - - VisitInitCommand = new System.Data.SqlClient.SqlCommand("[dbo].[VisitInit]", localConnection) { CommandType = System.Data.CommandType.StoredProcedure }; - VisitInitCommand.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] { - new System.Data.SqlClient.SqlParameter("PersID",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("ID_Task",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("Inst_CODE",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("EPD_InternalID",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("isBG",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("EPDVisitID",SqlDbType.Int,0,System.Data.ParameterDirection.Output,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("ID_Station",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("ID_Visit",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("ENTRY_EPD_CLOCK",SqlDbType.Decimal,0,System.Data.ParameterDirection.Input,false,10,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("epdType",SqlDbType.TinyInt,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - }); - - //VisitExitCommand = new SqlCommand("VisitExit", localConnection); - //VisitExitCommand.CommandType = CommandType.StoredProcedure; - //pa = new System.Data.SqlClient.SqlParameter("EPDVisitID", SqlDbType.Int, 4); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("HP07", SqlDbType.Float); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("HP10", SqlDbType.Float); VisitExitCommand.Parameters.Add(pa); - - //pa = new System.Data.SqlClient.SqlParameter("Hp07Total", SqlDbType.Float); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("Hp10Total", SqlDbType.Float); VisitExitCommand.Parameters.Add(pa); - - //pa = new System.Data.SqlClient.SqlParameter("Hp07Peak", SqlDbType.Float); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("Hp10Peak", SqlDbType.Float); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("HP07PeakTime", SqlDbType.DateTime); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("HP10PeakTime", SqlDbType.DateTime); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("K1", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("K2", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("K3", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("K4", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("K5", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("K6", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("SG", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("BC", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("FB", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("HG", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - - //pa = new System.Data.SqlClient.SqlParameter("QualityData", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - - //pa = new System.Data.SqlClient.SqlParameter("alarmStatus", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("otherAlarms", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("errorStatus", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("operatingStatus", SqlDbType.Int); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("ENTRY_EPD_CLOCK", SqlDbType.Decimal, 9); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("EXIT_EPD_CLOCK", SqlDbType.Decimal, 9); VisitExitCommand.Parameters.Add(pa); - //pa = new System.Data.SqlClient.SqlParameter("PersID", SqlDbType.Int, 4); VisitExitCommand.Parameters.Add(pa); - - VisitExitCommand = new System.Data.SqlClient.SqlCommand("[dbo].[VisitExit]", localConnection) { CommandType = System.Data.CommandType.StoredProcedure }; - VisitExitCommand.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] { - new System.Data.SqlClient.SqlParameter("EPDVisitID",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("HP07",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("HP10",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("HP07Peak",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("HP10Peak",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("HP07PeakTime",SqlDbType.DateTime,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("HP10PeakTime",SqlDbType.DateTime,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("HP07Total",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("HP10Total",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("K1",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("K2",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("K3",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("K4",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("K5",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("K6",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("SG",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("BC",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("FB",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("HG",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("QualityData",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("alarmStatus",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("otherAlarms",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("errorStatus",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("operatingStatus",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("ENTRY_EPD_CLOCK",SqlDbType.Decimal,0,System.Data.ParameterDirection.Input,false,10,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("EXIT_EPD_CLOCK",SqlDbType.Decimal,0,System.Data.ParameterDirection.Input,false,10,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("PersID",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("eDosBatteryWarning",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("eDosDose07Warning",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("eDosDose07Alarm",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("eDosRate07Warning",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("eDosRate07Alarm",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("eDosDose10Warning",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("eDosDose10Alarm",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("eDosRate10Warning",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - , new System.Data.SqlClient.SqlParameter("eDosRate10Alarm",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - }); - } - - public bool SetBoolParam(SqlCommand c, string pa, bool value) - { - bool found = true; - if (c.Parameters.Contains(pa)) c.Parameters[pa].Value = value; - else - { - if (pa[0] != '@') pa = "@" + pa; else pa = pa.Substring(1); - if (c.Parameters.Contains(pa)) c.Parameters[pa].Value = value; - else found = false; - } - return found; - } - - public void VisitExit(int EpdVisitID, EpdBaseClr.Epd2 ep) - { - VisitExitCommand.Parameters["EPDVisitID"].Value = EpdVisitID; - VisitExitCommand.Parameters["HP07"].Value = ep.Hp07; - VisitExitCommand.Parameters["HP10"].Value = ep.Hp10; - - VisitExitCommand.Parameters["Hp07Total"].Value = ep.Hp07Total; - VisitExitCommand.Parameters["Hp10Total"].Value = ep.Hp10Total; - - VisitExitCommand.Parameters["Hp07Peak"].Value = ep.Hp07Peak; - VisitExitCommand.Parameters["Hp10Peak"].Value = ep.Hp10Peak; - if (ep.Hp07PeakTime != null) - VisitExitCommand.Parameters["HP07PeakTime"].Value = ep.Hp07PeakTime; - else - VisitExitCommand.Parameters["HP07PeakTime"].Value = DBNull.Value; - if (ep.Hp10PeakTime != null) - VisitExitCommand.Parameters["Hp10PeakTime"].Value = ep.Hp07PeakTime; - else - VisitExitCommand.Parameters["Hp10PeakTime"].Value = DBNull.Value; - - VisitExitCommand.Parameters["K1"].Value = ep.K1; - VisitExitCommand.Parameters["K2"].Value = ep.K2; - VisitExitCommand.Parameters["K3"].Value = ep.K3; - VisitExitCommand.Parameters["K4"].Value = ep.K4; - VisitExitCommand.Parameters["K5"].Value = ep.K5; - VisitExitCommand.Parameters["K6"].Value = ep.K6; - VisitExitCommand.Parameters["SG"].Value = ep.SG; - VisitExitCommand.Parameters["BC"].Value = ep.BC; - VisitExitCommand.Parameters["FB"].Value = ep.FB; - VisitExitCommand.Parameters["HG"].Value = ep.HG; - - VisitExitCommand.Parameters["QualityData"].Value = ep.QualityData; - - //VisitExitCommand.Parameters["D1"].Value = ep.D1; - //VisitExitCommand.Parameters["D2"].Value = ep.D2; - //VisitExitCommand.Parameters["D3"].Value = ep.D3; - //VisitExitCommand.Parameters["D4"].Value = ep.D4; - - VisitExitCommand.Parameters["alarmStatus"].Value = ep.alarmStatus; - VisitExitCommand.Parameters["otherAlarms"].Value = ep.otherAlarms; - VisitExitCommand.Parameters["errorStatus"].Value = ep.errorStatus; - VisitExitCommand.Parameters["operatingStatus"].Value = ep.operatingStatus; - VisitExitCommand.Parameters["ENTRY_EPD_CLOCK"].Value = ep.CountsClockBase; - VisitExitCommand.Parameters["EXIT_EPD_CLOCK"].Value = ep.CountsClock; - - if (int.TryParse(ep.WearerName, out int WearerPersID)) - VisitExitCommand.Parameters["PersID"].Value = WearerPersID; - else - VisitExitCommand.Parameters["PersID"].Value = DBNull.Value; - - SetBoolParam(VisitExitCommand,"eDosBatteryWarning",ep.eDosBatteryWarning); - SetBoolParam(VisitExitCommand, "eDosDose07Warning", ep.eDosDose07Warning); - SetBoolParam(VisitExitCommand, "eDosDose07Alarm", ep.eDosDose07Alarm); - SetBoolParam(VisitExitCommand, "eDosRate07Warning", ep.eDosRate07Warning); - SetBoolParam(VisitExitCommand, "eDosRate07Alarm", ep.eDosRate07Alarm); - SetBoolParam(VisitExitCommand, "eDosDose10Warning", ep.eDosDose10Warning); - SetBoolParam(VisitExitCommand, "eDosDose10Alarm", ep.eDosDose10Alarm); - SetBoolParam(VisitExitCommand, "eDosRate10Warning", ep.eDosRate10Warning); - SetBoolParam(VisitExitCommand, "eDosRate10Alarm", ep.eDosRate10Alarm); - - checkCon(true); - VisitExitCommand.Connection = localConnection; - VisitExitCommand.ExecuteNonQuery(); - localConnection.Close(); - } - - public void FillComment() - { - if (dtCOE == null) dtCOE = new DataSet1.CommentOnEventDataTable(); - using (var dt = new DataSet1TableAdapters.CommentOnEventTableAdapter()) - { - dt.Fill(dtCOE); - } - } - - public DataSet1.CommentOnEventRow GetCommentOnEventRow(int id) - { - return dtCOE.FindByID_CommnentOnEvent(id); - } - - public void FillTaskInfo(User _User, DataSet1 dataSet1) - { - try - { - using (var dataSet1GetTaskInfoTableAdapter = new DataSet1TableAdapters.GetTaskInfoTableAdapter()) // new eDosStation.DataSet1TableAdapters.GetTaskInfoTableAdapter()) - { - //dataSet1GetTaskInfoTableAdapter.Connection.ConnectionString = currentConStr; - stationLog?.WriteLine($"dataSet1GetTaskInfoTableAdapter Fillin {System.DateTime.Now}"); - dataSet1GetTaskInfoTableAdapter.Fill(dataSet1.GetTaskInfo, null, _User.Margin); - stationLog?.WriteLine($"dataSet1GetTaskInfoTableAdapter Filled {System.DateTime.Now}"); - } - } - catch (System.Exception ex) { - if (stationLog != null) stationLog.WriteLine($"FillTaskInfo error {ex.Message} {System.DateTime.Now}"); - } - } - - public User GetUser( string CSN, string Code, bool isEntry) - { - User u = new User(); - //object[] Values = null; - try - { - using (var cmd = new SqlCommand("GetPersonInfo", localConnection) { CommandType = System.Data.CommandType.StoredProcedure } ) - { - if (int.TryParse(Code, out int PersID)) cmd.Parameters.AddWithValue("PersID", PersID); - if (!string.IsNullOrEmpty(CSN)) cmd.Parameters.AddWithValue("csn", CSN); - else cmd.Parameters.AddWithValue("csn", DBNull.Value); - checkCon(true); - var rs = cmd.ExecuteReader(System.Data.CommandBehavior.SingleRow); - using (var tb = new DataTable()) - { - tb.Load(rs); - if (tb.Rows.Count > 0) - { - DataRow dr = tb.Rows[0]; - //Values = new object[rs.FieldCount]; - //int rv = rs.GetValues(Values); - u.PersID = (int)dr["PersID"]; - u.LastName = dr["LastName"].ToString(); - u.FirstName = dr["FirstName"].ToString(); - //u.conCode = Values[rs.GetOrdinal("conCode")].ToString(); - u.Language = dr["Language"].ToString(); - u.AccessAllow = dr["AccessAllow"] as bool?; - decimal? m = dr["Margin"] as decimal?; - if (m.HasValue) u.Margin = (double)m.Value; else u.Margin = null; - //u.Margin = (double ?)Values[rs.GetOrdinal("Margin")] ; - u.VisitIDLocked = dr["VisitIDLocked"] as int?; - u.ReasonNoAccess = dr["ReasonNoAccess"].ToString().Replace("\\n", "\n"); - u.UserComment = dr["Comment"].ToString(); - - if (isEntry && tb.Columns.Contains("hasEPD")) - { - u.hasEPD = (bool)dr["hasEPD"]; - if (u.hasEPD) u.ReasonNoAccess = "You have an EPD in use"; //!!! not for return !!!! - } - else u.hasEPD = false; - u.activeVisit = dr["activeVisit"] as int?; - u.AllOk = ( !CheckUser || (u.AccessAllow == true && u.VisitIDLocked == 0)); - } - else - { - // Not found - u.PersID = 0; - u.LastName = "Not Found"; - u.FirstName = "Not Found"; - //u.conCode = "A1"; - u.Language = "N"; - u.AccessAllow = false; - u.Margin = 0; - u.VisitIDLocked = 0; - u.ReasonNoAccess = "Not found"; - u.UserComment = string.Empty; - u.hasEPD = false; - u.AllOk = !CheckUser || (u.AccessAllow == true && u.VisitIDLocked == 0); - } - rs.Close(); - } - } - } - catch (System.Exception ex) - { - if (stationLog != null) stationLog.WriteLine($"GetUser error {ex.Message} {System.DateTime.Now.ToString("HH:mm:ss:nnn")}"); - - } - return u; - } - } -} +using LSWLib; +using System; +using System.Data; +using System.Data.SqlClient; + +namespace eDosStation +{ + public class DataInterface + { + const string moduleName = "DataInterface"; + public int ID_Station; + public bool isLocal = false; + private string currentConStr, ConCentralStr; + public System.IO.StreamWriter stationLog; + + public SqlConnection localConnection, centralConnection; + internal CLog splunkLog; + public System.Data.SqlClient.SqlCommand VisitInitCommand; + public static SqlCommand VisitExitCommand; + public static SqlCommand NextIDCommand; + public static SqlCommand LastIDCommand; + public static SqlCommand CheckStatus; + public DataSet1.CommentOnEventDataTable dtCOE; + private bool CheckUser,AllowMultipleEPD; + private SqlCommand ReverseSyncCommand; + + public static string tnow() + { + return DateTime.Now.ToString("HH:mm:ss.fff"); + } + public static int? NextID() + { + int? nxtValue = null; + if (NextIDCommand.Connection.State == ConnectionState.Closed) NextIDCommand.Connection.Open(); + nxtValue = NextIDCommand.ExecuteScalar() as int?; + return nxtValue; + } + public static int? LastID() + { + int? lastValue = null; + if (NextIDCommand.Connection.State == ConnectionState.Closed) LastIDCommand.Connection.Open(); + lastValue = LastIDCommand.ExecuteScalar() as int?; + return lastValue; + } + /// + /// Check connenction. If closed then open oand optianly leave open. + /// + /// If opened leave it open + /// true if connection ok + public bool checkCon(bool leaveOpen = false) + { + bool rv = false; + if (localConnection != null && localConnection.State == System.Data.ConnectionState.Open) return true; + try + { + if (localConnection == null || string.IsNullOrEmpty(localConnection.ConnectionString)) localConnection = new SqlConnection(currentConStr); + localConnection.Open(); + rv = true; + } + catch (System.Exception ex) + { + System.Windows.MessageBox.Show($"Opening '{currentConStr}' error :{ex.Message}"); + } + if (rv && !leaveOpen) localConnection?.Close(); + return rv; + } + public bool checkConCentral(bool leaveOpen = false) + { + bool rv = false; + + if (centralConnection != null && centralConnection.State == System.Data.ConnectionState.Open) return true; + try + { + if (centralConnection == null || string.IsNullOrEmpty(centralConnection.ConnectionString)) centralConnection = new SqlConnection(ConCentralStr); + centralConnection.Open(); + rv = true; + } + catch (System.Exception ex) + { + System.Windows.MessageBox.Show($"Opening '{ConCentralStr}' error :{ex.Message}"); + } + if (rv && !leaveOpen) centralConnection?.Close(); + return rv; + } + internal void SetStation(int curIDStation) + { + ID_Station = curIDStation; + LastIDCommand.Parameters["ID_Station"].Value = curIDStation; + VisitInitCommand.Parameters["ID_Station"].Value = curIDStation; + CheckStatus.Parameters["ID_Station"].Value = curIDStation; + } + public bool isOnline() + { + bool? online = false; + if (checkCon(true)) + { + online = CheckStatus.ExecuteScalar() as bool?; + if (!online.HasValue) online = false; + } + isLocal = !online.Value; + return online.Value; + } + static public void first() + { + var cb = new System.Data.SqlClient.SqlConnectionStringBuilder(Properties.Settings.Default.localConnectionString); + if (string.IsNullOrEmpty(cb.Password)) + { + var f = new AskPwd(); + f.ShowDialog(); + string pwd = f.ResponseText; + string cfg = System.IO.Path.Combine(Environment.CurrentDirectory, System.AppDomain.CurrentDomain.FriendlyName); + Config.ToggleConfigEncryption(cfg, pwd); + System.Windows.Application.Current.Shutdown(); + } + } + private void init() + { + const string taskName = "init"; + stationLog?.WriteLine($"{moduleName}.{taskName }start {tnow()}"); + try + { + var flog = System.Configuration.ConfigurationManager.AppSettings["sqlLogFolder"]; + if (System.IO.Directory.Exists(flog)) + { + string fn = System.IO.Path.Combine(flog, "station.log"); + if (System.IO.File.Exists(fn)) + { + stationLog = new System.IO.StreamWriter(fn, false, System.Text.Encoding.UTF8); + } + } + + first(); + currentConStr = System.Configuration.ConfigurationManager.ConnectionStrings["eDosStation.Properties.Settings.localConnectionString"].ConnectionString; + ConCentralStr = System.Configuration.ConfigurationManager.ConnectionStrings["eDosConnectionString"].ConnectionString; + localConnection = new SqlConnection(currentConStr); + NextIDCommand = new SqlCommand("SELECT NEXT VALUE FOR VisitSequence as VisitID", localConnection); + isLocal = true; + MakeCommands(); + bool rv = checkCon(false); + } catch (Exception ex) + { + splunkLog?.WriteException(moduleName, taskName, ex); + System.Windows.MessageBox.Show($"Init error {ex.Message} con={currentConStr}"); + stationLog.WriteLine($"Init error {ex.Message} con={currentConStr}"); + } + stationLog?.WriteLine($"Datainterface.Init end {tnow()}"); + } + public DataInterface( ) + { + init(); + } + + // DataSet1TableAdapters.GetTaskInfoTableAdapter TaskInfoTa() + //{ + // return new DataSet1TableAdapters.GetTaskInfoTableAdapter(); + // //var ta = DataSet1TableAdapters.GetTaskInfoTableAdapter(); + // //if (ta.Connection.ConnectionString!= currentConStr) ta.Connection.ConnectionString = currentConStr; + // //return + //} + + // DataSet1TableAdapters.GetTaskListTableAdapter TaskListTA() + //{ + // return new DataSet1TableAdapters.GetTaskListTableAdapter(); + // //ta.Connection.ConnectionString = currentConStr; + // //return ta; + //} + + internal void SetCheckUser(bool pCheckUser) + { + this.CheckUser = pCheckUser; + } + + internal void SetAllowMultipleEPD(bool pAllowMultipleEPD) + { + this.AllowMultipleEPD = pAllowMultipleEPD; + } + //DataSet1TableAdapters.CommentOnEventTableAdapter CommentTA() + //{ + // var ta = new DataSet1TableAdapters.CommentOnEventTableAdapter(); + // ta.Connection.ConnectionString = currentConStr; + // return ta; + //} + + public System.Data.SqlClient.SqlConnection getCon(bool LeaveOpen) + { + checkCon(LeaveOpen); + return localConnection; + } + + public System.Data.SqlClient.SqlConnection getConCentral(bool LeaveOpen) + { + checkConCentral(LeaveOpen); + return centralConnection; + } + + void MakeCommands() + { + LastIDCommand = new SqlCommand("VisitIDLast", localConnection); + LastIDCommand.CommandType = CommandType.StoredProcedure; + var pa = new System.Data.SqlClient.SqlParameter("ID_Station", SqlDbType.Int, 4); LastIDCommand.Parameters.Add(pa); + + CheckStatus = new SqlCommand("[syncLoc].[SyncStatusIsOK]", localConnection); + CheckStatus.CommandType = CommandType.StoredProcedure; + pa = new System.Data.SqlClient.SqlParameter("ID_Station", SqlDbType.Int, 4); CheckStatus.Parameters.Add(pa); + + VisitInitCommand = new System.Data.SqlClient.SqlCommand("[dbo].[VisitInit]", localConnection) { CommandType = System.Data.CommandType.StoredProcedure }; + VisitInitCommand.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] { + new System.Data.SqlClient.SqlParameter("PersID",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("ID_Task",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("Inst_CODE",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("EPD_InternalID",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("isBG",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("EPDVisitID",SqlDbType.Int,0,System.Data.ParameterDirection.Output,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("ID_Station",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("ID_Visit",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("ENTRY_EPD_CLOCK",SqlDbType.Decimal,0,System.Data.ParameterDirection.Input,false,10,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("epdType",SqlDbType.TinyInt,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + }); + + VisitExitCommand = new System.Data.SqlClient.SqlCommand("[dbo].[VisitExit]", localConnection) { CommandType = System.Data.CommandType.StoredProcedure }; + VisitExitCommand.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] { + new System.Data.SqlClient.SqlParameter("EPDVisitID",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("HP07",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("HP10",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("HP07Peak",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("HP10Peak",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("HP07PeakTime",SqlDbType.DateTime,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("HP10PeakTime",SqlDbType.DateTime,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("HP07Total",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("HP10Total",SqlDbType.Float,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("K1",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("K2",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("K3",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("K4",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("K5",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("K6",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("SG",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("BC",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("FB",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("HG",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("QualityData",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("alarmStatus",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("otherAlarms",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("errorStatus",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("operatingStatus",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("ENTRY_EPD_CLOCK",SqlDbType.Decimal,0,System.Data.ParameterDirection.Input,false,10,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("EXIT_EPD_CLOCK",SqlDbType.Decimal,0,System.Data.ParameterDirection.Input,false,10,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("PersID",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("eDosBatteryWarning",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("eDosDose07Warning",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("eDosDose07Alarm",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("eDosRate07Warning",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("eDosRate07Alarm",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("eDosDose10Warning",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("eDosDose10Alarm",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("eDosRate10Warning",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + , new System.Data.SqlClient.SqlParameter("eDosRate10Alarm",SqlDbType.Bit,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + }); + + ReverseSyncCommand = new System.Data.SqlClient.SqlCommand("syncLoc.UpdateRemoteReturns", localConnection) { CommandType = System.Data.CommandType.StoredProcedure }; + + } + + + public void VisitExit(int EpdVisitID, EpdBaseClr.Epd2 ep) + { + const string taskName = "VisitExit"; + VisitExitCommand.Parameters["EPDVisitID"].Value = EpdVisitID; + VisitExitCommand.Parameters["HP07"].Value = ep.Hp07; + VisitExitCommand.Parameters["HP10"].Value = ep.Hp10; + + VisitExitCommand.Parameters["Hp07Total"].Value = ep.Hp07Total; + VisitExitCommand.Parameters["Hp10Total"].Value = ep.Hp10Total; + + VisitExitCommand.Parameters["Hp07Peak"].Value = ep.Hp07Peak; + VisitExitCommand.Parameters["Hp10Peak"].Value = ep.Hp10Peak; + if (ep.Hp07PeakTime != null) + VisitExitCommand.Parameters["HP07PeakTime"].Value = ep.Hp07PeakTime; + else + VisitExitCommand.Parameters["HP07PeakTime"].Value = DBNull.Value; + if (ep.Hp10PeakTime != null) + VisitExitCommand.Parameters["Hp10PeakTime"].Value = ep.Hp07PeakTime; + else + VisitExitCommand.Parameters["Hp10PeakTime"].Value = DBNull.Value; + + VisitExitCommand.Parameters["K1"].Value = ep.K1; + VisitExitCommand.Parameters["K2"].Value = ep.K2; + VisitExitCommand.Parameters["K3"].Value = ep.K3; + VisitExitCommand.Parameters["K4"].Value = ep.K4; + VisitExitCommand.Parameters["K5"].Value = ep.K5; + VisitExitCommand.Parameters["K6"].Value = ep.K6; + VisitExitCommand.Parameters["SG"].Value = ep.SG; + VisitExitCommand.Parameters["BC"].Value = ep.BC; + VisitExitCommand.Parameters["FB"].Value = ep.FB; + VisitExitCommand.Parameters["HG"].Value = ep.HG; + + VisitExitCommand.Parameters["QualityData"].Value = ep.QualityData; + + //VisitExitCommand.Parameters["D1"].Value = ep.D1; + //VisitExitCommand.Parameters["D2"].Value = ep.D2; + //VisitExitCommand.Parameters["D3"].Value = ep.D3; + //VisitExitCommand.Parameters["D4"].Value = ep.D4; + + VisitExitCommand.Parameters["alarmStatus"].Value = ep.alarmStatus; + VisitExitCommand.Parameters["otherAlarms"].Value = ep.otherAlarms; + VisitExitCommand.Parameters["errorStatus"].Value = ep.errorStatus; + VisitExitCommand.Parameters["operatingStatus"].Value = ep.operatingStatus; + VisitExitCommand.Parameters["ENTRY_EPD_CLOCK"].Value = ep.CountsClockBase; + VisitExitCommand.Parameters["EXIT_EPD_CLOCK"].Value = ep.CountsClock; + + if (int.TryParse(ep.WearerName, out int WearerPersID)) + VisitExitCommand.Parameters["PersID"].Value = WearerPersID; + else + VisitExitCommand.Parameters["PersID"].Value = DBNull.Value; + + VisitExitCommand.SetBoolParam("eDosBatteryWarning",ep.eDosBatteryWarning); + VisitExitCommand.SetBoolParam("eDosDose07Warning", ep.eDosDose07Warning); + VisitExitCommand.SetBoolParam("eDosDose07Alarm", ep.eDosDose07Alarm); + VisitExitCommand.SetBoolParam("eDosRate07Warning", ep.eDosRate07Warning); + VisitExitCommand.SetBoolParam("eDosRate07Alarm", ep.eDosRate07Alarm); + VisitExitCommand.SetBoolParam("eDosDose10Warning", ep.eDosDose10Warning); + VisitExitCommand.SetBoolParam("eDosDose10Alarm", ep.eDosDose10Alarm); + VisitExitCommand.SetBoolParam("eDosRate10Warning", ep.eDosRate10Warning); + VisitExitCommand.SetBoolParam("eDosRate10Alarm", ep.eDosRate10Alarm); + + checkCon(true); + VisitExitCommand.Connection = localConnection; + try + { + VisitExitCommand.ExecuteNonQuery(); + } catch (System.Exception ex) + { + splunkLog?.WriteException(moduleName, taskName, ex); + } + localConnection.Close(); + } + + public void FillComment() + { + if (dtCOE == null) dtCOE = new DataSet1.CommentOnEventDataTable(); + using (var dt = new DataSet1TableAdapters.CommentOnEventTableAdapter()) + { + dt.Fill(dtCOE); + } + } + + public DataSet1.CommentOnEventRow GetCommentOnEventRow(int id) + { + return dtCOE.FindByID_CommnentOnEvent(id); + } + + public void FillTaskInfo(User _User, DataSet1 dataSet1) + { + const string taskName = "FillTaskInfo"; + try + { + using (var dataSet1GetTaskInfoTableAdapter = new DataSet1TableAdapters.GetTaskInfoTableAdapter()) // new eDosStation.DataSet1TableAdapters.GetTaskInfoTableAdapter()) + { + //dataSet1GetTaskInfoTableAdapter.Connection.ConnectionString = currentConStr; + stationLog?.WriteLine($"dataSet1GetTaskInfoTableAdapter Fillin {System.DateTime.Now}"); + dataSet1GetTaskInfoTableAdapter.Fill(dataSet1.GetTaskInfo, null, _User.Margin); + stationLog?.WriteLine($"dataSet1GetTaskInfoTableAdapter Filled {System.DateTime.Now}"); + } + } + catch (System.Exception ex) { + splunkLog?.WriteException(moduleName, taskName, ex); + if (stationLog != null) stationLog.WriteLine($"{taskName} error {ex.Message} {System.DateTime.Now}"); + } + } + + public User GetUser( string CSN, string Code, bool isEntry) + { + const string taskName = "GetUser"; + User u = new User(); + //object[] Values = null; + try + { + using (var cmd = new SqlCommand("GetPersonInfo", localConnection) { CommandType = System.Data.CommandType.StoredProcedure } ) + { + if (int.TryParse(Code, out int PersID)) cmd.Parameters.AddWithValue("PersID", PersID); + if (!string.IsNullOrEmpty(CSN)) cmd.Parameters.AddWithValue("csn", CSN); + else cmd.Parameters.AddWithValue("csn", DBNull.Value); + checkCon(true); + var rs = cmd.ExecuteReader(System.Data.CommandBehavior.SingleRow); + using (var tb = new DataTable()) + { + tb.Load(rs); + if (tb.Rows.Count > 0) + { + DataRow dr = tb.Rows[0]; + //Values = new object[rs.FieldCount]; + //int rv = rs.GetValues(Values); + u.PersID = (int)dr["PersID"]; + u.LastName = dr["LastName"].ToString(); + u.FirstName = dr["FirstName"].ToString(); + //u.conCode = Values[rs.GetOrdinal("conCode")].ToString(); + u.Language = dr["Language"].ToString(); + u.AccessAllow = dr["AccessAllow"] as bool?; + decimal? m = dr["Margin"] as decimal?; + if (m.HasValue) u.Margin = (double)m.Value; else u.Margin = null; + //u.Margin = (double ?)Values[rs.GetOrdinal("Margin")] ; + u.VisitIDLocked = dr["VisitIDLocked"] as int?; + u.ReasonNoAccess = dr["ReasonNoAccess"].ToString().Replace("\\n", "\n"); + u.UserComment = dr["Comment"].ToString(); + + if (isEntry && tb.Columns.Contains("hasEPD")) + { + u.hasEPD = (bool)dr["hasEPD"]; + if (u.hasEPD) u.ReasonNoAccess = "You have an EPD in use"; //!!! not for return !!!! + } + else u.hasEPD = false; + u.activeVisit = dr["activeVisit"] as int?; + u.AllOk = ( !CheckUser || (u.AccessAllow == true && u.VisitIDLocked == 0)); + } + else + { + // Not found + u.PersID = 0; + u.LastName = "Not Found"; + u.FirstName = "Not Found"; + //u.conCode = "A1"; + u.Language = "N"; + u.AccessAllow = false; + u.Margin = 0; + u.VisitIDLocked = 0; + u.ReasonNoAccess = "Not found"; + u.UserComment = string.Empty; + u.hasEPD = false; + u.AllOk = !CheckUser || (u.AccessAllow == true && u.VisitIDLocked == 0); + } + rs.Close(); + } + } + } + catch (System.Exception ex) + { + splunkLog?.WriteException(moduleName, taskName, ex); + if (stationLog != null) stationLog.WriteLine($"{taskName} error {ex.Message} {System.DateTime.Now.ToString("HH:mm:ss:nnn")}"); + } + return u; + } + + + public bool ReverseSync() + { + const string taskName = "ReverseSync"; + bool rv = false; + checkCon(true); + VisitExitCommand.Connection = localConnection; + try + { + ReverseSyncCommand.ExecuteNonQuery(); + rv = true; + } + catch (System.Exception ex) + { + splunkLog?.WriteException(moduleName, taskName, ex); + } + localConnection.Close(); + return rv; + } + } +} diff --git a/eDosStation/MainWindow.xaml b/eDosStation/MainWindow.xaml index 0739bf6..a77a43c 100644 --- a/eDosStation/MainWindow.xaml +++ b/eDosStation/MainWindow.xaml @@ -21,8 +21,10 @@ - - + + + + diff --git a/eDosStation/MainWindow.xaml.cs b/eDosStation/MainWindow.xaml.cs index 86c3d84..0373cdd 100644 --- a/eDosStation/MainWindow.xaml.cs +++ b/eDosStation/MainWindow.xaml.cs @@ -130,6 +130,7 @@ namespace eDosStation { dataInterface = new DataInterface(); thisStation = new Station(dataInterface, string.Empty); + dataInterface.splunkLog = thisStation.splunkLog; } catch (System.Exception ex) { @@ -219,5 +220,14 @@ namespace eDosStation Application.Current.Shutdown(); Environment.Exit(0); } + + private void mReverseSync_Click(object sender, RoutedEventArgs e) + { + bool ok = dataInterface.ReverseSync(); + if (ok) + MessageBox.Show("Success", null, MessageBoxButton.OK, MessageBoxImage.Information); + else + MessageBox.Show("Fout", null, MessageBoxButton.OK, MessageBoxImage.Error); + } } } diff --git a/eDosStation/Properties/AssemblyInfo.cs b/eDosStation/Properties/AssemblyInfo.cs index de77dc5..6fb4af5 100644 --- a/eDosStation/Properties/AssemblyInfo.cs +++ b/eDosStation/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ using System.Windows; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.6.0.1")] -[assembly: AssemblyFileVersion("2.6.0.1")] +[assembly: AssemblyVersion("2.6.1.1")] +[assembly: AssemblyFileVersion("2.6.1.1")] diff --git a/eDosStation/Settings.xaml b/eDosStation/Settings.xaml index cf503fa..6309452 100644 --- a/eDosStation/Settings.xaml +++ b/eDosStation/Settings.xaml @@ -1,72 +1,76 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eDosStation/Settings.xaml.cs b/eDosStation/Settings.xaml.cs index 9c291cf..2fbab1f 100644 --- a/eDosStation/Settings.xaml.cs +++ b/eDosStation/Settings.xaml.cs @@ -1,202 +1,205 @@ -using System.Collections.ObjectModel; -using System.Text; -using System.Windows; - -namespace eDosStation -{ - /// - /// Interaction logic for Settings.xaml - /// - public class beepclass - { - public string Text { get; set; } - public byte Value { get; set; } - public beepclass(string txt, byte val) - { - Text = txt; Value = val; - } - } - - - - - public class readerclass - { - public string Text { get; set; } - public readerclass(string txt) - { - Text = txt; - } - } - - public partial class Settings : Window - { - Station thisStation; - ObservableCollection beepValues = new ObservableCollection(); - ObservableCollection readerValues = new ObservableCollection(); - - public Settings( Station tStation) - { - thisStation = tStation; - InitializeComponent(); - } - - private void BOK_Click(object sender, RoutedEventArgs e) - { - string thiscom = cComPort.SelectedItem.ToString().Replace("COM",""); - thisStation.ComPort = int.Parse(thiscom); - - DataSet1.InstallationRow ir = CIns1.SelectedItem as DataSet1.InstallationRow; - thisStation.Inst_CODE1 = ir.Inst_CODE; - thisStation.Inst_Name1 = ir.InstallationName; - - ir = CIns2.SelectedItem as DataSet1.InstallationRow; - thisStation.Inst_CODE2 = ir.Inst_CODE; - thisStation.Inst_Name2 = ir.InstallationName; - - thisStation.useBeep = (byte)tBeep.SelectedValue; - - if (cbValidation.IsChecked == null) cbValidation.IsChecked = false; - thisStation.useTestButtons = cbValidation.IsChecked.Value; - thisStation.Reader = (string)cbReaders.SelectedValue; - thisStation.checkUser = cbCheckUsers.IsChecked != null ? cbCheckUsers.IsChecked.Value : false; - thisStation.RestartCom = cbRestartCom.IsChecked != null ? cbRestartCom.IsChecked.Value : false; - thisStation.EPDTimeOut = int.Parse(tEPDTimeout.Text); - - thisStation.OnlyMK2 = cbOnlyMK2.IsChecked != null ? cbOnlyMK2.IsChecked.Value : false; - thisStation.RestartComFirst = cbRestartComFirst.IsChecked != null ? cbRestartComFirst.IsChecked.Value : false; - - - thisStation.Update(); - this.Close(); - if (thisStation.Error > 0) - { - MessageBox.Show($"Error {thisStation.ErrorMessage}"); - } - } - - private void BCancel_Click(object sender, RoutedEventArgs e) - { - this.Close(); - } - - private void Window_Loaded(object sender, RoutedEventArgs e) - { - string eDosCom = devcon.FindEdosCom(); - try - { - using (var a = new LSWDesfirePublic.CCard()) - { - a.GetReaderList(); - foreach (string s in a.readersList) { readerValues.Add(new readerclass(s)); } - } - cbReaders.ItemsSource = readerValues; - cbReaders.SelectedValue = thisStation.Reader; - } catch (System.Exception ex) - { - MessageBox.Show($"Readers err {ex.Message}"); - } - - - try { - foreach (string cn in System.IO.Ports.SerialPort.GetPortNames()) - { - cComPort.Items.Add(cn); - } - } - catch (System.Exception ex) - { - MessageBox.Show($"Serial err {ex.Message}"); - } - - - beepValues.Add(new beepclass("Loud High freq Beep" , 0b00010111 )); - beepValues.Add(new beepclass("Loud Low freq Beep" , 0b00011111 )); - beepValues.Add(new beepclass("Normal High freq Beep", 0b00010110 )); - beepValues.Add(new beepclass("Normal Low freq Beep" , 0b00011110 )); - beepValues.Add(new beepclass("No Beep (only led)" , 0b00011010 )); - - - // 7 6 5 4 3210 - // 1 0 0 1 1 1 0 0 1 1 1 0 0001 - // 1 0 0 1 1 1 0 0 1 1 0 0 0001 - // 1 0 0 1 1 1 0 0 1 0 1 0 0001 - // 1 0 0 1 1 1 0 0 1 0 0 0 0001 - // 1 0 0 1 1 1 0 0 0 0 0 0 0000 - - //MK3 - //Bits 0-3 = Graphic Wearer Name, displayed in EPD Assignment menu - //0000 : Off(no sounder) - //0001 : Continuous Single Tone - //0010 : Continuous Dual Tone Slow - //0011 : Continuous Dual Tone Fast - //0100 : Intermittent Single Slow - //0101 : Intermittent Single Fast - //0110 : Intermittent Double Slow - //0111 : Intermittent Double Fast - //1110 : Mirion Style Dose - //1111 : Mirion Style Rate - //Bit 4 = Not used - //Bit 5 = Tone 2kHz = 0, 4kHz = 1 - //Bit 6 = Volume Loud = 1, Normal = 0 - //Bit 7 = Sound Enabled = 1 - //Bit 8, 9 = Not used - //Bit 10 = LED Brightness Bright = 1, Normal = 0 - //Bit 11 = LED Enabled = 1 - //Bit 12 = Mutable User can mute = 1 - //Bit 13, 14 = Not Used - //Bit 15 = Vibe Enabled = 1 - - //beepValues.Add(new beepclass("Beep", 22)); - //beepValues.Add(new beepclass("No Beep", 18)); - tBeep.ItemsSource = beepValues; - - string thisComport = $"COM{thisStation.ComPort}"; - if (!string.IsNullOrEmpty(eDosCom)) thisComport = eDosCom; - if (!cComPort.Items.Contains(thisComport)) cComPort.Items.Add(thisComport); - cComPort.SelectedItem = thisComport; - - try { - DataSet1.InstallationDataTable tbInstallations; - using (var ta = new DataSet1TableAdapters.InstallationTableAdapter()) - tbInstallations = ta.GetData(); - tbInstallations.AddInstallationRow(0, "-"); - foreach (DataSet1.InstallationRow r in tbInstallations.Rows) - { - CIns1.Items.Add(r); - CIns2.Items.Add(r); - } - CIns1.SelectedValue = thisStation.Inst_CODE1; - CIns2.SelectedValue = thisStation.Inst_CODE2; - } - catch (System.Exception ex) - { - MessageBox.Show($"SerINstallations err {ex.Message}"); - } - - try - { - tBeep.SelectedValue = thisStation.useBeep; - cbValidation.IsChecked = thisStation.useTestButtons; - cbCheckUsers.IsChecked= thisStation.checkUser; - cbRestartCom.IsChecked = thisStation.RestartCom; - tEPDTimeout.Text = thisStation.EPDTimeOut.ToString(); - cbRestartComFirst.IsChecked = thisStation.RestartComFirst; - cbOnlyMK2.IsChecked = thisStation.OnlyMK2; - } - catch (System.Exception ex) - { - MessageBox.Show($"Settings err {ex.Message}"); - } - - try { - bool rv = thisStation.dataInterface.checkCon(false); - } - catch (System.Exception ex) - { - MessageBox.Show($"Interface check {ex.Message}"); - } - - } - } -} +using System.Collections.ObjectModel; +using System.Text; +using System.Windows; + +namespace eDosStation +{ + /// + /// Interaction logic for Settings.xaml + /// + public class beepclass + { + public string Text { get; set; } + public byte Value { get; set; } + public beepclass(string txt, byte val) + { + Text = txt; Value = val; + } + } + + + + + public class readerclass + { + public string Text { get; set; } + public readerclass(string txt) + { + Text = txt; + } + } + + public partial class Settings : Window + { + Station thisStation; + ObservableCollection beepValues = new ObservableCollection(); + ObservableCollection readerValues = new ObservableCollection(); + + public Settings( Station tStation) + { + thisStation = tStation; + InitializeComponent(); + } + + private void BOK_Click(object sender, RoutedEventArgs e) + { + string thiscom = cComPort.SelectedItem.ToString().Replace("COM",""); + thisStation.ComPort = int.Parse(thiscom); + + DataSet1.InstallationRow ir = CIns1.SelectedItem as DataSet1.InstallationRow; + thisStation.Inst_CODE1 = ir.Inst_CODE; + thisStation.Inst_Name1 = ir.InstallationName; + + ir = CIns2.SelectedItem as DataSet1.InstallationRow; + thisStation.Inst_CODE2 = ir.Inst_CODE; + thisStation.Inst_Name2 = ir.InstallationName; + + thisStation.useBeep = (byte)tBeep.SelectedValue; + + if (cbValidation.IsChecked == null) cbValidation.IsChecked = false; + thisStation.useTestButtons = cbValidation.IsChecked.Value; + thisStation.Reader = (string)cbReaders.SelectedValue; + thisStation.checkUser = cbCheckUsers.IsChecked != null ? cbCheckUsers.IsChecked.Value : false; + thisStation.RestartCom = cbRestartCom.IsChecked != null ? cbRestartCom.IsChecked.Value : false; + thisStation.EPDTimeOut = int.Parse(tEPDTimeout.Text); + + thisStation.OnlyMK2 = cbOnlyMK2.IsChecked != null ? cbOnlyMK2.IsChecked.Value : false; + + thisStation.RestartComFirst = cbRestartComFirst.IsChecked != null ? cbRestartComFirst.IsChecked.Value : false; + + thisStation.AllowMultipleEPD = cbAllowMultipleEPD.IsChecked != null ? cbAllowMultipleEPD.IsChecked.Value : false; + + thisStation.Update(); + this.Close(); + if (thisStation.Error > 0) + { + MessageBox.Show($"Error {thisStation.ErrorMessage}"); + } + } + + private void BCancel_Click(object sender, RoutedEventArgs e) + { + this.Close(); + } + + private void Window_Loaded(object sender, RoutedEventArgs e) + { + string eDosCom = devcon.FindEdosCom(); + try + { + using (var a = new LSWDesfirePublic.CCard()) + { + a.GetReaderList(); + foreach (string s in a.readersList) { readerValues.Add(new readerclass(s)); } + } + cbReaders.ItemsSource = readerValues; + cbReaders.SelectedValue = thisStation.Reader; + } catch (System.Exception ex) + { + MessageBox.Show($"Readers err {ex.Message}"); + } + + + try { + foreach (string cn in System.IO.Ports.SerialPort.GetPortNames()) + { + cComPort.Items.Add(cn); + } + } + catch (System.Exception ex) + { + MessageBox.Show($"Serial err {ex.Message}"); + } + + + beepValues.Add(new beepclass("Loud High freq Beep" , 0b00010111 )); + beepValues.Add(new beepclass("Loud Low freq Beep" , 0b00011111 )); + beepValues.Add(new beepclass("Normal High freq Beep", 0b00010110 )); + beepValues.Add(new beepclass("Normal Low freq Beep" , 0b00011110 )); + beepValues.Add(new beepclass("No Beep (only led)" , 0b00011010 )); + + + // 7 6 5 4 3210 + // 1 0 0 1 1 1 0 0 1 1 1 0 0001 + // 1 0 0 1 1 1 0 0 1 1 0 0 0001 + // 1 0 0 1 1 1 0 0 1 0 1 0 0001 + // 1 0 0 1 1 1 0 0 1 0 0 0 0001 + // 1 0 0 1 1 1 0 0 0 0 0 0 0000 + + //MK3 + //Bits 0-3 = Graphic Wearer Name, displayed in EPD Assignment menu + //0000 : Off(no sounder) + //0001 : Continuous Single Tone + //0010 : Continuous Dual Tone Slow + //0011 : Continuous Dual Tone Fast + //0100 : Intermittent Single Slow + //0101 : Intermittent Single Fast + //0110 : Intermittent Double Slow + //0111 : Intermittent Double Fast + //1110 : Mirion Style Dose + //1111 : Mirion Style Rate + //Bit 4 = Not used + //Bit 5 = Tone 2kHz = 0, 4kHz = 1 + //Bit 6 = Volume Loud = 1, Normal = 0 + //Bit 7 = Sound Enabled = 1 + //Bit 8, 9 = Not used + //Bit 10 = LED Brightness Bright = 1, Normal = 0 + //Bit 11 = LED Enabled = 1 + //Bit 12 = Mutable User can mute = 1 + //Bit 13, 14 = Not Used + //Bit 15 = Vibe Enabled = 1 + + //beepValues.Add(new beepclass("Beep", 22)); + //beepValues.Add(new beepclass("No Beep", 18)); + tBeep.ItemsSource = beepValues; + + string thisComport = $"COM{thisStation.ComPort}"; + if (!string.IsNullOrEmpty(eDosCom)) thisComport = eDosCom; + if (!cComPort.Items.Contains(thisComport)) cComPort.Items.Add(thisComport); + cComPort.SelectedItem = thisComport; + + try { + DataSet1.InstallationDataTable tbInstallations; + using (var ta = new DataSet1TableAdapters.InstallationTableAdapter()) + tbInstallations = ta.GetData(); + tbInstallations.AddInstallationRow(0, "-"); + foreach (DataSet1.InstallationRow r in tbInstallations.Rows) + { + CIns1.Items.Add(r); + CIns2.Items.Add(r); + } + CIns1.SelectedValue = thisStation.Inst_CODE1; + CIns2.SelectedValue = thisStation.Inst_CODE2; + } + catch (System.Exception ex) + { + MessageBox.Show($"SerINstallations err {ex.Message}"); + } + + try + { + tBeep.SelectedValue = thisStation.useBeep; + cbValidation.IsChecked = thisStation.useTestButtons; + cbCheckUsers.IsChecked= thisStation.checkUser; + cbRestartCom.IsChecked = thisStation.RestartCom; + tEPDTimeout.Text = thisStation.EPDTimeOut.ToString(); + cbRestartComFirst.IsChecked = thisStation.RestartComFirst; + cbOnlyMK2.IsChecked = thisStation.OnlyMK2; + cbAllowMultipleEPD.IsChecked = thisStation.AllowMultipleEPD; + } + catch (System.Exception ex) + { + MessageBox.Show($"Settings err {ex.Message}"); + } + + try { + bool rv = thisStation.dataInterface.checkCon(false); + } + catch (System.Exception ex) + { + MessageBox.Show($"Interface check {ex.Message}"); + } + + } + } +} diff --git a/eDosStation/Station.cs b/eDosStation/Station.cs index e9e1726..3de5dab 100644 --- a/eDosStation/Station.cs +++ b/eDosStation/Station.cs @@ -1,332 +1,277 @@ -using System; -using System.Collections.Generic; -using System.Data.SqlClient; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Documents; -using spl1 = LSWLib.CLog; -namespace eDosStation -{ - public class Station - { - public spl1 splunkLog; - private bool doLog; - public System.IO.StreamWriter stationLog=null; - public int ID_Station { get; set; } - public int ComPort { get; set; } - public int Inst_CODE1 { get; set; } - public int Inst_CODE2 { get; set; } - public string Inst_Name1 { get; set; } - public string Inst_Name2 { get; set; } - public string TestCSN { get; set; } - public string TestCode { get; set; } - public string Reader { get; internal set; } - public bool useTestButtons { get; set; } - public byte useBeep { get; set; } - public bool checkUser { get; internal set; } - public bool RestartCom { get; set; } - public int EPDTimeOut { get; internal set; } - public int EPDRetries { get; internal set; } - public bool OnlyMK2 { get; internal set; } - public bool RestartComFirst { get; internal set; } - public bool Changed = false; - public int Error = 0; - public string ErrorMessage; - public StringBuilder insComments; - public TextBlock tbComments; - public DataInterface dataInterface; - public System.Collections.Generic.Dictionary beepMk3Map; - public ushort useBeepMK3() - { - if (beepMk3Map.ContainsKey(useBeep)) - return beepMk3Map[useBeep]; - else return beepMk3Map[0b00011010]; - } - public Station(DataInterface mDataInterface, string Station) - { - splunkLog = new spl1(Environment.MachineName); - stationLog = null; - dataInterface = mDataInterface; - Error = 0; - ErrorMessage = string.Empty; - ComPort = 0; - Inst_CODE1 = 1; - Inst_CODE2 = 11; - Inst_Name1 = "BR1"; - Inst_Name2 = "Venus"; - TestCSN = System.Configuration.ConfigurationManager.AppSettings["TestCSN"]; - TestCode = System.Configuration.ConfigurationManager.AppSettings["TestCode"]; - insComments = new StringBuilder(); - tbComments = new TextBlock(); - tbComments.FontSize = 20; - tbComments.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch; - tbComments.TextAlignment = System.Windows.TextAlignment.Center; - EPDTimeOut = 10000; //ms - EPDRetries = 2; - - beepMk3Map = new Dictionary(); - beepMk3Map.Add(0b00010111, 0b1001110011100001); - beepMk3Map.Add(0b00011111, 0b1001110011000001); - beepMk3Map.Add(0b00010110, 0b1001110010100001); - beepMk3Map.Add(0b00011110, 0b1001110010000001); - beepMk3Map.Add(0b00011010, 0b1001110000000000); - - stationLog = mDataInterface.stationLog; - - var co = dataInterface.getCon(true); // No dispose - { - using (var cmd = new SqlCommand("StationSettingsSelect", co)) - { - cmd.CommandType = System.Data.CommandType.StoredProcedure; - try - { - var rs = cmd.ExecuteReader(System.Data.CommandBehavior.SingleRow); - if (rs.HasRows && rs.Read()) - { - object[] Values = new object[rs.FieldCount]; - int rv = rs.GetValues(Values); - ID_Station = (int)Values[rs.GetOrdinal("ID_Station")]; - ComPort = (int)Values[rs.GetOrdinal("ComPort")]; - - Inst_CODE1 = rs.IntOrDefault("Inst_CODE1", 0); - //int c = rs.GetOrdinal("Inst_CODE1"); - //if (rs.IsDBNull(c)) Inst_CODE1 = 0; else Inst_CODE1 = (int)Values[c]; - Inst_CODE2 = rs.IntOrDefault("Inst_CODE2", 0); - //c = rs.GetOrdinal("Inst_CODE2"); - //if (rs.IsDBNull(c)) Inst_CODE2 = 0; else Inst_CODE2 = (int)Values[c]; - Inst_Name1 = rs.StringOrDefault("Inst_Name1", string.Empty); - //c = rs.GetOrdinal("Inst_Name1"); - //if (rs.IsDBNull(c)) Inst_Name1=string.Empty; else Inst_Name1 = Values[c].ToString(); - Inst_Name2 = rs.StringOrDefault("Inst_Name2", string.Empty); - //c = rs.GetOrdinal("Inst_Name2"); - //if (rs.IsDBNull(c)) Inst_Name2 = string.Empty; else Inst_Name2 = Values[c].ToString(); - TestCSN = rs.StringOrDefault("TestCSN", string.Empty); - //c = rs.GetOrdinal("TestCSN"); - //if (rs.IsDBNull(c)) TestCSN = string.Empty; else TestCSN = Values[c].ToString(); - Reader = rs.StringOrDefault("Reader", string.Empty); - //c = rs.GetOrdinal("Reader"); - //if (rs.IsDBNull(c)) Reader = string.Empty; else Reader = Values[c].ToString(); - - useTestButtons = rs.BoolOrDefault("useTestButtons", false); - //try - //{ - // c = rs.GetOrdinal("useTestButtons"); - // if (rs.IsDBNull(c)) useTestButtons = false; else useTestButtons = (bool)Values[c]; - //} - //catch { useTestButtons = false; } - useBeep = rs.ByteOrDefault("useBeep", 0b00010110); - //try - //{ - // c = rs.GetOrdinal("useBeep"); - // if (rs.IsDBNull(c)) useBeep = 0b00010110; else useBeep = (byte)Values[c]; - //} - //catch { useBeep = 0b00010110; } - - doLog = rs.BoolOrDefault("doLog", false); - //try - //{ - // c = rs.GetOrdinal("doLog"); - // if (rs.IsDBNull(c)) doLog = false; else doLog = (bool)Values[c]; - //} - //catch { doLog = false; } - - checkUser = rs.BoolOrDefault("checkUser", false); - //try - //{ - // c = rs.GetOrdinal("checkUser"); - // if (rs.IsDBNull(c)) checkUser = false; else checkUser= (bool)Values[c]; - //} - //catch { checkUser=false; } - - EPDTimeOut = rs.IntOrDefault("EPDTimeout", 10000); - //try - //{ - // c = rs.GetOrdinal("EPDTimeout"); - // if (rs.IsDBNull(c)) EPDTimeOut = 10000; else EPDTimeOut= (int)Values[c]; - //} - //catch { EPDTimeOut= 10000; } - - EPDRetries = rs.IntOrDefault("EPDRetries", 2); - //try - //{ - // c = rs.GetOrdinal("EPDRetries"); - // if (rs.IsDBNull(c)) EPDRetries = 2; else EPDRetries = (int)Values[c]; - //} - //catch { EPDRetries = 2; } - - RestartCom = rs.BoolOrDefault("RestartCom", false); - //try - //{ - // c = rs.GetOrdinal("RestartCom"); - // if (rs.IsDBNull(c)) RestartCom= false; else RestartCom = (bool)Values[c]; - //} - //catch { EPDRetries = 2; } - - RestartComFirst = rs.BoolOrDefault("RestartComFirst", false); - //try - //{ - // c = rs.GetOrdinal("RestartComFirst"); - // if (rs.IsDBNull(c)) RestartComFirst = false; else RestartComFirst = (bool)Values[c]; - //} - //catch { RestartComFirst = false; } - - OnlyMK2 = rs.BoolOrDefault("OnlyMK2", false); - //try - //{ - // c = rs.GetOrdinal("OnlyMK2"); - // if (rs.IsDBNull(c)) OnlyMK2 = false; else OnlyMK2= (bool)Values[c]; - //} - //catch { OnlyMK2 = false; } - - } - else - { - ID_Station = 0; - ComPort = 0; - Inst_CODE1 = 1; - Inst_CODE2 = 11; - Inst_Name1 = "BR1"; Inst_Name2 = "Venus"; - TestCSN = System.Configuration.ConfigurationManager.AppSettings["TestCSN"]; - TestCode = System.Configuration.ConfigurationManager.AppSettings["TestCode"]; - Changed = true; - Reader = System.Configuration.ConfigurationManager.AppSettings["Reader"]; - checkUser = false; - EPDTimeOut = 10000; - EPDRetries = 2; - } - rs.Close(); - splunkLog.WriteSplunkLog("StationInit", spl1.iseverity.info); - Error = 0; - } - catch (System.Exception ex) - { - Error = 1; - ErrorMessage = ex.Message; - splunkLog.WriteException(null,"StationInit", ex); - if (stationLog != null) stationLog.WriteLine($"GetStationSettings error {ex.Message} {System.DateTime.Now}"); - } - } - - dataInterface.SetStation(ID_Station); - dataInterface.SetCheckUser(checkUser); - - if (Error == 0) using (var cmd2 = new SqlCommand("GetInstallationsComments", co)) - { - cmd2.CommandType = System.Data.CommandType.StoredProcedure; - cmd2.Parameters.AddWithValue("@Inst_CODE1", Inst_CODE1); - if (Inst_CODE2 > 0) cmd2.Parameters.AddWithValue("@Inst_CODE2", Inst_CODE2); - try - { - var rs = cmd2.ExecuteReader(System.Data.CommandBehavior.SingleResult); - string curins = string.Empty, thisins = string.Empty, thiscomment = string.Empty; - if (rs.HasRows) - while (rs.Read()) - { - thisins = rs.GetString(2); - thiscomment = rs.GetString(3).Replace("\\n", "\n"); - if (curins.CompareTo(thisins) != 0) - { - if (curins != string.Empty) tbComments.Inlines.Add(new LineBreak()); - tbComments.Inlines.Add(new Bold(new Run($"Installation {thisins}:\n") { FontSize = 25 })); - insComments.AppendLine($"Installation {thisins}"); - curins = thisins; - } - tbComments.Inlines.Add(new Run(thiscomment)); - } - rs.Close(); - } - catch (System.Exception ex) - { - splunkLog.WriteException("Station", "GetInstallationsComments", ex); - Error = 2; - ErrorMessage = ex.Message; - if (stationLog != null) stationLog.WriteLine($"GetStationComments error {ex.Message} {System.DateTime.Now}"); - } - } - co?.Close(); - } - } - private void CmdSetParams(SqlCommand cmd) - { - //for (int ix = 0; ix < cmd.Parameters.Count; ix++) - // System.Diagnostics.Debug.WriteLine(cmd.Parameters[ix].ParameterName); - - try - { - cmd.SetIfExists("ComPort", ComPort); - if (!string.IsNullOrEmpty(Inst_Name1) && Inst_CODE1 > 0) - { - cmd.SetIfExists("Inst_CODE1", Inst_CODE1); - cmd.SetIfExists("Inst_Name1", Inst_Name1); - } - if (!string.IsNullOrEmpty(Inst_Name2) && Inst_CODE2 > 0) - { - cmd.SetIfExists("Inst_CODE2", Inst_CODE2); - cmd.SetIfExists("Inst_Name2", Inst_Name2); - } - //if (!string.IsNullOrEmpty(TestCSN)) - // cmd.Parameters.AddWithValue("TestCSN", TestCSN); - //Reader - if (!string.IsNullOrEmpty(Reader)) cmd.SetIfExists("Reader", Reader); - cmd.SetIfExists("checkUser", checkUser); - cmd.SetIfExists("useBeep", useBeep); - cmd.SetIfExists("EPDTimeout", EPDTimeOut); - cmd.SetIfExists("EPDRetries", EPDRetries); - cmd.SetIfExists("RestartCom", RestartCom); - cmd.SetIfExists("RestartComFirst", RestartComFirst); - cmd.SetIfExists("OnlyMK2", OnlyMK2); - cmd.SetIfExists("useTestButtons", useTestButtons); - } - catch (System.Exception ex) - { - splunkLog.WriteException("Station", "SetParams", ex); - Error = 1; - ErrorMessage = ex.Message; - if (stationLog != null) stationLog.WriteLine($"GetStationSettings error {ex.Message} {System.DateTime.Now}"); - } - } - private void UpdateToDb(SqlConnection co, SqlCommand cmd) - { - cmd.Connection = co; - try - { - cmd.Parameters.Clear(); - SqlCommandBuilder.DeriveParameters(cmd); - CmdSetParams(cmd); - cmd.ExecuteNonQuery(); - } - catch (System.Exception ex) { - splunkLog.WriteException("Station", "UpdateToDb", ex); - if (stationLog != null) stationLog.WriteLine($"UpdateToDb error {ex.Message} co {co.DataSource} {System.DateTime.Now}"); - } - } - public void Update() - { - SqlConnection co = null; - using (var cmd = new SqlCommand("StationSettingsUpdate")) - { - cmd.CommandType = System.Data.CommandType.StoredProcedure; - try - { - co = dataInterface.getCon(true); - UpdateToDb(co, cmd); - co.Close(); - co = dataInterface.getConCentral(true); - UpdateToDb(co, cmd); - } - catch (System.Exception ex) - { - Error = 1; - ErrorMessage = ex.Message; - splunkLog.WriteException("Station", "Update", ex); - if (stationLog != null) stationLog.WriteLine($"UpdateToDb error {ex.Message} co {co.DataSource} {System.DateTime.Now}"); - } - co?.Close(); - } - } - } -} - +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using spl1 = LSWLib.CLog; +namespace eDosStation +{ + public class Station + { + const string moduleName = "Station"; + public spl1 splunkLog; + private bool doLog; + public System.IO.StreamWriter stationLog=null; + public int ID_Station { get; set; } + public int ComPort { get; set; } + public int Inst_CODE1 { get; set; } + public int Inst_CODE2 { get; set; } + public string Inst_Name1 { get; set; } + public string Inst_Name2 { get; set; } + public string TestCSN { get; set; } + public string TestCode { get; set; } + public string Reader { get; internal set; } + public bool useTestButtons { get; set; } + public byte useBeep { get; set; } + public bool checkUser { get; internal set; } + public bool RestartCom { get; set; } + public int EPDTimeOut { get; internal set; } + public int EPDRetries { get; internal set; } + public bool OnlyMK2 { get; internal set; } + public bool RestartComFirst { get; internal set; } + + public bool AllowMultipleEPD { get; internal set; } + + public bool Changed = false; + public int Error = 0; + public string ErrorMessage; + public StringBuilder insComments; + public TextBlock tbComments; + public DataInterface dataInterface; + public System.Collections.Generic.Dictionary beepMk3Map; + public ushort useBeepMK3() + { + if (beepMk3Map.ContainsKey(useBeep)) + return beepMk3Map[useBeep]; + else return beepMk3Map[0b00011010]; + } + public Station(DataInterface mDataInterface, string Station) + { + const string taskName = "StationInit"; + splunkLog = new spl1(Environment.MachineName); + stationLog = null; + dataInterface = mDataInterface; + Error = 0; + ErrorMessage = string.Empty; + ComPort = 0; + Inst_CODE1 = 1; + Inst_CODE2 = 11; + Inst_Name1 = "BR1"; + Inst_Name2 = "Venus"; + TestCSN = System.Configuration.ConfigurationManager.AppSettings["TestCSN"]; + TestCode = System.Configuration.ConfigurationManager.AppSettings["TestCode"]; + insComments = new StringBuilder(); + tbComments = new TextBlock(); + tbComments.FontSize = 20; + tbComments.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch; + tbComments.TextAlignment = System.Windows.TextAlignment.Center; + EPDTimeOut = 10000; //ms + EPDRetries = 2; + + beepMk3Map = new Dictionary(); + beepMk3Map.Add(0b00010111, 0b1001110011100001); + beepMk3Map.Add(0b00011111, 0b1001110011000001); + beepMk3Map.Add(0b00010110, 0b1001110010100001); + beepMk3Map.Add(0b00011110, 0b1001110010000001); + beepMk3Map.Add(0b00011010, 0b1001110000000000); + + stationLog = mDataInterface.stationLog; + + var co = dataInterface.getCon(true); // No dispose + { + using (var cmd = new SqlCommand("StationSettingsSelect", co)) + { + cmd.CommandType = System.Data.CommandType.StoredProcedure; + try + { + var rs = cmd.ExecuteReader(System.Data.CommandBehavior.SingleRow); + if (rs.HasRows && rs.Read()) + { + object[] Values = new object[rs.FieldCount]; + int rv = rs.GetValues(Values); + ID_Station = (int)Values[rs.GetOrdinal("ID_Station")]; + ComPort = (int)Values[rs.GetOrdinal("ComPort")]; + + Inst_CODE1 = rs.IntOrDefault("Inst_CODE1", 0); + Inst_CODE2 = rs.IntOrDefault("Inst_CODE2", 0); + Inst_Name1 = rs.StringOrDefault("Inst_Name1", string.Empty); + Inst_Name2 = rs.StringOrDefault("Inst_Name2", string.Empty); + TestCSN = rs.StringOrDefault("TestCSN", string.Empty); + Reader = rs.StringOrDefault("Reader", string.Empty); + useTestButtons = rs.BoolOrDefault("useTestButtons", false); + useBeep = rs.ByteOrDefault("useBeep", 0b00010110); + doLog = rs.BoolOrDefault("doLog", false); + checkUser = rs.BoolOrDefault("checkUser", false); + EPDTimeOut = rs.IntOrDefault("EPDTimeout", 10000); + EPDRetries = rs.IntOrDefault("EPDRetries", 2); + RestartCom = rs.BoolOrDefault("RestartCom", false); + RestartComFirst = rs.BoolOrDefault("RestartComFirst", false); + OnlyMK2 = rs.BoolOrDefault("OnlyMK2", false); + AllowMultipleEPD = rs.BoolOrDefault("AllowMultipleEPD", false); + } + else + { + ID_Station = 0; + ComPort = 0; + Inst_CODE1 = 1; + Inst_CODE2 = 11; + Inst_Name1 = "BR1"; Inst_Name2 = "Venus"; + TestCSN = System.Configuration.ConfigurationManager.AppSettings["TestCSN"]; + TestCode = System.Configuration.ConfigurationManager.AppSettings["TestCode"]; + Changed = true; + Reader = System.Configuration.ConfigurationManager.AppSettings["Reader"]; + checkUser = false; + EPDTimeOut = 10000; + EPDRetries = 2; + AllowMultipleEPD = false; + } + rs.Close(); + splunkLog.WriteSplunkLog("StationInit", spl1.iseverity.info); + Error = 0; + } + catch (System.Exception ex) + { + Error = 1; + ErrorMessage = ex.Message; + splunkLog.WriteException(moduleName,taskName, ex); + if (stationLog != null) stationLog.WriteLine($"GetStationSettings error {ex.Message} {System.DateTime.Now}"); + } + } + + dataInterface.SetStation(ID_Station); + dataInterface.SetCheckUser(checkUser); + dataInterface.SetAllowMultipleEPD(AllowMultipleEPD); + + const string sProc2 = "GetInstallationsComments"; + if (Error == 0) using (var cmd2 = new SqlCommand(sProc2, co)) + { + cmd2.CommandType = System.Data.CommandType.StoredProcedure; + cmd2.Parameters.AddWithValue("@Inst_CODE1", Inst_CODE1); + if (Inst_CODE2 > 0) cmd2.Parameters.AddWithValue("@Inst_CODE2", Inst_CODE2); + try + { + var rs = cmd2.ExecuteReader(System.Data.CommandBehavior.SingleResult); + string curins = string.Empty, thisins = string.Empty, thiscomment = string.Empty; + if (rs.HasRows) + while (rs.Read()) + { + thisins = rs.GetString(2); + thiscomment = rs.GetString(3).Replace("\\n", "\n"); + if (curins.CompareTo(thisins) != 0) + { + if (curins != string.Empty) tbComments.Inlines.Add(new LineBreak()); + tbComments.Inlines.Add(new Bold(new Run($"Installation {thisins}:\n") { FontSize = 25 })); + insComments.AppendLine($"Installation {thisins}"); + curins = thisins; + } + tbComments.Inlines.Add(new Run(thiscomment)); + } + rs.Close(); + } + catch (System.Exception ex) + { + splunkLog.WriteException(moduleName, sProc2, ex); + Error = 2; + ErrorMessage = ex.Message; + if (stationLog != null) stationLog.WriteLine($"{sProc2} error {ex.Message} {System.DateTime.Now}"); + } + } + co?.Close(); + } + } + private void CmdSetParams(SqlCommand cmd) + { + //for (int ix = 0; ix < cmd.Parameters.Count; ix++) + // System.Diagnostics.Debug.WriteLine(cmd.Parameters[ix].ParameterName); + + try + { + cmd.SetIfExists("ComPort", ComPort); + if (!string.IsNullOrEmpty(Inst_Name1) && Inst_CODE1 > 0) + { + cmd.SetIfExists("Inst_CODE1", Inst_CODE1); + cmd.SetIfExists("Inst_Name1", Inst_Name1); + } + if (!string.IsNullOrEmpty(Inst_Name2) && Inst_CODE2 > 0) + { + cmd.SetIfExists("Inst_CODE2", Inst_CODE2); + cmd.SetIfExists("Inst_Name2", Inst_Name2); + } + //if (!string.IsNullOrEmpty(TestCSN)) + // cmd.Parameters.AddWithValue("TestCSN", TestCSN); + //Reader + if (!string.IsNullOrEmpty(Reader)) cmd.SetIfExists("Reader", Reader); + cmd.SetIfExists("checkUser", checkUser); + cmd.SetIfExists("useBeep", useBeep); + cmd.SetIfExists("EPDTimeout", EPDTimeOut); + cmd.SetIfExists("EPDRetries", EPDRetries); + cmd.SetIfExists("RestartCom", RestartCom); + cmd.SetIfExists("RestartComFirst", RestartComFirst); + cmd.SetIfExists("OnlyMK2", OnlyMK2); + cmd.SetIfExists("AllowMultipleEPD", AllowMultipleEPD); + cmd.SetIfExists("useTestButtons", useTestButtons); + } + catch (System.Exception ex) + { + splunkLog.WriteException("Station", "SetParams", ex); + Error = 1; + ErrorMessage = ex.Message; + if (stationLog != null) stationLog.WriteLine($"GetStationSettings error {ex.Message} {System.DateTime.Now}"); + } + } + private void UpdateToDb(SqlConnection co, SqlCommand cmd) + { + const string taskName = "UpdateToDb"; + cmd.Connection = co; + try + { + cmd.Parameters.Clear(); + SqlCommandBuilder.DeriveParameters(cmd); + CmdSetParams(cmd); + splunkLog.KvAddCommand(spl1.skeys.sqlQuery, cmd); + cmd.ExecuteNonQuery(); + } + catch (System.Exception ex) { + splunkLog.WriteException(moduleName, taskName, ex); + if (stationLog != null) stationLog.WriteLine($"{taskName} error {ex.Message} co {co.DataSource} {System.DateTime.Now}"); + } + splunkLog.KvClear(); + } + public void Update() + { + const string taskName = "Update"; + SqlConnection co = null; + using (var cmd = new SqlCommand("StationSettingsUpdate")) + { + + cmd.CommandType = System.Data.CommandType.StoredProcedure; + try + { + co = dataInterface.getCon(true); + splunkLog.KvAddCommand(spl1.skeys.sqlQuery,cmd); + UpdateToDb(co, cmd); + co.Close(); + + co = dataInterface.getConCentral(true); + splunkLog.KvClear(spl1.skeys.sqlQuery); + splunkLog.KvAddCommand(spl1.skeys.sqlQuery, cmd); + UpdateToDb(co, cmd); + } + catch (System.Exception ex) + { + Error = 1; + ErrorMessage = ex.Message; + splunkLog.WriteException(moduleName, taskName, ex); + if (stationLog != null) stationLog.WriteLine($"{taskName} error {ex.Message} co {co.DataSource} {System.DateTime.Now}"); + } + co?.Close(); + splunkLog.KvClear(); + } + } + } +} + diff --git a/eDosStation/eDosStation.csproj b/eDosStation/eDosStation.csproj index 23580f1..8d84be2 100644 --- a/eDosStation/eDosStation.csproj +++ b/eDosStation/eDosStation.csproj @@ -1,6 +1,6 @@  - + @@ -336,13 +336,13 @@ - - + + "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe" sign /sha1 857150b64ef7d3e679c8cbde425d2a0b5e58ffaa /fd sha256 /d "Integrity & Authenticity" /tr "http://timestamp.digicert.com" $(TargetPath) - + \ No newline at end of file diff --git a/eDosStation/extensions.cs b/eDosStation/extensions.cs index c20798b..70dbef3 100644 --- a/eDosStation/extensions.cs +++ b/eDosStation/extensions.cs @@ -1,67 +1,80 @@ -using System; - - -static public class extensions -{ - static public bool SetIfExists(this System.Data.SqlClient.SqlCommand cmd, string paramname, object value) - { - bool rv = true; - if (value == null) value = DBNull.Value; - string p1; - if (paramname[0] != '@') p1 = "@" + paramname; else {p1 = paramname; paramname = paramname.Substring(1); } - if (cmd.Parameters.Contains(p1)) - cmd.Parameters[p1].Value = value; - else if (cmd.Parameters.Contains(paramname)) - cmd.Parameters[paramname].Value = value; - else rv = false; - return rv; - } - - public static bool BoolOrDefault( this System.Data.SqlClient.SqlDataReader rs, string colName, bool defaultValue) - { - bool rv = defaultValue; - try - { - int c = rs.GetOrdinal(colName); - if (!rs.IsDBNull(c)) rv = rs.GetBoolean(c); - } - catch { rv = defaultValue; } - return rv; - } - - public static byte ByteOrDefault(this System.Data.SqlClient.SqlDataReader rs, string colName, byte defaultValue) - { - byte rv = defaultValue; - try - { - int c = rs.GetOrdinal(colName); - if (!rs.IsDBNull(c)) rv = rs.GetByte(c); - } - catch { rv = defaultValue; } - return rv; - } - - public static int IntOrDefault(this System.Data.SqlClient.SqlDataReader rs, string colName, int defaultValue) - { - int rv = defaultValue; - try - { - int c = rs.GetOrdinal(colName); - if (!rs.IsDBNull(c)) rv = rs.GetInt32(c); - } - catch { rv = defaultValue; } - return rv; - } - public static string StringOrDefault(this System.Data.SqlClient.SqlDataReader rs, string colName, string defaultValue) - { - string rv = defaultValue; - try - { - int c = rs.GetOrdinal(colName); - if (!rs.IsDBNull(c)) rv = rs.GetString(c); - } - catch { rv = defaultValue; } - return rv; - } -} - +using System; + + +static public class extensions +{ + static public bool SetIfExists(this System.Data.SqlClient.SqlCommand cmd, string paramname, object value) + { + bool found = true; + if (value == null) value = DBNull.Value; + if (cmd.Parameters.Contains(paramname)) cmd.Parameters[paramname].Value = value; + else { + if (paramname[0] != '@') paramname = "@" + paramname; else paramname = paramname.Substring(1); + if (cmd.Parameters.Contains(paramname)) + cmd.Parameters[paramname].Value = value; + else found = false; + } + return found; + } + + static public bool SetBoolParam(this System.Data.SqlClient.SqlCommand c, string paramname, bool value) + { + bool found = true; + if (c.Parameters.Contains(paramname)) c.Parameters[paramname].Value = value; + else + { + if (paramname[0] != '@') paramname = "@" + paramname; else paramname = paramname.Substring(1); + if (c.Parameters.Contains(paramname)) c.Parameters[paramname].Value = value; + else found = false; + } + return found; + } + + public static bool BoolOrDefault( this System.Data.SqlClient.SqlDataReader rs, string colName, bool defaultValue) + { + bool rv = defaultValue; + try + { + int c = rs.GetOrdinal(colName); + if (!rs.IsDBNull(c)) rv = rs.GetBoolean(c); + } + catch { rv = defaultValue; } + return rv; + } + + public static byte ByteOrDefault(this System.Data.SqlClient.SqlDataReader rs, string colName, byte defaultValue) + { + byte rv = defaultValue; + try + { + int c = rs.GetOrdinal(colName); + if (!rs.IsDBNull(c)) rv = rs.GetByte(c); + } + catch { rv = defaultValue; } + return rv; + } + + public static int IntOrDefault(this System.Data.SqlClient.SqlDataReader rs, string colName, int defaultValue) + { + int rv = defaultValue; + try + { + int c = rs.GetOrdinal(colName); + if (!rs.IsDBNull(c)) rv = rs.GetInt32(c); + } + catch { rv = defaultValue; } + return rv; + } + public static string StringOrDefault(this System.Data.SqlClient.SqlDataReader rs, string colName, string defaultValue) + { + string rv = defaultValue; + try + { + int c = rs.GetOrdinal(colName); + if (!rs.IsDBNull(c)) rv = rs.GetString(c); + } + catch { rv = defaultValue; } + return rv; + } +} + diff --git a/eDosStation/packages.config b/eDosStation/packages.config index ee5832c..4537e9f 100644 --- a/eDosStation/packages.config +++ b/eDosStation/packages.config @@ -1,16 +1,16 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/syncEdosLocal/DataSet1.Designer.cs b/syncEdosLocal/DataSet1.Designer.cs index 73efd47..b4f56d5 100644 --- a/syncEdosLocal/DataSet1.Designer.cs +++ b/syncEdosLocal/DataSet1.Designer.cs @@ -1,6385 +1,6493 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -#pragma warning disable 1591 - -namespace syncEdosLocal { - - - /// - ///Represents a strongly typed in-memory cache of data. - /// - [global::System.Serializable()] - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] - [global::System.Xml.Serialization.XmlRootAttribute("DataSet1")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] - public partial class DataSet1 : global::System.Data.DataSet { - - private LocalVisitsDataTable tableLocalVisits; - - private CentralVisitsDataTable tableCentralVisits; - - private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public DataSet1() { - this.BeginInit(); - this.InitClass(); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); - base.Tables.CollectionChanged += schemaChangedHandler; - base.Relations.CollectionChanged += schemaChangedHandler; - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected DataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : - base(info, context, false) { - if ((this.IsBinarySerialized(info, context) == true)) { - this.InitVars(false); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); - this.Tables.CollectionChanged += schemaChangedHandler1; - this.Relations.CollectionChanged += schemaChangedHandler1; - return; - } - string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); - if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { - global::System.Data.DataSet ds = new global::System.Data.DataSet(); - ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); - if ((ds.Tables["LocalVisits"] != null)) { - base.Tables.Add(new LocalVisitsDataTable(ds.Tables["LocalVisits"])); - } - if ((ds.Tables["CentralVisits"] != null)) { - base.Tables.Add(new CentralVisitsDataTable(ds.Tables["CentralVisits"])); - } - this.DataSetName = ds.DataSetName; - this.Prefix = ds.Prefix; - this.Namespace = ds.Namespace; - this.Locale = ds.Locale; - this.CaseSensitive = ds.CaseSensitive; - this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); - this.InitVars(); - } - else { - this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); - } - this.GetSerializationData(info, context); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); - base.Tables.CollectionChanged += schemaChangedHandler; - this.Relations.CollectionChanged += schemaChangedHandler; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public LocalVisitsDataTable LocalVisits { - get { - return this.tableLocalVisits; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public CentralVisitsDataTable CentralVisits { - get { - return this.tableCentralVisits; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.BrowsableAttribute(true)] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] - public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { - get { - return this._schemaSerializationMode; - } - set { - this._schemaSerializationMode = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new global::System.Data.DataTableCollection Tables { - get { - return base.Tables; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new global::System.Data.DataRelationCollection Relations { - get { - return base.Relations; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void InitializeDerivedDataSet() { - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataSet Clone() { - DataSet1 cln = ((DataSet1)(base.Clone())); - cln.InitVars(); - cln.SchemaSerializationMode = this.SchemaSerializationMode; - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override bool ShouldSerializeTables() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override bool ShouldSerializeRelations() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { - if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { - this.Reset(); - global::System.Data.DataSet ds = new global::System.Data.DataSet(); - ds.ReadXml(reader); - if ((ds.Tables["LocalVisits"] != null)) { - base.Tables.Add(new LocalVisitsDataTable(ds.Tables["LocalVisits"])); - } - if ((ds.Tables["CentralVisits"] != null)) { - base.Tables.Add(new CentralVisitsDataTable(ds.Tables["CentralVisits"])); - } - this.DataSetName = ds.DataSetName; - this.Prefix = ds.Prefix; - this.Namespace = ds.Namespace; - this.Locale = ds.Locale; - this.CaseSensitive = ds.CaseSensitive; - this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); - this.InitVars(); - } - else { - this.ReadXml(reader); - this.InitVars(); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { - global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); - this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); - stream.Position = 0; - return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.InitVars(true); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars(bool initTable) { - this.tableLocalVisits = ((LocalVisitsDataTable)(base.Tables["LocalVisits"])); - if ((initTable == true)) { - if ((this.tableLocalVisits != null)) { - this.tableLocalVisits.InitVars(); - } - } - this.tableCentralVisits = ((CentralVisitsDataTable)(base.Tables["CentralVisits"])); - if ((initTable == true)) { - if ((this.tableCentralVisits != null)) { - this.tableCentralVisits.InitVars(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.DataSetName = "DataSet1"; - this.Prefix = ""; - this.Namespace = "http://tempuri.org/DataSet1.xsd"; - this.EnforceConstraints = true; - this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; - this.tableLocalVisits = new LocalVisitsDataTable(); - base.Tables.Add(this.tableLocalVisits); - this.tableCentralVisits = new CentralVisitsDataTable(); - base.Tables.Add(this.tableCentralVisits); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeLocalVisits() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeCentralVisits() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { - if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { - this.InitVars(); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { - DataSet1 ds = new DataSet1(); - global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); - global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); - global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); - any.Namespace = ds.Namespace; - sequence.Items.Add(any); - type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); - return type; - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void LocalVisitsRowChangeEventHandler(object sender, LocalVisitsRowChangeEvent e); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void CentralVisitsRowChangeEventHandler(object sender, CentralVisitsRowChangeEvent e); - - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class LocalVisitsDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnID_Station; - - private global::System.Data.DataColumn columnID_Visit; - - private global::System.Data.DataColumn columnInst_CODE; - - private global::System.Data.DataColumn columnPersID; - - private global::System.Data.DataColumn columnID_Task; - - private global::System.Data.DataColumn columnEntryTime; - - private global::System.Data.DataColumn columnReturnTime; - - private global::System.Data.DataColumn columnHp10Dose; - - private global::System.Data.DataColumn columnHp07Dose; - - private global::System.Data.DataColumn columnHp10Total; - - private global::System.Data.DataColumn columnHp07Total; - - private global::System.Data.DataColumn columnHp10Peak; - - private global::System.Data.DataColumn columnHp07Peak; - - private global::System.Data.DataColumn columnHp10Time; - - private global::System.Data.DataColumn columnHp07Time; - - private global::System.Data.DataColumn columnID_EPD; - - private global::System.Data.DataColumn columnQualityData; - - private global::System.Data.DataColumn columnK1; - - private global::System.Data.DataColumn columnK2; - - private global::System.Data.DataColumn columnK3; - - private global::System.Data.DataColumn columnK4; - - private global::System.Data.DataColumn columnK5; - - private global::System.Data.DataColumn columnK6; - - private global::System.Data.DataColumn columnSG; - - private global::System.Data.DataColumn columnBC; - - private global::System.Data.DataColumn columnFB; - - private global::System.Data.DataColumn columnHG; - - private global::System.Data.DataColumn columnalarmStatus; - - private global::System.Data.DataColumn columnotherAlarms; - - private global::System.Data.DataColumn columnerrorStatus; - - private global::System.Data.DataColumn columnoperatingStatus; - - private global::System.Data.DataColumn columnisBG; - - private global::System.Data.DataColumn columnisComplete; - - private global::System.Data.DataColumn columnisDeleted; - - private global::System.Data.DataColumn columnisAlarm; - - private global::System.Data.DataColumn columnisAlarmCleared; - - private global::System.Data.DataColumn columnisManualExit; - - private global::System.Data.DataColumn columnID_Station_Return; - - private global::System.Data.DataColumn columnENTRY_EPD_CLOCK; - - private global::System.Data.DataColumn columnEXIT_EPD_CLOCK; - - private global::System.Data.DataColumn columnTIME_LOST; - - private global::System.Data.DataColumn columnVisitStatus; - - private global::System.Data.DataColumn columnsyncedEntry; - - private global::System.Data.DataColumn columnsyncedExit; - - private global::System.Data.DataColumn columnepdType; - - private global::System.Data.DataColumn columneDosBatteryWarning; - - private global::System.Data.DataColumn columneDosDose07Warning; - - private global::System.Data.DataColumn columneDosDose07Alarm; - - private global::System.Data.DataColumn columneDosRate07Warning; - - private global::System.Data.DataColumn columneDosRate07Alarm; - - private global::System.Data.DataColumn columneDosDose10Warning; - - private global::System.Data.DataColumn columneDosDose10Alarm; - - private global::System.Data.DataColumn columneDosRate10Warning; - - private global::System.Data.DataColumn columneDosRate10Alarm; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public LocalVisitsDataTable() { - this.TableName = "LocalVisits"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal LocalVisitsDataTable(global::System.Data.DataTable table) { - this.TableName = table.TableName; - if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { - this.CaseSensitive = table.CaseSensitive; - } - if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { - this.Locale = table.Locale; - } - if ((table.Namespace != table.DataSet.Namespace)) { - this.Namespace = table.Namespace; - } - this.Prefix = table.Prefix; - this.MinimumCapacity = table.MinimumCapacity; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected LocalVisitsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : - base(info, context) { - this.InitVars(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ID_StationColumn { - get { - return this.columnID_Station; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ID_VisitColumn { - get { - return this.columnID_Visit; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Inst_CODEColumn { - get { - return this.columnInst_CODE; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn PersIDColumn { - get { - return this.columnPersID; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ID_TaskColumn { - get { - return this.columnID_Task; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn EntryTimeColumn { - get { - return this.columnEntryTime; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ReturnTimeColumn { - get { - return this.columnReturnTime; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp10DoseColumn { - get { - return this.columnHp10Dose; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp07DoseColumn { - get { - return this.columnHp07Dose; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp10TotalColumn { - get { - return this.columnHp10Total; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp07TotalColumn { - get { - return this.columnHp07Total; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp10PeakColumn { - get { - return this.columnHp10Peak; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp07PeakColumn { - get { - return this.columnHp07Peak; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp10TimeColumn { - get { - return this.columnHp10Time; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp07TimeColumn { - get { - return this.columnHp07Time; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ID_EPDColumn { - get { - return this.columnID_EPD; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn QualityDataColumn { - get { - return this.columnQualityData; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K1Column { - get { - return this.columnK1; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K2Column { - get { - return this.columnK2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K3Column { - get { - return this.columnK3; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K4Column { - get { - return this.columnK4; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K5Column { - get { - return this.columnK5; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K6Column { - get { - return this.columnK6; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn SGColumn { - get { - return this.columnSG; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn BCColumn { - get { - return this.columnBC; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn FBColumn { - get { - return this.columnFB; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn HGColumn { - get { - return this.columnHG; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn alarmStatusColumn { - get { - return this.columnalarmStatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn otherAlarmsColumn { - get { - return this.columnotherAlarms; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn errorStatusColumn { - get { - return this.columnerrorStatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn operatingStatusColumn { - get { - return this.columnoperatingStatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isBGColumn { - get { - return this.columnisBG; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isCompleteColumn { - get { - return this.columnisComplete; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isDeletedColumn { - get { - return this.columnisDeleted; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isAlarmColumn { - get { - return this.columnisAlarm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isAlarmClearedColumn { - get { - return this.columnisAlarmCleared; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isManualExitColumn { - get { - return this.columnisManualExit; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ID_Station_ReturnColumn { - get { - return this.columnID_Station_Return; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ENTRY_EPD_CLOCKColumn { - get { - return this.columnENTRY_EPD_CLOCK; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn EXIT_EPD_CLOCKColumn { - get { - return this.columnEXIT_EPD_CLOCK; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn TIME_LOSTColumn { - get { - return this.columnTIME_LOST; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn VisitStatusColumn { - get { - return this.columnVisitStatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn syncedEntryColumn { - get { - return this.columnsyncedEntry; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn syncedExitColumn { - get { - return this.columnsyncedExit; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn epdTypeColumn { - get { - return this.columnepdType; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosBatteryWarningColumn { - get { - return this.columneDosBatteryWarning; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosDose07WarningColumn { - get { - return this.columneDosDose07Warning; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosDose07AlarmColumn { - get { - return this.columneDosDose07Alarm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosRate07WarningColumn { - get { - return this.columneDosRate07Warning; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosRate07AlarmColumn { - get { - return this.columneDosRate07Alarm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosDose10WarningColumn { - get { - return this.columneDosDose10Warning; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosDose10AlarmColumn { - get { - return this.columneDosDose10Alarm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosRate10WarningColumn { - get { - return this.columneDosRate10Warning; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosRate10AlarmColumn { - get { - return this.columneDosRate10Alarm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - public int Count { - get { - return this.Rows.Count; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public LocalVisitsRow this[int index] { - get { - return ((LocalVisitsRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event LocalVisitsRowChangeEventHandler LocalVisitsRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event LocalVisitsRowChangeEventHandler LocalVisitsRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event LocalVisitsRowChangeEventHandler LocalVisitsRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event LocalVisitsRowChangeEventHandler LocalVisitsRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddLocalVisitsRow(LocalVisitsRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public LocalVisitsRow AddLocalVisitsRow( - int ID_Station, - int ID_Visit, - int Inst_CODE, - int PersID, - int ID_Task, - System.DateTime EntryTime, - System.DateTime ReturnTime, - double Hp10Dose, - double Hp07Dose, - double Hp10Total, - double Hp07Total, - double Hp10Peak, - double Hp07Peak, - System.DateTime Hp10Time, - System.DateTime Hp07Time, - int ID_EPD, - int QualityData, - int K1, - int K2, - int K3, - int K4, - int K5, - int K6, - int SG, - int BC, - int FB, - int HG, - int alarmStatus, - int otherAlarms, - int errorStatus, - int operatingStatus, - bool isBG, - bool isComplete, - bool isDeleted, - bool isAlarm, - bool isAlarmCleared, - bool isManualExit, - int ID_Station_Return, - decimal ENTRY_EPD_CLOCK, - decimal EXIT_EPD_CLOCK, - int TIME_LOST, - byte VisitStatus, - bool syncedEntry, - bool syncedExit, - byte epdType, - bool eDosBatteryWarning, - bool eDosDose07Warning, - bool eDosDose07Alarm, - bool eDosRate07Warning, - bool eDosRate07Alarm, - bool eDosDose10Warning, - bool eDosDose10Alarm, - bool eDosRate10Warning, - bool eDosRate10Alarm) { - LocalVisitsRow rowLocalVisitsRow = ((LocalVisitsRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - ID_Station, - ID_Visit, - Inst_CODE, - PersID, - ID_Task, - EntryTime, - ReturnTime, - Hp10Dose, - Hp07Dose, - Hp10Total, - Hp07Total, - Hp10Peak, - Hp07Peak, - Hp10Time, - Hp07Time, - ID_EPD, - QualityData, - K1, - K2, - K3, - K4, - K5, - K6, - SG, - BC, - FB, - HG, - alarmStatus, - otherAlarms, - errorStatus, - operatingStatus, - isBG, - isComplete, - isDeleted, - isAlarm, - isAlarmCleared, - isManualExit, - ID_Station_Return, - ENTRY_EPD_CLOCK, - EXIT_EPD_CLOCK, - TIME_LOST, - VisitStatus, - syncedEntry, - syncedExit, - epdType, - eDosBatteryWarning, - eDosDose07Warning, - eDosDose07Alarm, - eDosRate07Warning, - eDosRate07Alarm, - eDosDose10Warning, - eDosDose10Alarm, - eDosRate10Warning, - eDosRate10Alarm}; - rowLocalVisitsRow.ItemArray = columnValuesArray; - this.Rows.Add(rowLocalVisitsRow); - return rowLocalVisitsRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public LocalVisitsRow FindByID_StationID_Visit(int ID_Station, int ID_Visit) { - return ((LocalVisitsRow)(this.Rows.Find(new object[] { - ID_Station, - ID_Visit}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - LocalVisitsDataTable cln = ((LocalVisitsDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new LocalVisitsDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnID_Station = base.Columns["ID_Station"]; - this.columnID_Visit = base.Columns["ID_Visit"]; - this.columnInst_CODE = base.Columns["Inst_CODE"]; - this.columnPersID = base.Columns["PersID"]; - this.columnID_Task = base.Columns["ID_Task"]; - this.columnEntryTime = base.Columns["EntryTime"]; - this.columnReturnTime = base.Columns["ReturnTime"]; - this.columnHp10Dose = base.Columns["Hp10Dose"]; - this.columnHp07Dose = base.Columns["Hp07Dose"]; - this.columnHp10Total = base.Columns["Hp10Total"]; - this.columnHp07Total = base.Columns["Hp07Total"]; - this.columnHp10Peak = base.Columns["Hp10Peak"]; - this.columnHp07Peak = base.Columns["Hp07Peak"]; - this.columnHp10Time = base.Columns["Hp10Time"]; - this.columnHp07Time = base.Columns["Hp07Time"]; - this.columnID_EPD = base.Columns["ID_EPD"]; - this.columnQualityData = base.Columns["QualityData"]; - this.columnK1 = base.Columns["K1"]; - this.columnK2 = base.Columns["K2"]; - this.columnK3 = base.Columns["K3"]; - this.columnK4 = base.Columns["K4"]; - this.columnK5 = base.Columns["K5"]; - this.columnK6 = base.Columns["K6"]; - this.columnSG = base.Columns["SG"]; - this.columnBC = base.Columns["BC"]; - this.columnFB = base.Columns["FB"]; - this.columnHG = base.Columns["HG"]; - this.columnalarmStatus = base.Columns["alarmStatus"]; - this.columnotherAlarms = base.Columns["otherAlarms"]; - this.columnerrorStatus = base.Columns["errorStatus"]; - this.columnoperatingStatus = base.Columns["operatingStatus"]; - this.columnisBG = base.Columns["isBG"]; - this.columnisComplete = base.Columns["isComplete"]; - this.columnisDeleted = base.Columns["isDeleted"]; - this.columnisAlarm = base.Columns["isAlarm"]; - this.columnisAlarmCleared = base.Columns["isAlarmCleared"]; - this.columnisManualExit = base.Columns["isManualExit"]; - this.columnID_Station_Return = base.Columns["ID_Station_Return"]; - this.columnENTRY_EPD_CLOCK = base.Columns["ENTRY_EPD_CLOCK"]; - this.columnEXIT_EPD_CLOCK = base.Columns["EXIT_EPD_CLOCK"]; - this.columnTIME_LOST = base.Columns["TIME_LOST"]; - this.columnVisitStatus = base.Columns["VisitStatus"]; - this.columnsyncedEntry = base.Columns["syncedEntry"]; - this.columnsyncedExit = base.Columns["syncedExit"]; - this.columnepdType = base.Columns["epdType"]; - this.columneDosBatteryWarning = base.Columns["eDosBatteryWarning"]; - this.columneDosDose07Warning = base.Columns["eDosDose07Warning"]; - this.columneDosDose07Alarm = base.Columns["eDosDose07Alarm"]; - this.columneDosRate07Warning = base.Columns["eDosRate07Warning"]; - this.columneDosRate07Alarm = base.Columns["eDosRate07Alarm"]; - this.columneDosDose10Warning = base.Columns["eDosDose10Warning"]; - this.columneDosDose10Alarm = base.Columns["eDosDose10Alarm"]; - this.columneDosRate10Warning = base.Columns["eDosRate10Warning"]; - this.columneDosRate10Alarm = base.Columns["eDosRate10Alarm"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnID_Station = new global::System.Data.DataColumn("ID_Station", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID_Station); - this.columnID_Visit = new global::System.Data.DataColumn("ID_Visit", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID_Visit); - this.columnInst_CODE = new global::System.Data.DataColumn("Inst_CODE", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnInst_CODE); - this.columnPersID = new global::System.Data.DataColumn("PersID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnPersID); - this.columnID_Task = new global::System.Data.DataColumn("ID_Task", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID_Task); - this.columnEntryTime = new global::System.Data.DataColumn("EntryTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnEntryTime); - this.columnReturnTime = new global::System.Data.DataColumn("ReturnTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnReturnTime); - this.columnHp10Dose = new global::System.Data.DataColumn("Hp10Dose", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp10Dose); - this.columnHp07Dose = new global::System.Data.DataColumn("Hp07Dose", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp07Dose); - this.columnHp10Total = new global::System.Data.DataColumn("Hp10Total", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp10Total); - this.columnHp07Total = new global::System.Data.DataColumn("Hp07Total", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp07Total); - this.columnHp10Peak = new global::System.Data.DataColumn("Hp10Peak", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp10Peak); - this.columnHp07Peak = new global::System.Data.DataColumn("Hp07Peak", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp07Peak); - this.columnHp10Time = new global::System.Data.DataColumn("Hp10Time", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp10Time); - this.columnHp07Time = new global::System.Data.DataColumn("Hp07Time", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp07Time); - this.columnID_EPD = new global::System.Data.DataColumn("ID_EPD", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID_EPD); - this.columnQualityData = new global::System.Data.DataColumn("QualityData", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnQualityData); - this.columnK1 = new global::System.Data.DataColumn("K1", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK1); - this.columnK2 = new global::System.Data.DataColumn("K2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK2); - this.columnK3 = new global::System.Data.DataColumn("K3", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK3); - this.columnK4 = new global::System.Data.DataColumn("K4", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK4); - this.columnK5 = new global::System.Data.DataColumn("K5", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK5); - this.columnK6 = new global::System.Data.DataColumn("K6", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK6); - this.columnSG = new global::System.Data.DataColumn("SG", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnSG); - this.columnBC = new global::System.Data.DataColumn("BC", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnBC); - this.columnFB = new global::System.Data.DataColumn("FB", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnFB); - this.columnHG = new global::System.Data.DataColumn("HG", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHG); - this.columnalarmStatus = new global::System.Data.DataColumn("alarmStatus", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnalarmStatus); - this.columnotherAlarms = new global::System.Data.DataColumn("otherAlarms", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnotherAlarms); - this.columnerrorStatus = new global::System.Data.DataColumn("errorStatus", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnerrorStatus); - this.columnoperatingStatus = new global::System.Data.DataColumn("operatingStatus", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnoperatingStatus); - this.columnisBG = new global::System.Data.DataColumn("isBG", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisBG); - this.columnisComplete = new global::System.Data.DataColumn("isComplete", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisComplete); - this.columnisDeleted = new global::System.Data.DataColumn("isDeleted", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisDeleted); - this.columnisAlarm = new global::System.Data.DataColumn("isAlarm", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisAlarm); - this.columnisAlarmCleared = new global::System.Data.DataColumn("isAlarmCleared", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisAlarmCleared); - this.columnisManualExit = new global::System.Data.DataColumn("isManualExit", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisManualExit); - this.columnID_Station_Return = new global::System.Data.DataColumn("ID_Station_Return", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID_Station_Return); - this.columnENTRY_EPD_CLOCK = new global::System.Data.DataColumn("ENTRY_EPD_CLOCK", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnENTRY_EPD_CLOCK); - this.columnEXIT_EPD_CLOCK = new global::System.Data.DataColumn("EXIT_EPD_CLOCK", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnEXIT_EPD_CLOCK); - this.columnTIME_LOST = new global::System.Data.DataColumn("TIME_LOST", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnTIME_LOST); - this.columnVisitStatus = new global::System.Data.DataColumn("VisitStatus", typeof(byte), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnVisitStatus); - this.columnsyncedEntry = new global::System.Data.DataColumn("syncedEntry", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsyncedEntry); - this.columnsyncedExit = new global::System.Data.DataColumn("syncedExit", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsyncedExit); - this.columnepdType = new global::System.Data.DataColumn("epdType", typeof(byte), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnepdType); - this.columneDosBatteryWarning = new global::System.Data.DataColumn("eDosBatteryWarning", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosBatteryWarning); - this.columneDosDose07Warning = new global::System.Data.DataColumn("eDosDose07Warning", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosDose07Warning); - this.columneDosDose07Alarm = new global::System.Data.DataColumn("eDosDose07Alarm", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosDose07Alarm); - this.columneDosRate07Warning = new global::System.Data.DataColumn("eDosRate07Warning", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosRate07Warning); - this.columneDosRate07Alarm = new global::System.Data.DataColumn("eDosRate07Alarm", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosRate07Alarm); - this.columneDosDose10Warning = new global::System.Data.DataColumn("eDosDose10Warning", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosDose10Warning); - this.columneDosDose10Alarm = new global::System.Data.DataColumn("eDosDose10Alarm", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosDose10Alarm); - this.columneDosRate10Warning = new global::System.Data.DataColumn("eDosRate10Warning", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosRate10Warning); - this.columneDosRate10Alarm = new global::System.Data.DataColumn("eDosRate10Alarm", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosRate10Alarm); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnID_Station, - this.columnID_Visit}, true)); - this.columnID_Station.AllowDBNull = false; - this.columnID_Visit.AllowDBNull = false; - this.columnInst_CODE.AllowDBNull = false; - this.columnisComplete.AllowDBNull = false; - this.columnisDeleted.AllowDBNull = false; - this.columnisAlarm.AllowDBNull = false; - this.columnisAlarmCleared.AllowDBNull = false; - this.columnisManualExit.AllowDBNull = false; - this.columnVisitStatus.ReadOnly = true; - this.columnsyncedEntry.AllowDBNull = false; - this.columnsyncedExit.AllowDBNull = false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public LocalVisitsRow NewLocalVisitsRow() { - return ((LocalVisitsRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new LocalVisitsRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(LocalVisitsRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.LocalVisitsRowChanged != null)) { - this.LocalVisitsRowChanged(this, new LocalVisitsRowChangeEvent(((LocalVisitsRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.LocalVisitsRowChanging != null)) { - this.LocalVisitsRowChanging(this, new LocalVisitsRowChangeEvent(((LocalVisitsRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.LocalVisitsRowDeleted != null)) { - this.LocalVisitsRowDeleted(this, new LocalVisitsRowChangeEvent(((LocalVisitsRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.LocalVisitsRowDeleting != null)) { - this.LocalVisitsRowDeleting(this, new LocalVisitsRowChangeEvent(((LocalVisitsRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveLocalVisitsRow(LocalVisitsRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { - global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); - global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); - DataSet1 ds = new DataSet1(); - global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); - any1.Namespace = "http://www.w3.org/2001/XMLSchema"; - any1.MinOccurs = new decimal(0); - any1.MaxOccurs = decimal.MaxValue; - any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; - sequence.Items.Add(any1); - global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); - any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; - any2.MinOccurs = new decimal(1); - any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; - sequence.Items.Add(any2); - global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); - attribute1.Name = "namespace"; - attribute1.FixedValue = ds.Namespace; - type.Attributes.Add(attribute1); - global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); - attribute2.Name = "tableTypeName"; - attribute2.FixedValue = "LocalVisitsDataTable"; - type.Attributes.Add(attribute2); - type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); - return type; - } - } - - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class CentralVisitsDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnID_Station; - - private global::System.Data.DataColumn columnID_Visit; - - private global::System.Data.DataColumn columnInst_CODE; - - private global::System.Data.DataColumn columnPersID; - - private global::System.Data.DataColumn columnID_Task; - - private global::System.Data.DataColumn columnEntryTime; - - private global::System.Data.DataColumn columnReturnTime; - - private global::System.Data.DataColumn columnHp10Dose; - - private global::System.Data.DataColumn columnHp07Dose; - - private global::System.Data.DataColumn columnHp10Total; - - private global::System.Data.DataColumn columnHp07Total; - - private global::System.Data.DataColumn columnHp10Peak; - - private global::System.Data.DataColumn columnHp07Peak; - - private global::System.Data.DataColumn columnHp10Time; - - private global::System.Data.DataColumn columnHp07Time; - - private global::System.Data.DataColumn columnID_EPD; - - private global::System.Data.DataColumn columnQualityData; - - private global::System.Data.DataColumn columnK1; - - private global::System.Data.DataColumn columnK2; - - private global::System.Data.DataColumn columnK3; - - private global::System.Data.DataColumn columnK4; - - private global::System.Data.DataColumn columnK5; - - private global::System.Data.DataColumn columnK6; - - private global::System.Data.DataColumn columnSG; - - private global::System.Data.DataColumn columnBC; - - private global::System.Data.DataColumn columnFB; - - private global::System.Data.DataColumn columnHG; - - private global::System.Data.DataColumn columnalarmStatus; - - private global::System.Data.DataColumn columnotherAlarms; - - private global::System.Data.DataColumn columnerrorStatus; - - private global::System.Data.DataColumn columnoperatingStatus; - - private global::System.Data.DataColumn columnisBG; - - private global::System.Data.DataColumn columnisComplete; - - private global::System.Data.DataColumn columnisDeleted; - - private global::System.Data.DataColumn columnisAlarm; - - private global::System.Data.DataColumn columnisAlarmCleared; - - private global::System.Data.DataColumn columnisManualExit; - - private global::System.Data.DataColumn columnID_Station_Return; - - private global::System.Data.DataColumn columnENTRY_EPD_CLOCK; - - private global::System.Data.DataColumn columnEXIT_EPD_CLOCK; - - private global::System.Data.DataColumn columnTIME_LOST; - - private global::System.Data.DataColumn columnVisitStatus; - - private global::System.Data.DataColumn columnsyncedEntry; - - private global::System.Data.DataColumn columnsyncedExit; - - private global::System.Data.DataColumn columnepdType; - - private global::System.Data.DataColumn columneDosBatteryWarning; - - private global::System.Data.DataColumn columneDosDose07Warning; - - private global::System.Data.DataColumn columneDosDose07Alarm; - - private global::System.Data.DataColumn columneDosRate07Warning; - - private global::System.Data.DataColumn columneDosRate07Alarm; - - private global::System.Data.DataColumn columneDosDose10Warning; - - private global::System.Data.DataColumn columneDosDose10Alarm; - - private global::System.Data.DataColumn columneDosRate10Warning; - - private global::System.Data.DataColumn columneDosRate10Alarm; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public CentralVisitsDataTable() { - this.TableName = "CentralVisits"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal CentralVisitsDataTable(global::System.Data.DataTable table) { - this.TableName = table.TableName; - if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { - this.CaseSensitive = table.CaseSensitive; - } - if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { - this.Locale = table.Locale; - } - if ((table.Namespace != table.DataSet.Namespace)) { - this.Namespace = table.Namespace; - } - this.Prefix = table.Prefix; - this.MinimumCapacity = table.MinimumCapacity; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected CentralVisitsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : - base(info, context) { - this.InitVars(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ID_StationColumn { - get { - return this.columnID_Station; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ID_VisitColumn { - get { - return this.columnID_Visit; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Inst_CODEColumn { - get { - return this.columnInst_CODE; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn PersIDColumn { - get { - return this.columnPersID; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ID_TaskColumn { - get { - return this.columnID_Task; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn EntryTimeColumn { - get { - return this.columnEntryTime; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ReturnTimeColumn { - get { - return this.columnReturnTime; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp10DoseColumn { - get { - return this.columnHp10Dose; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp07DoseColumn { - get { - return this.columnHp07Dose; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp10TotalColumn { - get { - return this.columnHp10Total; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp07TotalColumn { - get { - return this.columnHp07Total; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp10PeakColumn { - get { - return this.columnHp10Peak; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp07PeakColumn { - get { - return this.columnHp07Peak; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp10TimeColumn { - get { - return this.columnHp10Time; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn Hp07TimeColumn { - get { - return this.columnHp07Time; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ID_EPDColumn { - get { - return this.columnID_EPD; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn QualityDataColumn { - get { - return this.columnQualityData; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K1Column { - get { - return this.columnK1; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K2Column { - get { - return this.columnK2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K3Column { - get { - return this.columnK3; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K4Column { - get { - return this.columnK4; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K5Column { - get { - return this.columnK5; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn K6Column { - get { - return this.columnK6; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn SGColumn { - get { - return this.columnSG; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn BCColumn { - get { - return this.columnBC; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn FBColumn { - get { - return this.columnFB; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn HGColumn { - get { - return this.columnHG; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn alarmStatusColumn { - get { - return this.columnalarmStatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn otherAlarmsColumn { - get { - return this.columnotherAlarms; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn errorStatusColumn { - get { - return this.columnerrorStatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn operatingStatusColumn { - get { - return this.columnoperatingStatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isBGColumn { - get { - return this.columnisBG; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isCompleteColumn { - get { - return this.columnisComplete; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isDeletedColumn { - get { - return this.columnisDeleted; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isAlarmColumn { - get { - return this.columnisAlarm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isAlarmClearedColumn { - get { - return this.columnisAlarmCleared; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn isManualExitColumn { - get { - return this.columnisManualExit; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ID_Station_ReturnColumn { - get { - return this.columnID_Station_Return; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ENTRY_EPD_CLOCKColumn { - get { - return this.columnENTRY_EPD_CLOCK; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn EXIT_EPD_CLOCKColumn { - get { - return this.columnEXIT_EPD_CLOCK; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn TIME_LOSTColumn { - get { - return this.columnTIME_LOST; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn VisitStatusColumn { - get { - return this.columnVisitStatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn syncedEntryColumn { - get { - return this.columnsyncedEntry; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn syncedExitColumn { - get { - return this.columnsyncedExit; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn epdTypeColumn { - get { - return this.columnepdType; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosBatteryWarningColumn { - get { - return this.columneDosBatteryWarning; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosDose07WarningColumn { - get { - return this.columneDosDose07Warning; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosDose07AlarmColumn { - get { - return this.columneDosDose07Alarm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosRate07WarningColumn { - get { - return this.columneDosRate07Warning; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosRate07AlarmColumn { - get { - return this.columneDosRate07Alarm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosDose10WarningColumn { - get { - return this.columneDosDose10Warning; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosDose10AlarmColumn { - get { - return this.columneDosDose10Alarm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosRate10WarningColumn { - get { - return this.columneDosRate10Warning; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn eDosRate10AlarmColumn { - get { - return this.columneDosRate10Alarm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - public int Count { - get { - return this.Rows.Count; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public CentralVisitsRow this[int index] { - get { - return ((CentralVisitsRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event CentralVisitsRowChangeEventHandler CentralVisitsRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event CentralVisitsRowChangeEventHandler CentralVisitsRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event CentralVisitsRowChangeEventHandler CentralVisitsRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event CentralVisitsRowChangeEventHandler CentralVisitsRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddCentralVisitsRow(CentralVisitsRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public CentralVisitsRow AddCentralVisitsRow( - int ID_Station, - int ID_Visit, - int Inst_CODE, - int PersID, - int ID_Task, - System.DateTime EntryTime, - System.DateTime ReturnTime, - double Hp10Dose, - double Hp07Dose, - double Hp10Total, - double Hp07Total, - double Hp10Peak, - double Hp07Peak, - System.DateTime Hp10Time, - System.DateTime Hp07Time, - int ID_EPD, - int QualityData, - int K1, - int K2, - int K3, - int K4, - int K5, - int K6, - int SG, - int BC, - int FB, - int HG, - int alarmStatus, - int otherAlarms, - int errorStatus, - int operatingStatus, - bool isBG, - bool isComplete, - bool isDeleted, - bool isAlarm, - bool isAlarmCleared, - bool isManualExit, - int ID_Station_Return, - decimal ENTRY_EPD_CLOCK, - decimal EXIT_EPD_CLOCK, - int TIME_LOST, - byte VisitStatus, - bool syncedEntry, - bool syncedExit, - byte epdType, - bool eDosBatteryWarning, - bool eDosDose07Warning, - bool eDosDose07Alarm, - bool eDosRate07Warning, - bool eDosRate07Alarm, - bool eDosDose10Warning, - bool eDosDose10Alarm, - bool eDosRate10Warning, - bool eDosRate10Alarm) { - CentralVisitsRow rowCentralVisitsRow = ((CentralVisitsRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - ID_Station, - ID_Visit, - Inst_CODE, - PersID, - ID_Task, - EntryTime, - ReturnTime, - Hp10Dose, - Hp07Dose, - Hp10Total, - Hp07Total, - Hp10Peak, - Hp07Peak, - Hp10Time, - Hp07Time, - ID_EPD, - QualityData, - K1, - K2, - K3, - K4, - K5, - K6, - SG, - BC, - FB, - HG, - alarmStatus, - otherAlarms, - errorStatus, - operatingStatus, - isBG, - isComplete, - isDeleted, - isAlarm, - isAlarmCleared, - isManualExit, - ID_Station_Return, - ENTRY_EPD_CLOCK, - EXIT_EPD_CLOCK, - TIME_LOST, - VisitStatus, - syncedEntry, - syncedExit, - epdType, - eDosBatteryWarning, - eDosDose07Warning, - eDosDose07Alarm, - eDosRate07Warning, - eDosRate07Alarm, - eDosDose10Warning, - eDosDose10Alarm, - eDosRate10Warning, - eDosRate10Alarm}; - rowCentralVisitsRow.ItemArray = columnValuesArray; - this.Rows.Add(rowCentralVisitsRow); - return rowCentralVisitsRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public CentralVisitsRow FindByID_StationID_Visit(int ID_Station, int ID_Visit) { - return ((CentralVisitsRow)(this.Rows.Find(new object[] { - ID_Station, - ID_Visit}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - CentralVisitsDataTable cln = ((CentralVisitsDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new CentralVisitsDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnID_Station = base.Columns["ID_Station"]; - this.columnID_Visit = base.Columns["ID_Visit"]; - this.columnInst_CODE = base.Columns["Inst_CODE"]; - this.columnPersID = base.Columns["PersID"]; - this.columnID_Task = base.Columns["ID_Task"]; - this.columnEntryTime = base.Columns["EntryTime"]; - this.columnReturnTime = base.Columns["ReturnTime"]; - this.columnHp10Dose = base.Columns["Hp10Dose"]; - this.columnHp07Dose = base.Columns["Hp07Dose"]; - this.columnHp10Total = base.Columns["Hp10Total"]; - this.columnHp07Total = base.Columns["Hp07Total"]; - this.columnHp10Peak = base.Columns["Hp10Peak"]; - this.columnHp07Peak = base.Columns["Hp07Peak"]; - this.columnHp10Time = base.Columns["Hp10Time"]; - this.columnHp07Time = base.Columns["Hp07Time"]; - this.columnID_EPD = base.Columns["ID_EPD"]; - this.columnQualityData = base.Columns["QualityData"]; - this.columnK1 = base.Columns["K1"]; - this.columnK2 = base.Columns["K2"]; - this.columnK3 = base.Columns["K3"]; - this.columnK4 = base.Columns["K4"]; - this.columnK5 = base.Columns["K5"]; - this.columnK6 = base.Columns["K6"]; - this.columnSG = base.Columns["SG"]; - this.columnBC = base.Columns["BC"]; - this.columnFB = base.Columns["FB"]; - this.columnHG = base.Columns["HG"]; - this.columnalarmStatus = base.Columns["alarmStatus"]; - this.columnotherAlarms = base.Columns["otherAlarms"]; - this.columnerrorStatus = base.Columns["errorStatus"]; - this.columnoperatingStatus = base.Columns["operatingStatus"]; - this.columnisBG = base.Columns["isBG"]; - this.columnisComplete = base.Columns["isComplete"]; - this.columnisDeleted = base.Columns["isDeleted"]; - this.columnisAlarm = base.Columns["isAlarm"]; - this.columnisAlarmCleared = base.Columns["isAlarmCleared"]; - this.columnisManualExit = base.Columns["isManualExit"]; - this.columnID_Station_Return = base.Columns["ID_Station_Return"]; - this.columnENTRY_EPD_CLOCK = base.Columns["ENTRY_EPD_CLOCK"]; - this.columnEXIT_EPD_CLOCK = base.Columns["EXIT_EPD_CLOCK"]; - this.columnTIME_LOST = base.Columns["TIME_LOST"]; - this.columnVisitStatus = base.Columns["VisitStatus"]; - this.columnsyncedEntry = base.Columns["syncedEntry"]; - this.columnsyncedExit = base.Columns["syncedExit"]; - this.columnepdType = base.Columns["epdType"]; - this.columneDosBatteryWarning = base.Columns["eDosBatteryWarning"]; - this.columneDosDose07Warning = base.Columns["eDosDose07Warning"]; - this.columneDosDose07Alarm = base.Columns["eDosDose07Alarm"]; - this.columneDosRate07Warning = base.Columns["eDosRate07Warning"]; - this.columneDosRate07Alarm = base.Columns["eDosRate07Alarm"]; - this.columneDosDose10Warning = base.Columns["eDosDose10Warning"]; - this.columneDosDose10Alarm = base.Columns["eDosDose10Alarm"]; - this.columneDosRate10Warning = base.Columns["eDosRate10Warning"]; - this.columneDosRate10Alarm = base.Columns["eDosRate10Alarm"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnID_Station = new global::System.Data.DataColumn("ID_Station", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID_Station); - this.columnID_Visit = new global::System.Data.DataColumn("ID_Visit", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID_Visit); - this.columnInst_CODE = new global::System.Data.DataColumn("Inst_CODE", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnInst_CODE); - this.columnPersID = new global::System.Data.DataColumn("PersID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnPersID); - this.columnID_Task = new global::System.Data.DataColumn("ID_Task", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID_Task); - this.columnEntryTime = new global::System.Data.DataColumn("EntryTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnEntryTime); - this.columnReturnTime = new global::System.Data.DataColumn("ReturnTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnReturnTime); - this.columnHp10Dose = new global::System.Data.DataColumn("Hp10Dose", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp10Dose); - this.columnHp07Dose = new global::System.Data.DataColumn("Hp07Dose", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp07Dose); - this.columnHp10Total = new global::System.Data.DataColumn("Hp10Total", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp10Total); - this.columnHp07Total = new global::System.Data.DataColumn("Hp07Total", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp07Total); - this.columnHp10Peak = new global::System.Data.DataColumn("Hp10Peak", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp10Peak); - this.columnHp07Peak = new global::System.Data.DataColumn("Hp07Peak", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp07Peak); - this.columnHp10Time = new global::System.Data.DataColumn("Hp10Time", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp10Time); - this.columnHp07Time = new global::System.Data.DataColumn("Hp07Time", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHp07Time); - this.columnID_EPD = new global::System.Data.DataColumn("ID_EPD", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID_EPD); - this.columnQualityData = new global::System.Data.DataColumn("QualityData", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnQualityData); - this.columnK1 = new global::System.Data.DataColumn("K1", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK1); - this.columnK2 = new global::System.Data.DataColumn("K2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK2); - this.columnK3 = new global::System.Data.DataColumn("K3", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK3); - this.columnK4 = new global::System.Data.DataColumn("K4", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK4); - this.columnK5 = new global::System.Data.DataColumn("K5", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK5); - this.columnK6 = new global::System.Data.DataColumn("K6", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnK6); - this.columnSG = new global::System.Data.DataColumn("SG", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnSG); - this.columnBC = new global::System.Data.DataColumn("BC", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnBC); - this.columnFB = new global::System.Data.DataColumn("FB", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnFB); - this.columnHG = new global::System.Data.DataColumn("HG", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHG); - this.columnalarmStatus = new global::System.Data.DataColumn("alarmStatus", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnalarmStatus); - this.columnotherAlarms = new global::System.Data.DataColumn("otherAlarms", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnotherAlarms); - this.columnerrorStatus = new global::System.Data.DataColumn("errorStatus", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnerrorStatus); - this.columnoperatingStatus = new global::System.Data.DataColumn("operatingStatus", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnoperatingStatus); - this.columnisBG = new global::System.Data.DataColumn("isBG", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisBG); - this.columnisComplete = new global::System.Data.DataColumn("isComplete", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisComplete); - this.columnisDeleted = new global::System.Data.DataColumn("isDeleted", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisDeleted); - this.columnisAlarm = new global::System.Data.DataColumn("isAlarm", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisAlarm); - this.columnisAlarmCleared = new global::System.Data.DataColumn("isAlarmCleared", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisAlarmCleared); - this.columnisManualExit = new global::System.Data.DataColumn("isManualExit", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnisManualExit); - this.columnID_Station_Return = new global::System.Data.DataColumn("ID_Station_Return", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID_Station_Return); - this.columnENTRY_EPD_CLOCK = new global::System.Data.DataColumn("ENTRY_EPD_CLOCK", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnENTRY_EPD_CLOCK); - this.columnEXIT_EPD_CLOCK = new global::System.Data.DataColumn("EXIT_EPD_CLOCK", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnEXIT_EPD_CLOCK); - this.columnTIME_LOST = new global::System.Data.DataColumn("TIME_LOST", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnTIME_LOST); - this.columnVisitStatus = new global::System.Data.DataColumn("VisitStatus", typeof(byte), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnVisitStatus); - this.columnsyncedEntry = new global::System.Data.DataColumn("syncedEntry", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsyncedEntry); - this.columnsyncedExit = new global::System.Data.DataColumn("syncedExit", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsyncedExit); - this.columnepdType = new global::System.Data.DataColumn("epdType", typeof(byte), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnepdType); - this.columneDosBatteryWarning = new global::System.Data.DataColumn("eDosBatteryWarning", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosBatteryWarning); - this.columneDosDose07Warning = new global::System.Data.DataColumn("eDosDose07Warning", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosDose07Warning); - this.columneDosDose07Alarm = new global::System.Data.DataColumn("eDosDose07Alarm", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosDose07Alarm); - this.columneDosRate07Warning = new global::System.Data.DataColumn("eDosRate07Warning", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosRate07Warning); - this.columneDosRate07Alarm = new global::System.Data.DataColumn("eDosRate07Alarm", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosRate07Alarm); - this.columneDosDose10Warning = new global::System.Data.DataColumn("eDosDose10Warning", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosDose10Warning); - this.columneDosDose10Alarm = new global::System.Data.DataColumn("eDosDose10Alarm", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosDose10Alarm); - this.columneDosRate10Warning = new global::System.Data.DataColumn("eDosRate10Warning", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosRate10Warning); - this.columneDosRate10Alarm = new global::System.Data.DataColumn("eDosRate10Alarm", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columneDosRate10Alarm); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnID_Station, - this.columnID_Visit}, true)); - this.columnID_Station.AllowDBNull = false; - this.columnID_Visit.AllowDBNull = false; - this.columnInst_CODE.AllowDBNull = false; - this.columnisComplete.AllowDBNull = false; - this.columnisDeleted.AllowDBNull = false; - this.columnisAlarm.AllowDBNull = false; - this.columnisAlarmCleared.AllowDBNull = false; - this.columnisManualExit.AllowDBNull = false; - this.columnVisitStatus.ReadOnly = true; - this.columnsyncedEntry.ReadOnly = true; - this.columnsyncedExit.ReadOnly = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public CentralVisitsRow NewCentralVisitsRow() { - return ((CentralVisitsRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new CentralVisitsRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(CentralVisitsRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.CentralVisitsRowChanged != null)) { - this.CentralVisitsRowChanged(this, new CentralVisitsRowChangeEvent(((CentralVisitsRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.CentralVisitsRowChanging != null)) { - this.CentralVisitsRowChanging(this, new CentralVisitsRowChangeEvent(((CentralVisitsRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.CentralVisitsRowDeleted != null)) { - this.CentralVisitsRowDeleted(this, new CentralVisitsRowChangeEvent(((CentralVisitsRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.CentralVisitsRowDeleting != null)) { - this.CentralVisitsRowDeleting(this, new CentralVisitsRowChangeEvent(((CentralVisitsRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveCentralVisitsRow(CentralVisitsRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { - global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); - global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); - DataSet1 ds = new DataSet1(); - global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); - any1.Namespace = "http://www.w3.org/2001/XMLSchema"; - any1.MinOccurs = new decimal(0); - any1.MaxOccurs = decimal.MaxValue; - any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; - sequence.Items.Add(any1); - global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); - any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; - any2.MinOccurs = new decimal(1); - any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; - sequence.Items.Add(any2); - global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); - attribute1.Name = "namespace"; - attribute1.FixedValue = ds.Namespace; - type.Attributes.Add(attribute1); - global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); - attribute2.Name = "tableTypeName"; - attribute2.FixedValue = "CentralVisitsDataTable"; - type.Attributes.Add(attribute2); - type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); - return type; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class LocalVisitsRow : global::System.Data.DataRow { - - private LocalVisitsDataTable tableLocalVisits; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal LocalVisitsRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableLocalVisits = ((LocalVisitsDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ID_Station { - get { - return ((int)(this[this.tableLocalVisits.ID_StationColumn])); - } - set { - this[this.tableLocalVisits.ID_StationColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ID_Visit { - get { - return ((int)(this[this.tableLocalVisits.ID_VisitColumn])); - } - set { - this[this.tableLocalVisits.ID_VisitColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int Inst_CODE { - get { - return ((int)(this[this.tableLocalVisits.Inst_CODEColumn])); - } - set { - this[this.tableLocalVisits.Inst_CODEColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int PersID { - get { - try { - return ((int)(this[this.tableLocalVisits.PersIDColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PersID\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.PersIDColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ID_Task { - get { - try { - return ((int)(this[this.tableLocalVisits.ID_TaskColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ID_Task\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.ID_TaskColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime EntryTime { - get { - try { - return ((global::System.DateTime)(this[this.tableLocalVisits.EntryTimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'EntryTime\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.EntryTimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime ReturnTime { - get { - try { - return ((global::System.DateTime)(this[this.tableLocalVisits.ReturnTimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ReturnTime\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.ReturnTimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp10Dose { - get { - try { - return ((double)(this[this.tableLocalVisits.Hp10DoseColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp10Dose\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.Hp10DoseColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp07Dose { - get { - try { - return ((double)(this[this.tableLocalVisits.Hp07DoseColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp07Dose\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.Hp07DoseColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp10Total { - get { - try { - return ((double)(this[this.tableLocalVisits.Hp10TotalColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp10Total\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.Hp10TotalColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp07Total { - get { - try { - return ((double)(this[this.tableLocalVisits.Hp07TotalColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp07Total\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.Hp07TotalColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp10Peak { - get { - try { - return ((double)(this[this.tableLocalVisits.Hp10PeakColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp10Peak\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.Hp10PeakColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp07Peak { - get { - try { - return ((double)(this[this.tableLocalVisits.Hp07PeakColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp07Peak\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.Hp07PeakColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime Hp10Time { - get { - try { - return ((global::System.DateTime)(this[this.tableLocalVisits.Hp10TimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp10Time\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.Hp10TimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime Hp07Time { - get { - try { - return ((global::System.DateTime)(this[this.tableLocalVisits.Hp07TimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp07Time\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.Hp07TimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ID_EPD { - get { - try { - return ((int)(this[this.tableLocalVisits.ID_EPDColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ID_EPD\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.ID_EPDColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int QualityData { - get { - try { - return ((int)(this[this.tableLocalVisits.QualityDataColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'QualityData\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.QualityDataColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K1 { - get { - try { - return ((int)(this[this.tableLocalVisits.K1Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K1\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.K1Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K2 { - get { - try { - return ((int)(this[this.tableLocalVisits.K2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K2\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.K2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K3 { - get { - try { - return ((int)(this[this.tableLocalVisits.K3Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K3\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.K3Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K4 { - get { - try { - return ((int)(this[this.tableLocalVisits.K4Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K4\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.K4Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K5 { - get { - try { - return ((int)(this[this.tableLocalVisits.K5Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K5\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.K5Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K6 { - get { - try { - return ((int)(this[this.tableLocalVisits.K6Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K6\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.K6Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int SG { - get { - try { - return ((int)(this[this.tableLocalVisits.SGColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'SG\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.SGColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int BC { - get { - try { - return ((int)(this[this.tableLocalVisits.BCColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BC\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.BCColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int FB { - get { - try { - return ((int)(this[this.tableLocalVisits.FBColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'FB\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.FBColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int HG { - get { - try { - return ((int)(this[this.tableLocalVisits.HGColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'HG\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.HGColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int alarmStatus { - get { - try { - return ((int)(this[this.tableLocalVisits.alarmStatusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'alarmStatus\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.alarmStatusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int otherAlarms { - get { - try { - return ((int)(this[this.tableLocalVisits.otherAlarmsColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'otherAlarms\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.otherAlarmsColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int errorStatus { - get { - try { - return ((int)(this[this.tableLocalVisits.errorStatusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'errorStatus\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.errorStatusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int operatingStatus { - get { - try { - return ((int)(this[this.tableLocalVisits.operatingStatusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'operatingStatus\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.operatingStatusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isBG { - get { - try { - return ((bool)(this[this.tableLocalVisits.isBGColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'isBG\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.isBGColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isComplete { - get { - return ((bool)(this[this.tableLocalVisits.isCompleteColumn])); - } - set { - this[this.tableLocalVisits.isCompleteColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isDeleted { - get { - return ((bool)(this[this.tableLocalVisits.isDeletedColumn])); - } - set { - this[this.tableLocalVisits.isDeletedColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isAlarm { - get { - return ((bool)(this[this.tableLocalVisits.isAlarmColumn])); - } - set { - this[this.tableLocalVisits.isAlarmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isAlarmCleared { - get { - return ((bool)(this[this.tableLocalVisits.isAlarmClearedColumn])); - } - set { - this[this.tableLocalVisits.isAlarmClearedColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isManualExit { - get { - return ((bool)(this[this.tableLocalVisits.isManualExitColumn])); - } - set { - this[this.tableLocalVisits.isManualExitColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ID_Station_Return { - get { - try { - return ((int)(this[this.tableLocalVisits.ID_Station_ReturnColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ID_Station_Return\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.ID_Station_ReturnColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public decimal ENTRY_EPD_CLOCK { - get { - try { - return ((decimal)(this[this.tableLocalVisits.ENTRY_EPD_CLOCKColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ENTRY_EPD_CLOCK\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.ENTRY_EPD_CLOCKColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public decimal EXIT_EPD_CLOCK { - get { - try { - return ((decimal)(this[this.tableLocalVisits.EXIT_EPD_CLOCKColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'EXIT_EPD_CLOCK\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.EXIT_EPD_CLOCKColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int TIME_LOST { - get { - try { - return ((int)(this[this.tableLocalVisits.TIME_LOSTColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TIME_LOST\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.TIME_LOSTColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public byte VisitStatus { - get { - try { - return ((byte)(this[this.tableLocalVisits.VisitStatusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'VisitStatus\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.VisitStatusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool syncedEntry { - get { - return ((bool)(this[this.tableLocalVisits.syncedEntryColumn])); - } - set { - this[this.tableLocalVisits.syncedEntryColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool syncedExit { - get { - return ((bool)(this[this.tableLocalVisits.syncedExitColumn])); - } - set { - this[this.tableLocalVisits.syncedExitColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public byte epdType { - get { - try { - return ((byte)(this[this.tableLocalVisits.epdTypeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'epdType\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.epdTypeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosBatteryWarning { - get { - try { - return ((bool)(this[this.tableLocalVisits.eDosBatteryWarningColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosBatteryWarning\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.eDosBatteryWarningColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosDose07Warning { - get { - try { - return ((bool)(this[this.tableLocalVisits.eDosDose07WarningColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosDose07Warning\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.eDosDose07WarningColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosDose07Alarm { - get { - try { - return ((bool)(this[this.tableLocalVisits.eDosDose07AlarmColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosDose07Alarm\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.eDosDose07AlarmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosRate07Warning { - get { - try { - return ((bool)(this[this.tableLocalVisits.eDosRate07WarningColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosRate07Warning\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.eDosRate07WarningColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosRate07Alarm { - get { - try { - return ((bool)(this[this.tableLocalVisits.eDosRate07AlarmColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosRate07Alarm\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.eDosRate07AlarmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosDose10Warning { - get { - try { - return ((bool)(this[this.tableLocalVisits.eDosDose10WarningColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosDose10Warning\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.eDosDose10WarningColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosDose10Alarm { - get { - try { - return ((bool)(this[this.tableLocalVisits.eDosDose10AlarmColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosDose10Alarm\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.eDosDose10AlarmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosRate10Warning { - get { - try { - return ((bool)(this[this.tableLocalVisits.eDosRate10WarningColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosRate10Warning\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.eDosRate10WarningColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosRate10Alarm { - get { - try { - return ((bool)(this[this.tableLocalVisits.eDosRate10AlarmColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosRate10Alarm\' in table \'LocalVisits\' is DBNull.", e); - } - } - set { - this[this.tableLocalVisits.eDosRate10AlarmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsPersIDNull() { - return this.IsNull(this.tableLocalVisits.PersIDColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetPersIDNull() { - this[this.tableLocalVisits.PersIDColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsID_TaskNull() { - return this.IsNull(this.tableLocalVisits.ID_TaskColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetID_TaskNull() { - this[this.tableLocalVisits.ID_TaskColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsEntryTimeNull() { - return this.IsNull(this.tableLocalVisits.EntryTimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetEntryTimeNull() { - this[this.tableLocalVisits.EntryTimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsReturnTimeNull() { - return this.IsNull(this.tableLocalVisits.ReturnTimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetReturnTimeNull() { - this[this.tableLocalVisits.ReturnTimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp10DoseNull() { - return this.IsNull(this.tableLocalVisits.Hp10DoseColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp10DoseNull() { - this[this.tableLocalVisits.Hp10DoseColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp07DoseNull() { - return this.IsNull(this.tableLocalVisits.Hp07DoseColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp07DoseNull() { - this[this.tableLocalVisits.Hp07DoseColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp10TotalNull() { - return this.IsNull(this.tableLocalVisits.Hp10TotalColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp10TotalNull() { - this[this.tableLocalVisits.Hp10TotalColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp07TotalNull() { - return this.IsNull(this.tableLocalVisits.Hp07TotalColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp07TotalNull() { - this[this.tableLocalVisits.Hp07TotalColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp10PeakNull() { - return this.IsNull(this.tableLocalVisits.Hp10PeakColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp10PeakNull() { - this[this.tableLocalVisits.Hp10PeakColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp07PeakNull() { - return this.IsNull(this.tableLocalVisits.Hp07PeakColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp07PeakNull() { - this[this.tableLocalVisits.Hp07PeakColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp10TimeNull() { - return this.IsNull(this.tableLocalVisits.Hp10TimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp10TimeNull() { - this[this.tableLocalVisits.Hp10TimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp07TimeNull() { - return this.IsNull(this.tableLocalVisits.Hp07TimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp07TimeNull() { - this[this.tableLocalVisits.Hp07TimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsID_EPDNull() { - return this.IsNull(this.tableLocalVisits.ID_EPDColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetID_EPDNull() { - this[this.tableLocalVisits.ID_EPDColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsQualityDataNull() { - return this.IsNull(this.tableLocalVisits.QualityDataColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetQualityDataNull() { - this[this.tableLocalVisits.QualityDataColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK1Null() { - return this.IsNull(this.tableLocalVisits.K1Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK1Null() { - this[this.tableLocalVisits.K1Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK2Null() { - return this.IsNull(this.tableLocalVisits.K2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK2Null() { - this[this.tableLocalVisits.K2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK3Null() { - return this.IsNull(this.tableLocalVisits.K3Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK3Null() { - this[this.tableLocalVisits.K3Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK4Null() { - return this.IsNull(this.tableLocalVisits.K4Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK4Null() { - this[this.tableLocalVisits.K4Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK5Null() { - return this.IsNull(this.tableLocalVisits.K5Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK5Null() { - this[this.tableLocalVisits.K5Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK6Null() { - return this.IsNull(this.tableLocalVisits.K6Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK6Null() { - this[this.tableLocalVisits.K6Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsSGNull() { - return this.IsNull(this.tableLocalVisits.SGColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetSGNull() { - this[this.tableLocalVisits.SGColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsBCNull() { - return this.IsNull(this.tableLocalVisits.BCColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetBCNull() { - this[this.tableLocalVisits.BCColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsFBNull() { - return this.IsNull(this.tableLocalVisits.FBColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetFBNull() { - this[this.tableLocalVisits.FBColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHGNull() { - return this.IsNull(this.tableLocalVisits.HGColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHGNull() { - this[this.tableLocalVisits.HGColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsalarmStatusNull() { - return this.IsNull(this.tableLocalVisits.alarmStatusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetalarmStatusNull() { - this[this.tableLocalVisits.alarmStatusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsotherAlarmsNull() { - return this.IsNull(this.tableLocalVisits.otherAlarmsColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetotherAlarmsNull() { - this[this.tableLocalVisits.otherAlarmsColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IserrorStatusNull() { - return this.IsNull(this.tableLocalVisits.errorStatusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeterrorStatusNull() { - this[this.tableLocalVisits.errorStatusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsoperatingStatusNull() { - return this.IsNull(this.tableLocalVisits.operatingStatusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetoperatingStatusNull() { - this[this.tableLocalVisits.operatingStatusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsisBGNull() { - return this.IsNull(this.tableLocalVisits.isBGColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetisBGNull() { - this[this.tableLocalVisits.isBGColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsID_Station_ReturnNull() { - return this.IsNull(this.tableLocalVisits.ID_Station_ReturnColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetID_Station_ReturnNull() { - this[this.tableLocalVisits.ID_Station_ReturnColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsENTRY_EPD_CLOCKNull() { - return this.IsNull(this.tableLocalVisits.ENTRY_EPD_CLOCKColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetENTRY_EPD_CLOCKNull() { - this[this.tableLocalVisits.ENTRY_EPD_CLOCKColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsEXIT_EPD_CLOCKNull() { - return this.IsNull(this.tableLocalVisits.EXIT_EPD_CLOCKColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetEXIT_EPD_CLOCKNull() { - this[this.tableLocalVisits.EXIT_EPD_CLOCKColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsTIME_LOSTNull() { - return this.IsNull(this.tableLocalVisits.TIME_LOSTColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetTIME_LOSTNull() { - this[this.tableLocalVisits.TIME_LOSTColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsVisitStatusNull() { - return this.IsNull(this.tableLocalVisits.VisitStatusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetVisitStatusNull() { - this[this.tableLocalVisits.VisitStatusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsepdTypeNull() { - return this.IsNull(this.tableLocalVisits.epdTypeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetepdTypeNull() { - this[this.tableLocalVisits.epdTypeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosBatteryWarningNull() { - return this.IsNull(this.tableLocalVisits.eDosBatteryWarningColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosBatteryWarningNull() { - this[this.tableLocalVisits.eDosBatteryWarningColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosDose07WarningNull() { - return this.IsNull(this.tableLocalVisits.eDosDose07WarningColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosDose07WarningNull() { - this[this.tableLocalVisits.eDosDose07WarningColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosDose07AlarmNull() { - return this.IsNull(this.tableLocalVisits.eDosDose07AlarmColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosDose07AlarmNull() { - this[this.tableLocalVisits.eDosDose07AlarmColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosRate07WarningNull() { - return this.IsNull(this.tableLocalVisits.eDosRate07WarningColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosRate07WarningNull() { - this[this.tableLocalVisits.eDosRate07WarningColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosRate07AlarmNull() { - return this.IsNull(this.tableLocalVisits.eDosRate07AlarmColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosRate07AlarmNull() { - this[this.tableLocalVisits.eDosRate07AlarmColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosDose10WarningNull() { - return this.IsNull(this.tableLocalVisits.eDosDose10WarningColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosDose10WarningNull() { - this[this.tableLocalVisits.eDosDose10WarningColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosDose10AlarmNull() { - return this.IsNull(this.tableLocalVisits.eDosDose10AlarmColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosDose10AlarmNull() { - this[this.tableLocalVisits.eDosDose10AlarmColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosRate10WarningNull() { - return this.IsNull(this.tableLocalVisits.eDosRate10WarningColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosRate10WarningNull() { - this[this.tableLocalVisits.eDosRate10WarningColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosRate10AlarmNull() { - return this.IsNull(this.tableLocalVisits.eDosRate10AlarmColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosRate10AlarmNull() { - this[this.tableLocalVisits.eDosRate10AlarmColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class CentralVisitsRow : global::System.Data.DataRow { - - private CentralVisitsDataTable tableCentralVisits; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal CentralVisitsRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableCentralVisits = ((CentralVisitsDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ID_Station { - get { - return ((int)(this[this.tableCentralVisits.ID_StationColumn])); - } - set { - this[this.tableCentralVisits.ID_StationColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ID_Visit { - get { - return ((int)(this[this.tableCentralVisits.ID_VisitColumn])); - } - set { - this[this.tableCentralVisits.ID_VisitColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int Inst_CODE { - get { - return ((int)(this[this.tableCentralVisits.Inst_CODEColumn])); - } - set { - this[this.tableCentralVisits.Inst_CODEColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int PersID { - get { - try { - return ((int)(this[this.tableCentralVisits.PersIDColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PersID\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.PersIDColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ID_Task { - get { - try { - return ((int)(this[this.tableCentralVisits.ID_TaskColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ID_Task\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.ID_TaskColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime EntryTime { - get { - try { - return ((global::System.DateTime)(this[this.tableCentralVisits.EntryTimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'EntryTime\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.EntryTimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime ReturnTime { - get { - try { - return ((global::System.DateTime)(this[this.tableCentralVisits.ReturnTimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ReturnTime\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.ReturnTimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp10Dose { - get { - try { - return ((double)(this[this.tableCentralVisits.Hp10DoseColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp10Dose\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.Hp10DoseColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp07Dose { - get { - try { - return ((double)(this[this.tableCentralVisits.Hp07DoseColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp07Dose\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.Hp07DoseColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp10Total { - get { - try { - return ((double)(this[this.tableCentralVisits.Hp10TotalColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp10Total\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.Hp10TotalColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp07Total { - get { - try { - return ((double)(this[this.tableCentralVisits.Hp07TotalColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp07Total\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.Hp07TotalColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp10Peak { - get { - try { - return ((double)(this[this.tableCentralVisits.Hp10PeakColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp10Peak\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.Hp10PeakColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double Hp07Peak { - get { - try { - return ((double)(this[this.tableCentralVisits.Hp07PeakColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp07Peak\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.Hp07PeakColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime Hp10Time { - get { - try { - return ((global::System.DateTime)(this[this.tableCentralVisits.Hp10TimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp10Time\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.Hp10TimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime Hp07Time { - get { - try { - return ((global::System.DateTime)(this[this.tableCentralVisits.Hp07TimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Hp07Time\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.Hp07TimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ID_EPD { - get { - try { - return ((int)(this[this.tableCentralVisits.ID_EPDColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ID_EPD\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.ID_EPDColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int QualityData { - get { - try { - return ((int)(this[this.tableCentralVisits.QualityDataColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'QualityData\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.QualityDataColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K1 { - get { - try { - return ((int)(this[this.tableCentralVisits.K1Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K1\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.K1Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K2 { - get { - try { - return ((int)(this[this.tableCentralVisits.K2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K2\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.K2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K3 { - get { - try { - return ((int)(this[this.tableCentralVisits.K3Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K3\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.K3Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K4 { - get { - try { - return ((int)(this[this.tableCentralVisits.K4Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K4\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.K4Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K5 { - get { - try { - return ((int)(this[this.tableCentralVisits.K5Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K5\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.K5Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int K6 { - get { - try { - return ((int)(this[this.tableCentralVisits.K6Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'K6\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.K6Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int SG { - get { - try { - return ((int)(this[this.tableCentralVisits.SGColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'SG\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.SGColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int BC { - get { - try { - return ((int)(this[this.tableCentralVisits.BCColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BC\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.BCColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int FB { - get { - try { - return ((int)(this[this.tableCentralVisits.FBColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'FB\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.FBColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int HG { - get { - try { - return ((int)(this[this.tableCentralVisits.HGColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'HG\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.HGColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int alarmStatus { - get { - try { - return ((int)(this[this.tableCentralVisits.alarmStatusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'alarmStatus\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.alarmStatusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int otherAlarms { - get { - try { - return ((int)(this[this.tableCentralVisits.otherAlarmsColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'otherAlarms\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.otherAlarmsColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int errorStatus { - get { - try { - return ((int)(this[this.tableCentralVisits.errorStatusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'errorStatus\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.errorStatusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int operatingStatus { - get { - try { - return ((int)(this[this.tableCentralVisits.operatingStatusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'operatingStatus\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.operatingStatusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isBG { - get { - try { - return ((bool)(this[this.tableCentralVisits.isBGColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'isBG\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.isBGColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isComplete { - get { - return ((bool)(this[this.tableCentralVisits.isCompleteColumn])); - } - set { - this[this.tableCentralVisits.isCompleteColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isDeleted { - get { - return ((bool)(this[this.tableCentralVisits.isDeletedColumn])); - } - set { - this[this.tableCentralVisits.isDeletedColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isAlarm { - get { - return ((bool)(this[this.tableCentralVisits.isAlarmColumn])); - } - set { - this[this.tableCentralVisits.isAlarmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isAlarmCleared { - get { - return ((bool)(this[this.tableCentralVisits.isAlarmClearedColumn])); - } - set { - this[this.tableCentralVisits.isAlarmClearedColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool isManualExit { - get { - return ((bool)(this[this.tableCentralVisits.isManualExitColumn])); - } - set { - this[this.tableCentralVisits.isManualExitColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ID_Station_Return { - get { - try { - return ((int)(this[this.tableCentralVisits.ID_Station_ReturnColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ID_Station_Return\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.ID_Station_ReturnColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public decimal ENTRY_EPD_CLOCK { - get { - try { - return ((decimal)(this[this.tableCentralVisits.ENTRY_EPD_CLOCKColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ENTRY_EPD_CLOCK\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.ENTRY_EPD_CLOCKColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public decimal EXIT_EPD_CLOCK { - get { - try { - return ((decimal)(this[this.tableCentralVisits.EXIT_EPD_CLOCKColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'EXIT_EPD_CLOCK\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.EXIT_EPD_CLOCKColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int TIME_LOST { - get { - try { - return ((int)(this[this.tableCentralVisits.TIME_LOSTColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TIME_LOST\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.TIME_LOSTColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public byte VisitStatus { - get { - try { - return ((byte)(this[this.tableCentralVisits.VisitStatusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'VisitStatus\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.VisitStatusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool syncedEntry { - get { - try { - return ((bool)(this[this.tableCentralVisits.syncedEntryColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'syncedEntry\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.syncedEntryColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool syncedExit { - get { - try { - return ((bool)(this[this.tableCentralVisits.syncedExitColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'syncedExit\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.syncedExitColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public byte epdType { - get { - try { - return ((byte)(this[this.tableCentralVisits.epdTypeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'epdType\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.epdTypeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosBatteryWarning { - get { - try { - return ((bool)(this[this.tableCentralVisits.eDosBatteryWarningColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosBatteryWarning\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.eDosBatteryWarningColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosDose07Warning { - get { - try { - return ((bool)(this[this.tableCentralVisits.eDosDose07WarningColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosDose07Warning\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.eDosDose07WarningColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosDose07Alarm { - get { - try { - return ((bool)(this[this.tableCentralVisits.eDosDose07AlarmColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosDose07Alarm\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.eDosDose07AlarmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosRate07Warning { - get { - try { - return ((bool)(this[this.tableCentralVisits.eDosRate07WarningColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosRate07Warning\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.eDosRate07WarningColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosRate07Alarm { - get { - try { - return ((bool)(this[this.tableCentralVisits.eDosRate07AlarmColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosRate07Alarm\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.eDosRate07AlarmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosDose10Warning { - get { - try { - return ((bool)(this[this.tableCentralVisits.eDosDose10WarningColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosDose10Warning\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.eDosDose10WarningColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosDose10Alarm { - get { - try { - return ((bool)(this[this.tableCentralVisits.eDosDose10AlarmColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosDose10Alarm\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.eDosDose10AlarmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosRate10Warning { - get { - try { - return ((bool)(this[this.tableCentralVisits.eDosRate10WarningColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosRate10Warning\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.eDosRate10WarningColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool eDosRate10Alarm { - get { - try { - return ((bool)(this[this.tableCentralVisits.eDosRate10AlarmColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'eDosRate10Alarm\' in table \'CentralVisits\' is DBNull.", e); - } - } - set { - this[this.tableCentralVisits.eDosRate10AlarmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsPersIDNull() { - return this.IsNull(this.tableCentralVisits.PersIDColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetPersIDNull() { - this[this.tableCentralVisits.PersIDColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsID_TaskNull() { - return this.IsNull(this.tableCentralVisits.ID_TaskColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetID_TaskNull() { - this[this.tableCentralVisits.ID_TaskColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsEntryTimeNull() { - return this.IsNull(this.tableCentralVisits.EntryTimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetEntryTimeNull() { - this[this.tableCentralVisits.EntryTimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsReturnTimeNull() { - return this.IsNull(this.tableCentralVisits.ReturnTimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetReturnTimeNull() { - this[this.tableCentralVisits.ReturnTimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp10DoseNull() { - return this.IsNull(this.tableCentralVisits.Hp10DoseColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp10DoseNull() { - this[this.tableCentralVisits.Hp10DoseColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp07DoseNull() { - return this.IsNull(this.tableCentralVisits.Hp07DoseColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp07DoseNull() { - this[this.tableCentralVisits.Hp07DoseColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp10TotalNull() { - return this.IsNull(this.tableCentralVisits.Hp10TotalColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp10TotalNull() { - this[this.tableCentralVisits.Hp10TotalColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp07TotalNull() { - return this.IsNull(this.tableCentralVisits.Hp07TotalColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp07TotalNull() { - this[this.tableCentralVisits.Hp07TotalColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp10PeakNull() { - return this.IsNull(this.tableCentralVisits.Hp10PeakColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp10PeakNull() { - this[this.tableCentralVisits.Hp10PeakColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp07PeakNull() { - return this.IsNull(this.tableCentralVisits.Hp07PeakColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp07PeakNull() { - this[this.tableCentralVisits.Hp07PeakColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp10TimeNull() { - return this.IsNull(this.tableCentralVisits.Hp10TimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp10TimeNull() { - this[this.tableCentralVisits.Hp10TimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHp07TimeNull() { - return this.IsNull(this.tableCentralVisits.Hp07TimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHp07TimeNull() { - this[this.tableCentralVisits.Hp07TimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsID_EPDNull() { - return this.IsNull(this.tableCentralVisits.ID_EPDColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetID_EPDNull() { - this[this.tableCentralVisits.ID_EPDColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsQualityDataNull() { - return this.IsNull(this.tableCentralVisits.QualityDataColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetQualityDataNull() { - this[this.tableCentralVisits.QualityDataColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK1Null() { - return this.IsNull(this.tableCentralVisits.K1Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK1Null() { - this[this.tableCentralVisits.K1Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK2Null() { - return this.IsNull(this.tableCentralVisits.K2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK2Null() { - this[this.tableCentralVisits.K2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK3Null() { - return this.IsNull(this.tableCentralVisits.K3Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK3Null() { - this[this.tableCentralVisits.K3Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK4Null() { - return this.IsNull(this.tableCentralVisits.K4Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK4Null() { - this[this.tableCentralVisits.K4Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK5Null() { - return this.IsNull(this.tableCentralVisits.K5Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK5Null() { - this[this.tableCentralVisits.K5Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsK6Null() { - return this.IsNull(this.tableCentralVisits.K6Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetK6Null() { - this[this.tableCentralVisits.K6Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsSGNull() { - return this.IsNull(this.tableCentralVisits.SGColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetSGNull() { - this[this.tableCentralVisits.SGColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsBCNull() { - return this.IsNull(this.tableCentralVisits.BCColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetBCNull() { - this[this.tableCentralVisits.BCColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsFBNull() { - return this.IsNull(this.tableCentralVisits.FBColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetFBNull() { - this[this.tableCentralVisits.FBColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsHGNull() { - return this.IsNull(this.tableCentralVisits.HGColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetHGNull() { - this[this.tableCentralVisits.HGColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsalarmStatusNull() { - return this.IsNull(this.tableCentralVisits.alarmStatusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetalarmStatusNull() { - this[this.tableCentralVisits.alarmStatusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsotherAlarmsNull() { - return this.IsNull(this.tableCentralVisits.otherAlarmsColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetotherAlarmsNull() { - this[this.tableCentralVisits.otherAlarmsColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IserrorStatusNull() { - return this.IsNull(this.tableCentralVisits.errorStatusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeterrorStatusNull() { - this[this.tableCentralVisits.errorStatusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsoperatingStatusNull() { - return this.IsNull(this.tableCentralVisits.operatingStatusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetoperatingStatusNull() { - this[this.tableCentralVisits.operatingStatusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsisBGNull() { - return this.IsNull(this.tableCentralVisits.isBGColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetisBGNull() { - this[this.tableCentralVisits.isBGColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsID_Station_ReturnNull() { - return this.IsNull(this.tableCentralVisits.ID_Station_ReturnColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetID_Station_ReturnNull() { - this[this.tableCentralVisits.ID_Station_ReturnColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsENTRY_EPD_CLOCKNull() { - return this.IsNull(this.tableCentralVisits.ENTRY_EPD_CLOCKColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetENTRY_EPD_CLOCKNull() { - this[this.tableCentralVisits.ENTRY_EPD_CLOCKColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsEXIT_EPD_CLOCKNull() { - return this.IsNull(this.tableCentralVisits.EXIT_EPD_CLOCKColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetEXIT_EPD_CLOCKNull() { - this[this.tableCentralVisits.EXIT_EPD_CLOCKColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsTIME_LOSTNull() { - return this.IsNull(this.tableCentralVisits.TIME_LOSTColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetTIME_LOSTNull() { - this[this.tableCentralVisits.TIME_LOSTColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsVisitStatusNull() { - return this.IsNull(this.tableCentralVisits.VisitStatusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetVisitStatusNull() { - this[this.tableCentralVisits.VisitStatusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IssyncedEntryNull() { - return this.IsNull(this.tableCentralVisits.syncedEntryColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetsyncedEntryNull() { - this[this.tableCentralVisits.syncedEntryColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IssyncedExitNull() { - return this.IsNull(this.tableCentralVisits.syncedExitColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetsyncedExitNull() { - this[this.tableCentralVisits.syncedExitColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsepdTypeNull() { - return this.IsNull(this.tableCentralVisits.epdTypeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetepdTypeNull() { - this[this.tableCentralVisits.epdTypeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosBatteryWarningNull() { - return this.IsNull(this.tableCentralVisits.eDosBatteryWarningColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosBatteryWarningNull() { - this[this.tableCentralVisits.eDosBatteryWarningColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosDose07WarningNull() { - return this.IsNull(this.tableCentralVisits.eDosDose07WarningColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosDose07WarningNull() { - this[this.tableCentralVisits.eDosDose07WarningColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosDose07AlarmNull() { - return this.IsNull(this.tableCentralVisits.eDosDose07AlarmColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosDose07AlarmNull() { - this[this.tableCentralVisits.eDosDose07AlarmColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosRate07WarningNull() { - return this.IsNull(this.tableCentralVisits.eDosRate07WarningColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosRate07WarningNull() { - this[this.tableCentralVisits.eDosRate07WarningColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosRate07AlarmNull() { - return this.IsNull(this.tableCentralVisits.eDosRate07AlarmColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosRate07AlarmNull() { - this[this.tableCentralVisits.eDosRate07AlarmColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosDose10WarningNull() { - return this.IsNull(this.tableCentralVisits.eDosDose10WarningColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosDose10WarningNull() { - this[this.tableCentralVisits.eDosDose10WarningColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosDose10AlarmNull() { - return this.IsNull(this.tableCentralVisits.eDosDose10AlarmColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosDose10AlarmNull() { - this[this.tableCentralVisits.eDosDose10AlarmColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosRate10WarningNull() { - return this.IsNull(this.tableCentralVisits.eDosRate10WarningColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosRate10WarningNull() { - this[this.tableCentralVisits.eDosRate10WarningColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IseDosRate10AlarmNull() { - return this.IsNull(this.tableCentralVisits.eDosRate10AlarmColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SeteDosRate10AlarmNull() { - this[this.tableCentralVisits.eDosRate10AlarmColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public class LocalVisitsRowChangeEvent : global::System.EventArgs { - - private LocalVisitsRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public LocalVisitsRowChangeEvent(LocalVisitsRow row, global::System.Data.DataRowAction action) { - this.eventRow = row; - this.eventAction = action; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public LocalVisitsRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataRowAction Action { - get { - return this.eventAction; - } - } - } - - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public class CentralVisitsRowChangeEvent : global::System.EventArgs { - - private CentralVisitsRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public CentralVisitsRowChangeEvent(CentralVisitsRow row, global::System.Data.DataRowAction action) { - this.eventRow = row; - this.eventAction = action; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public CentralVisitsRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataRowAction Action { - get { - return this.eventAction; - } - } - } - } -} -namespace syncEdosLocal.DataSet1TableAdapters { - - - /// - ///Represents the connection and commands used to retrieve and save data. - /// - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.ComponentModel.DataObjectAttribute(true)] - [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + - ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public partial class LocalVisitsTableAdapter : global::System.ComponentModel.Component { - - private global::System.Data.SqlClient.SqlDataAdapter _adapter; - - private global::System.Data.SqlClient.SqlConnection _connection; - - private global::System.Data.SqlClient.SqlTransaction _transaction; - - private global::System.Data.SqlClient.SqlCommand[] _commandCollection; - - private bool _clearBeforeFill; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public LocalVisitsTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { - get { - if ((this._adapter == null)) { - this.InitAdapter(); - } - return this._adapter; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal global::System.Data.SqlClient.SqlConnection Connection { - get { - if ((this._connection == null)) { - this.InitConnection(); - } - return this._connection; - } - set { - this._connection = value; - if ((this.Adapter.InsertCommand != null)) { - this.Adapter.InsertCommand.Connection = value; - } - if ((this.Adapter.DeleteCommand != null)) { - this.Adapter.DeleteCommand.Connection = value; - } - if ((this.Adapter.UpdateCommand != null)) { - this.Adapter.UpdateCommand.Connection = value; - } - for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { - if ((this.CommandCollection[i] != null)) { - ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; - } - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal global::System.Data.SqlClient.SqlTransaction Transaction { - get { - return this._transaction; - } - set { - this._transaction = value; - for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { - this.CommandCollection[i].Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.DeleteCommand != null))) { - this.Adapter.DeleteCommand.Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.InsertCommand != null))) { - this.Adapter.InsertCommand.Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.UpdateCommand != null))) { - this.Adapter.UpdateCommand.Transaction = this._transaction; - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { - get { - if ((this._commandCollection == null)) { - this.InitCommandCollection(); - } - return this._commandCollection; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool ClearBeforeFill { - get { - return this._clearBeforeFill; - } - set { - this._clearBeforeFill = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitAdapter() { - this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); - global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); - tableMapping.SourceTable = "Table"; - tableMapping.DataSetTable = "LocalVisits"; - tableMapping.ColumnMappings.Add("ID_Station", "ID_Station"); - tableMapping.ColumnMappings.Add("ID_Visit", "ID_Visit"); - tableMapping.ColumnMappings.Add("Inst_CODE", "Inst_CODE"); - tableMapping.ColumnMappings.Add("PersID", "PersID"); - tableMapping.ColumnMappings.Add("ID_Task", "ID_Task"); - tableMapping.ColumnMappings.Add("EntryTime", "EntryTime"); - tableMapping.ColumnMappings.Add("ReturnTime", "ReturnTime"); - tableMapping.ColumnMappings.Add("Hp10Dose", "Hp10Dose"); - tableMapping.ColumnMappings.Add("Hp07Dose", "Hp07Dose"); - tableMapping.ColumnMappings.Add("Hp10Total", "Hp10Total"); - tableMapping.ColumnMappings.Add("Hp07Total", "Hp07Total"); - tableMapping.ColumnMappings.Add("Hp10Peak", "Hp10Peak"); - tableMapping.ColumnMappings.Add("Hp07Peak", "Hp07Peak"); - tableMapping.ColumnMappings.Add("Hp10Time", "Hp10Time"); - tableMapping.ColumnMappings.Add("Hp07Time", "Hp07Time"); - tableMapping.ColumnMappings.Add("ID_EPD", "ID_EPD"); - tableMapping.ColumnMappings.Add("QualityData", "QualityData"); - tableMapping.ColumnMappings.Add("K1", "K1"); - tableMapping.ColumnMappings.Add("K2", "K2"); - tableMapping.ColumnMappings.Add("K3", "K3"); - tableMapping.ColumnMappings.Add("K4", "K4"); - tableMapping.ColumnMappings.Add("K5", "K5"); - tableMapping.ColumnMappings.Add("K6", "K6"); - tableMapping.ColumnMappings.Add("SG", "SG"); - tableMapping.ColumnMappings.Add("BC", "BC"); - tableMapping.ColumnMappings.Add("FB", "FB"); - tableMapping.ColumnMappings.Add("HG", "HG"); - tableMapping.ColumnMappings.Add("alarmStatus", "alarmStatus"); - tableMapping.ColumnMappings.Add("otherAlarms", "otherAlarms"); - tableMapping.ColumnMappings.Add("errorStatus", "errorStatus"); - tableMapping.ColumnMappings.Add("operatingStatus", "operatingStatus"); - tableMapping.ColumnMappings.Add("isBG", "isBG"); - tableMapping.ColumnMappings.Add("isComplete", "isComplete"); - tableMapping.ColumnMappings.Add("isDeleted", "isDeleted"); - tableMapping.ColumnMappings.Add("isAlarm", "isAlarm"); - tableMapping.ColumnMappings.Add("isAlarmCleared", "isAlarmCleared"); - tableMapping.ColumnMappings.Add("isManualExit", "isManualExit"); - tableMapping.ColumnMappings.Add("ID_Station_Return", "ID_Station_Return"); - tableMapping.ColumnMappings.Add("ENTRY_EPD_CLOCK", "ENTRY_EPD_CLOCK"); - tableMapping.ColumnMappings.Add("EXIT_EPD_CLOCK", "EXIT_EPD_CLOCK"); - tableMapping.ColumnMappings.Add("TIME_LOST", "TIME_LOST"); - tableMapping.ColumnMappings.Add("VisitStatus", "VisitStatus"); - tableMapping.ColumnMappings.Add("syncedEntry", "syncedEntry"); - tableMapping.ColumnMappings.Add("SyncedExit", "syncedExit"); - tableMapping.ColumnMappings.Add("syncedExit", "syncedExit"); - tableMapping.ColumnMappings.Add("epdType", "epdType"); - tableMapping.ColumnMappings.Add("eDosBatteryWarning", "eDosBatteryWarning"); - tableMapping.ColumnMappings.Add("eDosDose07Warning", "eDosDose07Warning"); - tableMapping.ColumnMappings.Add("eDosDose07Alarm", "eDosDose07Alarm"); - tableMapping.ColumnMappings.Add("eDosRate07Warning", "eDosRate07Warning"); - tableMapping.ColumnMappings.Add("eDosRate07Alarm", "eDosRate07Alarm"); - tableMapping.ColumnMappings.Add("eDosDose10Warning", "eDosDose10Warning"); - tableMapping.ColumnMappings.Add("eDosDose10Alarm", "eDosDose10Alarm"); - tableMapping.ColumnMappings.Add("eDosRate10Warning", "eDosRate10Warning"); - tableMapping.ColumnMappings.Add("eDosRate10Alarm", "eDosRate10Alarm"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = "export.VisitsUpdate"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.StoredProcedure; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Station", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Visit", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Visit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@syncedEntry", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "syncedEntry", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@syncedExit", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "syncedExit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::syncEdosLocal.Properties.Settings.Default.eDosLocalConnectionString; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "export.VisitsSelect"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] - public virtual int Fill(DataSet1.LocalVisitsDataTable dataTable) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((this.ClearBeforeFill == true)) { - dataTable.Clear(); - } - int returnValue = this.Adapter.Fill(dataTable); - return returnValue; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.LocalVisitsDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DataSet1.LocalVisitsDataTable dataTable = new DataSet1.LocalVisitsDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1.LocalVisitsDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1 dataSet) { - return this.Adapter.Update(dataSet, "LocalVisits"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - } - - /// - ///Represents the connection and commands used to retrieve and save data. - /// - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.ComponentModel.DataObjectAttribute(true)] - [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + - ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public partial class CentralVisitsTableAdapter : global::System.ComponentModel.Component { - - private global::System.Data.SqlClient.SqlDataAdapter _adapter; - - private global::System.Data.SqlClient.SqlConnection _connection; - - private global::System.Data.SqlClient.SqlTransaction _transaction; - - private global::System.Data.SqlClient.SqlCommand[] _commandCollection; - - private bool _clearBeforeFill; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public CentralVisitsTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { - get { - if ((this._adapter == null)) { - this.InitAdapter(); - } - return this._adapter; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal global::System.Data.SqlClient.SqlConnection Connection { - get { - if ((this._connection == null)) { - this.InitConnection(); - } - return this._connection; - } - set { - this._connection = value; - if ((this.Adapter.InsertCommand != null)) { - this.Adapter.InsertCommand.Connection = value; - } - if ((this.Adapter.DeleteCommand != null)) { - this.Adapter.DeleteCommand.Connection = value; - } - if ((this.Adapter.UpdateCommand != null)) { - this.Adapter.UpdateCommand.Connection = value; - } - for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { - if ((this.CommandCollection[i] != null)) { - ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; - } - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal global::System.Data.SqlClient.SqlTransaction Transaction { - get { - return this._transaction; - } - set { - this._transaction = value; - for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { - this.CommandCollection[i].Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.DeleteCommand != null))) { - this.Adapter.DeleteCommand.Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.InsertCommand != null))) { - this.Adapter.InsertCommand.Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.UpdateCommand != null))) { - this.Adapter.UpdateCommand.Transaction = this._transaction; - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { - get { - if ((this._commandCollection == null)) { - this.InitCommandCollection(); - } - return this._commandCollection; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool ClearBeforeFill { - get { - return this._clearBeforeFill; - } - set { - this._clearBeforeFill = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitAdapter() { - this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); - global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); - tableMapping.SourceTable = "Table"; - tableMapping.DataSetTable = "CentralVisits"; - tableMapping.ColumnMappings.Add("ID_Station", "ID_Station"); - tableMapping.ColumnMappings.Add("ID_Visit", "ID_Visit"); - tableMapping.ColumnMappings.Add("Inst_CODE", "Inst_CODE"); - tableMapping.ColumnMappings.Add("PersID", "PersID"); - tableMapping.ColumnMappings.Add("ID_Task", "ID_Task"); - tableMapping.ColumnMappings.Add("EntryTime", "EntryTime"); - tableMapping.ColumnMappings.Add("ReturnTime", "ReturnTime"); - tableMapping.ColumnMappings.Add("Hp10Dose", "Hp10Dose"); - tableMapping.ColumnMappings.Add("Hp07Dose", "Hp07Dose"); - tableMapping.ColumnMappings.Add("Hp10Total", "Hp10Total"); - tableMapping.ColumnMappings.Add("Hp07Total", "Hp07Total"); - tableMapping.ColumnMappings.Add("Hp10Peak", "Hp10Peak"); - tableMapping.ColumnMappings.Add("Hp07Peak", "Hp07Peak"); - tableMapping.ColumnMappings.Add("Hp10Time", "Hp10Time"); - tableMapping.ColumnMappings.Add("Hp07Time", "Hp07Time"); - tableMapping.ColumnMappings.Add("ID_EPD", "ID_EPD"); - tableMapping.ColumnMappings.Add("QualityData", "QualityData"); - tableMapping.ColumnMappings.Add("K1", "K1"); - tableMapping.ColumnMappings.Add("K2", "K2"); - tableMapping.ColumnMappings.Add("K3", "K3"); - tableMapping.ColumnMappings.Add("K4", "K4"); - tableMapping.ColumnMappings.Add("K5", "K5"); - tableMapping.ColumnMappings.Add("K6", "K6"); - tableMapping.ColumnMappings.Add("SG", "SG"); - tableMapping.ColumnMappings.Add("BC", "BC"); - tableMapping.ColumnMappings.Add("FB", "FB"); - tableMapping.ColumnMappings.Add("HG", "HG"); - tableMapping.ColumnMappings.Add("alarmStatus", "alarmStatus"); - tableMapping.ColumnMappings.Add("otherAlarms", "otherAlarms"); - tableMapping.ColumnMappings.Add("errorStatus", "errorStatus"); - tableMapping.ColumnMappings.Add("operatingStatus", "operatingStatus"); - tableMapping.ColumnMappings.Add("isBG", "isBG"); - tableMapping.ColumnMappings.Add("isComplete", "isComplete"); - tableMapping.ColumnMappings.Add("isDeleted", "isDeleted"); - tableMapping.ColumnMappings.Add("isAlarm", "isAlarm"); - tableMapping.ColumnMappings.Add("isAlarmCleared", "isAlarmCleared"); - tableMapping.ColumnMappings.Add("isManualExit", "isManualExit"); - tableMapping.ColumnMappings.Add("ID_Station_Return", "ID_Station_Return"); - tableMapping.ColumnMappings.Add("ENTRY_EPD_CLOCK", "ENTRY_EPD_CLOCK"); - tableMapping.ColumnMappings.Add("EXIT_EPD_CLOCK", "EXIT_EPD_CLOCK"); - tableMapping.ColumnMappings.Add("TIME_LOST", "TIME_LOST"); - tableMapping.ColumnMappings.Add("VisitStatus", "VisitStatus"); - tableMapping.ColumnMappings.Add("syncedEntry", "syncedEntry"); - tableMapping.ColumnMappings.Add("SyncedExit", "syncedExit"); - tableMapping.ColumnMappings.Add("syncedExit", "syncedExit"); - tableMapping.ColumnMappings.Add("epdType", "epdType"); - tableMapping.ColumnMappings.Add("eDosBatteryWarning", "eDosBatteryWarning"); - tableMapping.ColumnMappings.Add("eDosDose07Warning", "eDosDose07Warning"); - tableMapping.ColumnMappings.Add("eDosDose07Alarm", "eDosDose07Alarm"); - tableMapping.ColumnMappings.Add("eDosRate07Warning", "eDosRate07Warning"); - tableMapping.ColumnMappings.Add("eDosRate07Alarm", "eDosRate07Alarm"); - tableMapping.ColumnMappings.Add("eDosDose10Warning", "eDosDose10Warning"); - tableMapping.ColumnMappings.Add("eDosDose10Alarm", "eDosDose10Alarm"); - tableMapping.ColumnMappings.Add("eDosRate10Warning", "eDosRate10Warning"); - tableMapping.ColumnMappings.Add("eDosRate10Alarm", "eDosRate10Alarm"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = "import.VisitsInsert"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.StoredProcedure; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Station", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Visit", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Visit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inst_CODE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "Inst_CODE", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PersID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "PersID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Task", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Task", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EntryTime", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "EntryTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReturnTime", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "ReturnTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Dose", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Dose", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Dose", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Dose", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Total", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Total", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Total", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Total", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Peak", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Peak", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Peak", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Peak", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Time", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "Hp10Time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Time", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "Hp07Time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_EPD", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_EPD", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QualityData", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "QualityData", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K1", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K2", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K3", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K4", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K5", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K6", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K6", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SG", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "SG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BC", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "BC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FB", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "FB", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HG", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "HG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alarmStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "alarmStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otherAlarms", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "otherAlarms", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@errorStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "errorStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@operatingStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "operatingStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isBG", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isBG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isComplete", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isComplete", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isDeleted", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isDeleted", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isAlarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isAlarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isAlarmCleared", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isAlarmCleared", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isManualExit", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isManualExit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station_Return", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Station_Return", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ENTRY_EPD_CLOCK", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 0, "ENTRY_EPD_CLOCK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EXIT_EPD_CLOCK", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 0, "EXIT_EPD_CLOCK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TIME_LOST", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "TIME_LOST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@epdType", global::System.Data.SqlDbType.TinyInt, 1, global::System.Data.ParameterDirection.Input, 3, 0, "epdType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = "import.VisitsUpdate"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.StoredProcedure; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Station", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Visit", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Visit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inst_CODE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "Inst_CODE", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PersID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "PersID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Task", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Task", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EntryTime", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "EntryTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReturnTime", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "ReturnTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Dose", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Dose", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Dose", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Dose", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Total", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Total", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Total", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Total", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Peak", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Peak", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Peak", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Peak", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Time", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "Hp10Time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Time", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "Hp07Time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_EPD", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_EPD", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QualityData", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "QualityData", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K1", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K2", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K3", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K4", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K5", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K6", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K6", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SG", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "SG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BC", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "BC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FB", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "FB", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HG", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "HG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alarmStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "alarmStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otherAlarms", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "otherAlarms", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@errorStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "errorStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@operatingStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "operatingStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isBG", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isBG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isComplete", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isComplete", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isDeleted", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isDeleted", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isAlarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isAlarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isAlarmCleared", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isAlarmCleared", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isManualExit", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isManualExit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station_Return", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Station_Return", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ENTRY_EPD_CLOCK", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 0, "ENTRY_EPD_CLOCK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EXIT_EPD_CLOCK", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 0, "EXIT_EPD_CLOCK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TIME_LOST", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "TIME_LOST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@epdType", global::System.Data.SqlDbType.TinyInt, 1, global::System.Data.ParameterDirection.Input, 3, 0, "epdType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::syncEdosLocal.Properties.Settings.Default.eDosConnectionString; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "import.VisitsSelect"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Visit", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] - public virtual int Fill(DataSet1.CentralVisitsDataTable dataTable, global::System.Nullable ID_Station, global::System.Nullable ID_Visit) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((ID_Station.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((int)(ID_Station.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - if ((ID_Visit.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[2].Value = ((int)(ID_Visit.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - if ((this.ClearBeforeFill == true)) { - dataTable.Clear(); - } - int returnValue = this.Adapter.Fill(dataTable); - return returnValue; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.CentralVisitsDataTable GetData(global::System.Nullable ID_Station, global::System.Nullable ID_Visit) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((ID_Station.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((int)(ID_Station.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - if ((ID_Visit.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[2].Value = ((int)(ID_Visit.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - DataSet1.CentralVisitsDataTable dataTable = new DataSet1.CentralVisitsDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1.CentralVisitsDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1 dataSet) { - return this.Adapter.Update(dataSet, "CentralVisits"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - } - - /// - ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios - /// - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + - "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] - public partial class TableAdapterManager : global::System.ComponentModel.Component { - - private UpdateOrderOption _updateOrder; - - private LocalVisitsTableAdapter _localVisitsTableAdapter; - - private CentralVisitsTableAdapter _centralVisitsTableAdapter; - - private bool _backupDataSetBeforeUpdate; - - private global::System.Data.IDbConnection _connection; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public UpdateOrderOption UpdateOrder { - get { - return this._updateOrder; - } - set { - this._updateOrder = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public LocalVisitsTableAdapter LocalVisitsTableAdapter { - get { - return this._localVisitsTableAdapter; - } - set { - this._localVisitsTableAdapter = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public CentralVisitsTableAdapter CentralVisitsTableAdapter { - get { - return this._centralVisitsTableAdapter; - } - set { - this._centralVisitsTableAdapter = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool BackupDataSetBeforeUpdate { - get { - return this._backupDataSetBeforeUpdate; - } - set { - this._backupDataSetBeforeUpdate = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - public global::System.Data.IDbConnection Connection { - get { - if ((this._connection != null)) { - return this._connection; - } - if (((this._localVisitsTableAdapter != null) - && (this._localVisitsTableAdapter.Connection != null))) { - return this._localVisitsTableAdapter.Connection; - } - if (((this._centralVisitsTableAdapter != null) - && (this._centralVisitsTableAdapter.Connection != null))) { - return this._centralVisitsTableAdapter.Connection; - } - return null; - } - set { - this._connection = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - public int TableAdapterInstanceCount { - get { - int count = 0; - if ((this._localVisitsTableAdapter != null)) { - count = (count + 1); - } - if ((this._centralVisitsTableAdapter != null)) { - count = (count + 1); - } - return count; - } - } - - /// - ///Update rows in top-down order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private int UpdateUpdatedRows(DataSet1 dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { - int result = 0; - if ((this._localVisitsTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.LocalVisits.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._localVisitsTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._centralVisitsTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.CentralVisits.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._centralVisitsTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - return result; - } - - /// - ///Insert rows in top-down order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private int UpdateInsertedRows(DataSet1 dataSet, global::System.Collections.Generic.List allAddedRows) { - int result = 0; - if ((this._localVisitsTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.LocalVisits.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._localVisitsTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._centralVisitsTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.CentralVisits.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._centralVisitsTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - return result; - } - - /// - ///Delete rows in bottom-up order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private int UpdateDeletedRows(DataSet1 dataSet, global::System.Collections.Generic.List allChangedRows) { - int result = 0; - if ((this._centralVisitsTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.CentralVisits.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._centralVisitsTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._localVisitsTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.LocalVisits.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._localVisitsTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - return result; - } - - /// - ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) { - if (((updatedRows == null) - || (updatedRows.Length < 1))) { - return updatedRows; - } - if (((allAddedRows == null) - || (allAddedRows.Count < 1))) { - return updatedRows; - } - global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List(); - for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { - global::System.Data.DataRow row = updatedRows[i]; - if ((allAddedRows.Contains(row) == false)) { - realUpdatedRows.Add(row); - } - } - return realUpdatedRows.ToArray(); - } - - /// - ///Update all changes to the dataset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public virtual int UpdateAll(DataSet1 dataSet) { - if ((dataSet == null)) { - throw new global::System.ArgumentNullException("dataSet"); - } - if ((dataSet.HasChanges() == false)) { - return 0; - } - if (((this._localVisitsTableAdapter != null) - && (this.MatchTableAdapterConnection(this._localVisitsTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + - "tring."); - } - if (((this._centralVisitsTableAdapter != null) - && (this.MatchTableAdapterConnection(this._centralVisitsTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + - "tring."); - } - global::System.Data.IDbConnection workConnection = this.Connection; - if ((workConnection == null)) { - throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + - "ger TableAdapter property to a valid TableAdapter instance."); - } - bool workConnOpened = false; - if (((workConnection.State & global::System.Data.ConnectionState.Broken) - == global::System.Data.ConnectionState.Broken)) { - workConnection.Close(); - } - if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { - workConnection.Open(); - workConnOpened = true; - } - global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); - if ((workTransaction == null)) { - throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" + - "ctions or the current state is not allowing the transaction to begin."); - } - global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); - global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); - global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List(); - global::System.Collections.Generic.Dictionary revertConnections = new global::System.Collections.Generic.Dictionary(); - int result = 0; - global::System.Data.DataSet backupDataSet = null; - if (this.BackupDataSetBeforeUpdate) { - backupDataSet = new global::System.Data.DataSet(); - backupDataSet.Merge(dataSet); - } - try { - // ---- Prepare for update ----------- - // - if ((this._localVisitsTableAdapter != null)) { - revertConnections.Add(this._localVisitsTableAdapter, this._localVisitsTableAdapter.Connection); - this._localVisitsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._localVisitsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._localVisitsTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._localVisitsTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._localVisitsTableAdapter.Adapter); - } - } - if ((this._centralVisitsTableAdapter != null)) { - revertConnections.Add(this._centralVisitsTableAdapter, this._centralVisitsTableAdapter.Connection); - this._centralVisitsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._centralVisitsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._centralVisitsTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._centralVisitsTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._centralVisitsTableAdapter.Adapter); - } - } - // - //---- Perform updates ----------- - // - if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { - result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); - result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); - } - else { - result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); - result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); - } - result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); - // - //---- Commit updates ----------- - // - workTransaction.Commit(); - if ((0 < allAddedRows.Count)) { - global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; - allAddedRows.CopyTo(rows); - for (int i = 0; (i < rows.Length); i = (i + 1)) { - global::System.Data.DataRow row = rows[i]; - row.AcceptChanges(); - } - } - if ((0 < allChangedRows.Count)) { - global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; - allChangedRows.CopyTo(rows); - for (int i = 0; (i < rows.Length); i = (i + 1)) { - global::System.Data.DataRow row = rows[i]; - row.AcceptChanges(); - } - } - } - catch (global::System.Exception ex) { - workTransaction.Rollback(); - // ---- Restore the dataset ----------- - if (this.BackupDataSetBeforeUpdate) { - global::System.Diagnostics.Debug.Assert((backupDataSet != null)); - dataSet.Clear(); - dataSet.Merge(backupDataSet); - } - else { - if ((0 < allAddedRows.Count)) { - global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; - allAddedRows.CopyTo(rows); - for (int i = 0; (i < rows.Length); i = (i + 1)) { - global::System.Data.DataRow row = rows[i]; - row.AcceptChanges(); - row.SetAdded(); - } - } - } - throw ex; - } - finally { - if (workConnOpened) { - workConnection.Close(); - } - if ((this._localVisitsTableAdapter != null)) { - this._localVisitsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._localVisitsTableAdapter])); - this._localVisitsTableAdapter.Transaction = null; - } - if ((this._centralVisitsTableAdapter != null)) { - this._centralVisitsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._centralVisitsTableAdapter])); - this._centralVisitsTableAdapter.Transaction = null; - } - if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { - global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; - adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); - for (int i = 0; (i < adapters.Length); i = (i + 1)) { - global::System.Data.Common.DataAdapter adapter = adapters[i]; - adapter.AcceptChangesDuringUpdate = true; - } - } - } - return result; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { - global::System.Array.Sort(rows, new SelfReferenceComparer(relation, childFirst)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { - if ((this._connection != null)) { - return true; - } - if (((this.Connection == null) - || (inputConnection == null))) { - return true; - } - if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { - return true; - } - return false; - } - - /// - ///Update Order Option - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public enum UpdateOrderOption { - - InsertUpdateDelete = 0, - - UpdateInsertDelete = 1, - } - - /// - ///Used to sort self-referenced table's rows - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer { - - private global::System.Data.DataRelation _relation; - - private int _childFirst; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { - this._relation = relation; - if (childFirst) { - this._childFirst = -1; - } - else { - this._childFirst = 1; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) { - global::System.Diagnostics.Debug.Assert((row != null)); - global::System.Data.DataRow root = row; - distance = 0; - - global::System.Collections.Generic.IDictionary traversedRows = new global::System.Collections.Generic.Dictionary(); - traversedRows[row] = row; - - global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); - for ( - ; ((parent != null) - && (traversedRows.ContainsKey(parent) == false)); - ) { - distance = (distance + 1); - root = parent; - traversedRows[parent] = parent; - parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); - } - - if ((distance == 0)) { - traversedRows.Clear(); - traversedRows[row] = row; - parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); - for ( - ; ((parent != null) - && (traversedRows.ContainsKey(parent) == false)); - ) { - distance = (distance + 1); - root = parent; - traversedRows[parent] = parent; - parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); - } - } - - return root; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { - if (object.ReferenceEquals(row1, row2)) { - return 0; - } - if ((row1 == null)) { - return -1; - } - if ((row2 == null)) { - return 1; - } - - int distance1 = 0; - global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1); - - int distance2 = 0; - global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2); - - if (object.ReferenceEquals(root1, root2)) { - return (this._childFirst * distance1.CompareTo(distance2)); - } - else { - global::System.Diagnostics.Debug.Assert(((root1.Table != null) - && (root2.Table != null))); - if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) { - return -1; - } - else { - return 1; - } - } - } - } - } -} - +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace syncEdosLocal { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("DataSet1")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DataSet1 : global::System.Data.DataSet { + + private LocalVisitsDataTable tableLocalVisits; + + private CentralVisitsDataTable tableCentralVisits; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public DataSet1() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected DataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + if ((ds.Tables["LocalVisits"] != null)) { + base.Tables.Add(new LocalVisitsDataTable(ds.Tables["LocalVisits"])); + } + if ((ds.Tables["CentralVisits"] != null)) { + base.Tables.Add(new CentralVisitsDataTable(ds.Tables["CentralVisits"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public LocalVisitsDataTable LocalVisits { + get { + return this.tableLocalVisits; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public CentralVisitsDataTable CentralVisits { + get { + return this.tableCentralVisits; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataSet Clone() { + DataSet1 cln = ((DataSet1)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["LocalVisits"] != null)) { + base.Tables.Add(new LocalVisitsDataTable(ds.Tables["LocalVisits"])); + } + if ((ds.Tables["CentralVisits"] != null)) { + base.Tables.Add(new CentralVisitsDataTable(ds.Tables["CentralVisits"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars(bool initTable) { + this.tableLocalVisits = ((LocalVisitsDataTable)(base.Tables["LocalVisits"])); + if ((initTable == true)) { + if ((this.tableLocalVisits != null)) { + this.tableLocalVisits.InitVars(); + } + } + this.tableCentralVisits = ((CentralVisitsDataTable)(base.Tables["CentralVisits"])); + if ((initTable == true)) { + if ((this.tableCentralVisits != null)) { + this.tableCentralVisits.InitVars(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.DataSetName = "DataSet1"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/DataSet1.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableLocalVisits = new LocalVisitsDataTable(); + base.Tables.Add(this.tableLocalVisits); + this.tableCentralVisits = new CentralVisitsDataTable(); + base.Tables.Add(this.tableCentralVisits); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeLocalVisits() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeCentralVisits() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + DataSet1 ds = new DataSet1(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void LocalVisitsRowChangeEventHandler(object sender, LocalVisitsRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void CentralVisitsRowChangeEventHandler(object sender, CentralVisitsRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class LocalVisitsDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnID_Station; + + private global::System.Data.DataColumn columnID_Visit; + + private global::System.Data.DataColumn columnInst_CODE; + + private global::System.Data.DataColumn columnPersID; + + private global::System.Data.DataColumn columnID_Task; + + private global::System.Data.DataColumn columnEntryTime; + + private global::System.Data.DataColumn columnReturnTime; + + private global::System.Data.DataColumn columnHp10Dose; + + private global::System.Data.DataColumn columnHp07Dose; + + private global::System.Data.DataColumn columnHp10Total; + + private global::System.Data.DataColumn columnHp07Total; + + private global::System.Data.DataColumn columnHp10Peak; + + private global::System.Data.DataColumn columnHp07Peak; + + private global::System.Data.DataColumn columnHp10Time; + + private global::System.Data.DataColumn columnHp07Time; + + private global::System.Data.DataColumn columnID_EPD; + + private global::System.Data.DataColumn columnQualityData; + + private global::System.Data.DataColumn columnK1; + + private global::System.Data.DataColumn columnK2; + + private global::System.Data.DataColumn columnK3; + + private global::System.Data.DataColumn columnK4; + + private global::System.Data.DataColumn columnK5; + + private global::System.Data.DataColumn columnK6; + + private global::System.Data.DataColumn columnSG; + + private global::System.Data.DataColumn columnBC; + + private global::System.Data.DataColumn columnFB; + + private global::System.Data.DataColumn columnHG; + + private global::System.Data.DataColumn columnalarmStatus; + + private global::System.Data.DataColumn columnotherAlarms; + + private global::System.Data.DataColumn columnerrorStatus; + + private global::System.Data.DataColumn columnoperatingStatus; + + private global::System.Data.DataColumn columnisBG; + + private global::System.Data.DataColumn columnisComplete; + + private global::System.Data.DataColumn columnisDeleted; + + private global::System.Data.DataColumn columnisAlarm; + + private global::System.Data.DataColumn columnisAlarmCleared; + + private global::System.Data.DataColumn columnisManualExit; + + private global::System.Data.DataColumn columnID_Station_Return; + + private global::System.Data.DataColumn columnENTRY_EPD_CLOCK; + + private global::System.Data.DataColumn columnEXIT_EPD_CLOCK; + + private global::System.Data.DataColumn columnTIME_LOST; + + private global::System.Data.DataColumn columnVisitStatus; + + private global::System.Data.DataColumn columnsyncedEntry; + + private global::System.Data.DataColumn columnsyncedExit; + + private global::System.Data.DataColumn columnepdType; + + private global::System.Data.DataColumn columnepdID; + + private global::System.Data.DataColumn columneDosBatteryWarning; + + private global::System.Data.DataColumn columneDosDose07Warning; + + private global::System.Data.DataColumn columneDosDose07Alarm; + + private global::System.Data.DataColumn columneDosRate07Warning; + + private global::System.Data.DataColumn columneDosRate07Alarm; + + private global::System.Data.DataColumn columneDosDose10Warning; + + private global::System.Data.DataColumn columneDosDose10Alarm; + + private global::System.Data.DataColumn columneDosRate10Warning; + + private global::System.Data.DataColumn columneDosRate10Alarm; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public LocalVisitsDataTable() { + this.TableName = "LocalVisits"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal LocalVisitsDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected LocalVisitsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ID_StationColumn { + get { + return this.columnID_Station; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ID_VisitColumn { + get { + return this.columnID_Visit; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Inst_CODEColumn { + get { + return this.columnInst_CODE; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn PersIDColumn { + get { + return this.columnPersID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ID_TaskColumn { + get { + return this.columnID_Task; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EntryTimeColumn { + get { + return this.columnEntryTime; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ReturnTimeColumn { + get { + return this.columnReturnTime; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp10DoseColumn { + get { + return this.columnHp10Dose; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp07DoseColumn { + get { + return this.columnHp07Dose; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp10TotalColumn { + get { + return this.columnHp10Total; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp07TotalColumn { + get { + return this.columnHp07Total; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp10PeakColumn { + get { + return this.columnHp10Peak; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp07PeakColumn { + get { + return this.columnHp07Peak; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp10TimeColumn { + get { + return this.columnHp10Time; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp07TimeColumn { + get { + return this.columnHp07Time; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ID_EPDColumn { + get { + return this.columnID_EPD; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn QualityDataColumn { + get { + return this.columnQualityData; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K1Column { + get { + return this.columnK1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K2Column { + get { + return this.columnK2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K3Column { + get { + return this.columnK3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K4Column { + get { + return this.columnK4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K5Column { + get { + return this.columnK5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K6Column { + get { + return this.columnK6; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn SGColumn { + get { + return this.columnSG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn BCColumn { + get { + return this.columnBC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn FBColumn { + get { + return this.columnFB; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn HGColumn { + get { + return this.columnHG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn alarmStatusColumn { + get { + return this.columnalarmStatus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn otherAlarmsColumn { + get { + return this.columnotherAlarms; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn errorStatusColumn { + get { + return this.columnerrorStatus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn operatingStatusColumn { + get { + return this.columnoperatingStatus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isBGColumn { + get { + return this.columnisBG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isCompleteColumn { + get { + return this.columnisComplete; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isDeletedColumn { + get { + return this.columnisDeleted; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isAlarmColumn { + get { + return this.columnisAlarm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isAlarmClearedColumn { + get { + return this.columnisAlarmCleared; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isManualExitColumn { + get { + return this.columnisManualExit; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ID_Station_ReturnColumn { + get { + return this.columnID_Station_Return; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ENTRY_EPD_CLOCKColumn { + get { + return this.columnENTRY_EPD_CLOCK; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EXIT_EPD_CLOCKColumn { + get { + return this.columnEXIT_EPD_CLOCK; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TIME_LOSTColumn { + get { + return this.columnTIME_LOST; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn VisitStatusColumn { + get { + return this.columnVisitStatus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn syncedEntryColumn { + get { + return this.columnsyncedEntry; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn syncedExitColumn { + get { + return this.columnsyncedExit; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn epdTypeColumn { + get { + return this.columnepdType; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn epdIDColumn { + get { + return this.columnepdID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosBatteryWarningColumn { + get { + return this.columneDosBatteryWarning; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosDose07WarningColumn { + get { + return this.columneDosDose07Warning; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosDose07AlarmColumn { + get { + return this.columneDosDose07Alarm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosRate07WarningColumn { + get { + return this.columneDosRate07Warning; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosRate07AlarmColumn { + get { + return this.columneDosRate07Alarm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosDose10WarningColumn { + get { + return this.columneDosDose10Warning; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosDose10AlarmColumn { + get { + return this.columneDosDose10Alarm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosRate10WarningColumn { + get { + return this.columneDosRate10Warning; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosRate10AlarmColumn { + get { + return this.columneDosRate10Alarm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public LocalVisitsRow this[int index] { + get { + return ((LocalVisitsRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event LocalVisitsRowChangeEventHandler LocalVisitsRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event LocalVisitsRowChangeEventHandler LocalVisitsRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event LocalVisitsRowChangeEventHandler LocalVisitsRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event LocalVisitsRowChangeEventHandler LocalVisitsRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddLocalVisitsRow(LocalVisitsRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public LocalVisitsRow AddLocalVisitsRow( + int ID_Station, + int ID_Visit, + int Inst_CODE, + int PersID, + int ID_Task, + System.DateTime EntryTime, + System.DateTime ReturnTime, + double Hp10Dose, + double Hp07Dose, + double Hp10Total, + double Hp07Total, + double Hp10Peak, + double Hp07Peak, + System.DateTime Hp10Time, + System.DateTime Hp07Time, + int ID_EPD, + int QualityData, + int K1, + int K2, + int K3, + int K4, + int K5, + int K6, + int SG, + int BC, + int FB, + int HG, + int alarmStatus, + int otherAlarms, + int errorStatus, + int operatingStatus, + bool isBG, + bool isComplete, + bool isDeleted, + bool isAlarm, + bool isAlarmCleared, + bool isManualExit, + int ID_Station_Return, + decimal ENTRY_EPD_CLOCK, + decimal EXIT_EPD_CLOCK, + int TIME_LOST, + byte VisitStatus, + bool syncedEntry, + bool syncedExit, + byte epdType, + int epdID, + bool eDosBatteryWarning, + bool eDosDose07Warning, + bool eDosDose07Alarm, + bool eDosRate07Warning, + bool eDosRate07Alarm, + bool eDosDose10Warning, + bool eDosDose10Alarm, + bool eDosRate10Warning, + bool eDosRate10Alarm) { + LocalVisitsRow rowLocalVisitsRow = ((LocalVisitsRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + ID_Station, + ID_Visit, + Inst_CODE, + PersID, + ID_Task, + EntryTime, + ReturnTime, + Hp10Dose, + Hp07Dose, + Hp10Total, + Hp07Total, + Hp10Peak, + Hp07Peak, + Hp10Time, + Hp07Time, + ID_EPD, + QualityData, + K1, + K2, + K3, + K4, + K5, + K6, + SG, + BC, + FB, + HG, + alarmStatus, + otherAlarms, + errorStatus, + operatingStatus, + isBG, + isComplete, + isDeleted, + isAlarm, + isAlarmCleared, + isManualExit, + ID_Station_Return, + ENTRY_EPD_CLOCK, + EXIT_EPD_CLOCK, + TIME_LOST, + VisitStatus, + syncedEntry, + syncedExit, + epdType, + epdID, + eDosBatteryWarning, + eDosDose07Warning, + eDosDose07Alarm, + eDosRate07Warning, + eDosRate07Alarm, + eDosDose10Warning, + eDosDose10Alarm, + eDosRate10Warning, + eDosRate10Alarm}; + rowLocalVisitsRow.ItemArray = columnValuesArray; + this.Rows.Add(rowLocalVisitsRow); + return rowLocalVisitsRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public LocalVisitsRow FindByID_StationID_Visit(int ID_Station, int ID_Visit) { + return ((LocalVisitsRow)(this.Rows.Find(new object[] { + ID_Station, + ID_Visit}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + LocalVisitsDataTable cln = ((LocalVisitsDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new LocalVisitsDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnID_Station = base.Columns["ID_Station"]; + this.columnID_Visit = base.Columns["ID_Visit"]; + this.columnInst_CODE = base.Columns["Inst_CODE"]; + this.columnPersID = base.Columns["PersID"]; + this.columnID_Task = base.Columns["ID_Task"]; + this.columnEntryTime = base.Columns["EntryTime"]; + this.columnReturnTime = base.Columns["ReturnTime"]; + this.columnHp10Dose = base.Columns["Hp10Dose"]; + this.columnHp07Dose = base.Columns["Hp07Dose"]; + this.columnHp10Total = base.Columns["Hp10Total"]; + this.columnHp07Total = base.Columns["Hp07Total"]; + this.columnHp10Peak = base.Columns["Hp10Peak"]; + this.columnHp07Peak = base.Columns["Hp07Peak"]; + this.columnHp10Time = base.Columns["Hp10Time"]; + this.columnHp07Time = base.Columns["Hp07Time"]; + this.columnID_EPD = base.Columns["ID_EPD"]; + this.columnQualityData = base.Columns["QualityData"]; + this.columnK1 = base.Columns["K1"]; + this.columnK2 = base.Columns["K2"]; + this.columnK3 = base.Columns["K3"]; + this.columnK4 = base.Columns["K4"]; + this.columnK5 = base.Columns["K5"]; + this.columnK6 = base.Columns["K6"]; + this.columnSG = base.Columns["SG"]; + this.columnBC = base.Columns["BC"]; + this.columnFB = base.Columns["FB"]; + this.columnHG = base.Columns["HG"]; + this.columnalarmStatus = base.Columns["alarmStatus"]; + this.columnotherAlarms = base.Columns["otherAlarms"]; + this.columnerrorStatus = base.Columns["errorStatus"]; + this.columnoperatingStatus = base.Columns["operatingStatus"]; + this.columnisBG = base.Columns["isBG"]; + this.columnisComplete = base.Columns["isComplete"]; + this.columnisDeleted = base.Columns["isDeleted"]; + this.columnisAlarm = base.Columns["isAlarm"]; + this.columnisAlarmCleared = base.Columns["isAlarmCleared"]; + this.columnisManualExit = base.Columns["isManualExit"]; + this.columnID_Station_Return = base.Columns["ID_Station_Return"]; + this.columnENTRY_EPD_CLOCK = base.Columns["ENTRY_EPD_CLOCK"]; + this.columnEXIT_EPD_CLOCK = base.Columns["EXIT_EPD_CLOCK"]; + this.columnTIME_LOST = base.Columns["TIME_LOST"]; + this.columnVisitStatus = base.Columns["VisitStatus"]; + this.columnsyncedEntry = base.Columns["syncedEntry"]; + this.columnsyncedExit = base.Columns["syncedExit"]; + this.columnepdType = base.Columns["epdType"]; + this.columnepdID = base.Columns["epdID"]; + this.columneDosBatteryWarning = base.Columns["eDosBatteryWarning"]; + this.columneDosDose07Warning = base.Columns["eDosDose07Warning"]; + this.columneDosDose07Alarm = base.Columns["eDosDose07Alarm"]; + this.columneDosRate07Warning = base.Columns["eDosRate07Warning"]; + this.columneDosRate07Alarm = base.Columns["eDosRate07Alarm"]; + this.columneDosDose10Warning = base.Columns["eDosDose10Warning"]; + this.columneDosDose10Alarm = base.Columns["eDosDose10Alarm"]; + this.columneDosRate10Warning = base.Columns["eDosRate10Warning"]; + this.columneDosRate10Alarm = base.Columns["eDosRate10Alarm"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnID_Station = new global::System.Data.DataColumn("ID_Station", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnID_Station); + this.columnID_Visit = new global::System.Data.DataColumn("ID_Visit", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnID_Visit); + this.columnInst_CODE = new global::System.Data.DataColumn("Inst_CODE", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInst_CODE); + this.columnPersID = new global::System.Data.DataColumn("PersID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPersID); + this.columnID_Task = new global::System.Data.DataColumn("ID_Task", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnID_Task); + this.columnEntryTime = new global::System.Data.DataColumn("EntryTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEntryTime); + this.columnReturnTime = new global::System.Data.DataColumn("ReturnTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnReturnTime); + this.columnHp10Dose = new global::System.Data.DataColumn("Hp10Dose", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp10Dose); + this.columnHp07Dose = new global::System.Data.DataColumn("Hp07Dose", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp07Dose); + this.columnHp10Total = new global::System.Data.DataColumn("Hp10Total", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp10Total); + this.columnHp07Total = new global::System.Data.DataColumn("Hp07Total", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp07Total); + this.columnHp10Peak = new global::System.Data.DataColumn("Hp10Peak", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp10Peak); + this.columnHp07Peak = new global::System.Data.DataColumn("Hp07Peak", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp07Peak); + this.columnHp10Time = new global::System.Data.DataColumn("Hp10Time", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp10Time); + this.columnHp07Time = new global::System.Data.DataColumn("Hp07Time", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp07Time); + this.columnID_EPD = new global::System.Data.DataColumn("ID_EPD", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnID_EPD); + this.columnQualityData = new global::System.Data.DataColumn("QualityData", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQualityData); + this.columnK1 = new global::System.Data.DataColumn("K1", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK1); + this.columnK2 = new global::System.Data.DataColumn("K2", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK2); + this.columnK3 = new global::System.Data.DataColumn("K3", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK3); + this.columnK4 = new global::System.Data.DataColumn("K4", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK4); + this.columnK5 = new global::System.Data.DataColumn("K5", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK5); + this.columnK6 = new global::System.Data.DataColumn("K6", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK6); + this.columnSG = new global::System.Data.DataColumn("SG", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSG); + this.columnBC = new global::System.Data.DataColumn("BC", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBC); + this.columnFB = new global::System.Data.DataColumn("FB", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFB); + this.columnHG = new global::System.Data.DataColumn("HG", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHG); + this.columnalarmStatus = new global::System.Data.DataColumn("alarmStatus", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnalarmStatus); + this.columnotherAlarms = new global::System.Data.DataColumn("otherAlarms", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnotherAlarms); + this.columnerrorStatus = new global::System.Data.DataColumn("errorStatus", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnerrorStatus); + this.columnoperatingStatus = new global::System.Data.DataColumn("operatingStatus", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnoperatingStatus); + this.columnisBG = new global::System.Data.DataColumn("isBG", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisBG); + this.columnisComplete = new global::System.Data.DataColumn("isComplete", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisComplete); + this.columnisDeleted = new global::System.Data.DataColumn("isDeleted", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisDeleted); + this.columnisAlarm = new global::System.Data.DataColumn("isAlarm", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisAlarm); + this.columnisAlarmCleared = new global::System.Data.DataColumn("isAlarmCleared", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisAlarmCleared); + this.columnisManualExit = new global::System.Data.DataColumn("isManualExit", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisManualExit); + this.columnID_Station_Return = new global::System.Data.DataColumn("ID_Station_Return", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnID_Station_Return); + this.columnENTRY_EPD_CLOCK = new global::System.Data.DataColumn("ENTRY_EPD_CLOCK", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnENTRY_EPD_CLOCK); + this.columnEXIT_EPD_CLOCK = new global::System.Data.DataColumn("EXIT_EPD_CLOCK", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEXIT_EPD_CLOCK); + this.columnTIME_LOST = new global::System.Data.DataColumn("TIME_LOST", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTIME_LOST); + this.columnVisitStatus = new global::System.Data.DataColumn("VisitStatus", typeof(byte), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVisitStatus); + this.columnsyncedEntry = new global::System.Data.DataColumn("syncedEntry", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsyncedEntry); + this.columnsyncedExit = new global::System.Data.DataColumn("syncedExit", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsyncedExit); + this.columnepdType = new global::System.Data.DataColumn("epdType", typeof(byte), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnepdType); + this.columnepdID = new global::System.Data.DataColumn("epdID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnepdID); + this.columneDosBatteryWarning = new global::System.Data.DataColumn("eDosBatteryWarning", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosBatteryWarning); + this.columneDosDose07Warning = new global::System.Data.DataColumn("eDosDose07Warning", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosDose07Warning); + this.columneDosDose07Alarm = new global::System.Data.DataColumn("eDosDose07Alarm", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosDose07Alarm); + this.columneDosRate07Warning = new global::System.Data.DataColumn("eDosRate07Warning", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosRate07Warning); + this.columneDosRate07Alarm = new global::System.Data.DataColumn("eDosRate07Alarm", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosRate07Alarm); + this.columneDosDose10Warning = new global::System.Data.DataColumn("eDosDose10Warning", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosDose10Warning); + this.columneDosDose10Alarm = new global::System.Data.DataColumn("eDosDose10Alarm", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosDose10Alarm); + this.columneDosRate10Warning = new global::System.Data.DataColumn("eDosRate10Warning", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosRate10Warning); + this.columneDosRate10Alarm = new global::System.Data.DataColumn("eDosRate10Alarm", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosRate10Alarm); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnID_Station, + this.columnID_Visit}, true)); + this.columnID_Station.AllowDBNull = false; + this.columnID_Visit.AllowDBNull = false; + this.columnInst_CODE.AllowDBNull = false; + this.columnisComplete.AllowDBNull = false; + this.columnisDeleted.AllowDBNull = false; + this.columnisAlarm.AllowDBNull = false; + this.columnisAlarmCleared.AllowDBNull = false; + this.columnisManualExit.AllowDBNull = false; + this.columnVisitStatus.ReadOnly = true; + this.columnsyncedEntry.AllowDBNull = false; + this.columnsyncedExit.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public LocalVisitsRow NewLocalVisitsRow() { + return ((LocalVisitsRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new LocalVisitsRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(LocalVisitsRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.LocalVisitsRowChanged != null)) { + this.LocalVisitsRowChanged(this, new LocalVisitsRowChangeEvent(((LocalVisitsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.LocalVisitsRowChanging != null)) { + this.LocalVisitsRowChanging(this, new LocalVisitsRowChangeEvent(((LocalVisitsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.LocalVisitsRowDeleted != null)) { + this.LocalVisitsRowDeleted(this, new LocalVisitsRowChangeEvent(((LocalVisitsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.LocalVisitsRowDeleting != null)) { + this.LocalVisitsRowDeleting(this, new LocalVisitsRowChangeEvent(((LocalVisitsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveLocalVisitsRow(LocalVisitsRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DataSet1 ds = new DataSet1(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "LocalVisitsDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class CentralVisitsDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnID_Station; + + private global::System.Data.DataColumn columnID_Visit; + + private global::System.Data.DataColumn columnInst_CODE; + + private global::System.Data.DataColumn columnPersID; + + private global::System.Data.DataColumn columnID_Task; + + private global::System.Data.DataColumn columnEntryTime; + + private global::System.Data.DataColumn columnReturnTime; + + private global::System.Data.DataColumn columnHp10Dose; + + private global::System.Data.DataColumn columnHp07Dose; + + private global::System.Data.DataColumn columnHp10Total; + + private global::System.Data.DataColumn columnHp07Total; + + private global::System.Data.DataColumn columnHp10Peak; + + private global::System.Data.DataColumn columnHp07Peak; + + private global::System.Data.DataColumn columnHp10Time; + + private global::System.Data.DataColumn columnHp07Time; + + private global::System.Data.DataColumn columnID_EPD; + + private global::System.Data.DataColumn columnQualityData; + + private global::System.Data.DataColumn columnK1; + + private global::System.Data.DataColumn columnK2; + + private global::System.Data.DataColumn columnK3; + + private global::System.Data.DataColumn columnK4; + + private global::System.Data.DataColumn columnK5; + + private global::System.Data.DataColumn columnK6; + + private global::System.Data.DataColumn columnSG; + + private global::System.Data.DataColumn columnBC; + + private global::System.Data.DataColumn columnFB; + + private global::System.Data.DataColumn columnHG; + + private global::System.Data.DataColumn columnalarmStatus; + + private global::System.Data.DataColumn columnotherAlarms; + + private global::System.Data.DataColumn columnerrorStatus; + + private global::System.Data.DataColumn columnoperatingStatus; + + private global::System.Data.DataColumn columnisBG; + + private global::System.Data.DataColumn columnisComplete; + + private global::System.Data.DataColumn columnisDeleted; + + private global::System.Data.DataColumn columnisAlarm; + + private global::System.Data.DataColumn columnisAlarmCleared; + + private global::System.Data.DataColumn columnisManualExit; + + private global::System.Data.DataColumn columnID_Station_Return; + + private global::System.Data.DataColumn columnENTRY_EPD_CLOCK; + + private global::System.Data.DataColumn columnEXIT_EPD_CLOCK; + + private global::System.Data.DataColumn columnTIME_LOST; + + private global::System.Data.DataColumn columnVisitStatus; + + private global::System.Data.DataColumn columnsyncedEntry; + + private global::System.Data.DataColumn columnsyncedExit; + + private global::System.Data.DataColumn columnepdType; + + private global::System.Data.DataColumn columneDosBatteryWarning; + + private global::System.Data.DataColumn columneDosDose07Warning; + + private global::System.Data.DataColumn columneDosDose07Alarm; + + private global::System.Data.DataColumn columneDosRate07Warning; + + private global::System.Data.DataColumn columneDosRate07Alarm; + + private global::System.Data.DataColumn columneDosDose10Warning; + + private global::System.Data.DataColumn columneDosDose10Alarm; + + private global::System.Data.DataColumn columneDosRate10Warning; + + private global::System.Data.DataColumn columneDosRate10Alarm; + + private global::System.Data.DataColumn columnepdID; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CentralVisitsDataTable() { + this.TableName = "CentralVisits"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal CentralVisitsDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected CentralVisitsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ID_StationColumn { + get { + return this.columnID_Station; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ID_VisitColumn { + get { + return this.columnID_Visit; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Inst_CODEColumn { + get { + return this.columnInst_CODE; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn PersIDColumn { + get { + return this.columnPersID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ID_TaskColumn { + get { + return this.columnID_Task; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EntryTimeColumn { + get { + return this.columnEntryTime; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ReturnTimeColumn { + get { + return this.columnReturnTime; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp10DoseColumn { + get { + return this.columnHp10Dose; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp07DoseColumn { + get { + return this.columnHp07Dose; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp10TotalColumn { + get { + return this.columnHp10Total; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp07TotalColumn { + get { + return this.columnHp07Total; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp10PeakColumn { + get { + return this.columnHp10Peak; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp07PeakColumn { + get { + return this.columnHp07Peak; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp10TimeColumn { + get { + return this.columnHp10Time; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn Hp07TimeColumn { + get { + return this.columnHp07Time; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ID_EPDColumn { + get { + return this.columnID_EPD; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn QualityDataColumn { + get { + return this.columnQualityData; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K1Column { + get { + return this.columnK1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K2Column { + get { + return this.columnK2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K3Column { + get { + return this.columnK3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K4Column { + get { + return this.columnK4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K5Column { + get { + return this.columnK5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn K6Column { + get { + return this.columnK6; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn SGColumn { + get { + return this.columnSG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn BCColumn { + get { + return this.columnBC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn FBColumn { + get { + return this.columnFB; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn HGColumn { + get { + return this.columnHG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn alarmStatusColumn { + get { + return this.columnalarmStatus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn otherAlarmsColumn { + get { + return this.columnotherAlarms; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn errorStatusColumn { + get { + return this.columnerrorStatus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn operatingStatusColumn { + get { + return this.columnoperatingStatus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isBGColumn { + get { + return this.columnisBG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isCompleteColumn { + get { + return this.columnisComplete; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isDeletedColumn { + get { + return this.columnisDeleted; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isAlarmColumn { + get { + return this.columnisAlarm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isAlarmClearedColumn { + get { + return this.columnisAlarmCleared; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn isManualExitColumn { + get { + return this.columnisManualExit; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ID_Station_ReturnColumn { + get { + return this.columnID_Station_Return; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ENTRY_EPD_CLOCKColumn { + get { + return this.columnENTRY_EPD_CLOCK; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn EXIT_EPD_CLOCKColumn { + get { + return this.columnEXIT_EPD_CLOCK; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TIME_LOSTColumn { + get { + return this.columnTIME_LOST; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn VisitStatusColumn { + get { + return this.columnVisitStatus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn syncedEntryColumn { + get { + return this.columnsyncedEntry; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn syncedExitColumn { + get { + return this.columnsyncedExit; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn epdTypeColumn { + get { + return this.columnepdType; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosBatteryWarningColumn { + get { + return this.columneDosBatteryWarning; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosDose07WarningColumn { + get { + return this.columneDosDose07Warning; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosDose07AlarmColumn { + get { + return this.columneDosDose07Alarm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosRate07WarningColumn { + get { + return this.columneDosRate07Warning; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosRate07AlarmColumn { + get { + return this.columneDosRate07Alarm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosDose10WarningColumn { + get { + return this.columneDosDose10Warning; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosDose10AlarmColumn { + get { + return this.columneDosDose10Alarm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosRate10WarningColumn { + get { + return this.columneDosRate10Warning; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn eDosRate10AlarmColumn { + get { + return this.columneDosRate10Alarm; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn epdIDColumn { + get { + return this.columnepdID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CentralVisitsRow this[int index] { + get { + return ((CentralVisitsRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event CentralVisitsRowChangeEventHandler CentralVisitsRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event CentralVisitsRowChangeEventHandler CentralVisitsRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event CentralVisitsRowChangeEventHandler CentralVisitsRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event CentralVisitsRowChangeEventHandler CentralVisitsRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddCentralVisitsRow(CentralVisitsRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CentralVisitsRow AddCentralVisitsRow( + int ID_Station, + int ID_Visit, + int Inst_CODE, + int PersID, + int ID_Task, + System.DateTime EntryTime, + System.DateTime ReturnTime, + double Hp10Dose, + double Hp07Dose, + double Hp10Total, + double Hp07Total, + double Hp10Peak, + double Hp07Peak, + System.DateTime Hp10Time, + System.DateTime Hp07Time, + int ID_EPD, + int QualityData, + int K1, + int K2, + int K3, + int K4, + int K5, + int K6, + int SG, + int BC, + int FB, + int HG, + int alarmStatus, + int otherAlarms, + int errorStatus, + int operatingStatus, + bool isBG, + bool isComplete, + bool isDeleted, + bool isAlarm, + bool isAlarmCleared, + bool isManualExit, + int ID_Station_Return, + decimal ENTRY_EPD_CLOCK, + decimal EXIT_EPD_CLOCK, + int TIME_LOST, + byte VisitStatus, + bool syncedEntry, + bool syncedExit, + byte epdType, + bool eDosBatteryWarning, + bool eDosDose07Warning, + bool eDosDose07Alarm, + bool eDosRate07Warning, + bool eDosRate07Alarm, + bool eDosDose10Warning, + bool eDosDose10Alarm, + bool eDosRate10Warning, + bool eDosRate10Alarm, + int epdID) { + CentralVisitsRow rowCentralVisitsRow = ((CentralVisitsRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + ID_Station, + ID_Visit, + Inst_CODE, + PersID, + ID_Task, + EntryTime, + ReturnTime, + Hp10Dose, + Hp07Dose, + Hp10Total, + Hp07Total, + Hp10Peak, + Hp07Peak, + Hp10Time, + Hp07Time, + ID_EPD, + QualityData, + K1, + K2, + K3, + K4, + K5, + K6, + SG, + BC, + FB, + HG, + alarmStatus, + otherAlarms, + errorStatus, + operatingStatus, + isBG, + isComplete, + isDeleted, + isAlarm, + isAlarmCleared, + isManualExit, + ID_Station_Return, + ENTRY_EPD_CLOCK, + EXIT_EPD_CLOCK, + TIME_LOST, + VisitStatus, + syncedEntry, + syncedExit, + epdType, + eDosBatteryWarning, + eDosDose07Warning, + eDosDose07Alarm, + eDosRate07Warning, + eDosRate07Alarm, + eDosDose10Warning, + eDosDose10Alarm, + eDosRate10Warning, + eDosRate10Alarm, + epdID}; + rowCentralVisitsRow.ItemArray = columnValuesArray; + this.Rows.Add(rowCentralVisitsRow); + return rowCentralVisitsRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CentralVisitsRow FindByID_StationID_Visit(int ID_Station, int ID_Visit) { + return ((CentralVisitsRow)(this.Rows.Find(new object[] { + ID_Station, + ID_Visit}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + CentralVisitsDataTable cln = ((CentralVisitsDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new CentralVisitsDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnID_Station = base.Columns["ID_Station"]; + this.columnID_Visit = base.Columns["ID_Visit"]; + this.columnInst_CODE = base.Columns["Inst_CODE"]; + this.columnPersID = base.Columns["PersID"]; + this.columnID_Task = base.Columns["ID_Task"]; + this.columnEntryTime = base.Columns["EntryTime"]; + this.columnReturnTime = base.Columns["ReturnTime"]; + this.columnHp10Dose = base.Columns["Hp10Dose"]; + this.columnHp07Dose = base.Columns["Hp07Dose"]; + this.columnHp10Total = base.Columns["Hp10Total"]; + this.columnHp07Total = base.Columns["Hp07Total"]; + this.columnHp10Peak = base.Columns["Hp10Peak"]; + this.columnHp07Peak = base.Columns["Hp07Peak"]; + this.columnHp10Time = base.Columns["Hp10Time"]; + this.columnHp07Time = base.Columns["Hp07Time"]; + this.columnID_EPD = base.Columns["ID_EPD"]; + this.columnQualityData = base.Columns["QualityData"]; + this.columnK1 = base.Columns["K1"]; + this.columnK2 = base.Columns["K2"]; + this.columnK3 = base.Columns["K3"]; + this.columnK4 = base.Columns["K4"]; + this.columnK5 = base.Columns["K5"]; + this.columnK6 = base.Columns["K6"]; + this.columnSG = base.Columns["SG"]; + this.columnBC = base.Columns["BC"]; + this.columnFB = base.Columns["FB"]; + this.columnHG = base.Columns["HG"]; + this.columnalarmStatus = base.Columns["alarmStatus"]; + this.columnotherAlarms = base.Columns["otherAlarms"]; + this.columnerrorStatus = base.Columns["errorStatus"]; + this.columnoperatingStatus = base.Columns["operatingStatus"]; + this.columnisBG = base.Columns["isBG"]; + this.columnisComplete = base.Columns["isComplete"]; + this.columnisDeleted = base.Columns["isDeleted"]; + this.columnisAlarm = base.Columns["isAlarm"]; + this.columnisAlarmCleared = base.Columns["isAlarmCleared"]; + this.columnisManualExit = base.Columns["isManualExit"]; + this.columnID_Station_Return = base.Columns["ID_Station_Return"]; + this.columnENTRY_EPD_CLOCK = base.Columns["ENTRY_EPD_CLOCK"]; + this.columnEXIT_EPD_CLOCK = base.Columns["EXIT_EPD_CLOCK"]; + this.columnTIME_LOST = base.Columns["TIME_LOST"]; + this.columnVisitStatus = base.Columns["VisitStatus"]; + this.columnsyncedEntry = base.Columns["syncedEntry"]; + this.columnsyncedExit = base.Columns["syncedExit"]; + this.columnepdType = base.Columns["epdType"]; + this.columneDosBatteryWarning = base.Columns["eDosBatteryWarning"]; + this.columneDosDose07Warning = base.Columns["eDosDose07Warning"]; + this.columneDosDose07Alarm = base.Columns["eDosDose07Alarm"]; + this.columneDosRate07Warning = base.Columns["eDosRate07Warning"]; + this.columneDosRate07Alarm = base.Columns["eDosRate07Alarm"]; + this.columneDosDose10Warning = base.Columns["eDosDose10Warning"]; + this.columneDosDose10Alarm = base.Columns["eDosDose10Alarm"]; + this.columneDosRate10Warning = base.Columns["eDosRate10Warning"]; + this.columneDosRate10Alarm = base.Columns["eDosRate10Alarm"]; + this.columnepdID = base.Columns["epdID"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnID_Station = new global::System.Data.DataColumn("ID_Station", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnID_Station); + this.columnID_Visit = new global::System.Data.DataColumn("ID_Visit", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnID_Visit); + this.columnInst_CODE = new global::System.Data.DataColumn("Inst_CODE", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInst_CODE); + this.columnPersID = new global::System.Data.DataColumn("PersID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPersID); + this.columnID_Task = new global::System.Data.DataColumn("ID_Task", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnID_Task); + this.columnEntryTime = new global::System.Data.DataColumn("EntryTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEntryTime); + this.columnReturnTime = new global::System.Data.DataColumn("ReturnTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnReturnTime); + this.columnHp10Dose = new global::System.Data.DataColumn("Hp10Dose", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp10Dose); + this.columnHp07Dose = new global::System.Data.DataColumn("Hp07Dose", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp07Dose); + this.columnHp10Total = new global::System.Data.DataColumn("Hp10Total", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp10Total); + this.columnHp07Total = new global::System.Data.DataColumn("Hp07Total", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp07Total); + this.columnHp10Peak = new global::System.Data.DataColumn("Hp10Peak", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp10Peak); + this.columnHp07Peak = new global::System.Data.DataColumn("Hp07Peak", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp07Peak); + this.columnHp10Time = new global::System.Data.DataColumn("Hp10Time", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp10Time); + this.columnHp07Time = new global::System.Data.DataColumn("Hp07Time", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHp07Time); + this.columnID_EPD = new global::System.Data.DataColumn("ID_EPD", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnID_EPD); + this.columnQualityData = new global::System.Data.DataColumn("QualityData", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQualityData); + this.columnK1 = new global::System.Data.DataColumn("K1", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK1); + this.columnK2 = new global::System.Data.DataColumn("K2", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK2); + this.columnK3 = new global::System.Data.DataColumn("K3", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK3); + this.columnK4 = new global::System.Data.DataColumn("K4", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK4); + this.columnK5 = new global::System.Data.DataColumn("K5", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK5); + this.columnK6 = new global::System.Data.DataColumn("K6", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnK6); + this.columnSG = new global::System.Data.DataColumn("SG", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSG); + this.columnBC = new global::System.Data.DataColumn("BC", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBC); + this.columnFB = new global::System.Data.DataColumn("FB", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFB); + this.columnHG = new global::System.Data.DataColumn("HG", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHG); + this.columnalarmStatus = new global::System.Data.DataColumn("alarmStatus", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnalarmStatus); + this.columnotherAlarms = new global::System.Data.DataColumn("otherAlarms", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnotherAlarms); + this.columnerrorStatus = new global::System.Data.DataColumn("errorStatus", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnerrorStatus); + this.columnoperatingStatus = new global::System.Data.DataColumn("operatingStatus", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnoperatingStatus); + this.columnisBG = new global::System.Data.DataColumn("isBG", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisBG); + this.columnisComplete = new global::System.Data.DataColumn("isComplete", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisComplete); + this.columnisDeleted = new global::System.Data.DataColumn("isDeleted", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisDeleted); + this.columnisAlarm = new global::System.Data.DataColumn("isAlarm", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisAlarm); + this.columnisAlarmCleared = new global::System.Data.DataColumn("isAlarmCleared", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisAlarmCleared); + this.columnisManualExit = new global::System.Data.DataColumn("isManualExit", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisManualExit); + this.columnID_Station_Return = new global::System.Data.DataColumn("ID_Station_Return", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnID_Station_Return); + this.columnENTRY_EPD_CLOCK = new global::System.Data.DataColumn("ENTRY_EPD_CLOCK", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnENTRY_EPD_CLOCK); + this.columnEXIT_EPD_CLOCK = new global::System.Data.DataColumn("EXIT_EPD_CLOCK", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEXIT_EPD_CLOCK); + this.columnTIME_LOST = new global::System.Data.DataColumn("TIME_LOST", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTIME_LOST); + this.columnVisitStatus = new global::System.Data.DataColumn("VisitStatus", typeof(byte), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVisitStatus); + this.columnsyncedEntry = new global::System.Data.DataColumn("syncedEntry", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsyncedEntry); + this.columnsyncedExit = new global::System.Data.DataColumn("syncedExit", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsyncedExit); + this.columnepdType = new global::System.Data.DataColumn("epdType", typeof(byte), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnepdType); + this.columneDosBatteryWarning = new global::System.Data.DataColumn("eDosBatteryWarning", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosBatteryWarning); + this.columneDosDose07Warning = new global::System.Data.DataColumn("eDosDose07Warning", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosDose07Warning); + this.columneDosDose07Alarm = new global::System.Data.DataColumn("eDosDose07Alarm", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosDose07Alarm); + this.columneDosRate07Warning = new global::System.Data.DataColumn("eDosRate07Warning", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosRate07Warning); + this.columneDosRate07Alarm = new global::System.Data.DataColumn("eDosRate07Alarm", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosRate07Alarm); + this.columneDosDose10Warning = new global::System.Data.DataColumn("eDosDose10Warning", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosDose10Warning); + this.columneDosDose10Alarm = new global::System.Data.DataColumn("eDosDose10Alarm", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosDose10Alarm); + this.columneDosRate10Warning = new global::System.Data.DataColumn("eDosRate10Warning", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosRate10Warning); + this.columneDosRate10Alarm = new global::System.Data.DataColumn("eDosRate10Alarm", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columneDosRate10Alarm); + this.columnepdID = new global::System.Data.DataColumn("epdID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnepdID); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnID_Station, + this.columnID_Visit}, true)); + this.columnID_Station.AllowDBNull = false; + this.columnID_Visit.AllowDBNull = false; + this.columnInst_CODE.AllowDBNull = false; + this.columnisComplete.AllowDBNull = false; + this.columnisDeleted.AllowDBNull = false; + this.columnisAlarm.AllowDBNull = false; + this.columnisAlarmCleared.AllowDBNull = false; + this.columnisManualExit.AllowDBNull = false; + this.columnVisitStatus.ReadOnly = true; + this.columnsyncedEntry.ReadOnly = true; + this.columnsyncedExit.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CentralVisitsRow NewCentralVisitsRow() { + return ((CentralVisitsRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new CentralVisitsRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(CentralVisitsRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.CentralVisitsRowChanged != null)) { + this.CentralVisitsRowChanged(this, new CentralVisitsRowChangeEvent(((CentralVisitsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.CentralVisitsRowChanging != null)) { + this.CentralVisitsRowChanging(this, new CentralVisitsRowChangeEvent(((CentralVisitsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.CentralVisitsRowDeleted != null)) { + this.CentralVisitsRowDeleted(this, new CentralVisitsRowChangeEvent(((CentralVisitsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.CentralVisitsRowDeleting != null)) { + this.CentralVisitsRowDeleting(this, new CentralVisitsRowChangeEvent(((CentralVisitsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveCentralVisitsRow(CentralVisitsRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DataSet1 ds = new DataSet1(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "CentralVisitsDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class LocalVisitsRow : global::System.Data.DataRow { + + private LocalVisitsDataTable tableLocalVisits; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal LocalVisitsRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableLocalVisits = ((LocalVisitsDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ID_Station { + get { + return ((int)(this[this.tableLocalVisits.ID_StationColumn])); + } + set { + this[this.tableLocalVisits.ID_StationColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ID_Visit { + get { + return ((int)(this[this.tableLocalVisits.ID_VisitColumn])); + } + set { + this[this.tableLocalVisits.ID_VisitColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int Inst_CODE { + get { + return ((int)(this[this.tableLocalVisits.Inst_CODEColumn])); + } + set { + this[this.tableLocalVisits.Inst_CODEColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int PersID { + get { + try { + return ((int)(this[this.tableLocalVisits.PersIDColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PersID\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.PersIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ID_Task { + get { + try { + return ((int)(this[this.tableLocalVisits.ID_TaskColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ID_Task\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.ID_TaskColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime EntryTime { + get { + try { + return ((global::System.DateTime)(this[this.tableLocalVisits.EntryTimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'EntryTime\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.EntryTimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime ReturnTime { + get { + try { + return ((global::System.DateTime)(this[this.tableLocalVisits.ReturnTimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ReturnTime\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.ReturnTimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp10Dose { + get { + try { + return ((double)(this[this.tableLocalVisits.Hp10DoseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp10Dose\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.Hp10DoseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp07Dose { + get { + try { + return ((double)(this[this.tableLocalVisits.Hp07DoseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp07Dose\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.Hp07DoseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp10Total { + get { + try { + return ((double)(this[this.tableLocalVisits.Hp10TotalColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp10Total\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.Hp10TotalColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp07Total { + get { + try { + return ((double)(this[this.tableLocalVisits.Hp07TotalColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp07Total\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.Hp07TotalColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp10Peak { + get { + try { + return ((double)(this[this.tableLocalVisits.Hp10PeakColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp10Peak\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.Hp10PeakColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp07Peak { + get { + try { + return ((double)(this[this.tableLocalVisits.Hp07PeakColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp07Peak\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.Hp07PeakColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime Hp10Time { + get { + try { + return ((global::System.DateTime)(this[this.tableLocalVisits.Hp10TimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp10Time\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.Hp10TimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime Hp07Time { + get { + try { + return ((global::System.DateTime)(this[this.tableLocalVisits.Hp07TimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp07Time\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.Hp07TimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ID_EPD { + get { + try { + return ((int)(this[this.tableLocalVisits.ID_EPDColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ID_EPD\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.ID_EPDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int QualityData { + get { + try { + return ((int)(this[this.tableLocalVisits.QualityDataColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'QualityData\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.QualityDataColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K1 { + get { + try { + return ((int)(this[this.tableLocalVisits.K1Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K1\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.K1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K2 { + get { + try { + return ((int)(this[this.tableLocalVisits.K2Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K2\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.K2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K3 { + get { + try { + return ((int)(this[this.tableLocalVisits.K3Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K3\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.K3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K4 { + get { + try { + return ((int)(this[this.tableLocalVisits.K4Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K4\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.K4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K5 { + get { + try { + return ((int)(this[this.tableLocalVisits.K5Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K5\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.K5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K6 { + get { + try { + return ((int)(this[this.tableLocalVisits.K6Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K6\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.K6Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int SG { + get { + try { + return ((int)(this[this.tableLocalVisits.SGColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'SG\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.SGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int BC { + get { + try { + return ((int)(this[this.tableLocalVisits.BCColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'BC\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.BCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int FB { + get { + try { + return ((int)(this[this.tableLocalVisits.FBColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FB\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.FBColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int HG { + get { + try { + return ((int)(this[this.tableLocalVisits.HGColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'HG\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.HGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int alarmStatus { + get { + try { + return ((int)(this[this.tableLocalVisits.alarmStatusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'alarmStatus\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.alarmStatusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int otherAlarms { + get { + try { + return ((int)(this[this.tableLocalVisits.otherAlarmsColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'otherAlarms\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.otherAlarmsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int errorStatus { + get { + try { + return ((int)(this[this.tableLocalVisits.errorStatusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'errorStatus\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.errorStatusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int operatingStatus { + get { + try { + return ((int)(this[this.tableLocalVisits.operatingStatusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'operatingStatus\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.operatingStatusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isBG { + get { + try { + return ((bool)(this[this.tableLocalVisits.isBGColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'isBG\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.isBGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isComplete { + get { + return ((bool)(this[this.tableLocalVisits.isCompleteColumn])); + } + set { + this[this.tableLocalVisits.isCompleteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isDeleted { + get { + return ((bool)(this[this.tableLocalVisits.isDeletedColumn])); + } + set { + this[this.tableLocalVisits.isDeletedColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isAlarm { + get { + return ((bool)(this[this.tableLocalVisits.isAlarmColumn])); + } + set { + this[this.tableLocalVisits.isAlarmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isAlarmCleared { + get { + return ((bool)(this[this.tableLocalVisits.isAlarmClearedColumn])); + } + set { + this[this.tableLocalVisits.isAlarmClearedColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isManualExit { + get { + return ((bool)(this[this.tableLocalVisits.isManualExitColumn])); + } + set { + this[this.tableLocalVisits.isManualExitColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ID_Station_Return { + get { + try { + return ((int)(this[this.tableLocalVisits.ID_Station_ReturnColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ID_Station_Return\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.ID_Station_ReturnColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal ENTRY_EPD_CLOCK { + get { + try { + return ((decimal)(this[this.tableLocalVisits.ENTRY_EPD_CLOCKColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ENTRY_EPD_CLOCK\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.ENTRY_EPD_CLOCKColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal EXIT_EPD_CLOCK { + get { + try { + return ((decimal)(this[this.tableLocalVisits.EXIT_EPD_CLOCKColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'EXIT_EPD_CLOCK\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.EXIT_EPD_CLOCKColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int TIME_LOST { + get { + try { + return ((int)(this[this.tableLocalVisits.TIME_LOSTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TIME_LOST\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.TIME_LOSTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public byte VisitStatus { + get { + try { + return ((byte)(this[this.tableLocalVisits.VisitStatusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'VisitStatus\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.VisitStatusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool syncedEntry { + get { + return ((bool)(this[this.tableLocalVisits.syncedEntryColumn])); + } + set { + this[this.tableLocalVisits.syncedEntryColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool syncedExit { + get { + return ((bool)(this[this.tableLocalVisits.syncedExitColumn])); + } + set { + this[this.tableLocalVisits.syncedExitColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public byte epdType { + get { + try { + return ((byte)(this[this.tableLocalVisits.epdTypeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'epdType\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.epdTypeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int epdID { + get { + try { + return ((int)(this[this.tableLocalVisits.epdIDColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'epdID\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.epdIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosBatteryWarning { + get { + try { + return ((bool)(this[this.tableLocalVisits.eDosBatteryWarningColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosBatteryWarning\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.eDosBatteryWarningColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosDose07Warning { + get { + try { + return ((bool)(this[this.tableLocalVisits.eDosDose07WarningColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosDose07Warning\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.eDosDose07WarningColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosDose07Alarm { + get { + try { + return ((bool)(this[this.tableLocalVisits.eDosDose07AlarmColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosDose07Alarm\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.eDosDose07AlarmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosRate07Warning { + get { + try { + return ((bool)(this[this.tableLocalVisits.eDosRate07WarningColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosRate07Warning\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.eDosRate07WarningColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosRate07Alarm { + get { + try { + return ((bool)(this[this.tableLocalVisits.eDosRate07AlarmColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosRate07Alarm\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.eDosRate07AlarmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosDose10Warning { + get { + try { + return ((bool)(this[this.tableLocalVisits.eDosDose10WarningColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosDose10Warning\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.eDosDose10WarningColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosDose10Alarm { + get { + try { + return ((bool)(this[this.tableLocalVisits.eDosDose10AlarmColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosDose10Alarm\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.eDosDose10AlarmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosRate10Warning { + get { + try { + return ((bool)(this[this.tableLocalVisits.eDosRate10WarningColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosRate10Warning\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.eDosRate10WarningColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosRate10Alarm { + get { + try { + return ((bool)(this[this.tableLocalVisits.eDosRate10AlarmColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosRate10Alarm\' in table \'LocalVisits\' is DBNull.", e); + } + } + set { + this[this.tableLocalVisits.eDosRate10AlarmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsPersIDNull() { + return this.IsNull(this.tableLocalVisits.PersIDColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetPersIDNull() { + this[this.tableLocalVisits.PersIDColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsID_TaskNull() { + return this.IsNull(this.tableLocalVisits.ID_TaskColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetID_TaskNull() { + this[this.tableLocalVisits.ID_TaskColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEntryTimeNull() { + return this.IsNull(this.tableLocalVisits.EntryTimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEntryTimeNull() { + this[this.tableLocalVisits.EntryTimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsReturnTimeNull() { + return this.IsNull(this.tableLocalVisits.ReturnTimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetReturnTimeNull() { + this[this.tableLocalVisits.ReturnTimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp10DoseNull() { + return this.IsNull(this.tableLocalVisits.Hp10DoseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp10DoseNull() { + this[this.tableLocalVisits.Hp10DoseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp07DoseNull() { + return this.IsNull(this.tableLocalVisits.Hp07DoseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp07DoseNull() { + this[this.tableLocalVisits.Hp07DoseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp10TotalNull() { + return this.IsNull(this.tableLocalVisits.Hp10TotalColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp10TotalNull() { + this[this.tableLocalVisits.Hp10TotalColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp07TotalNull() { + return this.IsNull(this.tableLocalVisits.Hp07TotalColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp07TotalNull() { + this[this.tableLocalVisits.Hp07TotalColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp10PeakNull() { + return this.IsNull(this.tableLocalVisits.Hp10PeakColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp10PeakNull() { + this[this.tableLocalVisits.Hp10PeakColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp07PeakNull() { + return this.IsNull(this.tableLocalVisits.Hp07PeakColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp07PeakNull() { + this[this.tableLocalVisits.Hp07PeakColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp10TimeNull() { + return this.IsNull(this.tableLocalVisits.Hp10TimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp10TimeNull() { + this[this.tableLocalVisits.Hp10TimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp07TimeNull() { + return this.IsNull(this.tableLocalVisits.Hp07TimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp07TimeNull() { + this[this.tableLocalVisits.Hp07TimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsID_EPDNull() { + return this.IsNull(this.tableLocalVisits.ID_EPDColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetID_EPDNull() { + this[this.tableLocalVisits.ID_EPDColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsQualityDataNull() { + return this.IsNull(this.tableLocalVisits.QualityDataColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetQualityDataNull() { + this[this.tableLocalVisits.QualityDataColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK1Null() { + return this.IsNull(this.tableLocalVisits.K1Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK1Null() { + this[this.tableLocalVisits.K1Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK2Null() { + return this.IsNull(this.tableLocalVisits.K2Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK2Null() { + this[this.tableLocalVisits.K2Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK3Null() { + return this.IsNull(this.tableLocalVisits.K3Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK3Null() { + this[this.tableLocalVisits.K3Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK4Null() { + return this.IsNull(this.tableLocalVisits.K4Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK4Null() { + this[this.tableLocalVisits.K4Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK5Null() { + return this.IsNull(this.tableLocalVisits.K5Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK5Null() { + this[this.tableLocalVisits.K5Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK6Null() { + return this.IsNull(this.tableLocalVisits.K6Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK6Null() { + this[this.tableLocalVisits.K6Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsSGNull() { + return this.IsNull(this.tableLocalVisits.SGColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetSGNull() { + this[this.tableLocalVisits.SGColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsBCNull() { + return this.IsNull(this.tableLocalVisits.BCColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetBCNull() { + this[this.tableLocalVisits.BCColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsFBNull() { + return this.IsNull(this.tableLocalVisits.FBColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetFBNull() { + this[this.tableLocalVisits.FBColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHGNull() { + return this.IsNull(this.tableLocalVisits.HGColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHGNull() { + this[this.tableLocalVisits.HGColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsalarmStatusNull() { + return this.IsNull(this.tableLocalVisits.alarmStatusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetalarmStatusNull() { + this[this.tableLocalVisits.alarmStatusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsotherAlarmsNull() { + return this.IsNull(this.tableLocalVisits.otherAlarmsColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetotherAlarmsNull() { + this[this.tableLocalVisits.otherAlarmsColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IserrorStatusNull() { + return this.IsNull(this.tableLocalVisits.errorStatusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeterrorStatusNull() { + this[this.tableLocalVisits.errorStatusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsoperatingStatusNull() { + return this.IsNull(this.tableLocalVisits.operatingStatusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetoperatingStatusNull() { + this[this.tableLocalVisits.operatingStatusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsisBGNull() { + return this.IsNull(this.tableLocalVisits.isBGColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetisBGNull() { + this[this.tableLocalVisits.isBGColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsID_Station_ReturnNull() { + return this.IsNull(this.tableLocalVisits.ID_Station_ReturnColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetID_Station_ReturnNull() { + this[this.tableLocalVisits.ID_Station_ReturnColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsENTRY_EPD_CLOCKNull() { + return this.IsNull(this.tableLocalVisits.ENTRY_EPD_CLOCKColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetENTRY_EPD_CLOCKNull() { + this[this.tableLocalVisits.ENTRY_EPD_CLOCKColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEXIT_EPD_CLOCKNull() { + return this.IsNull(this.tableLocalVisits.EXIT_EPD_CLOCKColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEXIT_EPD_CLOCKNull() { + this[this.tableLocalVisits.EXIT_EPD_CLOCKColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsTIME_LOSTNull() { + return this.IsNull(this.tableLocalVisits.TIME_LOSTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTIME_LOSTNull() { + this[this.tableLocalVisits.TIME_LOSTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsVisitStatusNull() { + return this.IsNull(this.tableLocalVisits.VisitStatusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetVisitStatusNull() { + this[this.tableLocalVisits.VisitStatusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsepdTypeNull() { + return this.IsNull(this.tableLocalVisits.epdTypeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetepdTypeNull() { + this[this.tableLocalVisits.epdTypeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsepdIDNull() { + return this.IsNull(this.tableLocalVisits.epdIDColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetepdIDNull() { + this[this.tableLocalVisits.epdIDColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosBatteryWarningNull() { + return this.IsNull(this.tableLocalVisits.eDosBatteryWarningColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosBatteryWarningNull() { + this[this.tableLocalVisits.eDosBatteryWarningColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosDose07WarningNull() { + return this.IsNull(this.tableLocalVisits.eDosDose07WarningColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosDose07WarningNull() { + this[this.tableLocalVisits.eDosDose07WarningColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosDose07AlarmNull() { + return this.IsNull(this.tableLocalVisits.eDosDose07AlarmColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosDose07AlarmNull() { + this[this.tableLocalVisits.eDosDose07AlarmColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosRate07WarningNull() { + return this.IsNull(this.tableLocalVisits.eDosRate07WarningColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosRate07WarningNull() { + this[this.tableLocalVisits.eDosRate07WarningColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosRate07AlarmNull() { + return this.IsNull(this.tableLocalVisits.eDosRate07AlarmColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosRate07AlarmNull() { + this[this.tableLocalVisits.eDosRate07AlarmColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosDose10WarningNull() { + return this.IsNull(this.tableLocalVisits.eDosDose10WarningColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosDose10WarningNull() { + this[this.tableLocalVisits.eDosDose10WarningColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosDose10AlarmNull() { + return this.IsNull(this.tableLocalVisits.eDosDose10AlarmColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosDose10AlarmNull() { + this[this.tableLocalVisits.eDosDose10AlarmColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosRate10WarningNull() { + return this.IsNull(this.tableLocalVisits.eDosRate10WarningColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosRate10WarningNull() { + this[this.tableLocalVisits.eDosRate10WarningColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosRate10AlarmNull() { + return this.IsNull(this.tableLocalVisits.eDosRate10AlarmColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosRate10AlarmNull() { + this[this.tableLocalVisits.eDosRate10AlarmColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class CentralVisitsRow : global::System.Data.DataRow { + + private CentralVisitsDataTable tableCentralVisits; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal CentralVisitsRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableCentralVisits = ((CentralVisitsDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ID_Station { + get { + return ((int)(this[this.tableCentralVisits.ID_StationColumn])); + } + set { + this[this.tableCentralVisits.ID_StationColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ID_Visit { + get { + return ((int)(this[this.tableCentralVisits.ID_VisitColumn])); + } + set { + this[this.tableCentralVisits.ID_VisitColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int Inst_CODE { + get { + return ((int)(this[this.tableCentralVisits.Inst_CODEColumn])); + } + set { + this[this.tableCentralVisits.Inst_CODEColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int PersID { + get { + try { + return ((int)(this[this.tableCentralVisits.PersIDColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PersID\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.PersIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ID_Task { + get { + try { + return ((int)(this[this.tableCentralVisits.ID_TaskColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ID_Task\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.ID_TaskColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime EntryTime { + get { + try { + return ((global::System.DateTime)(this[this.tableCentralVisits.EntryTimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'EntryTime\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.EntryTimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime ReturnTime { + get { + try { + return ((global::System.DateTime)(this[this.tableCentralVisits.ReturnTimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ReturnTime\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.ReturnTimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp10Dose { + get { + try { + return ((double)(this[this.tableCentralVisits.Hp10DoseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp10Dose\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.Hp10DoseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp07Dose { + get { + try { + return ((double)(this[this.tableCentralVisits.Hp07DoseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp07Dose\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.Hp07DoseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp10Total { + get { + try { + return ((double)(this[this.tableCentralVisits.Hp10TotalColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp10Total\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.Hp10TotalColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp07Total { + get { + try { + return ((double)(this[this.tableCentralVisits.Hp07TotalColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp07Total\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.Hp07TotalColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp10Peak { + get { + try { + return ((double)(this[this.tableCentralVisits.Hp10PeakColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp10Peak\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.Hp10PeakColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public double Hp07Peak { + get { + try { + return ((double)(this[this.tableCentralVisits.Hp07PeakColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp07Peak\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.Hp07PeakColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime Hp10Time { + get { + try { + return ((global::System.DateTime)(this[this.tableCentralVisits.Hp10TimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp10Time\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.Hp10TimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime Hp07Time { + get { + try { + return ((global::System.DateTime)(this[this.tableCentralVisits.Hp07TimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Hp07Time\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.Hp07TimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ID_EPD { + get { + try { + return ((int)(this[this.tableCentralVisits.ID_EPDColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ID_EPD\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.ID_EPDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int QualityData { + get { + try { + return ((int)(this[this.tableCentralVisits.QualityDataColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'QualityData\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.QualityDataColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K1 { + get { + try { + return ((int)(this[this.tableCentralVisits.K1Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K1\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.K1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K2 { + get { + try { + return ((int)(this[this.tableCentralVisits.K2Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K2\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.K2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K3 { + get { + try { + return ((int)(this[this.tableCentralVisits.K3Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K3\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.K3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K4 { + get { + try { + return ((int)(this[this.tableCentralVisits.K4Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K4\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.K4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K5 { + get { + try { + return ((int)(this[this.tableCentralVisits.K5Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K5\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.K5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int K6 { + get { + try { + return ((int)(this[this.tableCentralVisits.K6Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'K6\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.K6Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int SG { + get { + try { + return ((int)(this[this.tableCentralVisits.SGColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'SG\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.SGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int BC { + get { + try { + return ((int)(this[this.tableCentralVisits.BCColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'BC\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.BCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int FB { + get { + try { + return ((int)(this[this.tableCentralVisits.FBColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FB\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.FBColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int HG { + get { + try { + return ((int)(this[this.tableCentralVisits.HGColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'HG\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.HGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int alarmStatus { + get { + try { + return ((int)(this[this.tableCentralVisits.alarmStatusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'alarmStatus\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.alarmStatusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int otherAlarms { + get { + try { + return ((int)(this[this.tableCentralVisits.otherAlarmsColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'otherAlarms\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.otherAlarmsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int errorStatus { + get { + try { + return ((int)(this[this.tableCentralVisits.errorStatusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'errorStatus\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.errorStatusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int operatingStatus { + get { + try { + return ((int)(this[this.tableCentralVisits.operatingStatusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'operatingStatus\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.operatingStatusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isBG { + get { + try { + return ((bool)(this[this.tableCentralVisits.isBGColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'isBG\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.isBGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isComplete { + get { + return ((bool)(this[this.tableCentralVisits.isCompleteColumn])); + } + set { + this[this.tableCentralVisits.isCompleteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isDeleted { + get { + return ((bool)(this[this.tableCentralVisits.isDeletedColumn])); + } + set { + this[this.tableCentralVisits.isDeletedColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isAlarm { + get { + return ((bool)(this[this.tableCentralVisits.isAlarmColumn])); + } + set { + this[this.tableCentralVisits.isAlarmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isAlarmCleared { + get { + return ((bool)(this[this.tableCentralVisits.isAlarmClearedColumn])); + } + set { + this[this.tableCentralVisits.isAlarmClearedColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool isManualExit { + get { + return ((bool)(this[this.tableCentralVisits.isManualExitColumn])); + } + set { + this[this.tableCentralVisits.isManualExitColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int ID_Station_Return { + get { + try { + return ((int)(this[this.tableCentralVisits.ID_Station_ReturnColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ID_Station_Return\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.ID_Station_ReturnColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal ENTRY_EPD_CLOCK { + get { + try { + return ((decimal)(this[this.tableCentralVisits.ENTRY_EPD_CLOCKColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ENTRY_EPD_CLOCK\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.ENTRY_EPD_CLOCKColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal EXIT_EPD_CLOCK { + get { + try { + return ((decimal)(this[this.tableCentralVisits.EXIT_EPD_CLOCKColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'EXIT_EPD_CLOCK\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.EXIT_EPD_CLOCKColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int TIME_LOST { + get { + try { + return ((int)(this[this.tableCentralVisits.TIME_LOSTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TIME_LOST\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.TIME_LOSTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public byte VisitStatus { + get { + try { + return ((byte)(this[this.tableCentralVisits.VisitStatusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'VisitStatus\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.VisitStatusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool syncedEntry { + get { + try { + return ((bool)(this[this.tableCentralVisits.syncedEntryColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'syncedEntry\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.syncedEntryColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool syncedExit { + get { + try { + return ((bool)(this[this.tableCentralVisits.syncedExitColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'syncedExit\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.syncedExitColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public byte epdType { + get { + try { + return ((byte)(this[this.tableCentralVisits.epdTypeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'epdType\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.epdTypeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosBatteryWarning { + get { + try { + return ((bool)(this[this.tableCentralVisits.eDosBatteryWarningColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosBatteryWarning\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.eDosBatteryWarningColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosDose07Warning { + get { + try { + return ((bool)(this[this.tableCentralVisits.eDosDose07WarningColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosDose07Warning\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.eDosDose07WarningColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosDose07Alarm { + get { + try { + return ((bool)(this[this.tableCentralVisits.eDosDose07AlarmColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosDose07Alarm\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.eDosDose07AlarmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosRate07Warning { + get { + try { + return ((bool)(this[this.tableCentralVisits.eDosRate07WarningColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosRate07Warning\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.eDosRate07WarningColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosRate07Alarm { + get { + try { + return ((bool)(this[this.tableCentralVisits.eDosRate07AlarmColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosRate07Alarm\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.eDosRate07AlarmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosDose10Warning { + get { + try { + return ((bool)(this[this.tableCentralVisits.eDosDose10WarningColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosDose10Warning\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.eDosDose10WarningColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosDose10Alarm { + get { + try { + return ((bool)(this[this.tableCentralVisits.eDosDose10AlarmColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosDose10Alarm\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.eDosDose10AlarmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosRate10Warning { + get { + try { + return ((bool)(this[this.tableCentralVisits.eDosRate10WarningColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosRate10Warning\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.eDosRate10WarningColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool eDosRate10Alarm { + get { + try { + return ((bool)(this[this.tableCentralVisits.eDosRate10AlarmColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'eDosRate10Alarm\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.eDosRate10AlarmColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int epdID { + get { + try { + return ((int)(this[this.tableCentralVisits.epdIDColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'epdID\' in table \'CentralVisits\' is DBNull.", e); + } + } + set { + this[this.tableCentralVisits.epdIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsPersIDNull() { + return this.IsNull(this.tableCentralVisits.PersIDColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetPersIDNull() { + this[this.tableCentralVisits.PersIDColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsID_TaskNull() { + return this.IsNull(this.tableCentralVisits.ID_TaskColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetID_TaskNull() { + this[this.tableCentralVisits.ID_TaskColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEntryTimeNull() { + return this.IsNull(this.tableCentralVisits.EntryTimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEntryTimeNull() { + this[this.tableCentralVisits.EntryTimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsReturnTimeNull() { + return this.IsNull(this.tableCentralVisits.ReturnTimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetReturnTimeNull() { + this[this.tableCentralVisits.ReturnTimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp10DoseNull() { + return this.IsNull(this.tableCentralVisits.Hp10DoseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp10DoseNull() { + this[this.tableCentralVisits.Hp10DoseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp07DoseNull() { + return this.IsNull(this.tableCentralVisits.Hp07DoseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp07DoseNull() { + this[this.tableCentralVisits.Hp07DoseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp10TotalNull() { + return this.IsNull(this.tableCentralVisits.Hp10TotalColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp10TotalNull() { + this[this.tableCentralVisits.Hp10TotalColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp07TotalNull() { + return this.IsNull(this.tableCentralVisits.Hp07TotalColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp07TotalNull() { + this[this.tableCentralVisits.Hp07TotalColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp10PeakNull() { + return this.IsNull(this.tableCentralVisits.Hp10PeakColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp10PeakNull() { + this[this.tableCentralVisits.Hp10PeakColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp07PeakNull() { + return this.IsNull(this.tableCentralVisits.Hp07PeakColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp07PeakNull() { + this[this.tableCentralVisits.Hp07PeakColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp10TimeNull() { + return this.IsNull(this.tableCentralVisits.Hp10TimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp10TimeNull() { + this[this.tableCentralVisits.Hp10TimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHp07TimeNull() { + return this.IsNull(this.tableCentralVisits.Hp07TimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHp07TimeNull() { + this[this.tableCentralVisits.Hp07TimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsID_EPDNull() { + return this.IsNull(this.tableCentralVisits.ID_EPDColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetID_EPDNull() { + this[this.tableCentralVisits.ID_EPDColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsQualityDataNull() { + return this.IsNull(this.tableCentralVisits.QualityDataColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetQualityDataNull() { + this[this.tableCentralVisits.QualityDataColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK1Null() { + return this.IsNull(this.tableCentralVisits.K1Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK1Null() { + this[this.tableCentralVisits.K1Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK2Null() { + return this.IsNull(this.tableCentralVisits.K2Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK2Null() { + this[this.tableCentralVisits.K2Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK3Null() { + return this.IsNull(this.tableCentralVisits.K3Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK3Null() { + this[this.tableCentralVisits.K3Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK4Null() { + return this.IsNull(this.tableCentralVisits.K4Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK4Null() { + this[this.tableCentralVisits.K4Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK5Null() { + return this.IsNull(this.tableCentralVisits.K5Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK5Null() { + this[this.tableCentralVisits.K5Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsK6Null() { + return this.IsNull(this.tableCentralVisits.K6Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetK6Null() { + this[this.tableCentralVisits.K6Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsSGNull() { + return this.IsNull(this.tableCentralVisits.SGColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetSGNull() { + this[this.tableCentralVisits.SGColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsBCNull() { + return this.IsNull(this.tableCentralVisits.BCColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetBCNull() { + this[this.tableCentralVisits.BCColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsFBNull() { + return this.IsNull(this.tableCentralVisits.FBColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetFBNull() { + this[this.tableCentralVisits.FBColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsHGNull() { + return this.IsNull(this.tableCentralVisits.HGColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetHGNull() { + this[this.tableCentralVisits.HGColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsalarmStatusNull() { + return this.IsNull(this.tableCentralVisits.alarmStatusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetalarmStatusNull() { + this[this.tableCentralVisits.alarmStatusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsotherAlarmsNull() { + return this.IsNull(this.tableCentralVisits.otherAlarmsColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetotherAlarmsNull() { + this[this.tableCentralVisits.otherAlarmsColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IserrorStatusNull() { + return this.IsNull(this.tableCentralVisits.errorStatusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeterrorStatusNull() { + this[this.tableCentralVisits.errorStatusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsoperatingStatusNull() { + return this.IsNull(this.tableCentralVisits.operatingStatusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetoperatingStatusNull() { + this[this.tableCentralVisits.operatingStatusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsisBGNull() { + return this.IsNull(this.tableCentralVisits.isBGColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetisBGNull() { + this[this.tableCentralVisits.isBGColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsID_Station_ReturnNull() { + return this.IsNull(this.tableCentralVisits.ID_Station_ReturnColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetID_Station_ReturnNull() { + this[this.tableCentralVisits.ID_Station_ReturnColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsENTRY_EPD_CLOCKNull() { + return this.IsNull(this.tableCentralVisits.ENTRY_EPD_CLOCKColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetENTRY_EPD_CLOCKNull() { + this[this.tableCentralVisits.ENTRY_EPD_CLOCKColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsEXIT_EPD_CLOCKNull() { + return this.IsNull(this.tableCentralVisits.EXIT_EPD_CLOCKColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetEXIT_EPD_CLOCKNull() { + this[this.tableCentralVisits.EXIT_EPD_CLOCKColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsTIME_LOSTNull() { + return this.IsNull(this.tableCentralVisits.TIME_LOSTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTIME_LOSTNull() { + this[this.tableCentralVisits.TIME_LOSTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsVisitStatusNull() { + return this.IsNull(this.tableCentralVisits.VisitStatusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetVisitStatusNull() { + this[this.tableCentralVisits.VisitStatusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IssyncedEntryNull() { + return this.IsNull(this.tableCentralVisits.syncedEntryColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetsyncedEntryNull() { + this[this.tableCentralVisits.syncedEntryColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IssyncedExitNull() { + return this.IsNull(this.tableCentralVisits.syncedExitColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetsyncedExitNull() { + this[this.tableCentralVisits.syncedExitColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsepdTypeNull() { + return this.IsNull(this.tableCentralVisits.epdTypeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetepdTypeNull() { + this[this.tableCentralVisits.epdTypeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosBatteryWarningNull() { + return this.IsNull(this.tableCentralVisits.eDosBatteryWarningColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosBatteryWarningNull() { + this[this.tableCentralVisits.eDosBatteryWarningColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosDose07WarningNull() { + return this.IsNull(this.tableCentralVisits.eDosDose07WarningColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosDose07WarningNull() { + this[this.tableCentralVisits.eDosDose07WarningColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosDose07AlarmNull() { + return this.IsNull(this.tableCentralVisits.eDosDose07AlarmColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosDose07AlarmNull() { + this[this.tableCentralVisits.eDosDose07AlarmColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosRate07WarningNull() { + return this.IsNull(this.tableCentralVisits.eDosRate07WarningColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosRate07WarningNull() { + this[this.tableCentralVisits.eDosRate07WarningColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosRate07AlarmNull() { + return this.IsNull(this.tableCentralVisits.eDosRate07AlarmColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosRate07AlarmNull() { + this[this.tableCentralVisits.eDosRate07AlarmColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosDose10WarningNull() { + return this.IsNull(this.tableCentralVisits.eDosDose10WarningColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosDose10WarningNull() { + this[this.tableCentralVisits.eDosDose10WarningColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosDose10AlarmNull() { + return this.IsNull(this.tableCentralVisits.eDosDose10AlarmColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosDose10AlarmNull() { + this[this.tableCentralVisits.eDosDose10AlarmColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosRate10WarningNull() { + return this.IsNull(this.tableCentralVisits.eDosRate10WarningColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosRate10WarningNull() { + this[this.tableCentralVisits.eDosRate10WarningColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IseDosRate10AlarmNull() { + return this.IsNull(this.tableCentralVisits.eDosRate10AlarmColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SeteDosRate10AlarmNull() { + this[this.tableCentralVisits.eDosRate10AlarmColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsepdIDNull() { + return this.IsNull(this.tableCentralVisits.epdIDColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetepdIDNull() { + this[this.tableCentralVisits.epdIDColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class LocalVisitsRowChangeEvent : global::System.EventArgs { + + private LocalVisitsRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public LocalVisitsRowChangeEvent(LocalVisitsRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public LocalVisitsRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class CentralVisitsRowChangeEvent : global::System.EventArgs { + + private CentralVisitsRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CentralVisitsRowChangeEvent(CentralVisitsRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CentralVisitsRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace syncEdosLocal.DataSet1TableAdapters { + + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class LocalVisitsTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public LocalVisitsTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "LocalVisits"; + tableMapping.ColumnMappings.Add("ID_Station", "ID_Station"); + tableMapping.ColumnMappings.Add("ID_Visit", "ID_Visit"); + tableMapping.ColumnMappings.Add("Inst_CODE", "Inst_CODE"); + tableMapping.ColumnMappings.Add("PersID", "PersID"); + tableMapping.ColumnMappings.Add("ID_Task", "ID_Task"); + tableMapping.ColumnMappings.Add("EntryTime", "EntryTime"); + tableMapping.ColumnMappings.Add("ReturnTime", "ReturnTime"); + tableMapping.ColumnMappings.Add("Hp10Dose", "Hp10Dose"); + tableMapping.ColumnMappings.Add("Hp07Dose", "Hp07Dose"); + tableMapping.ColumnMappings.Add("Hp10Total", "Hp10Total"); + tableMapping.ColumnMappings.Add("Hp07Total", "Hp07Total"); + tableMapping.ColumnMappings.Add("Hp10Peak", "Hp10Peak"); + tableMapping.ColumnMappings.Add("Hp07Peak", "Hp07Peak"); + tableMapping.ColumnMappings.Add("Hp10Time", "Hp10Time"); + tableMapping.ColumnMappings.Add("Hp07Time", "Hp07Time"); + tableMapping.ColumnMappings.Add("ID_EPD", "ID_EPD"); + tableMapping.ColumnMappings.Add("QualityData", "QualityData"); + tableMapping.ColumnMappings.Add("K1", "K1"); + tableMapping.ColumnMappings.Add("K2", "K2"); + tableMapping.ColumnMappings.Add("K3", "K3"); + tableMapping.ColumnMappings.Add("K4", "K4"); + tableMapping.ColumnMappings.Add("K5", "K5"); + tableMapping.ColumnMappings.Add("K6", "K6"); + tableMapping.ColumnMappings.Add("SG", "SG"); + tableMapping.ColumnMappings.Add("BC", "BC"); + tableMapping.ColumnMappings.Add("FB", "FB"); + tableMapping.ColumnMappings.Add("HG", "HG"); + tableMapping.ColumnMappings.Add("alarmStatus", "alarmStatus"); + tableMapping.ColumnMappings.Add("otherAlarms", "otherAlarms"); + tableMapping.ColumnMappings.Add("errorStatus", "errorStatus"); + tableMapping.ColumnMappings.Add("operatingStatus", "operatingStatus"); + tableMapping.ColumnMappings.Add("isBG", "isBG"); + tableMapping.ColumnMappings.Add("isComplete", "isComplete"); + tableMapping.ColumnMappings.Add("isDeleted", "isDeleted"); + tableMapping.ColumnMappings.Add("isAlarm", "isAlarm"); + tableMapping.ColumnMappings.Add("isAlarmCleared", "isAlarmCleared"); + tableMapping.ColumnMappings.Add("isManualExit", "isManualExit"); + tableMapping.ColumnMappings.Add("ID_Station_Return", "ID_Station_Return"); + tableMapping.ColumnMappings.Add("ENTRY_EPD_CLOCK", "ENTRY_EPD_CLOCK"); + tableMapping.ColumnMappings.Add("EXIT_EPD_CLOCK", "EXIT_EPD_CLOCK"); + tableMapping.ColumnMappings.Add("TIME_LOST", "TIME_LOST"); + tableMapping.ColumnMappings.Add("VisitStatus", "VisitStatus"); + tableMapping.ColumnMappings.Add("syncedEntry", "syncedEntry"); + tableMapping.ColumnMappings.Add("SyncedExit", "syncedExit"); + tableMapping.ColumnMappings.Add("syncedExit", "syncedExit"); + tableMapping.ColumnMappings.Add("epdType", "epdType"); + tableMapping.ColumnMappings.Add("eDosBatteryWarning", "eDosBatteryWarning"); + tableMapping.ColumnMappings.Add("eDosDose07Warning", "eDosDose07Warning"); + tableMapping.ColumnMappings.Add("eDosDose07Alarm", "eDosDose07Alarm"); + tableMapping.ColumnMappings.Add("eDosRate07Warning", "eDosRate07Warning"); + tableMapping.ColumnMappings.Add("eDosRate07Alarm", "eDosRate07Alarm"); + tableMapping.ColumnMappings.Add("eDosDose10Warning", "eDosDose10Warning"); + tableMapping.ColumnMappings.Add("eDosDose10Alarm", "eDosDose10Alarm"); + tableMapping.ColumnMappings.Add("eDosRate10Warning", "eDosRate10Warning"); + tableMapping.ColumnMappings.Add("eDosRate10Alarm", "eDosRate10Alarm"); + tableMapping.ColumnMappings.Add("epdID", "epdID"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = "export.VisitsUpdate"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.StoredProcedure; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Station", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Visit", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Visit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@syncedEntry", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "syncedEntry", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@syncedExit", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "syncedExit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::syncEdosLocal.Properties.Settings.Default.eDosLocalConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "export.VisitsSelect"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DataSet1.LocalVisitsDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DataSet1.LocalVisitsDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DataSet1.LocalVisitsDataTable dataTable = new DataSet1.LocalVisitsDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DataSet1.LocalVisitsDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DataSet1 dataSet) { + return this.Adapter.Update(dataSet, "LocalVisits"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class CentralVisitsTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public CentralVisitsTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "CentralVisits"; + tableMapping.ColumnMappings.Add("ID_Station", "ID_Station"); + tableMapping.ColumnMappings.Add("ID_Visit", "ID_Visit"); + tableMapping.ColumnMappings.Add("Inst_CODE", "Inst_CODE"); + tableMapping.ColumnMappings.Add("PersID", "PersID"); + tableMapping.ColumnMappings.Add("ID_Task", "ID_Task"); + tableMapping.ColumnMappings.Add("EntryTime", "EntryTime"); + tableMapping.ColumnMappings.Add("ReturnTime", "ReturnTime"); + tableMapping.ColumnMappings.Add("Hp10Dose", "Hp10Dose"); + tableMapping.ColumnMappings.Add("Hp07Dose", "Hp07Dose"); + tableMapping.ColumnMappings.Add("Hp10Total", "Hp10Total"); + tableMapping.ColumnMappings.Add("Hp07Total", "Hp07Total"); + tableMapping.ColumnMappings.Add("Hp10Peak", "Hp10Peak"); + tableMapping.ColumnMappings.Add("Hp07Peak", "Hp07Peak"); + tableMapping.ColumnMappings.Add("Hp10Time", "Hp10Time"); + tableMapping.ColumnMappings.Add("Hp07Time", "Hp07Time"); + tableMapping.ColumnMappings.Add("ID_EPD", "ID_EPD"); + tableMapping.ColumnMappings.Add("QualityData", "QualityData"); + tableMapping.ColumnMappings.Add("K1", "K1"); + tableMapping.ColumnMappings.Add("K2", "K2"); + tableMapping.ColumnMappings.Add("K3", "K3"); + tableMapping.ColumnMappings.Add("K4", "K4"); + tableMapping.ColumnMappings.Add("K5", "K5"); + tableMapping.ColumnMappings.Add("K6", "K6"); + tableMapping.ColumnMappings.Add("SG", "SG"); + tableMapping.ColumnMappings.Add("BC", "BC"); + tableMapping.ColumnMappings.Add("FB", "FB"); + tableMapping.ColumnMappings.Add("HG", "HG"); + tableMapping.ColumnMappings.Add("alarmStatus", "alarmStatus"); + tableMapping.ColumnMappings.Add("otherAlarms", "otherAlarms"); + tableMapping.ColumnMappings.Add("errorStatus", "errorStatus"); + tableMapping.ColumnMappings.Add("operatingStatus", "operatingStatus"); + tableMapping.ColumnMappings.Add("isBG", "isBG"); + tableMapping.ColumnMappings.Add("isComplete", "isComplete"); + tableMapping.ColumnMappings.Add("isDeleted", "isDeleted"); + tableMapping.ColumnMappings.Add("isAlarm", "isAlarm"); + tableMapping.ColumnMappings.Add("isAlarmCleared", "isAlarmCleared"); + tableMapping.ColumnMappings.Add("isManualExit", "isManualExit"); + tableMapping.ColumnMappings.Add("ID_Station_Return", "ID_Station_Return"); + tableMapping.ColumnMappings.Add("ENTRY_EPD_CLOCK", "ENTRY_EPD_CLOCK"); + tableMapping.ColumnMappings.Add("EXIT_EPD_CLOCK", "EXIT_EPD_CLOCK"); + tableMapping.ColumnMappings.Add("TIME_LOST", "TIME_LOST"); + tableMapping.ColumnMappings.Add("VisitStatus", "VisitStatus"); + tableMapping.ColumnMappings.Add("syncedEntry", "syncedEntry"); + tableMapping.ColumnMappings.Add("SyncedExit", "syncedExit"); + tableMapping.ColumnMappings.Add("syncedExit", "syncedExit"); + tableMapping.ColumnMappings.Add("epdType", "epdType"); + tableMapping.ColumnMappings.Add("eDosBatteryWarning", "eDosBatteryWarning"); + tableMapping.ColumnMappings.Add("eDosDose07Warning", "eDosDose07Warning"); + tableMapping.ColumnMappings.Add("eDosDose07Alarm", "eDosDose07Alarm"); + tableMapping.ColumnMappings.Add("eDosRate07Warning", "eDosRate07Warning"); + tableMapping.ColumnMappings.Add("eDosRate07Alarm", "eDosRate07Alarm"); + tableMapping.ColumnMappings.Add("eDosDose10Warning", "eDosDose10Warning"); + tableMapping.ColumnMappings.Add("eDosDose10Alarm", "eDosDose10Alarm"); + tableMapping.ColumnMappings.Add("eDosRate10Warning", "eDosRate10Warning"); + tableMapping.ColumnMappings.Add("eDosRate10Alarm", "eDosRate10Alarm"); + tableMapping.ColumnMappings.Add("epdID", "epdID"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "import.VisitsInsert"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.StoredProcedure; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Station", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Visit", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Visit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inst_CODE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "Inst_CODE", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PersID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "PersID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Task", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Task", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EntryTime", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "EntryTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReturnTime", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "ReturnTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Dose", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Dose", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Dose", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Dose", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Total", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Total", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Total", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Total", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Peak", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Peak", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Peak", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Peak", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Time", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "Hp10Time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Time", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "Hp07Time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_EPD", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_EPD", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QualityData", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "QualityData", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K1", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K2", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K3", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K4", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K5", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K6", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K6", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SG", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "SG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BC", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "BC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FB", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "FB", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HG", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "HG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alarmStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "alarmStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otherAlarms", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "otherAlarms", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@errorStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "errorStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@operatingStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "operatingStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isBG", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isBG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isComplete", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isComplete", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isDeleted", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isDeleted", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isAlarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isAlarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isAlarmCleared", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isAlarmCleared", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isManualExit", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isManualExit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station_Return", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Station_Return", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ENTRY_EPD_CLOCK", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 0, "ENTRY_EPD_CLOCK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EXIT_EPD_CLOCK", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 0, "EXIT_EPD_CLOCK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TIME_LOST", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "TIME_LOST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@epdType", global::System.Data.SqlDbType.TinyInt, 1, global::System.Data.ParameterDirection.Input, 3, 0, "epdType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@epdID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "epdID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosBatteryWarning", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosBatteryWarning", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosDose07Warning", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosDose07Warning", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosDose07Alarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosDose07Alarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosRate07Warning", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosRate07Warning", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosRate07Alarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosRate07Alarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosDose10Warning", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosDose10Warning", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosDose10Alarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosDose10Alarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosRate10Warning", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosRate10Warning", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosRate10Alarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosRate10Alarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = "import.VisitsUpdate"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.StoredProcedure; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Station", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Visit", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Visit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inst_CODE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "Inst_CODE", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PersID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "PersID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Task", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Task", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EntryTime", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "EntryTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReturnTime", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "ReturnTime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Dose", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Dose", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Dose", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Dose", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Total", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Total", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Total", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Total", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Peak", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp10Peak", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Peak", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, "Hp07Peak", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp10Time", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "Hp10Time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Hp07Time", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, "Hp07Time", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_EPD", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_EPD", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QualityData", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "QualityData", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K1", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K2", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K3", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K4", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K5", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@K6", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "K6", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SG", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "SG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BC", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "BC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FB", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "FB", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HG", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "HG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alarmStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "alarmStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otherAlarms", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "otherAlarms", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@errorStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "errorStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@operatingStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "operatingStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isBG", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isBG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isComplete", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isComplete", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isDeleted", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isDeleted", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isAlarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isAlarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isAlarmCleared", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isAlarmCleared", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isManualExit", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "isManualExit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station_Return", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "ID_Station_Return", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ENTRY_EPD_CLOCK", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 0, "ENTRY_EPD_CLOCK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EXIT_EPD_CLOCK", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 0, "EXIT_EPD_CLOCK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TIME_LOST", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "TIME_LOST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@epdType", global::System.Data.SqlDbType.TinyInt, 1, global::System.Data.ParameterDirection.Input, 3, 0, "epdType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@epdID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, "epdID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosBatteryWarning", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosBatteryWarning", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosDose07Warning", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosDose07Warning", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosDose07Alarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosDose07Alarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosRate07Warning", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosRate07Warning", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosRate07Alarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosRate07Alarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosDose10Warning", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosDose10Warning", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosDose10Alarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosDose10Alarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosRate10Warning", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosRate10Warning", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@eDosRate10Alarm", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, "eDosRate10Alarm", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::syncEdosLocal.Properties.Settings.Default.eDosConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "import.VisitsSelect"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Station", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Visit", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DataSet1.CentralVisitsDataTable dataTable, global::System.Nullable ID_Station, global::System.Nullable ID_Visit) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((ID_Station.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(ID_Station.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((ID_Visit.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(ID_Visit.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DataSet1.CentralVisitsDataTable GetData(global::System.Nullable ID_Station, global::System.Nullable ID_Visit) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((ID_Station.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(ID_Station.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((ID_Visit.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(ID_Visit.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DataSet1.CentralVisitsDataTable dataTable = new DataSet1.CentralVisitsDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DataSet1.CentralVisitsDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DataSet1 dataSet) { + return this.Adapter.Update(dataSet, "CentralVisits"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + } + + /// + ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + + "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] + public partial class TableAdapterManager : global::System.ComponentModel.Component { + + private UpdateOrderOption _updateOrder; + + private LocalVisitsTableAdapter _localVisitsTableAdapter; + + private CentralVisitsTableAdapter _centralVisitsTableAdapter; + + private bool _backupDataSetBeforeUpdate; + + private global::System.Data.IDbConnection _connection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public UpdateOrderOption UpdateOrder { + get { + return this._updateOrder; + } + set { + this._updateOrder = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public LocalVisitsTableAdapter LocalVisitsTableAdapter { + get { + return this._localVisitsTableAdapter; + } + set { + this._localVisitsTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public CentralVisitsTableAdapter CentralVisitsTableAdapter { + get { + return this._centralVisitsTableAdapter; + } + set { + this._centralVisitsTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool BackupDataSetBeforeUpdate { + get { + return this._backupDataSetBeforeUpdate; + } + set { + this._backupDataSetBeforeUpdate = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public global::System.Data.IDbConnection Connection { + get { + if ((this._connection != null)) { + return this._connection; + } + if (((this._localVisitsTableAdapter != null) + && (this._localVisitsTableAdapter.Connection != null))) { + return this._localVisitsTableAdapter.Connection; + } + if (((this._centralVisitsTableAdapter != null) + && (this._centralVisitsTableAdapter.Connection != null))) { + return this._centralVisitsTableAdapter.Connection; + } + return null; + } + set { + this._connection = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int TableAdapterInstanceCount { + get { + int count = 0; + if ((this._localVisitsTableAdapter != null)) { + count = (count + 1); + } + if ((this._centralVisitsTableAdapter != null)) { + count = (count + 1); + } + return count; + } + } + + /// + ///Update rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private int UpdateUpdatedRows(DataSet1 dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._localVisitsTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.LocalVisits.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._localVisitsTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._centralVisitsTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.CentralVisits.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._centralVisitsTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + return result; + } + + /// + ///Insert rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private int UpdateInsertedRows(DataSet1 dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._localVisitsTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.LocalVisits.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._localVisitsTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._centralVisitsTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.CentralVisits.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._centralVisitsTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + return result; + } + + /// + ///Delete rows in bottom-up order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private int UpdateDeletedRows(DataSet1 dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + if ((this._centralVisitsTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.CentralVisits.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._centralVisitsTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._localVisitsTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.LocalVisits.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._localVisitsTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + return result; + } + + /// + ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) { + if (((updatedRows == null) + || (updatedRows.Length < 1))) { + return updatedRows; + } + if (((allAddedRows == null) + || (allAddedRows.Count < 1))) { + return updatedRows; + } + global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List(); + for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { + global::System.Data.DataRow row = updatedRows[i]; + if ((allAddedRows.Contains(row) == false)) { + realUpdatedRows.Add(row); + } + } + return realUpdatedRows.ToArray(); + } + + /// + ///Update all changes to the dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public virtual int UpdateAll(DataSet1 dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + if (((this._localVisitsTableAdapter != null) + && (this.MatchTableAdapterConnection(this._localVisitsTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._centralVisitsTableAdapter != null) + && (this.MatchTableAdapterConnection(this._centralVisitsTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + global::System.Data.IDbConnection workConnection = this.Connection; + if ((workConnection == null)) { + throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + + "ger TableAdapter property to a valid TableAdapter instance."); + } + bool workConnOpened = false; + if (((workConnection.State & global::System.Data.ConnectionState.Broken) + == global::System.Data.ConnectionState.Broken)) { + workConnection.Close(); + } + if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { + workConnection.Open(); + workConnOpened = true; + } + global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); + if ((workTransaction == null)) { + throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" + + "ctions or the current state is not allowing the transaction to begin."); + } + global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.Dictionary revertConnections = new global::System.Collections.Generic.Dictionary(); + int result = 0; + global::System.Data.DataSet backupDataSet = null; + if (this.BackupDataSetBeforeUpdate) { + backupDataSet = new global::System.Data.DataSet(); + backupDataSet.Merge(dataSet); + } + try { + // ---- Prepare for update ----------- + // + if ((this._localVisitsTableAdapter != null)) { + revertConnections.Add(this._localVisitsTableAdapter, this._localVisitsTableAdapter.Connection); + this._localVisitsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._localVisitsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._localVisitsTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._localVisitsTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._localVisitsTableAdapter.Adapter); + } + } + if ((this._centralVisitsTableAdapter != null)) { + revertConnections.Add(this._centralVisitsTableAdapter, this._centralVisitsTableAdapter.Connection); + this._centralVisitsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._centralVisitsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._centralVisitsTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._centralVisitsTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._centralVisitsTableAdapter.Adapter); + } + } + // + //---- Perform updates ----------- + // + if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + } + else { + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + } + result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); + // + //---- Commit updates ----------- + // + workTransaction.Commit(); + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + if ((0 < allChangedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; + allChangedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + } + catch (global::System.Exception ex) { + workTransaction.Rollback(); + // ---- Restore the dataset ----------- + if (this.BackupDataSetBeforeUpdate) { + global::System.Diagnostics.Debug.Assert((backupDataSet != null)); + dataSet.Clear(); + dataSet.Merge(backupDataSet); + } + else { + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + row.SetAdded(); + } + } + } + throw ex; + } + finally { + if (workConnOpened) { + workConnection.Close(); + } + if ((this._localVisitsTableAdapter != null)) { + this._localVisitsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._localVisitsTableAdapter])); + this._localVisitsTableAdapter.Transaction = null; + } + if ((this._centralVisitsTableAdapter != null)) { + this._centralVisitsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._centralVisitsTableAdapter])); + this._centralVisitsTableAdapter.Transaction = null; + } + if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { + global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; + adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); + for (int i = 0; (i < adapters.Length); i = (i + 1)) { + global::System.Data.Common.DataAdapter adapter = adapters[i]; + adapter.AcceptChangesDuringUpdate = true; + } + } + } + return result; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { + global::System.Array.Sort(rows, new SelfReferenceComparer(relation, childFirst)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { + if ((this._connection != null)) { + return true; + } + if (((this.Connection == null) + || (inputConnection == null))) { + return true; + } + if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { + return true; + } + return false; + } + + /// + ///Update Order Option + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public enum UpdateOrderOption { + + InsertUpdateDelete = 0, + + UpdateInsertDelete = 1, + } + + /// + ///Used to sort self-referenced table's rows + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer { + + private global::System.Data.DataRelation _relation; + + private int _childFirst; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { + this._relation = relation; + if (childFirst) { + this._childFirst = -1; + } + else { + this._childFirst = 1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) { + global::System.Diagnostics.Debug.Assert((row != null)); + global::System.Data.DataRow root = row; + distance = 0; + + global::System.Collections.Generic.IDictionary traversedRows = new global::System.Collections.Generic.Dictionary(); + traversedRows[row] = row; + + global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + } + + if ((distance == 0)) { + traversedRows.Clear(); + traversedRows[row] = row; + parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + } + } + + return root; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { + if (object.ReferenceEquals(row1, row2)) { + return 0; + } + if ((row1 == null)) { + return -1; + } + if ((row2 == null)) { + return 1; + } + + int distance1 = 0; + global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1); + + int distance2 = 0; + global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2); + + if (object.ReferenceEquals(root1, root2)) { + return (this._childFirst * distance1.CompareTo(distance2)); + } + else { + global::System.Diagnostics.Debug.Assert(((root1.Table != null) + && (root2.Table != null))); + if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) { + return -1; + } + else { + return 1; + } + } + } + } + } +} + #pragma warning restore 1591 \ No newline at end of file diff --git a/syncEdosLocal/DataSet1.xsc b/syncEdosLocal/DataSet1.xsc index 05b0199..551fc56 100644 --- a/syncEdosLocal/DataSet1.xsc +++ b/syncEdosLocal/DataSet1.xsc @@ -1,9 +1,9 @@ - - - - + + + + \ No newline at end of file diff --git a/syncEdosLocal/DataSet1.xsd b/syncEdosLocal/DataSet1.xsd index 5810299..383f9d5 100644 --- a/syncEdosLocal/DataSet1.xsd +++ b/syncEdosLocal/DataSet1.xsd @@ -1,410 +1,434 @@ - - - - - - - - - - - - - - - - export.VisitsSelect - - - - - - - - export.VisitsUpdate - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - import.VisitsInsert - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - import.VisitsSelect - - - - - - - - - - import.VisitsUpdate - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + export.VisitsSelect + + + + + + + + export.VisitsUpdate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + import.VisitsInsert + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + import.VisitsSelect + + + + + + + + + + import.VisitsUpdate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/syncEdosLocal/DataSet1.xss b/syncEdosLocal/DataSet1.xss index 596f054..8745c90 100644 --- a/syncEdosLocal/DataSet1.xss +++ b/syncEdosLocal/DataSet1.xss @@ -1,13 +1,13 @@ - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/syncEdosLocal/Program.cs b/syncEdosLocal/Program.cs index 3d8c9a0..4d069f8 100644 --- a/syncEdosLocal/Program.cs +++ b/syncEdosLocal/Program.cs @@ -1,480 +1,499 @@ -using LSWLib; -using System; -using System.Data; -using System.Data.SqlClient; -using System.Text; -using spl = LSWLib.CLog; - -namespace syncEdosLocal -{ - class cResult - { - public DateTime timestamp; - public int VisitsNew, VisitsSkipped, VisitsAddedExits, VisitsAddedEntries; - public int ID_Visit_Min, ID_Visit_Max; - public int Persons, Tasks; - public string ErrorMessage; - System.Data.SqlClient.SqlCommand cmd; - spl spLog; - internal int ID_Station; - - public cResult(int ? iID_station, SqlConnection co, spl Log) - { - if (iID_station.HasValue) ID_Station = iID_station.Value; else ID_Station = -1; - ErrorMessage = string.Empty; - VisitsNew = VisitsSkipped = VisitsAddedExits = VisitsAddedEntries = 0; - ID_Visit_Min = int.MaxValue; ID_Visit_Max = int.MinValue; - Persons = Tasks = 0; - spLog = Log; - MakeCmd(co); - } - public override string ToString() - { - return $"Success: {VisitsNew} new , {VisitsAddedEntries} Added Entries, {VisitsAddedExits} Added Exits, {VisitsSkipped} skipped"; - } - - private void MakeCmd(SqlConnection co) - { - cmd = new System.Data.SqlClient.SqlCommand("[syncLoc].[SyncStatusUpdate]", co) { CommandType = System.Data.CommandType.StoredProcedure }; - cmd.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] { - new System.Data.SqlClient.SqlParameter("ID_Station",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - ,new System.Data.SqlClient.SqlParameter("TimeStamp",SqlDbType.DateTime,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - ,new System.Data.SqlClient.SqlParameter("New",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - ,new System.Data.SqlClient.SqlParameter("Entries",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - ,new System.Data.SqlClient.SqlParameter("Exits",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - ,new System.Data.SqlClient.SqlParameter("Skipped",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - ,new System.Data.SqlClient.SqlParameter("ErrorMessage",SqlDbType.VarChar,512,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - ,new System.Data.SqlClient.SqlParameter("ID_Visit_Min",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - ,new System.Data.SqlClient.SqlParameter("ID_Visit_Max",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - ,new System.Data.SqlClient.SqlParameter("Persons",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - ,new System.Data.SqlClient.SqlParameter("Tasks",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) - }); - } - - public void Write( ) - { - try - { - spLog.SeverityReset(); - timestamp = DateTime.Now; - if (ID_Station > 0) - { - cmd.Parameters["ID_Station"].Value = ID_Station; - cmd.Parameters["TimeStamp"].Value = timestamp; - cmd.Parameters["New"].Value = VisitsNew; - cmd.Parameters["Entries"].Value = VisitsAddedEntries; - cmd.Parameters["Exits"].Value = VisitsAddedEntries; - cmd.Parameters["Skipped"].Value = VisitsSkipped; - cmd.Parameters["ErrorMessage"].Value = ErrorMessage; - cmd.Parameters["ID_Visit_Min"].Value = ID_Visit_Min; - cmd.Parameters["ID_Visit_Max"].Value = ID_Visit_Max; - cmd.Parameters["Persons"].Value = Persons; - cmd.Parameters["Tasks"].Value = Tasks; - ConnectionState cs = cmd.Connection.State; - if (cs != ConnectionState.Open) cmd.Connection.Open(); - cmd.ExecuteNonQuery(); - if (cs != ConnectionState.Open) cmd.Connection.Close(); - spLog.WriteSplunkLog("Result", spLog.splunkSeverity, null, this.ToString()); ; - } - } catch (System.Exception ex) - { - spLog.setErrorException(ex); - spLog.WriteSplunkLog("Result", spLog.splunkSeverity, null, spLog.splunkError); - } - } - - internal void CheckVisitID(int iD_Visit) - { - if (ID_Visit_Max < iD_Visit) ID_Visit_Max = iD_Visit; - if (ID_Visit_Min > iD_Visit) ID_Visit_Min = iD_Visit; - } - } - - class Program - { - public static DataSet ds = null; - static System.Data.SqlClient.SqlInfoMessageEventHandler iMessage = new SqlInfoMessageEventHandler(Connection_InfoMessage); - static bool error = false; - static bool warning = false; - static StringBuilder messages = null; - static string splunkMessage = string.Empty; - static spl spLog; - static LSWLib.Bulker Bulker; - static cResult Result; - - public static int? CreateStationID (SqlConnection eDosLocalCon, SqlConnection eDosCon ) - { - var c1 = eDosCon.State; - if (c1 != ConnectionState.Open) eDosCon.Open(); - var c2 = eDosLocalCon.State; - if (c2 != ConnectionState.Open) eDosLocalCon.Open(); - int? StationID = Bulker.SqlCommands.ExecProcScalar("Get Station ID", eDosCon, "GetNewID_LocalStation", true, ref error) as int?; - if (StationID.HasValue) - { - Bulker.SqlCommands.ExecProcScalar("Set Station ID", eDosLocalCon, $"SetNewID_LocalStation {StationID.Value}", true, ref error); - } - else StationID = null; - if (c2 != ConnectionState.Open) eDosLocalCon.Close(); - if (c1 != ConnectionState.Open) eDosCon.Close(); - return StationID; - } - public static bool DoorloopToDo(System.Data.SqlClient.SqlConnection fromConnection, string toConstr, System.Data.SqlClient.SqlInfoMessageEventHandler im, ref bool error, ref bool warning) - { - ds = new DataSet(); - DataTable dtTables = new DataTable("Tables"); - ds.Tables.Add(dtTables); - DataTable dtActions = new DataTable("Actions"); - ds.Tables.Add(dtActions); - { - using (var cmd = new System.Data.SqlClient.SqlCommand("syncloc.SynchroToLocalTables", fromConnection)) - { - spLog.KvClear(); - cmd.CommandType = CommandType.StoredProcedure; - spLog.KvAddCommand(spl.skeys.sqlQuery, cmd); - using (var ncta = new System.Data.SqlClient.SqlDataAdapter(cmd)) - { - try - { - ncta.Fill(dtTables); - int r = dtTables.Rows.Count; - spLog.KvAdd(spl.skeys.recordsAffected, r); - spLog.WriteSplunkLog(string.Empty, spl.iseverity.info, "LoadTables"); - } - catch (System.Exception ex) - { - spLog.WriteSplunkLog(string.Empty, spl.iseverity.err, "LoadTables", ex.Message); - } - } - } - spLog.KvClear(); - dtTables.PrimaryKey = new DataColumn[] { dtTables.Columns["object_id"] }; - - using (var cmd = new System.Data.SqlClient.SqlCommand("syncloc.SynchroToLocalActions", fromConnection)) - { - cmd.CommandType = CommandType.StoredProcedure; - using (var ncta = new System.Data.SqlClient.SqlDataAdapter(cmd)) - { - try - { - ncta.Fill(dtActions); - spLog.KvAdd(spl.skeys.recordsAffected, dtActions.Rows.Count); - spLog.WriteSplunkLog(string.Empty, spl.iseverity.info, "LoadActions"); - } - catch (System.Exception ex) - { - spLog.WriteSplunkLog(string.Empty, spl.iseverity.err, "LoadActions", ex.Message); - } - } - } - dtActions.PrimaryKey = new DataColumn[] { dtActions.Columns["object_id"], dtActions.Columns["Type"], dtActions.Columns["r"] }; - dtActions.ParentRelations.Add(new DataRelation("pObject", dtTables.Columns["object_id"], dtActions.Columns["object_id"])); - - StringBuilder sqlCmdsActivate = null; - StringBuilder sqlCmdsDeActivate = null; - string Task = string.Empty; - string dest = string.Empty; - string qry = string.Empty; - - using (System.Data.SqlClient.SqlConnection toConnection = new SqlConnection(toConstr)) - { - spLog.KvClear(); - spLog.KvAdd(toConnection); - toConnection.InfoMessage += im; - toConnection.Open(); - if (toConnection.State == ConnectionState.Open) - using (var ucmd = new System.Data.SqlClient.SqlCommand("syncloc.SynchroToLocalTablesUpdate",fromConnection)) - { - ucmd.CommandType = CommandType.StoredProcedure; - SqlParameter pa = new SqlParameter("ID_Station", SqlDbType.Int, 4); ucmd.Parameters.Add(pa); pa.Value = Result.ID_Station; - pa = new SqlParameter("OBJECT_ID", SqlDbType.Int, 4); pa.Value = Result.ID_Station; ucmd.Parameters.Add(pa); - pa = new SqlParameter("lastRecords", SqlDbType.Int, 4); ucmd.Parameters.Add(pa); - pa = new SqlParameter("constraintsDeactivated", SqlDbType.Bit); ucmd.Parameters.Add(pa); - pa = new SqlParameter("constraintsActivated", SqlDbType.Bit); ucmd.Parameters.Add(pa); - pa = new SqlParameter("syncError", SqlDbType.Bit); ucmd.Parameters.Add(pa); - - if (fromConnection.State == ConnectionState.Closed) fromConnection.Open(); - - foreach (DataRow rtr in dtTables.Rows) - { - ucmd.Parameters["OBJECT_ID"].Value = (int)rtr[0]; - string src=rtr[1].ToString(); - dest = rtr[2].ToString(); - var x = rtr.GetChildRows(dtActions.ParentRelations[0]); - Task = $"Table {dest}"; - System.Console.WriteLine($"*** Step {rtr[1].ToString()}"); - if (x.Length > 0) - { - sqlCmdsActivate = new StringBuilder(); - sqlCmdsDeActivate = new StringBuilder(); - foreach (DataRow aa in x) - { - sqlCmdsDeActivate.Append($" {aa["ActionDeActivate"].ToString()};"); - sqlCmdsActivate.Append($" {aa["ActionActivate"].ToString()};"); - } - } - else - { - sqlCmdsActivate = sqlCmdsDeActivate = null; - } - - int res = 0; - if (sqlCmdsDeActivate != null) - using (var cmd = new System.Data.SqlClient.SqlCommand(sqlCmdsDeActivate.ToString(), toConnection)) - { - cmd.CommandType = CommandType.Text; - try - { - spLog.SeverityReset(); - res = cmd.ExecuteNonQuery(); - messages.AppendLine($"Success:Query={sqlCmdsDeActivate.ToString()}"); - ucmd.Parameters["constraintsDeactivated"].Value = true; - spLog.WriteSplunkLog(string.Empty, spLog.splunkSeverity, "constraintsDeactivated", string.Empty); - } - catch (System.Exception ex) - { - spLog.setErrorException(ex); - error = true; - messages.AppendLine(spLog.splunkError); - ucmd.Parameters["constraintsDeactivated"].Value = false; - spLog.WriteSplunkLog(string.Empty, spLog.splunkSeverity, "constraintsDeactivated", spLog.splunkError); - } - } - - int cnt = 0; - qry = LSWLib.SqlCommands.getColumnsQry(fromConnection, src); - SqlConnection[] curDests = new SqlConnection[] { toConnection }; - cnt = Bulker.Execute(Task, fromConnection, curDests, qry, CommandType.Text, dest, 0, ref error); - ucmd.Parameters["lastRecords"].Value = cnt; - if (dest.Contains("PersonInfo")) - Result.Persons = cnt; - else if (dest.Contains("TaskInfo")) Result.Tasks = cnt; - - - if (sqlCmdsActivate != null) - using (var cmd = new System.Data.SqlClient.SqlCommand(sqlCmdsActivate.ToString(), toConnection)) - { - cmd.CommandType = CommandType.Text; - spLog.KvClear(); - spLog.KvAddCommand(spl.skeys.sqlQuery, cmd); - try - { - spLog.SeverityReset(); - res = cmd.ExecuteNonQuery(); - messages.AppendLine($"Success:Query={sqlCmdsActivate.ToString()}"); - ucmd.Parameters["constraintsActivated"].Value = true; - spLog.WriteSplunkLog(string.Empty, spLog.splunkSeverity, "constraintsActivated", spLog.splunkError); - } - catch (System.Exception ex) - { - spLog.setErrorException(ex); - error = true; - ucmd.Parameters["constraintsActivated"].Value = false; - messages.AppendLine(spLog.splunkError); - spLog.WriteSplunkLog(string.Empty, spLog.splunkSeverity, "constraintsActivated", spLog.splunkError); - } - } - ucmd.Parameters["syncError"].Value = error; - - ucmd.ExecuteNonQuery(); - if (error) break; - } - } - } - } - return error; - } - static void Main(string[] args) - { - spLog = new spl("SynceDosLocal"); - Bulker = new LSWLib.Bulker(spLog,false); - messages = Bulker.messages; - messages.AppendLine(spLog.GetStartInfoString()); - - //Sync need both - var SourceCoStr = new SqlConnectionStringBuilder(System.Configuration.ConfigurationManager.ConnectionStrings["eDosConnectionString"].ConnectionString); - var LocalCoStr = new SqlConnectionStringBuilder(System.Configuration.ConfigurationManager.ConnectionStrings["LocalConnectionString"].ConnectionString); - - SourceCoStr.TrustServerCertificate = LocalCoStr.TrustServerCertificate= true; - SourceCoStr.ApplicationName = LocalCoStr.ApplicationName = "eDosSync"; - SourceCoStr.WorkstationID = LocalCoStr.WorkstationID = Environment.MachineName; - - string reDos = string.Empty; - string reDosLocal = string.Empty; - try - { - using (var key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\\WOW6432Node\\Microsoft\\MSSQLServer\\Client\\ConnectTo")) - { - reDos = key.GetValue("eDos").ToString(); - reDosLocal = key.GetValue("eDosLocal").ToString(); - } - } catch (System.Exception ex) - { - spLog.setErrorException(ex); - spLog.WriteSplunkLog("init", spLog.splunkSeverity, null, spLog.splunkError); - messages.AppendLine($"Error reading reg key"); - } - - messages.AppendLine($"Remote {SourceCoStr.DataSource} db {SourceCoStr.InitialCatalog} Logon= { SourceCoStr.UserID} alias:{ reDos }"); - messages.AppendLine($"Local {LocalCoStr.DataSource} db {LocalCoStr.InitialCatalog} Logon= { LocalCoStr.UserID} alias:{ reDosLocal }"); - - System.Console.WriteLine($"Opening {LocalCoStr.ConnectionString}"); - try - { - using (System.Data.SqlClient.SqlConnection eDosLocalCon = new SqlConnection(LocalCoStr.ConnectionString)) - { - eDosLocalCon.Open(); - int? StationID = Bulker.SqlCommands.ExecProcScalar("Get Station ID", eDosLocalCon, "GetID_LocalStation", true, ref error) as int?; - if (!StationID.HasValue) - { - System.Console.WriteLine($"No stationID for this computer [{Environment.MachineName}]"); - } - else - { - Result = new cResult(StationID, eDosLocalCon, spLog); - using (System.Data.SqlClient.SqlConnection eDosCon = new SqlConnection(SourceCoStr.ConnectionString)) - { - eDosCon.InfoMessage += Connection_InfoMessage; - DoorloopToDo(eDosCon, LocalCoStr.ConnectionString, iMessage, ref error, ref warning); - DoorloopVisits(eDosLocalCon, eDosCon, Bulker.spLog, ref error); - } - Result.Write(); - } - eDosLocalCon.Close(); - } - } - catch (System.Exception ex) - { - System.Console.WriteLine($"Opening fail {ex.Message}"); - error = true; - spLog.WriteSplunkLog(string.Empty, spl.iseverity.err, "syncEdosLocal", ex.Message); - } - if (error) goto final; - - final: - messages.AppendLine($"Process:End,tm={System.DateTime.Now.ToString("yyyy-MM-ddTHH:mm")}, Errors={error}, Warnings={warning}"); - System.Diagnostics.Debug.WriteLine(messages.ToString()); - Console.WriteLine(messages.ToString()); - - //var smtpFrom = System.Configuration.ConfigurationManager.AppSettings["smtpFrom"]; - //var smtpServer = System.Configuration.ConfigurationManager.AppSettings["smtpServer"]; - //int smtpPort = 25; - //if (int.TryParse(System.Configuration.ConfigurationManager.AppSettings["smtpPort"], out int newSMTPPort)) smtpPort = newSMTPPort; ; - //using (System.Net.Mail.MailMessage m = new System.Net.Mail.MailMessage()) - //{ - // m.From = new System.Net.Mail.MailAddress(smtpFrom); - // m.To.Add("lvandenb@sckcen.be"); - // m.Subject = "SynceDosLocal " + (error ? "Error" : "No errors") + (warning ? " Warnings" : ""); - // m.IsBodyHtml = true; - // m.Body = Bulker.htmlLog.ToString(); - // using (var mc = new System.Net.Mail.SmtpClient(smtpServer, smtpPort)) { mc.Send(m); } - //} - spLog.CloseSplunkLog(); - } - static void DoorloopVisits(SqlConnection coLocal, SqlConnection coCentral, spl spLog, ref bool error) - { - const string sStep = "Doorloop Visits"; - //int VisitsNew = 0, VisitsAddedEntries = 0, VisitsAddedExits = 0, VisitsSkipped = 0; - spLog.WriteSplunkLog(sStep, spl.iseverity.info); - DataSet1 ds = new DataSet1(); - DataSet1.CentralVisitsRow cr; - try - { - using (var ta = new DataSet1TableAdapters.LocalVisitsTableAdapter()) - using (var tc = new DataSet1TableAdapters.CentralVisitsTableAdapter()) - { - ta.Connection = coLocal; - tc.Connection = coCentral; - tc.ClearBeforeFill = false; - ta.Fill(ds.LocalVisits); - spLog.KvAdd(spl.skeys.recordsAffected, ds.LocalVisits.Rows.Count); - foreach (DataSet1.LocalVisitsRow lr in ds.LocalVisits.Rows) - { - Result.CheckVisitID(lr.ID_Visit); - tc.Fill(ds.CentralVisits, lr.ID_Station, lr.ID_Visit); - cr = ds.CentralVisits.FindByID_StationID_Visit(lr.ID_Station, lr.ID_Visit); - if (cr == null) - { - Result.VisitsNew++; - copyrow(lr, ds.CentralVisits); - if ((lr.VisitStatus & 1) > 0) { lr.syncedEntry = true; Result.VisitsAddedEntries++;} - if ((lr.VisitStatus & 2) > 0) { lr.syncedExit = true; Result.VisitsAddedExits++; } - } - else switch (cr.VisitStatus) - { - case 3: lr.syncedEntry = lr.syncedExit = true; Result.VisitsSkipped++; break; - case 1: if ((lr.VisitStatus & 2) == 2) { copyExit(lr, cr); lr.syncedEntry=lr.syncedExit = true; Result.VisitsAddedExits++; } break; - case 2: if ((lr.VisitStatus & 1) == 1) { copyEntry(lr, cr); lr.syncedEntry=lr.syncedExit= true; Result.VisitsAddedEntries++; } break; - } - } - ta.Update(ds.LocalVisits); - tc.Update(ds.CentralVisits); - } - spLog.KvClear(); - } - catch (System.Exception ex) - { - error = true; - Result.ErrorMessage = ex.Message; - spLog.setErrorException(ex); - spLog.WriteSplunkLog(sStep, spLog.splunkSeverity, null, spLog.splunkError); - } - } - private static void copyEntry(DataSet1.LocalVisitsRow lr, DataSet1.CentralVisitsRow cr) - { - cr["ID_Station"] = lr["ID_Station"]; - cr["ID_Visit"] = lr["ID_Visit"]; - cr["Inst_CODE"] = lr["Inst_CODE"]; - cr["PersID"] = lr["PersID"]; - cr["ID_Task"] = lr["ID_Task"]; - cr["EntryTime"] = lr["EntryTime"]; - cr["ID_EPD"] = lr["ID_EPD"]; - cr["isBG"] = lr["isBG"]; - cr["ENTRY_EPD_CLOCK"] = lr["ENTRY_EPD_CLOCK"]; - cr["epdType"] = lr["epdType"]; - } - private static void copyExit(DataSet1.LocalVisitsRow lr, DataSet1.CentralVisitsRow cr) - { - cr["ReturnTime"] = lr["ReturnTime"]; - cr["Hp10Dose"] = lr["Hp10Dose"]; - cr["Hp07Dose"] = lr["Hp07Dose"]; - cr["Hp10Total"] = lr["Hp10Total"]; - cr["Hp07Total"] = lr["Hp07Total"]; - cr["Hp10Peak"] = lr["Hp10Peak"]; - cr["Hp07Peak"] = lr["Hp07Peak"]; - cr["Hp10Time"] = lr["Hp10Time"]; - cr["Hp07Time"] = lr["Hp07Time"]; - cr["QualityData"] = lr["QualityData"]; - cr["K1"] = lr["K1"]; - cr["K2"] = lr["K2"]; - cr["K3"] = lr["K3"]; - cr["K4"] = lr["K4"]; - cr["K5"] = lr["K5"]; - cr["K6"] = lr["K6"]; - cr["SG"] = lr["SG"]; - cr["BC"] = lr["BC"]; - cr["FB"] = lr["FB"]; - cr["HG"] = lr["HG"]; - cr["alarmStatus"] = lr["alarmStatus"]; - cr["otherAlarms"] = lr["otherAlarms"]; - cr["errorStatus"] = lr["errorStatus"]; - cr["operatingStatus"] = lr["operatingStatus"]; - cr["isAlarm"] = lr["isAlarm"]; - cr["isAlarmCleared"] = lr["isAlarmCleared"]; - cr["ENTRY_EPD_CLOCK"] = lr["ENTRY_EPD_CLOCK"]; - cr["EXIT_EPD_CLOCK"] = lr["EXIT_EPD_CLOCK"]; - cr["TIME_LOST"] = lr["TIME_LOST"]; - } - private static DataSet1.CentralVisitsRow copyrow(DataSet1.LocalVisitsRow lr, DataSet1.CentralVisitsDataTable centralVisits) - { - DataSet1.CentralVisitsRow cr = centralVisits.NewCentralVisitsRow(); - foreach (DataColumn sc in lr.Table.Columns) - if (lr.Table.Columns.Contains(sc.ColumnName) ) cr[sc.ColumnName] = lr[sc.ColumnName]; - centralVisits.AddCentralVisitsRow(cr); - return cr; - } - private static void Connection_InfoMessage(object sender, System.Data.SqlClient.SqlInfoMessageEventArgs e) - { - spLog.Connection_InfoMessageLog(e, ref messages); - } - } -} +using LSWLib; +using System; +using System.Data; +using System.Data.SqlClient; +using System.Text; +using spl = LSWLib.CLog; + +namespace syncEdosLocal +{ + class cResult + { + public DateTime timestamp; + public int VisitsNew, VisitsSkipped, VisitsAddedExits, VisitsAddedEntries; + public int ID_Visit_Min, ID_Visit_Max; + public int Persons, Tasks; + public string ErrorMessage; + System.Data.SqlClient.SqlCommand cmd; + spl spLog; + internal int ID_Station; + + public cResult(int ? iID_station, SqlConnection co, spl Log) + { + if (iID_station.HasValue) ID_Station = iID_station.Value; else ID_Station = -1; + ErrorMessage = string.Empty; + VisitsNew = VisitsSkipped = VisitsAddedExits = VisitsAddedEntries = 0; + ID_Visit_Min = int.MaxValue; ID_Visit_Max = int.MinValue; + Persons = Tasks = 0; + spLog = Log; + MakeCmd(co); + } + public override string ToString() + { + return $"Success: {VisitsNew} new , {VisitsAddedEntries} Added Entries, {VisitsAddedExits} Added Exits, {VisitsSkipped} skipped"; + } + + private void MakeCmd(SqlConnection co) + { + cmd = new System.Data.SqlClient.SqlCommand("[syncLoc].[SyncStatusUpdate]", co) { CommandType = System.Data.CommandType.StoredProcedure }; + cmd.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] { + new System.Data.SqlClient.SqlParameter("ID_Station",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + ,new System.Data.SqlClient.SqlParameter("TimeStamp",SqlDbType.DateTime,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + ,new System.Data.SqlClient.SqlParameter("New",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + ,new System.Data.SqlClient.SqlParameter("Entries",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + ,new System.Data.SqlClient.SqlParameter("Exits",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + ,new System.Data.SqlClient.SqlParameter("Skipped",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + ,new System.Data.SqlClient.SqlParameter("ErrorMessage",SqlDbType.VarChar,512,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + ,new System.Data.SqlClient.SqlParameter("ID_Visit_Min",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + ,new System.Data.SqlClient.SqlParameter("ID_Visit_Max",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + ,new System.Data.SqlClient.SqlParameter("Persons",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + ,new System.Data.SqlClient.SqlParameter("Tasks",SqlDbType.Int,0,System.Data.ParameterDirection.Input,false,0,0,null,System.Data.DataRowVersion.Default,null) + }); + } + + public void Write( ) + { + try + { + spLog.SeverityReset(); + timestamp = DateTime.Now; + if (ID_Station > 0) + { + cmd.Parameters["ID_Station"].Value = ID_Station; + cmd.Parameters["TimeStamp"].Value = timestamp; + cmd.Parameters["New"].Value = VisitsNew; + cmd.Parameters["Entries"].Value = VisitsAddedEntries; + cmd.Parameters["Exits"].Value = VisitsAddedEntries; + cmd.Parameters["Skipped"].Value = VisitsSkipped; + cmd.Parameters["ErrorMessage"].Value = ErrorMessage; + cmd.Parameters["ID_Visit_Min"].Value = ID_Visit_Min; + cmd.Parameters["ID_Visit_Max"].Value = ID_Visit_Max; + cmd.Parameters["Persons"].Value = Persons; + cmd.Parameters["Tasks"].Value = Tasks; + ConnectionState cs = cmd.Connection.State; + if (cs != ConnectionState.Open) cmd.Connection.Open(); + cmd.ExecuteNonQuery(); + if (cs != ConnectionState.Open) cmd.Connection.Close(); + spLog.WriteSplunkLog("Result", spLog.splunkSeverity, null, this.ToString()); ; + } + } catch (System.Exception ex) + { + spLog.setErrorException(ex); + spLog.WriteSplunkLog("Result", spLog.splunkSeverity, null, spLog.splunkError); + } + } + + internal void CheckVisitID(int iD_Visit) + { + if (ID_Visit_Max < iD_Visit) ID_Visit_Max = iD_Visit; + if (ID_Visit_Min > iD_Visit) ID_Visit_Min = iD_Visit; + } + } + + class Program + { + public static int Verbose; + public static DataSet ds = null; + static System.Data.SqlClient.SqlInfoMessageEventHandler iMessage = new SqlInfoMessageEventHandler(Connection_InfoMessage); + static bool error = false; + static bool warning = false; + static StringBuilder messages = null; + static string splunkMessage = string.Empty; + static spl spLog; + static LSWLib.Bulker Bulker; + static cResult Result; + static System.IO.StreamWriter oStream; + + public static int? CreateStationID (SqlConnection eDosLocalCon, SqlConnection eDosCon ) + { + var c1 = eDosCon.State; + if (c1 != ConnectionState.Open) eDosCon.Open(); + var c2 = eDosLocalCon.State; + if (c2 != ConnectionState.Open) eDosLocalCon.Open(); + int? StationID = Bulker.SqlCommands.ExecProcScalar("Get Station ID", eDosCon, "GetNewID_LocalStation", true, ref error) as int?; + if (StationID.HasValue) + { + Bulker.SqlCommands.ExecProcScalar("Set Station ID", eDosLocalCon, $"SetNewID_LocalStation {StationID.Value}", true, ref error); + } + else StationID = null; + if (c2 != ConnectionState.Open) eDosLocalCon.Close(); + if (c1 != ConnectionState.Open) eDosCon.Close(); + return StationID; + } + public static bool DoorloopToDo(System.Data.SqlClient.SqlConnection fromConnection, string toConstr, System.Data.SqlClient.SqlInfoMessageEventHandler im, ref bool error, ref bool warning) + { + ds = new DataSet(); + DataTable dtTables = new DataTable("Tables"); + ds.Tables.Add(dtTables); + DataTable dtActions = new DataTable("Actions"); + ds.Tables.Add(dtActions); + { + using (var cmd = new System.Data.SqlClient.SqlCommand("syncloc.SynchroToLocalTables", fromConnection)) + { + spLog.KvClear(); + cmd.CommandType = CommandType.StoredProcedure; + spLog.KvAddCommand(spl.skeys.sqlQuery, cmd); + using (var ncta = new System.Data.SqlClient.SqlDataAdapter(cmd)) + { + try + { + ncta.Fill(dtTables); + int r = dtTables.Rows.Count; + spLog.KvAdd(spl.skeys.recordsAffected, r); + spLog.WriteSplunkLog(string.Empty, spl.iseverity.info, "LoadTables"); + } + catch (System.Exception ex) + { + spLog.WriteSplunkLog(string.Empty, spl.iseverity.err, "LoadTables", ex.Message); + } + } + } + spLog.KvClear(); + dtTables.PrimaryKey = new DataColumn[] { dtTables.Columns["object_id"] }; + + using (var cmd = new System.Data.SqlClient.SqlCommand("syncloc.SynchroToLocalActions", fromConnection)) + { + cmd.CommandType = CommandType.StoredProcedure; + using (var ncta = new System.Data.SqlClient.SqlDataAdapter(cmd)) + { + try + { + ncta.Fill(dtActions); + spLog.KvAdd(spl.skeys.recordsAffected, dtActions.Rows.Count); + spLog.WriteSplunkLog(string.Empty, spl.iseverity.info, "LoadActions"); + } + catch (System.Exception ex) + { + spLog.WriteSplunkLog(string.Empty, spl.iseverity.err, "LoadActions", ex.Message); + } + } + } + dtActions.PrimaryKey = new DataColumn[] { dtActions.Columns["object_id"], dtActions.Columns["Type"], dtActions.Columns["r"] }; + dtActions.ParentRelations.Add(new DataRelation("pObject", dtTables.Columns["object_id"], dtActions.Columns["object_id"])); + + StringBuilder sqlCmdsActivate = null; + StringBuilder sqlCmdsDeActivate = null; + string Task = string.Empty; + string dest = string.Empty; + string qry = string.Empty; + + using (System.Data.SqlClient.SqlConnection toConnection = new SqlConnection(toConstr)) + { + spLog.KvClear(); + spLog.KvAdd(toConnection); + toConnection.InfoMessage += im; + toConnection.Open(); + if (toConnection.State == ConnectionState.Open) + using (var ucmd = new System.Data.SqlClient.SqlCommand("syncloc.SynchroToLocalTablesUpdate",fromConnection)) + { + ucmd.CommandType = CommandType.StoredProcedure; + SqlParameter pa = new SqlParameter("ID_Station", SqlDbType.Int, 4); ucmd.Parameters.Add(pa); pa.Value = Result.ID_Station; + pa = new SqlParameter("OBJECT_ID", SqlDbType.Int, 4); pa.Value = Result.ID_Station; ucmd.Parameters.Add(pa); + pa = new SqlParameter("lastRecords", SqlDbType.Int, 4); ucmd.Parameters.Add(pa); + pa = new SqlParameter("constraintsDeactivated", SqlDbType.Bit); ucmd.Parameters.Add(pa); + pa = new SqlParameter("constraintsActivated", SqlDbType.Bit); ucmd.Parameters.Add(pa); + pa = new SqlParameter("syncError", SqlDbType.Bit); ucmd.Parameters.Add(pa); + + if (fromConnection.State == ConnectionState.Closed) fromConnection.Open(); + + foreach (DataRow rtr in dtTables.Rows) + { + ucmd.Parameters["OBJECT_ID"].Value = (int)rtr[0]; + string src=rtr[1].ToString(); + dest = rtr[2].ToString(); + var x = rtr.GetChildRows(dtActions.ParentRelations[0]); + Task = $"Table {dest}"; + oStream?.WriteLine($"*** Step {rtr[1].ToString()}"); + if (x.Length > 0) + { + sqlCmdsActivate = new StringBuilder(); + sqlCmdsDeActivate = new StringBuilder(); + foreach (DataRow aa in x) + { + sqlCmdsDeActivate.Append($" {aa["ActionDeActivate"].ToString()};"); + sqlCmdsActivate.Append($" {aa["ActionActivate"].ToString()};"); + } + } + else + { + sqlCmdsActivate = sqlCmdsDeActivate = null; + } + + int res = 0; + if (sqlCmdsDeActivate != null) + using (var cmd = new System.Data.SqlClient.SqlCommand(sqlCmdsDeActivate.ToString(), toConnection)) + { + cmd.CommandType = CommandType.Text; + try + { + spLog.SeverityReset(); + res = cmd.ExecuteNonQuery(); + messages.AppendLine($"Success:Query={sqlCmdsDeActivate.ToString()}"); + ucmd.Parameters["constraintsDeactivated"].Value = true; + spLog.WriteSplunkLog(string.Empty, spLog.splunkSeverity, "constraintsDeactivated", string.Empty); + } + catch (System.Exception ex) + { + spLog.setErrorException(ex); + error = true; + messages.AppendLine(spLog.splunkError); + ucmd.Parameters["constraintsDeactivated"].Value = false; + spLog.WriteSplunkLog(string.Empty, spLog.splunkSeverity, "constraintsDeactivated", spLog.splunkError); + } + } + + int cnt = 0; + qry = LSWLib.SqlCommands.getColumnsQry(fromConnection, src); + SqlConnection[] curDests = new SqlConnection[] { toConnection }; + cnt = Bulker.Execute(Task, fromConnection, curDests, qry, CommandType.Text, dest, 0, ref error); + ucmd.Parameters["lastRecords"].Value = cnt; + if (dest.Contains("PersonInfo")) + Result.Persons = cnt; + else if (dest.Contains("TaskInfo")) Result.Tasks = cnt; + + + if (sqlCmdsActivate != null) + using (var cmd = new System.Data.SqlClient.SqlCommand(sqlCmdsActivate.ToString(), toConnection)) + { + cmd.CommandType = CommandType.Text; + spLog.KvClear(); + spLog.KvAddCommand(spl.skeys.sqlQuery, cmd); + try + { + spLog.SeverityReset(); + res = cmd.ExecuteNonQuery(); + messages.AppendLine($"Success:Query={sqlCmdsActivate.ToString()}"); + ucmd.Parameters["constraintsActivated"].Value = true; + spLog.WriteSplunkLog(string.Empty, spLog.splunkSeverity, "constraintsActivated", spLog.splunkError); + } + catch (System.Exception ex) + { + spLog.setErrorException(ex); + error = true; + ucmd.Parameters["constraintsActivated"].Value = false; + messages.AppendLine(spLog.splunkError); + spLog.WriteSplunkLog(string.Empty, spLog.splunkSeverity, "constraintsActivated", spLog.splunkError); + } + } + ucmd.Parameters["syncError"].Value = error; + + ucmd.ExecuteNonQuery(); + if (error) break; + } + } + } + } + return error; + } + static void Main(string[] args) + { + Verbose = 1; + for (int ai=0;ai1) + { + switch (args[ai][1]) + { + case 's': Verbose = 0; break; + } + } + } + if (Verbose > 0) + oStream = new System.IO.StreamWriter(System.Console.OpenStandardOutput()); + else + oStream = null; // new System.IO.StreamWriter( System.IO.Stream.Null); + + spLog = new spl("SynceDosLocal"); + Bulker = new LSWLib.Bulker(spLog,false); + messages = Bulker.messages; + messages.AppendLine(spLog.GetStartInfoString()); + + //Sync need both + var SourceCoStr = new SqlConnectionStringBuilder(System.Configuration.ConfigurationManager.ConnectionStrings["eDosConnectionString"].ConnectionString); + var LocalCoStr = new SqlConnectionStringBuilder(System.Configuration.ConfigurationManager.ConnectionStrings["LocalConnectionString"].ConnectionString); + + SourceCoStr.TrustServerCertificate = LocalCoStr.TrustServerCertificate= true; + SourceCoStr.ApplicationName = LocalCoStr.ApplicationName = "eDosSync"; + SourceCoStr.WorkstationID = LocalCoStr.WorkstationID = Environment.MachineName; + + string reDos = string.Empty; + string reDosLocal = string.Empty; + try + { + using (var key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\\WOW6432Node\\Microsoft\\MSSQLServer\\Client\\ConnectTo")) + { + reDos = key.GetValue("eDos").ToString(); + reDosLocal = key.GetValue("eDosLocal").ToString(); + } + } catch (System.Exception ex) + { + spLog.setErrorException(ex); + spLog.WriteSplunkLog("init", spLog.splunkSeverity, null, spLog.splunkError); + messages.AppendLine($"Error reading reg key"); + } + + messages.AppendLine($"Remote {SourceCoStr.DataSource} db {SourceCoStr.InitialCatalog} Logon= { SourceCoStr.UserID} alias:{ reDos }"); + messages.AppendLine($"Local {LocalCoStr.DataSource} db {LocalCoStr.InitialCatalog} Logon= { LocalCoStr.UserID} alias:{ reDosLocal }"); + + oStream?.WriteLine($"Opening {LocalCoStr.ConnectionString}"); + try + { + using (System.Data.SqlClient.SqlConnection eDosLocalCon = new SqlConnection(LocalCoStr.ConnectionString)) + { + eDosLocalCon.Open(); + int? StationID = Bulker.SqlCommands.ExecProcScalar("Get Station ID", eDosLocalCon, "GetID_LocalStation", true, ref error) as int?; + if (!StationID.HasValue) + { + oStream?.WriteLine($"No stationID for this computer [{Environment.MachineName}]"); + } + else + { + Result = new cResult(StationID, eDosLocalCon, spLog); + using (System.Data.SqlClient.SqlConnection eDosCon = new SqlConnection(SourceCoStr.ConnectionString)) + { + eDosCon.InfoMessage += Connection_InfoMessage; + DoorloopToDo(eDosCon, LocalCoStr.ConnectionString, iMessage, ref error, ref warning); + DoorloopVisits(eDosLocalCon, eDosCon, Bulker.spLog, ref error); + } + Result.Write(); + } + eDosLocalCon.Close(); + } + } + catch (System.Exception ex) + { + oStream?.WriteLine($"Opening fail {ex.Message}"); + error = true; + spLog.WriteSplunkLog(string.Empty, spl.iseverity.err, "syncEdosLocal", ex.Message); + } + if (error) goto final; + + final: + messages.AppendLine($"Process:End,tm={System.DateTime.Now.ToString("yyyy-MM-ddTHH:mm")}, Errors={error}, Warnings={warning}"); + //System.Diagnostics.Debug.WriteLine(messages.ToString()); + oStream?.WriteLine(messages.ToString()); + + //var smtpFrom = System.Configuration.ConfigurationManager.AppSettings["smtpFrom"]; + //var smtpServer = System.Configuration.ConfigurationManager.AppSettings["smtpServer"]; + //int smtpPort = 25; + //if (int.TryParse(System.Configuration.ConfigurationManager.AppSettings["smtpPort"], out int newSMTPPort)) smtpPort = newSMTPPort; ; + //using (System.Net.Mail.MailMessage m = new System.Net.Mail.MailMessage()) + //{ + // m.From = new System.Net.Mail.MailAddress(smtpFrom); + // m.To.Add("lvandenb@sckcen.be"); + // m.Subject = "SynceDosLocal " + (error ? "Error" : "No errors") + (warning ? " Warnings" : ""); + // m.IsBodyHtml = true; + // m.Body = Bulker.htmlLog.ToString(); + // using (var mc = new System.Net.Mail.SmtpClient(smtpServer, smtpPort)) { mc.Send(m); } + //} + spLog.CloseSplunkLog(); + } + static void DoorloopVisits(SqlConnection coLocal, SqlConnection coCentral, spl spLog, ref bool error) + { + const string sStep = "Doorloop Visits"; + oStream?.WriteLine(sStep); + //int VisitsNew = 0, VisitsAddedEntries = 0, VisitsAddedExits = 0, VisitsSkipped = 0; + spLog.WriteSplunkLog(sStep, spl.iseverity.info); + DataSet1 ds = new DataSet1(); + DataSet1.CentralVisitsRow cr; + try + { + using (var ta = new DataSet1TableAdapters.LocalVisitsTableAdapter()) + using (var tc = new DataSet1TableAdapters.CentralVisitsTableAdapter()) + { + ta.Connection = coLocal; + tc.Connection = coCentral; + tc.ClearBeforeFill = false; + ta.Fill(ds.LocalVisits); + spLog.KvAdd(spl.skeys.recordsAffected, ds.LocalVisits.Rows.Count); + foreach (DataSet1.LocalVisitsRow lr in ds.LocalVisits.Rows) + { + Result.CheckVisitID(lr.ID_Visit); + tc.Fill(ds.CentralVisits, lr.ID_Station, lr.ID_Visit); + cr = ds.CentralVisits.FindByID_StationID_Visit(lr.ID_Station, lr.ID_Visit); + if (cr == null) + { + Result.VisitsNew++; + copyrow(lr, ds.CentralVisits); + if ((lr.VisitStatus & 1) > 0) { lr.syncedEntry = true; Result.VisitsAddedEntries++;} + if ((lr.VisitStatus & 2) > 0) { lr.syncedExit = true; Result.VisitsAddedExits++; } + } + else switch (cr.VisitStatus) + { + case 3: lr.syncedEntry = lr.syncedExit = true; Result.VisitsSkipped++; break; + case 1: if ((lr.VisitStatus & 2) == 2) { copyExit(lr, cr); lr.syncedEntry=lr.syncedExit = true; Result.VisitsAddedExits++; } break; + case 2: if ((lr.VisitStatus & 1) == 1) { copyEntry(lr, cr); lr.syncedEntry=lr.syncedExit= true; Result.VisitsAddedEntries++; } break; + } + } + ta.Update(ds.LocalVisits); + tc.Update(ds.CentralVisits); + } + spLog.KvClear(); + } + catch (System.Exception ex) + { + error = true; + Result.ErrorMessage = ex.Message; + spLog.setErrorException(ex); + spLog.WriteSplunkLog(sStep, spLog.splunkSeverity, null, spLog.splunkError); + } + } + private static void copyEntry(DataSet1.LocalVisitsRow lr, DataSet1.CentralVisitsRow cr) + { + cr["ID_Station"] = lr["ID_Station"]; + cr["ID_Visit"] = lr["ID_Visit"]; + cr["Inst_CODE"] = lr["Inst_CODE"]; + cr["PersID"] = lr["PersID"]; + cr["ID_Task"] = lr["ID_Task"]; + cr["EntryTime"] = lr["EntryTime"]; + cr["ID_EPD"] = lr["ID_EPD"]; + cr["isBG"] = lr["isBG"]; + cr["ENTRY_EPD_CLOCK"] = lr["ENTRY_EPD_CLOCK"]; + cr["epdType"] = lr["epdType"]; + } + private static void copyExit(DataSet1.LocalVisitsRow lr, DataSet1.CentralVisitsRow cr) + { + cr["ReturnTime"] = lr["ReturnTime"]; + cr["Hp10Dose"] = lr["Hp10Dose"]; + cr["Hp07Dose"] = lr["Hp07Dose"]; + cr["Hp10Total"] = lr["Hp10Total"]; + cr["Hp07Total"] = lr["Hp07Total"]; + cr["Hp10Peak"] = lr["Hp10Peak"]; + cr["Hp07Peak"] = lr["Hp07Peak"]; + cr["Hp10Time"] = lr["Hp10Time"]; + cr["Hp07Time"] = lr["Hp07Time"]; + cr["QualityData"] = lr["QualityData"]; + cr["K1"] = lr["K1"]; + cr["K2"] = lr["K2"]; + cr["K3"] = lr["K3"]; + cr["K4"] = lr["K4"]; + cr["K5"] = lr["K5"]; + cr["K6"] = lr["K6"]; + cr["SG"] = lr["SG"]; + cr["BC"] = lr["BC"]; + cr["FB"] = lr["FB"]; + cr["HG"] = lr["HG"]; + cr["alarmStatus"] = lr["alarmStatus"]; + cr["otherAlarms"] = lr["otherAlarms"]; + cr["errorStatus"] = lr["errorStatus"]; + cr["operatingStatus"] = lr["operatingStatus"]; + cr["isAlarm"] = lr["isAlarm"]; + cr["isAlarmCleared"] = lr["isAlarmCleared"]; + cr["ENTRY_EPD_CLOCK"] = lr["ENTRY_EPD_CLOCK"]; + cr["EXIT_EPD_CLOCK"] = lr["EXIT_EPD_CLOCK"]; + cr["TIME_LOST"] = lr["TIME_LOST"]; + } + private static DataSet1.CentralVisitsRow copyrow(DataSet1.LocalVisitsRow lr, DataSet1.CentralVisitsDataTable centralVisits) + { + DataSet1.CentralVisitsRow cr = centralVisits.NewCentralVisitsRow(); + foreach (DataColumn sc in lr.Table.Columns) + if (lr.Table.Columns.Contains(sc.ColumnName) ) cr[sc.ColumnName] = lr[sc.ColumnName]; + centralVisits.AddCentralVisitsRow(cr); + return cr; + } + private static void Connection_InfoMessage(object sender, System.Data.SqlClient.SqlInfoMessageEventArgs e) + { + spLog.Connection_InfoMessageLog(e, ref messages); + } + } +} diff --git a/syncEdosLocal/Properties/AssemblyInfo.cs b/syncEdosLocal/Properties/AssemblyInfo.cs index 653f7f5..5e38afc 100644 --- a/syncEdosLocal/Properties/AssemblyInfo.cs +++ b/syncEdosLocal/Properties/AssemblyInfo.cs @@ -1,36 +1,36 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("syncEdosLocal")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("syncEdosLocal")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("b2264ff1-0f36-401b-91fe-db3087ce05f5")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.5.7.0")] -[assembly: AssemblyFileVersion("1.5.7.0")] +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("syncEdosLocal")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("syncEdosLocal")] +[assembly: AssemblyCopyright("Copyright © Luc Vandenbroucke 2020-2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b2264ff1-0f36-401b-91fe-db3087ce05f5")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.6.1.0")] +[assembly: AssemblyFileVersion("1.6.1.0")] diff --git a/syncEdosLocal/packages.config b/syncEdosLocal/packages.config index f785ad5..8027cc2 100644 --- a/syncEdosLocal/packages.config +++ b/syncEdosLocal/packages.config @@ -1,5 +1,5 @@ - - - - + + + + \ No newline at end of file diff --git a/syncEdosLocal/syncEdosLocal.csproj b/syncEdosLocal/syncEdosLocal.csproj index 2c9c5df..5a48800 100644 --- a/syncEdosLocal/syncEdosLocal.csproj +++ b/syncEdosLocal/syncEdosLocal.csproj @@ -1,114 +1,114 @@ - - - - - - Debug - AnyCPU - {B2264FF1-0F36-401B-91FE-DB3087CE05F5} - Exe - syncEdosLocal - syncEdosLocal - v4.8 - 512 - true - true - - - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - - - - - - - - - - - - - True - True - DataSet1.xsd - - - - - True - True - Settings.settings - - - - - true - Designer - - - App.config - true - Designer - - - App.config - true - - - DataSet1.xsd - - - Designer - MSDataSetGenerator - DataSet1.Designer.cs - - - DataSet1.xsd - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - Always - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - + + + + + + Debug + AnyCPU + {B2264FF1-0F36-401B-91FE-DB3087CE05F5} + Exe + syncEdosLocal + syncEdosLocal + v4.8 + 512 + true + true + + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + + + + + + + + + + + + + + + True + True + DataSet1.xsd + + + + + True + True + Settings.settings + + + + + true + Designer + + + App.config + true + Designer + + + App.config + true + + + DataSet1.xsd + + + Designer + MSDataSetGenerator + DataSet1.Designer.cs + + + DataSet1.xsd + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + Always + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + + \ No newline at end of file