diff --git a/EgwProxy.SqlDb.Test/SqlFromDebug/BackupDb.sql b/EgwProxy.SqlDb.Test/SqlFromDebug/BackupDb.sql index f5b6e020..d3d82614 100644 Binary files a/EgwProxy.SqlDb.Test/SqlFromDebug/BackupDb.sql and b/EgwProxy.SqlDb.Test/SqlFromDebug/BackupDb.sql differ diff --git a/EgwProxy.SqlDb.Test/SqlFromDebug/GetMachineEvList.sql b/EgwProxy.SqlDb.Test/SqlFromDebug/GetMachineEvList.sql index ec9326c1..d29cae02 100644 Binary files a/EgwProxy.SqlDb.Test/SqlFromDebug/GetMachineEvList.sql and b/EgwProxy.SqlDb.Test/SqlFromDebug/GetMachineEvList.sql differ diff --git a/EgwProxy.SqlDb.Test/SqlFromDebug/GetMachineFluxLog.sql b/EgwProxy.SqlDb.Test/SqlFromDebug/GetMachineFluxLog.sql index d4309047..b13eda14 100644 Binary files a/EgwProxy.SqlDb.Test/SqlFromDebug/GetMachineFluxLog.sql and b/EgwProxy.SqlDb.Test/SqlFromDebug/GetMachineFluxLog.sql differ diff --git a/EgwProxy.SqlDb.Test/SqlFromDebug/ResetPodlMes.sql b/EgwProxy.SqlDb.Test/SqlFromDebug/ResetPodlMes.sql index dada7903..8f0056e4 100644 Binary files a/EgwProxy.SqlDb.Test/SqlFromDebug/ResetPodlMes.sql and b/EgwProxy.SqlDb.Test/SqlFromDebug/ResetPodlMes.sql differ diff --git a/EgwProxy.SqlDb.Test/SqlFromDebug/SyncPodlToMachine.sql b/EgwProxy.SqlDb.Test/SqlFromDebug/SyncPodlToMachine.sql index 6ae2377c..ee4794d1 100644 Binary files a/EgwProxy.SqlDb.Test/SqlFromDebug/SyncPodlToMachine.sql and b/EgwProxy.SqlDb.Test/SqlFromDebug/SyncPodlToMachine.sql differ diff --git a/EgwProxy.SqlDb.Test/SqlFromDebug/Test.sql b/EgwProxy.SqlDb.Test/SqlFromDebug/Test.sql new file mode 100644 index 00000000..b1a3937e --- /dev/null +++ b/EgwProxy.SqlDb.Test/SqlFromDebug/Test.sql @@ -0,0 +1,66 @@ +select * from ActType +select * from ActList +select * from SyncState +select * from MesPODL_last +select * from MesPODL_req + +-- test scrittura PODL: OK! +exec dbo.SyncPodlToMachine + +exec dbo.GetMachineSigLog +select * from SyncState +select * from MachineSignalLog + +/* +truncate table MachineSignalLog +update SyncState +set lastidx=0 +where TableName='syn_M2ERP_MACHINE_STATE' +*/ + + +exec dbo.GetMachineFluxLog + +select * from syn_ERP2M +select * from syn_M2ERP_MACHINE_STATE +select * from syn_M2ERP_PRODORDERS + + +select * from syn_ERP2M + + +SELECT * FROM MachineFluxLog + + +/* + +drop table __MigrationHistory +drop table ActList +drop table ActType +drop table MachineEventList +drop table MachineFluxLog +drop table MachinePODL +drop table MesPODL_last +drop table MesPODL_req +drop table SyncState + +drop PROCEDURE dbo.BackupDb +drop PROCEDURE dbo.ExportAll +drop PROCEDURE dbo.GetMachineEvList +drop PROCEDURE dbo.GetMachineFluxLog +drop PROCEDURE dbo.ImportAll +drop PROCEDURE dbo.ResetPodlMes +drop PROCEDURE dbo.SyncPodlToMachine + +*/ + + + + + +select * from ERP2M + +select * from M2ERP_MACHINE_STATE where ActiveProdOrder = 'ODL0003743' +select * from M2ERP_PRODORDERS + +select * from M2ERP_PRODORDERS where ProdOrder = 'ODL0003743'