diff --git a/.gitignore b/.gitignore
index 20bea58..e18eb7c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,4 +48,7 @@ Projects/WebGIM/GIM_site/obj/*
/Projects/WebGIM/GIM_data/obj/SomaschiniUSA/*
!/Projects/WebGIM/GIM_data/obj/SomaschiniUSA/Package/*
/Projects/WebGIM/GIM_data/obj/SomaschiniUSA/Package/PackageTmp/*
+/Projects/WebGIM/GIM_data/obj/*
+
+Projects/GimDB/GimDB.dbmdl
\ No newline at end of file
diff --git a/Projects/GimDB/GimDB.sqlproj b/Projects/GimDB/GimDB.sqlproj
new file mode 100644
index 0000000..e30e9f5
--- /dev/null
+++ b/Projects/GimDB/GimDB.sqlproj
@@ -0,0 +1,828 @@
+
+
+
+
+ Debug
+ AnyCPU
+ GimDB
+ 2.0
+ 4.1
+ {a3141577-5116-4ffb-8c3e-557644ca98e0}
+ Microsoft.Data.Tools.Schema.Sql.Sql110DatabaseSchemaProvider
+ Database
+
+
+ GimDB
+ GimDB
+ 1033,CI
+ BySchemaAndSchemaType
+ True
+ v4.5
+ CS
+ Properties
+ False
+ True
+ True
+ Latin1_General_CI_AS
+ False
+ False
+ None
+ True
+ False
+ 2049
+ OFF
+ 0
+ SECONDS
+ False
+ True
+ 2
+ Days
+ False
+ False
+ False
+ False
+ CHECKSUM
+ DisableBroker
+ False
+ SIMPLE
+ False
+ False
+ True
+ False
+ 90
+ False
+ False
+ False
+ False
+ False
+ False
+ False
+ False
+ ONLINE
+ False
+ GLOBAL
+ False
+ True
+ False
+ True
+ False
+ MULTI_USER
+ SIMPLE
+ False
+ PRIMARY
+ True
+
+
+ bin\Release\
+ $(MSBuildProjectName).sql
+ False
+ pdbonly
+ true
+ false
+ true
+ prompt
+ 4
+
+
+ $(MSBuildProjectName).sql
+ false
+ true
+ full
+ false
+ true
+ true
+ prompt
+ 4
+
+
+ 11.0
+
+ True
+ 11.0
+
+
+ bin\Debug\
+ $(MSBuildProjectName).sql
+ false
+ true
+ full
+ false
+ true
+ true
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+ On
+ On
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Projects/GimDB/GimDB.sqlproj.user b/Projects/GimDB/GimDB.sqlproj.user
new file mode 100644
index 0000000..9fcb30c
--- /dev/null
+++ b/Projects/GimDB/GimDB.sqlproj.user
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/Projects/GimDB/Import Schema Logs/GimDB_20151119110615.log b/Projects/GimDB/Import Schema Logs/GimDB_20151119110615.log
new file mode 100644
index 0000000..edc56b8
--- /dev/null
+++ b/Projects/GimDB/Import Schema Logs/GimDB_20151119110615.log
@@ -0,0 +1,76 @@
+19/11/2015 12:06:15 This log contains information about the import schema operation into project 'GimDB' on computer 'W10-DESK-SAM' by user 'samuele'.
+19/11/2015 12:06:16 Import of database schema has started.
+19/11/2015 12:06:27 Gathering database options
+19/11/2015 12:06:27 Gathering users
+19/11/2015 12:06:27 Gathering roles
+19/11/2015 12:06:27 Gathering application roles
+19/11/2015 12:06:27 Gathering role memberships
+19/11/2015 12:06:27 Gathering filegroups
+19/11/2015 12:06:27 Gathering full-text catalogs
+19/11/2015 12:06:27 Gathering assemblies
+19/11/2015 12:06:27 Gathering certificates
+19/11/2015 12:06:27 Gathering asymmetric keys
+19/11/2015 12:06:27 Gathering symmetric keys
+19/11/2015 12:06:27 Gathering encrypted symmetric keys
+19/11/2015 12:06:27 Gathering schemas
+19/11/2015 12:06:27 Gathering XML schema collections
+19/11/2015 12:06:27 Gathering user-defined data types
+19/11/2015 12:06:27 Gathering user-defined types
+19/11/2015 12:06:27 Gathering table types
+19/11/2015 12:06:27 Gathering unique keys for table types
+19/11/2015 12:06:27 Gathering primary keys for table types
+19/11/2015 12:06:27 Gathering check constraints for table types
+19/11/2015 12:06:27 Gathering default constraints for table types
+19/11/2015 12:06:27 Gathering partition functions
+19/11/2015 12:06:27 Gathering partition schemes
+19/11/2015 12:06:27 Gathering functions
+19/11/2015 12:06:27 Gathering encrypted functions
+19/11/2015 12:06:27 Gathering aggregates
+19/11/2015 12:06:27 Gathering procedures
+19/11/2015 12:06:27 Gathering encrypted procedures
+19/11/2015 12:06:27 Gathering tables
+19/11/2015 12:06:27 Gathering primary keys
+19/11/2015 12:06:27 Gathering unique constraints
+19/11/2015 12:06:27 Gathering foreign keys
+19/11/2015 12:06:27 Gathering default constraints
+19/11/2015 12:06:27 Gathering check constraints
+19/11/2015 12:06:27 Gathering views
+19/11/2015 12:06:27 Gathering encrypted views
+19/11/2015 12:06:27 Gathering indexes
+19/11/2015 12:06:27 Gathering statistics
+19/11/2015 12:06:27 Gathering full-text index stoplists
+19/11/2015 12:06:27 Gathering search property lists
+19/11/2015 12:06:27 Gathering search properties
+19/11/2015 12:06:27 Gathering full-text indexes
+19/11/2015 12:06:27 Gathering column store indexes
+19/11/2015 12:06:27 Gathering spatial indexes
+19/11/2015 12:06:27 Gathering XML indexes
+19/11/2015 12:06:27 Gathering Selective XML indexes
+19/11/2015 12:06:27 Gathering encrypted triggers
+19/11/2015 12:06:27 Gathering triggers
+19/11/2015 12:06:27 Gathering encrypted and clr ddl triggers
+19/11/2015 12:06:27 Gathering ddl triggers
+19/11/2015 12:06:27 Gathering synonyms
+19/11/2015 12:06:27 Gathering defaults
+19/11/2015 12:06:27 Gathering data constraint uddt bindings
+19/11/2015 12:06:27 Gathering rules
+19/11/2015 12:06:27 Gathering data constraint uddt bindings
+19/11/2015 12:06:27 Gathering message types
+19/11/2015 12:06:27 Gathering queues
+19/11/2015 12:06:27 Gathering contracts
+19/11/2015 12:06:27 Gathering services
+19/11/2015 12:06:27 Gathering event notifications
+19/11/2015 12:06:27 Gathering remote service bindings
+19/11/2015 12:06:27 Gathering broker priorities
+19/11/2015 12:06:27 Gathering signatures
+19/11/2015 12:06:27 Gathering data compression options
+19/11/2015 12:06:27 Gathering sequence types
+19/11/2015 12:06:27 Gathering extended properties
+19/11/2015 12:06:27 Gathering credentials
+19/11/2015 12:06:27 Gathering logins
+19/11/2015 12:06:27 Gathering server audits
+19/11/2015 12:06:28 Scanning project for duplicate elements
+19/11/2015 12:06:29 Finished duplicate element processing
+19/11/2015 12:06:32 Finished importing database.
+19/11/2015 12:06:32 A summary of the import was saved to the following location: C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\Import Schema Logs\GimDB_20151119110615.log
+19/11/2015 12:06:32 Click Finish to continue...
diff --git a/Projects/GimDB/LiveDb2File.scmp b/Projects/GimDB/LiveDb2File.scmp
new file mode 100644
index 0000000..a07b12a
--- /dev/null
+++ b/Projects/GimDB/LiveDb2File.scmp
@@ -0,0 +1,414 @@
+
+
+ 10
+
+
+ Data Source=SQL-STEAM\SQL2012;Initial Catalog=GIM;Persist Security Info=True;User ID=sa;Pooling=False
+
+
+
+
+ {a3141577-5116-4ffb-8c3e-557644ca98e0}
+ GimDB
+
+
+
+
+
+ Version
+ 1
+
+
+
+
+ PlanGenerationType
+ SqlDeploymentOptions
+
+
+ AllowExistingModelErrors
+ False
+
+
+ AllowIncompatiblePlatform
+ False
+
+
+ BackupDatabaseBeforeChanges
+ False
+
+
+ BlockOnPossibleDataLoss
+ True
+
+
+ BlockWhenDriftDetected
+ False
+
+
+ CompareUsingTargetCollation
+ False
+
+
+ CommentOutSetVarDeclarations
+ False
+
+
+ CreateNewDatabase
+ False
+
+
+ DeployDatabaseInSingleUserMode
+ False
+
+
+ DisableAndReenableDdlTriggers
+ True
+
+
+ DoNotAlterChangeDataCaptureObjects
+ True
+
+
+ DoNotAlterReplicatedObjects
+ True
+
+
+ DropConstraintsNotInSource
+ True
+
+
+ DropDmlTriggersNotInSource
+ True
+
+
+ DropExtendedPropertiesNotInSource
+ True
+
+
+ DropIndexesNotInSource
+ True
+
+
+ DropPermissionsNotInSource
+ False
+
+
+ DropObjectsNotInSource
+ True
+
+
+ DropRoleMembersNotInSource
+ False
+
+
+ DropStatisticsNotInSource
+ True
+
+
+ GenerateSmartDefaults
+ False
+
+
+ IgnoreDdlTriggerOrder
+ False
+
+
+ IgnoreDdlTriggerState
+ False
+
+
+ IgnoreObjectPlacementOnPartitionScheme
+ True
+
+
+ IgnoreAuthorizer
+ False
+
+
+ IgnoreDefaultSchema
+ False
+
+
+ IgnoreRouteLifetime
+ True
+
+
+ IgnoreCryptographicProviderFilePath
+ True
+
+
+ IgnoreComments
+ False
+
+
+ IgnoreWhitespace
+ True
+
+
+ IgnoreKeywordCasing
+ True
+
+
+ IgnoreSemicolonBetweenStatements
+ True
+
+
+ IgnorePartitionSchemes
+ False
+
+
+ IgnoreWithNocheckOnCheckConstraints
+ False
+
+
+ IgnoreWithNocheckOnForeignKeys
+ False
+
+
+ IgnoreIdentitySeed
+ False
+
+
+ IgnoreIncrement
+ False
+
+
+ IgnoreFillFactor
+ True
+
+
+ IgnoreIndexPadding
+ True
+
+
+ IgnoreColumnCollation
+ False
+
+
+ IgnoreLockHintsOnIndexes
+ False
+
+
+ IgnoreTableOptions
+ False
+
+
+ IgnoreIndexOptions
+ False
+
+
+ IgnoreDmlTriggerOrder
+ False
+
+
+ IgnoreDmlTriggerState
+ False
+
+
+ IgnoreAnsiNulls
+ True
+
+
+ IgnoreQuotedIdentifiers
+ True
+
+
+ IgnoreUserSettingsObjects
+ False
+
+
+ IgnoreFilegroupPlacement
+ True
+
+
+ IgnoreFullTextCatalogFilePath
+ True
+
+
+ IgnoreFileAndLogFilePath
+ True
+
+
+ IgnoreLoginSids
+ True
+
+
+ IgnoreNotForReplication
+ False
+
+
+ IgnoreFileSize
+ True
+
+
+ IncludeCompositeObjects
+ False
+
+
+ IncludeTransactionalScripts
+ False
+
+
+ NoAlterStatementsToChangeCLRTypes
+ False
+
+
+ PopulateFilesOnFileGroups
+ True
+
+
+ RegisterDataTierApplication
+ False
+
+
+ ScriptDatabaseCollation
+ False
+
+
+ ScriptDatabaseCompatibility
+ False
+
+
+ ScriptDatabaseOptions
+ False
+
+
+ ScriptDeployStateChecks
+ False
+
+
+ ScriptFileSize
+ False
+
+
+ ScriptNewConstraintValidation
+ True
+
+
+ ScriptRefreshModule
+ True
+
+
+ TargetDatabaseName
+ GimDB
+
+
+ TargetConnectionString
+ Integrated Security=True;Pooling=False;Connect Timeout=30
+
+
+ TreatVerificationErrorsAsWarnings
+ False
+
+
+ UnmodifiableObjectWarnings
+ True
+
+
+ VerifyCollationCompatibility
+ True
+
+
+ VerifyDeployment
+ True
+
+
+ RunDeploymentPlanExecutors
+ False
+
+
+ AllowDropBlockingAssemblies
+ False
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlDatabaseOptions
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlErrorMessage
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlLogin
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlServerRoleMembership
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlLinkedServer
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlLinkedServerLogin
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlFile
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlServerDdlTrigger
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlMasterKey
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlCredential
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlRoute
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlEventNotification
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlEndpoint
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlDatabaseAuditSpecification
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlServerAudit
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlServerAuditSpecification
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlCryptographicProvider
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlDatabaseEncryptionKey
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlEventSession
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlUserDefinedServerRole
+ ExcludedType
+
+
+ Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlAssemblyFile
+ ExcludedType
+
+
+
+
+ 2
+ 100
+ Equals_Objects,Not_Supported_Deploy
+
+
\ No newline at end of file
diff --git a/Projects/GimDB/Security/RoleMemberships.sql b/Projects/GimDB/Security/RoleMemberships.sql
new file mode 100644
index 0000000..49bf978
--- /dev/null
+++ b/Projects/GimDB/Security/RoleMemberships.sql
@@ -0,0 +1,6 @@
+ALTER ROLE [db_owner] ADD MEMBER [steamware];
+
+
+
+
+
diff --git a/Projects/GimDB/Security/dwh.sql b/Projects/GimDB/Security/dwh.sql
new file mode 100644
index 0000000..ed915b1
--- /dev/null
+++ b/Projects/GimDB/Security/dwh.sql
@@ -0,0 +1,7 @@
+CREATE SCHEMA [dwh]
+ AUTHORIZATION [dbo];
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'Description', @value = N'Schema x data wharehouse', @level0type = N'SCHEMA', @level0name = N'dwh';
+
diff --git a/Projects/GimDB/Security/export.sql b/Projects/GimDB/Security/export.sql
new file mode 100644
index 0000000..9dfde35
--- /dev/null
+++ b/Projects/GimDB/Security/export.sql
@@ -0,0 +1,3 @@
+CREATE SCHEMA [export]
+ AUTHORIZATION [dbo];
+
diff --git a/Projects/GimDB/Security/import.sql b/Projects/GimDB/Security/import.sql
new file mode 100644
index 0000000..086d504
--- /dev/null
+++ b/Projects/GimDB/Security/import.sql
@@ -0,0 +1,5 @@
+CREATE SCHEMA [import]
+ AUTHORIZATION [dbo];
+
+
+
diff --git a/Projects/GimDB/Security/som_ita.sql b/Projects/GimDB/Security/som_ita.sql
new file mode 100644
index 0000000..d55f653
--- /dev/null
+++ b/Projects/GimDB/Security/som_ita.sql
@@ -0,0 +1,7 @@
+CREATE SCHEMA [som_ita]
+ AUTHORIZATION [dbo];
+
+
+
+
+
diff --git a/Projects/GimDB/Security/steamware.sql b/Projects/GimDB/Security/steamware.sql
new file mode 100644
index 0000000..ccc0bcd
--- /dev/null
+++ b/Projects/GimDB/Security/steamware.sql
@@ -0,0 +1,2 @@
+CREATE USER [steamware];
+
diff --git a/Projects/GimDB/Security/voc.sql b/Projects/GimDB/Security/voc.sql
new file mode 100644
index 0000000..788a11d
--- /dev/null
+++ b/Projects/GimDB/Security/voc.sql
@@ -0,0 +1,3 @@
+CREATE SCHEMA [voc]
+ AUTHORIZATION [dbo];
+
diff --git a/Projects/GimDB/bin/Debug/GimDB.dacpac b/Projects/GimDB/bin/Debug/GimDB.dacpac
new file mode 100644
index 0000000..9ab2d7c
Binary files /dev/null and b/Projects/GimDB/bin/Debug/GimDB.dacpac differ
diff --git a/Projects/GimDB/bin/Debug/GimDB.dll b/Projects/GimDB/bin/Debug/GimDB.dll
new file mode 100644
index 0000000..e83a4c9
Binary files /dev/null and b/Projects/GimDB/bin/Debug/GimDB.dll differ
diff --git a/Projects/GimDB/bin/Output/GimDB.dacpac b/Projects/GimDB/bin/Output/GimDB.dacpac
new file mode 100644
index 0000000..fed9bb2
Binary files /dev/null and b/Projects/GimDB/bin/Output/GimDB.dacpac differ
diff --git a/Projects/GimDB/bin/Output/GimDB.dll b/Projects/GimDB/bin/Output/GimDB.dll
new file mode 100644
index 0000000..856f785
Binary files /dev/null and b/Projects/GimDB/bin/Output/GimDB.dll differ
diff --git a/Projects/GimDB/bin/Release/GimDB.dacpac b/Projects/GimDB/bin/Release/GimDB.dacpac
new file mode 100644
index 0000000..24f1edb
Binary files /dev/null and b/Projects/GimDB/bin/Release/GimDB.dacpac differ
diff --git a/Projects/GimDB/bin/Release/GimDB.dll b/Projects/GimDB/bin/Release/GimDB.dll
new file mode 100644
index 0000000..ff59b89
Binary files /dev/null and b/Projects/GimDB/bin/Release/GimDB.dll differ
diff --git a/Projects/GimDB/dbo/Functions/f_dateOnly.sql b/Projects/GimDB/dbo/Functions/f_dateOnly.sql
new file mode 100644
index 0000000..6fce43e
--- /dev/null
+++ b/Projects/GimDB/dbo/Functions/f_dateOnly.sql
@@ -0,0 +1,16 @@
+
+/***********************************************************************************
+* FUNCTION f_dateOnly
+*
+* restituisce solo la parte data di un campo datetime (ovvero a mezzanotte...)
+*
+***********************************************************************************/
+create FUNCTION f_dateOnly
+(
+ @dateIn DATETIME
+)
+RETURNS DATETIME
+AS
+ BEGIN
+ RETURN dateadd(dd, -datediff(dd, @dateIn, 1), 1)
+ END
diff --git a/Projects/GimDB/dbo/Functions/f_diffOreLavorative.sql b/Projects/GimDB/dbo/Functions/f_diffOreLavorative.sql
new file mode 100644
index 0000000..7f2f813
--- /dev/null
+++ b/Projects/GimDB/dbo/Functions/f_diffOreLavorative.sql
@@ -0,0 +1,64 @@
+
+/***********************************************************************************
+* FUNCTION f_diffOreLavorative
+*
+* calcola le effettive ore lavorative sottraendo chiusure x festività o aperture programmate
+*
+***********************************************************************************/
+create FUNCTION f_diffOreLavorative
+(
+ @dataFrom DATETIME,
+ @dataTo DATETIME,
+ @idxMacchina INT -- per ora non lo considero poiché non ci sono calendari diversi x macchina...
+)
+RETURNS FLOAT
+AS
+ BEGIN
+
+ -- dichiarazioni variabili
+ DECLARE @oreTot AS FLOAT
+ DECLARE @oreOff AS FLOAT
+ DECLARE @tmp_dates TABLE (DateValue DATETIME, h INT)
+ SET @oreTot = 0
+
+ -- controllo date coerenti
+ IF(@dataTo > @dataFrom)
+ BEGIN
+ -- calcolo totale "raw" delle ore
+ SET @oreTot = CAST(ISNULL(DATEDIFF(minute, @dataFrom, @dataTo), 0) AS float) / 60;
+ -- definisco tabella cte ricorsiva
+ WITH mycte AS
+ (
+ SELECT CAST(dbo.f_dateOnly(DATEADD(dd,1,@dataFROM)) AS DATETIME) DateValue
+ UNION ALL
+ SELECT DateValue + 1
+ FROM mycte
+ WHERE DateValue + 1 < dbo.f_dateOnly(@dataTo)
+ )
+ -- carico nella tab temporanea i sabati e le domeniche...
+ INSERT into @tmp_dates(DateValue, h)
+ SELECT *, CASE ((DATEPART(dw, DateValue) + @@DATEFIRST) % 7) WHEN 0 THEN 16 ELSE 24 END AS h
+ FROM mycte
+ WHERE ((DATEPART(dw, DateValue) + @@DATEFIRST) % 7) IN (0,1)
+ OPTION (MAXRECURSION 0)
+ -- carico le festività per le date NON ancora presenti
+ insert into @tmp_dates(DateValue, h)
+ select data as DateValue, 24 as h--, descrizione
+ from CalendFesteFerie
+ where data between @dataFrom and @dataTo and data not in (select distinct DateValue from @tmp_dates)
+ -- aggiorno sabati/domenica che fossero festivi (ipotesi che hfest > h sab/dom...
+ UPDATE @tmp_dates
+ SET h=24
+ WHERE DateValue in (SELECT data FROM CalendFesteFerie WHERE data between @dataFrom and @dataTo)
+
+ -- calcolo INFINE le ore off!
+ SET @oreOff = (SELECT ISNULL(SUM(h),0) FROM @tmp_dates)
+ END
+ -- setto le nuove ore totali... se ho un numero di ore > delle fermate le sottraggo per evitare ore engative...
+ IF(@oreTot > @oreOff)
+ BEGIN
+ SET @oreTot = @oreTot - @oreOff
+ END
+
+ RETURN @oreTot
+ END
diff --git a/Projects/GimDB/dbo/Functions/f_fixCR.sql b/Projects/GimDB/dbo/Functions/f_fixCR.sql
new file mode 100644
index 0000000..b48c6d8
--- /dev/null
+++ b/Projects/GimDB/dbo/Functions/f_fixCR.sql
@@ -0,0 +1,15 @@
+
+/***********************************************************************************
+* FUNCTION f_fixCR
+*
+* restituisce una stringa in cui ritorni/andate a capo sono sostituiti con "-"
+*
+***********************************************************************************/
+CREATE FUNCTION [dbo].[f_fixCR] (@string VARCHAR(MAX))
+RETURNS VARCHAR(MAX) AS
+BEGIN
+
+ RETURN REPLACE(REPLACE(REPLACE(@string, CHAR(13), '-'), CHAR(10), '-'), CHAR(9), '-')
+
+END
+
diff --git a/Projects/GimDB/dbo/Functions/f_padLeft.sql b/Projects/GimDB/dbo/Functions/f_padLeft.sql
new file mode 100644
index 0000000..39dae2c
--- /dev/null
+++ b/Projects/GimDB/dbo/Functions/f_padLeft.sql
@@ -0,0 +1,18 @@
+/***********************************************************************************
+* FUNCTION f_padLeft
+*
+* restituisce una stringa con padding del carattere desiderato per la lunghezza totale desiderata
+*
+***********************************************************************************/
+CREATE FUNCTION f_padLeft (@string VARCHAR(255), @desired_length INTEGER, @pad_character CHAR(1))
+RETURNS VARCHAR(255) AS
+BEGIN
+
+ -- Prefix the required number of spaces to bulk up the string and then replace the spaces with the desired character
+ RETURN CASE
+ WHEN LEN(@string) < @desired_length
+ THEN REPLACE(SPACE(@desired_length - LEN(@string)), ' ', @pad_character) + @string
+ ELSE @string
+ END
+
+END
diff --git a/Projects/GimDB/dbo/Functions/rightDivision.sql b/Projects/GimDB/dbo/Functions/rightDivision.sql
new file mode 100644
index 0000000..2db6168
--- /dev/null
+++ b/Projects/GimDB/dbo/Functions/rightDivision.sql
@@ -0,0 +1,29 @@
+/***********************************************************************************
+* FUNCTION rightDivision
+*
+* calcola la divisione altrimenti mostra errore -1 se dividendo/divisore < 0
+*
+***********************************************************************************/
+CREATE FUNCTION rightDivision
+(
+ @dividendo float,
+ @divisore float
+)
+RETURNS float
+AS
+ BEGIN
+
+ declare @errore as int
+ declare @risultato as float
+
+ set @errore =0
+
+ set @errore = case when (isnull(@dividendo,0))<=0 then 1 end
+
+ set @errore = case when (isnull(@divisore,0)) <=0 then 1 end
+
+ set @risultato= case when (@errore=1) then -1 else @dividendo/@divisore end
+
+ RETURN @risultato
+
+ END
diff --git a/Projects/GimDB/dbo/Stored Procedures/clonaDirittiUser.sql b/Projects/GimDB/dbo/Stored Procedures/clonaDirittiUser.sql
new file mode 100644
index 0000000..83aead0
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/clonaDirittiUser.sql
@@ -0,0 +1,14 @@
+create PROCEDURE clonaDirittiUser
+(
+ @userOrig varchar(20),
+ @userDest varchar(20)
+)
+AS
+
+ INSERT INTO DIRITTI
+ (USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE)
+SELECT @userDest AS USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE
+FROM DIRITTI AS DIRITTI_1
+WHERE (USER_NAME = @userOrig)
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/clonaDirittiUserModulo.sql b/Projects/GimDB/dbo/Stored Procedures/clonaDirittiUserModulo.sql
new file mode 100644
index 0000000..b174069
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/clonaDirittiUserModulo.sql
@@ -0,0 +1,15 @@
+create PROCEDURE clonaDirittiUserModulo
+(
+ @userOrig varchar(20),
+ @userDest varchar(20),
+ @codModulo varchar(31)
+)
+AS
+
+ INSERT INTO DIRITTI
+ (USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE)
+SELECT @userDest AS USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE
+FROM DIRITTI AS DIRITTI_1
+WHERE (USER_NAME = @userOrig) AND (COD_MODULO=@codModulo)
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/sp_IndiciAndShrink.sql b/Projects/GimDB/dbo/Stored Procedures/sp_IndiciAndShrink.sql
new file mode 100644
index 0000000..432e454
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_IndiciAndShrink.sql
@@ -0,0 +1,48 @@
+-- =============================================
+-- Author: Marco Salvi
+-- Create date: 11/03/2009
+-- Description: Stored procedure per ricostruire gli indici e fare lo shrink su un db
+-- =============================================
+CREATE PROCEDURE [dbo].[sp_IndiciAndShrink]
+(
+ @databaseName sysname
+)
+AS
+BEGIN
+
+ -- elimino eventuale tab temporanea preesistente
+ IF (SELECT COUNT(*) FROM TEMPDB..SYSOBJECTS WHERE NAME = '##TMP_nomiTabelle') > 0
+ BEGIN
+ DROP TABLE ##TMP_nomiTabelle
+ END
+
+ -- enumero le tab del db in una tab temporanea
+ SELECT IDENT = IDENTITY (INT,1,1), name
+ INTO ##TMP_nomiTabelle
+ FROM sys.Tables
+
+ -- eseguo reindicizzazione
+ DECLARE @VAR1 INT
+ SET @VAR1 = 1
+ WHILE @VAR1 < = ( SELECT COUNT(*) FROM ##TMP_nomiTabelle)
+ BEGIN
+
+ DECLARE @OBJECTNAME VARCHAR(256)
+
+ -- carico il nome della tab i-esima
+ SELECT @OBJECTNAME = name
+ FROM ##TMP_nomiTabelle
+ WHERE [IDENT] = @VAR1
+
+ -- rebuild indice
+ DBCC DBREINDEX(@OBJECTNAME)
+
+ -- incremento
+ SET @VAR1 = @VAR1 + 1
+
+ END
+
+ --shrink del db
+ DBCC SHRINKDATABASE (@databaseName)
+
+END
diff --git a/Projects/GimDB/dbo/Stored Procedures/sp_caricaUpdateMAcchine.sql b/Projects/GimDB/dbo/Stored Procedures/sp_caricaUpdateMAcchine.sql
new file mode 100644
index 0000000..f83ae5b
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_caricaUpdateMAcchine.sql
@@ -0,0 +1,79 @@
+/*************************************
+* STORED PROCEDURE sp_caricaUpdateMAcchine
+* carica impianti/macchien da tab temporanea
+*
+* modif.: S.E.L. - 2015.02.04
+**************************************/
+CREATE PROCEDURE sp_caricaUpdateMAcchine
+AS
+
+SET XACT_ABORT ON;
+
+DECLARE @Id AS INT = 0;
+
+BEGIN TRAN
+
+ -- reset idx tabelle
+ SELECT @Id = ISNULL(MAX(idxImpianto),0) FROM dbo.AnagImpianti
+ DBCC CHECKIDENT ('AnagImpianti', RESEED, @Id);
+
+ SELECT @Id = ISNULL(MAX(idxMacchina),0) FROM dbo.AnagMacchine
+ DBCC CHECKIDENT ('AnagMacchine', RESEED, @Id);
+
+ SELECT @Id = ISNULL(MAX(idxFamMacchine),0) FROM dbo.AnagFamMacchine
+ DBCC CHECKIDENT ('AnagFamMacchine', RESEED, @Id);
+
+ -- cerco se ci sono nuovi impianti e lo carico
+ INSERT INTO dbo.AnagImpianti(codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
+ SELECT 'IT' + dbo.f_padLeft(ROW_NUMBER() OVER (ORDER BY reparto), 2,'0') as codImpianto,
+ reparto as nomeImpianto,
+ 'Reparto' as tipoImpianto,
+ CONVERT(DATETIME, '01-01-'+CAST(MIN(anno) AS NVARCHAR(4)), 110) as funzDal, '9999-12-31' as funzAl
+ FROM tmp_importaMacchine tmp
+ LEFT OUTER JOIN AnagImpianti ai ON tmp.reparto = ai.nomeImpianto
+ WHERE ai.codImpianto IS NULL
+ GROUP BY reparto
+
+ -- carico famiglie nuove e le carico
+ INSERT INTO dbo.AnagFamMacchine
+ SELECT DISTINCT Gruppo FROM dbo.tmp_importaMacchine AS i
+ LEFT JOIN dbo.AnagFamMacchine AS f ON RTRIM(i.Gruppo) = RTRIM(f.nomeFamMacch)
+ WHERE f.nomeFamMacch IS NULL
+
+ -- cerco se ci sono nuove macchine e le carico
+ INSERT INTO dbo.AnagMacchine
+ (codMacchina, nomeMacchina, modello, funzDal, idxImpianto, funzAl, kgPeso, kwConsumo, anno, matricola)
+ SELECT ISNULL(i.idGest, N'--') AS codMacchina,
+ ISNULL(i.denominazione, N'nd') AS nomeMacchina,
+ ISNULL(i.costruttore, N'nd') AS modello,
+ CAST(CAST(ISNULL(i.anno, 1900) AS varchar) + '-01-01 12:00:00' AS datetime) AS funzDal,
+ AnagImpianti.idxImpianto,
+ CAST('9999-12-31' AS datetime) AS fine,
+ 1 AS kg,
+ 1 AS kw,
+ ISNULL(i.anno, 1900) AS anno,
+ i.matricola
+ FROM dbo.tmp_importaMacchine AS i
+ INNER JOIN AnagImpianti ON i.reparto = AnagImpianti.nomeImpianto
+ LEFT JOIN dbo.AnagMacchine AS am ON i.idGest = am.codMacchina
+ WHERE am.codMacchina IS NULL -- solo nuove
+
+ -- carico Macchine2FamMacchine - solo x macchine nuove ( NON faccio update )
+ INSERT INTO dbo.Macchine2FamMacchine
+ SELECT m.idxMacchina, f.idxFamMacchine FROM dbo.AnagMacchine AS m
+ INNER JOIN dbo.tmp_importaMacchine AS i ON m.codMacchina = i.idGest
+ INNER JOIN dbo.AnagFamMacchine AS f ON i.Gruppo = f.nomeFamMacch
+ LEFT JOIN dbo.Macchine2FamMacchine AS m2f ON m.idxMacchina = m2f.idxMacchina
+ WHERE m2f.idxMacchina IS NULL
+
+ /* Test
+ SELECT * FROM tmp_importaMacchine
+ SELECT * FROM AnagFamMacchine
+ SELECT * FROM AnagMacchine
+ SELECT * FROM AnagImpianti
+ SELECT * FROM dbo.Macchine2FamMacchine
+ */
+
+COMMIT
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/sp_clonaImpianto.sql b/Projects/GimDB/dbo/Stored Procedures/sp_clonaImpianto.sql
new file mode 100644
index 0000000..f9f74e9
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_clonaImpianto.sql
@@ -0,0 +1,23 @@
+/*************************************
+* STORED PROCEDURE sp_clonaImpianto
+* Clona i dati dell'impianto indicato
+*
+* modif.: S.E.L. - 2009.01.14
+**************************************/
+CREATE PROCEDURE dbo.sp_clonaImpianto
+(
+ @idxImpianto int
+)
+AS
+
+BEGIN tran
+
+ INSERT INTO AnagImpianti
+ (codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
+ SELECT codImpianto + '-clone' AS Expr1, nomeImpianto + '-clone' AS Expr2, tipoImpianto, funzDal, funzAl
+ FROM AnagImpianti AS AnagImpianti_1
+ WHERE (idxImpianto = @idxImpianto)
+
+COMMIT tran
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/sp_clonaMacchina.sql b/Projects/GimDB/dbo/Stored Procedures/sp_clonaMacchina.sql
new file mode 100644
index 0000000..a6cc941
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_clonaMacchina.sql
@@ -0,0 +1,23 @@
+/*************************************
+* STORED PROCEDURE sp_clonaMacchina
+* Clona i dati della macchina indicata
+*
+* modif.: S.E.L. - 2009.01.14
+**************************************/
+CREATE PROCEDURE dbo.sp_clonaMacchina
+(
+ @idxMacchina int
+)
+AS
+
+BEGIN tran
+
+ INSERT INTO AnagMacchine
+ (idxImpianto, codMacchina, nomeMacchina, modello, anno, kgPeso, kwConsumo, funzDal, funzAl)
+ SELECT idxImpianto, codMacchina + '-clone' AS Expr1, nomeMacchina + '-clone' AS Expr2, modello, anno, kgPeso, kwConsumo, funzDal, funzAl
+ FROM AnagMacchine AS AnagMacchine_1
+ WHERE (idxMacchina = @idxMacchina)
+
+COMMIT tran
+
+RETURN
diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/V1.3/GIM_0008.sql b/Projects/GimDB/dbo/Stored Procedures/sp_elencoIntMTBF_MTTR.sql
similarity index 91%
rename from Projects/WebGIM/GIM_site/sql/Applicazione/V1.3/GIM_0008.sql
rename to Projects/GimDB/dbo/Stored Procedures/sp_elencoIntMTBF_MTTR.sql
index 67e4f8b..5b57b09 100644
--- a/Projects/WebGIM/GIM_site/sql/Applicazione/V1.3/GIM_0008.sql
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_elencoIntMTBF_MTTR.sql
@@ -1,12 +1,4 @@
-set xact_abort on
-go
-
-begin transaction
-go
-
-set ANSI_NULLS on
-go
-
+
/*************************************
* STORED PROCEDURE sp_elencoIntMTBF_MTTR
* Restituisce elenco degli interventi x fare il calcolo MTBF/MTTR FILTRANDO per:
@@ -16,7 +8,7 @@ go
*
* modif.: S.E.L. - 2010.05.11
**************************************/
-alter PROCEDURE sp_elencoIntMTBF_MTTR
+CREATE PROCEDURE sp_elencoIntMTBF_MTTR
(
@inizio DATETIME,
@fine DATETIME,
@@ -55,13 +47,3 @@ AS
GROUP BY AnagImpianti.codImpianto, AnagMacchine.codMacchina, AnagImpianti.nomeImpianto, AnagMacchine.nomeMacchina
RETURN
-go
-
-commit
-go
-
-
-
--- registro versione...
-INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(8, GETDATE())
-GO
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/sp_insRichiesta.sql b/Projects/GimDB/dbo/Stored Procedures/sp_insRichiesta.sql
new file mode 100644
index 0000000..a389ae5
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_insRichiesta.sql
@@ -0,0 +1,42 @@
+
+/*************************************
+* STORED PROCEDURE sp_insRichiesta
+* Inserisce nuova richiesta di intervento
+*
+* modif.: S.E.L. - 2009.02.20
+**************************************/
+CREATE PROCEDURE sp_insRichiesta
+(
+ @richiesta datetime,
+ @dataLav datetime,
+ @turnoLav int,
+ @matr varchar(10),
+ @guasto datetime,
+ @idxAmbito int,
+ @idxPriorita int,
+ @isFermo bit,
+ @idxTipo int,
+ @idxImpianto int,
+ @idxMacchina int,
+ @descrizione varchar(2500),
+ @idxCausale int,
+ @scheduled bit,
+ @numIntMtz int output
+)
+AS
+
+BEGIN tran
+
+ INSERT INTO InterventiMtz
+ (richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, idxPriorita, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxStato, idxCausale, scheduled)
+ VALUES (@richiesta,@dataLav,@turnoLav,@matr,@guasto,@idxAmbito,@idxPriorita,@isFermo,@idxTipo,@idxImpianto,@idxMacchina,@descrizione,
+ 1,@idxCausale,@scheduled)
+
+ /*************************************
+ * salvo idx del nuovo record
+ **************************************/
+ SET @numIntMtz = SCOPE_IDENTITY()
+
+COMMIT tran
+
+RETURN (@numIntMtz)
diff --git a/Projects/GimDB/dbo/Stored Procedures/sp_procStatEv.sql b/Projects/GimDB/dbo/Stored Procedures/sp_procStatEv.sql
new file mode 100644
index 0000000..7036d92
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_procStatEv.sql
@@ -0,0 +1,47 @@
+/*************************************
+* STORED PROCEDURE sp_procStatEv
+* esegue la chiamata d processing x stati in base all'attuale stato ed all'evento associato
+*
+* modif.: S.E.L.
+* il: 2009.01.22
+**************************************/
+CREATE PROCEDURE sp_procStatEv
+(
+ @numIntMtz INT,
+ @idxEvento INT,
+ @idxStatoNew INT OUTPUT
+)
+
+AS
+ -- chiamo la query di update, che cerca una riga nella tab transizioni x lo stato e l'evento richiesti e se li trova esegue update del ciclo...
+
+ DECLARE @currIdxStato AS INT
+ DECLARE @procedere AS INT
+
+BEGIN TRAN
+ -- calcolo stato corrente del ciclo...
+ SET @currIdxStato = ISNULL((SELECT idxStato
+ FROM InterventiMtz
+ WHERE (numIntMtz = @numIntMtz)),0)
+
+ -- cerco transizione da stato ed evento associati...
+ SET @procedere = ISNULL((SELECT COUNT(*) FROM Tra_Ev2Stati WHERE idxEvento=@idxEvento AND idxStato=@currIdxStato),0)
+
+ -- se trovo eseguo transizione...
+ IF(@procedere >0)
+ BEGIN
+ UPDATE InterventiMtz
+ SET idxStato = Tra_Ev2Stati.nextIdxStato
+ FROM InterventiMtz INNER JOIN
+ Tra_Ev2Stati ON InterventiMtz.idxStato = Tra_Ev2Stati.idxStato
+ WHERE (InterventiMtz.numIntMtz = @numIntMtz) AND (Tra_Ev2Stati.idxEvento = @idxEvento)
+ END
+
+COMMIT TRAN
+
+ -- calcolo lo stato nuovo...
+ SET @idxStatoNew = ISNULL((SELECT idxStato
+ FROM InterventiMtz
+ WHERE (numIntMtz = @numIntMtz)),0)
+
+RETURN (@idxStatoNew)
diff --git a/Projects/GimDB/dbo/Stored Procedures/sp_setPresaInCarico.sql b/Projects/GimDB/dbo/Stored Procedures/sp_setPresaInCarico.sql
new file mode 100644
index 0000000..3ef9fc6
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_setPresaInCarico.sql
@@ -0,0 +1,24 @@
+/*************************************
+* STORED PROCEDURE sp_setPresaInCarico
+* indica la richiesta come presa in carico con data/ora attuale del server
+*
+* modif.: S.E.L. - 2009.01.22
+**************************************/
+CREATE PROCEDURE dbo.sp_setPresaInCarico
+(
+ @numIntMtz INT,
+ @idxStatoNew INT OUTPUT
+)
+AS
+
+BEGIN tran
+ -- inserisco data presa in carico
+ UPDATE InterventiMtz
+ SET presaInCarico = GETDATE()
+ WHERE (numIntMtz = @numIntMtz)
+
+ -- aggiorno da machcian a stati...
+ exec sp_procStatEv @numIntMtz, 1, @idxStatoNew
+COMMIT tran
+
+RETURN (@idxStatoNew)
diff --git a/Projects/GimDB/dbo/Stored Procedures/sp_spostaMacchina.sql b/Projects/GimDB/dbo/Stored Procedures/sp_spostaMacchina.sql
new file mode 100644
index 0000000..fc50124
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_spostaMacchina.sql
@@ -0,0 +1,18 @@
+/*************************************
+* STORED PROCEDURE sp_spostaMacchina
+* Sposta la macchina all'impianto indicato
+*
+* modif.: S.E.L. - 2009.01.14
+**************************************/
+CREATE PROCEDURE dbo.sp_spostaMacchina
+(
+ @idxMacchina int,
+ @idxImpiantoTo int
+)
+AS
+
+UPDATE AnagMacchine
+SET idxImpianto = @idxImpiantoTo
+WHERE (idxMacchina = @idxMacchina)
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/sp_updateIntervento.sql b/Projects/GimDB/dbo/Stored Procedures/sp_updateIntervento.sql
new file mode 100644
index 0000000..6f5b33d
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_updateIntervento.sql
@@ -0,0 +1,22 @@
+/*************************************
+* STORED PROCEDURE sp_updateIntervento
+* aggiorna i dati dell'intervento compilati dalla manutenzione
+*
+* modif.: S.E.L. - 2009.01.28
+**************************************/
+CREATE PROCEDURE dbo.sp_updateIntervento
+(
+ @Original_numIntMtz INT,
+ @idxStato INT,
+ @inizioIntervento DATETIME,
+ @fineIntervento DATETIME,
+ @isPreventivabile BIT,
+ @descrizioneIntervento NVARCHAR(2500)
+)
+AS
+
+UPDATE InterventiMtz
+SET inizioIntervento = @inizioIntervento, fineIntervento = @fineIntervento, descrizioneIntervento = @descrizioneIntervento, isPreventivabile = @isPreventivabile, idxStato = @idxStato
+WHERE (numIntMtz = @Original_numIntMtz)
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/sp_updateInterventoFull.sql b/Projects/GimDB/dbo/Stored Procedures/sp_updateInterventoFull.sql
new file mode 100644
index 0000000..05c5064
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/sp_updateInterventoFull.sql
@@ -0,0 +1,35 @@
+/*************************************
+* STORED PROCEDURE sp_updateInterventoFull
+* aggiorna TUTTI i dati dell'intervento
+*
+* modif.: S.E.L. - 2009.02.20
+**************************************/
+CREATE PROCEDURE sp_updateInterventoFull
+(
+ @Original_numIntMtz INT,
+ @idxStato INT,
+ @inizioIntervento DATETIME,
+ @fineIntervento DATETIME,
+ @isPreventivabile BIT,
+ @descrizioneIntervento NVARCHAR(2500),
+ @matr NVARCHAR(50),
+ @guasto DATETIME,
+ @isFermo BIT,
+ @idxImpianto INT,
+ @idxMacchina INT,
+ @idxAmbito INT,
+ @idxPriorita INT,
+ @descrizione NVARCHAR(2500),
+ @idxTipo INT,
+ @idxCausale int,
+ @presaInCarico DATETIME
+)
+AS
+
+UPDATE InterventiMtz
+SET inizioIntervento = @inizioIntervento, fineIntervento = @fineIntervento, descrizioneIntervento = @descrizioneIntervento, isPreventivabile = @isPreventivabile,
+ idxStato = @idxStato, matr = @matr, guasto = @guasto, idxAmbito = @idxAmbito, idxPriorita = @idxPriorita, isFermo = @isFermo, idxTipo = @idxTipo,
+ idxImpianto = @idxImpianto, idxMacchina = @idxMacchina, descrizione = @descrizione, presaInCarico = @presaInCarico, idxCausale = @idxCausale
+WHERE (numIntMtz = @Original_numIntMtz)
+
+RETURN
diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/V1.4 USA/GIM_0227.sql b/Projects/GimDB/dbo/Stored Procedures/spt_AD_delete.sql
similarity index 72%
rename from Projects/WebGIM/GIM_site/sql/Applicazione/V1.4 USA/GIM_0227.sql
rename to Projects/GimDB/dbo/Stored Procedures/spt_AD_delete.sql
index 4d22327..573e339 100644
--- a/Projects/WebGIM/GIM_site/sql/Applicazione/V1.4 USA/GIM_0227.sql
+++ b/Projects/GimDB/dbo/Stored Procedures/spt_AD_delete.sql
@@ -1,19 +1,10 @@
-set xact_abort on;
-go
-
-begin transaction;
-go
-
-set ANSI_NULLS on;
-go
-
-/*************************************
+/*************************************
* STORED PROCEDURE spt_AD_delete
* elimina la macchina (da famiglia macchina e anagMacchina) SE non ah record associati
*
* modif.: S.E.L. - 2013.12.06
**************************************/
-create PROCEDURE spt_AD_delete
+CREATE PROCEDURE spt_AD_delete
(
@Original_idxMacchina int
)
@@ -47,17 +38,3 @@ BEGIN tran
COMMIT tran
RETURN
-go
-
-commit;
-go
-
-
-
-
-
--- registro versione...
-INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(227, GETDATE())
-GO
-SELECT * FROM LogUpdateDb ORDER BY versione DESC
-GO
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_AM_getByTag.sql b/Projects/GimDB/dbo/Stored Procedures/stp_AM_getByTag.sql
new file mode 100644
index 0000000..7d144b4
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_AM_getByTag.sql
@@ -0,0 +1,21 @@
+-- =============================================
+-- Author: S.E.L.
+-- Create date: 2015.11.24
+-- Description: Recupero
+-- =============================================
+CREATE PROCEDURE stp_AM_getByTag
+(
+ @TagCode NVARCHAR(50)
+)
+AS
+
+BEGIN tran
+ SET NOCOUNT ON;
+
+ -- Insert statements for procedure here
+ SELECT am.*
+ FROM AnagMacchine am
+ INNER JOIN Tag2Macc t2m ON t2m.idxMacchina = am.idxMacchina
+ WHERE t2m.TagCode=@TagCode
+
+COMMIT tran
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_ATR_delete.sql b/Projects/GimDB/dbo/Stored Procedures/stp_ATR_delete.sql
new file mode 100644
index 0000000..306beaa
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_ATR_delete.sql
@@ -0,0 +1,19 @@
+/*************************************
+* STORED PROCEDURE stp_ATR_delete
+*
+* elimina record anagrafica tipo risorse
+*
+* mod : 17/03/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_ATR_delete
+(
+ @Original_CodRisorsa NVARCHAR(10)
+)
+AS
+
+DELETE
+FROM AnagTipoRisorsa
+WHERE CodRisorsa = @Original_CodRisorsa
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_ATR_insert.sql b/Projects/GimDB/dbo/Stored Procedures/stp_ATR_insert.sql
new file mode 100644
index 0000000..762c87d
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_ATR_insert.sql
@@ -0,0 +1,22 @@
+/*************************************
+* STORED PROCEDURE stp_ATR_insert
+*
+* crea record anagrafica tipo risorse
+*
+* mod : 17/03/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_ATR_insert
+(
+ @CodRisorsa NVARCHAR(10),
+ @UM NVARCHAR(10),
+ @DescrRisorsa NVARCHAR(50),
+ @Valuta NVARCHAR(5)
+)
+AS
+
+INSERT INTO AnagTipoRisorsa (CodRisorsa, UM, DescrRisorsa, Valuta)
+VALUES (@CodRisorsa, @UM, @DescrRisorsa, @Valuta)
+
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_ATR_update.sql b/Projects/GimDB/dbo/Stored Procedures/stp_ATR_update.sql
new file mode 100644
index 0000000..6240dd6
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_ATR_update.sql
@@ -0,0 +1,26 @@
+/*************************************
+* STORED PROCEDURE stp_ATR_update
+*
+* aggiorna record anagrafica tipo risorse
+*
+* mod : 17/03/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_ATR_update
+(
+ @Original_CodRisorsa NVARCHAR(10),
+ @CodRisorsa NVARCHAR(10),
+ @UM NVARCHAR(10),
+ @DescrRisorsa NVARCHAR(50),
+ @Valuta NVARCHAR(5)
+)
+AS
+
+UPDATE AnagTipoRisorsa
+ SET CodRisorsa = @CodRisorsa
+ , UM = @UM
+ , DescrRisorsa = @DescrRisorsa
+ , Valuta = @Valuta
+WHERE CodRisorsa = @Original_CodRisorsa
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_AnItems_getByTag.sql b/Projects/GimDB/dbo/Stored Procedures/stp_AnItems_getByTag.sql
new file mode 100644
index 0000000..c7dcc39
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_AnItems_getByTag.sql
@@ -0,0 +1,20 @@
+/*************************************
+* STORED PROCEDURE stp_AnItems_getByTag
+*
+* tag - items da tag
+*
+* mod : 24/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_AnItems_getByTag
+(
+ @TagCode nvarchar(50)
+)
+AS
+
+SET NOCOUNT ON;
+
+SELECT ai.*
+FROM AnagItems ai
+ INNER JOIN Tag2Item t2i ON ai.idxItem=t2i.idxItem
+WHERE t2i.TagCode = @TagCode
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_AnLoc_deleteQuery.sql b/Projects/GimDB/dbo/Stored Procedures/stp_AnLoc_deleteQuery.sql
new file mode 100644
index 0000000..fab6d1a
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_AnLoc_deleteQuery.sql
@@ -0,0 +1,7 @@
+CREATE PROCEDURE [dbo].stp_AnLoc_deleteQuery
+(
+ @Original_CodLocazione nvarchar(50)
+)
+AS
+ SET NOCOUNT OFF;
+DELETE FROM [dbo].[AnagLocazioni] WHERE (([CodLocazione] = @Original_CodLocazione))
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_AnLoc_insertQuery.sql b/Projects/GimDB/dbo/Stored Procedures/stp_AnLoc_insertQuery.sql
new file mode 100644
index 0000000..bb1a39b
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_AnLoc_insertQuery.sql
@@ -0,0 +1,16 @@
+/*************************************
+* STORED PROCEDURE stp_AnLoc_insertQuery
+*
+* inserisce record
+*
+* mod : 19/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_AnLoc_insertQuery]
+(
+ @CodLocazione nvarchar(50),
+ @Descrizione nvarchar(50)
+)
+AS
+ SET NOCOUNT OFF;
+INSERT INTO [dbo].[AnagLocazioni] ([CodLocazione], [Descrizione]) VALUES (@CodLocazione, @Descrizione)
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_AnLoc_updateQuery.sql b/Projects/GimDB/dbo/Stored Procedures/stp_AnLoc_updateQuery.sql
new file mode 100644
index 0000000..e3a1a45
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_AnLoc_updateQuery.sql
@@ -0,0 +1,17 @@
+/*************************************
+* STORED PROCEDURE stp_AnLoc_updateQuery
+*
+* update record
+*
+* mod : 19/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_AnLoc_updateQuery]
+(
+ @CodLocazione nvarchar(50),
+ @Descrizione nvarchar(50),
+ @Original_CodLocazione nvarchar(50)
+)
+AS
+ SET NOCOUNT OFF;
+UPDATE [dbo].[AnagLocazioni] SET [CodLocazione] = @CodLocazione, [Descrizione] = @Descrizione WHERE (([CodLocazione] = @Original_CodLocazione))
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_avail4Item.sql b/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_avail4Item.sql
new file mode 100644
index 0000000..14a45f7
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_avail4Item.sql
@@ -0,0 +1,25 @@
+/*************************************
+* STORED PROCEDURE stp_AnTag_avail4Item
+*
+* elenco tags x item (non assegnati di già...)
+*
+* mod : 23/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_AnTag_avail4Item (
+ @idxItem INT
+ )
+AS
+SET NOCOUNT OFF;
+BEGIN tran
+
+ SELECT at.*
+ FROM AnagTags at
+ WHERE TagCode NOT IN
+ (
+ SELECT TagCode
+ FROM Tag2Item t2i
+ WHERE t2i.idxItem = @idxItem
+ )
+
+COMMIT tran
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_deleteQuery.sql b/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_deleteQuery.sql
new file mode 100644
index 0000000..022d06e
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_deleteQuery.sql
@@ -0,0 +1,39 @@
+/*************************************
+* STORED PROCEDURE stp_AnTag_deleteQuery
+*
+* elimina record
+*
+* mod : 19/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_AnTag_deleteQuery]
+(
+ @Original_TagCode nvarchar(50)
+)
+AS
+SET NOCOUNT OFF;
+
+BEGIN tran
+
+ -- elimino connessione a item
+ DELETE
+ FROM Tag2Item
+ WHERE TagCode = @Original_TagCode
+
+ -- elimino connessione a macchine
+ DELETE
+ FROM Tag2Macc
+ WHERE TagCode = @Original_TagCode
+
+ -- elimino connessione sinonimi
+ DELETE
+ FROM SinonimiTag
+ WHERE TagCode = @Original_TagCode
+ OR TagCodeOrig = @Original_TagCode
+
+ -- elimino tag
+ DELETE
+ FROM AnagTags
+ WHERE TagCode = @Original_TagCode
+
+COMMIT tran
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_getByKey.sql b/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_getByKey.sql
new file mode 100644
index 0000000..8e153f2
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_getByKey.sql
@@ -0,0 +1,19 @@
+
+/*************************************
+* STORED PROCEDURE stp_AnTag_getByKey
+*
+* recupero record da key
+*
+* mod : 26/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_AnTag_getByKey (
+ @TagCode NVARCHAR(50)
+ )
+AS
+SET NOCOUNT OFF;
+
+-- aggiorno VERO tag...
+SELECT *
+FROM AnagTags
+WHERE TagCode = @TagCode
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_insertQuery.sql b/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_insertQuery.sql
new file mode 100644
index 0000000..ea01c77
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_insertQuery.sql
@@ -0,0 +1,27 @@
+
+/*************************************
+* STORED PROCEDURE stp_AnTag_insertQuery
+*
+* inserisce record
+*
+* mod : 19/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_AnTag_insertQuery] (
+ @TagCode NVARCHAR(50)
+ ,@Class NVARCHAR(50)
+ ,@TagDescr NVARCHAR(50)
+ )
+AS
+SET NOCOUNT OFF;
+
+BEGIN tran
+ -- inserisco etichette
+ INSERT INTO AnagTags (TagCode,Class,TagDescr)
+ VALUES (@TagCode,@Class,@TagDescr)
+
+ --inserisco sinonimo "loop" sul termine
+ INSERT INTO SinonimiTag(TagCodeOrig, TagCode)
+ VALUES (@TagCode, @TagCode)
+
+COMMIT tran
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_updateQuery.sql b/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_updateQuery.sql
new file mode 100644
index 0000000..0a9fb60
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_AnTag_updateQuery.sql
@@ -0,0 +1,45 @@
+
+/*************************************
+* STORED PROCEDURE stp_AnTag_updateQuery
+*
+* update record
+*
+* mod : 19/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_AnTag_updateQuery] (
+ @TagCode NVARCHAR(50)
+ ,@Class NVARCHAR(50)
+ ,@TagDescr NVARCHAR(50)
+ ,@Original_TagCode NVARCHAR(50)
+ )
+AS
+SET NOCOUNT OFF;
+BEGIN tran
+ -- per sicurezza se nulli i valori li rendo vuoti...
+ SELECT @TagCode = ISNULL(@TagCode, @Original_TagCode)
+ SELECT @Class = ISNULL(@Class, '')
+ SELECT @TagDescr = ISNULL(@TagDescr, '')
+
+ -- aggiorno "in cascata" la ricodifica dei tags SE modificato tag...
+ IF(@TagCode <> @Original_TagCode)
+ BEGIN
+ -- aggiorno DESTINAZIONI
+ UPDATE SinonimiTag
+ SET TagCode = @TagCode
+ WHERE TagCode = @Original_TagCode
+
+ -- aggiorno ORIGINI
+ UPDATE SinonimiTag
+ SET TagCodeOrig = @TagCode
+ WHERE TagCodeOrig = @Original_TagCode
+ END
+
+ -- aggiorno VERO tag...
+ UPDATE AnagTags
+ SET TagCode = @TagCode
+ ,Class = @Class
+ ,TagDescr = @TagDescr
+ WHERE TagCode = @Original_TagCode
+
+COMMIT tran
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_delete.sql b/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_delete.sql
new file mode 100644
index 0000000..8a11af7
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_delete.sql
@@ -0,0 +1,19 @@
+/*************************************
+* STORED PROCEDURE stp_ImpRis_delete
+*
+* elimina record impiego risorse
+*
+* mod : 17/03/2015
+* aut : S.E. Locatelli
+**************************************/
+create PROCEDURE stp_ImpRis_delete
+(
+ @Original_idxImpiego INT
+)
+AS
+
+DELETE
+FROM ImpiegoRisorse
+WHERE idxImpiego = @Original_idxImpiego
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_getByNumMtz.sql b/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_getByNumMtz.sql
new file mode 100644
index 0000000..3d22957
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_getByNumMtz.sql
@@ -0,0 +1,23 @@
+/*************************************
+* STORED PROCEDURE stp_ImpRis_getByNumMtz
+*
+* elenco record impiego risorse x intervento
+*
+* mod : 18/03/2015
+* aut : S.E. Locatelli
+**************************************/
+create PROCEDURE stp_ImpRis_getByNumMtz
+(
+ @numIntMtz INT
+)
+AS
+
+SELECT *
+FROM ImpiegoRisorse
+WHERE numIntMtz = @numIntMtz
+
+RETURN
+
+
+
+
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_insert.sql b/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_insert.sql
new file mode 100644
index 0000000..ee08b60
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_insert.sql
@@ -0,0 +1,23 @@
+/*************************************
+* STORED PROCEDURE stp_ImpRis_insert
+*
+* insert record impiego risorse
+*
+* mod : 17/03/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_ImpRis_insert
+(
+ @CodRisorsa NVARCHAR(10)
+ , @numIntMtz INT
+ , @QtaRisorsa DECIMAL(18, 6)
+ , @CostoUnit DECIMAL(18, 6)
+ , @Note NVARCHAR(MAX)
+)
+AS
+
+INSERT INTO ImpiegoRisorse(CodRisorsa, numIntMtz, QtaRisorsa, CostoUnit, Note)
+VALUES (@CodRisorsa, @numIntMtz, @QtaRisorsa, @CostoUnit, @Note)
+
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_update.sql b/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_update.sql
new file mode 100644
index 0000000..a5d6445
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_ImpRis_update.sql
@@ -0,0 +1,28 @@
+/*************************************
+* STORED PROCEDURE stp_ImpRis_update
+*
+* update record impiego risorse
+*
+* mod : 17/03/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_ImpRis_update
+(
+ @Original_idxImpiego INT
+ , @CodRisorsa NVARCHAR(10)
+ , @numIntMtz INT
+ , @QtaRisorsa DECIMAL(18, 6)
+ , @CostoUnit DECIMAL(18, 6)
+ , @Note NVARCHAR(MAX)
+)
+AS
+
+UPDATE ImpiegoRisorse
+ SET CodRisorsa = @CodRisorsa
+ , numIntMtz = @numIntMtz
+ , QtaRisorsa = @QtaRisorsa
+ , CostoUnit = @CostoUnit
+ , Note = @Note
+WHERE idxImpiego = @Original_idxImpiego
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_delete.sql b/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_delete.sql
new file mode 100644
index 0000000..8ca9e7e
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_delete.sql
@@ -0,0 +1,24 @@
+/*************************************
+* STORED PROCEDURE stp_MovMag_update
+*
+* elimina record movimenti magazzino (SE non scaricato)
+*
+* mod : 27/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_MovMag_delete
+(
+ @Original_idxItem INT = 0
+ , @Original_numIntMtz INT
+ , @Original_dtMov DATETIME
+)
+AS
+
+DELETE
+FROM MovMagRic
+WHERE idxItem = @Original_idxItem
+ AND numIntMtz = @Original_numIntMtz
+ AND dtMov = @Original_dtMov
+
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_getByNumInt.sql b/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_getByNumInt.sql
new file mode 100644
index 0000000..5db2345
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_getByNumInt.sql
@@ -0,0 +1,21 @@
+/*************************************
+* STORED PROCEDURE stp_MovMag_getByNumInt
+*
+* update record movimenti magazzino
+*
+* mod : 27/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_MovMag_getByNumInt]
+(
+ @numIntMtz INT
+)
+AS
+
+-- cerco da intervento
+SELECT *
+FROM v_MovMagExpl vmm
+WHERE numIntMtz = @numIntMtz
+
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_insert.sql b/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_insert.sql
new file mode 100644
index 0000000..87fff49
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_insert.sql
@@ -0,0 +1,29 @@
+/*************************************
+* STORED PROCEDURE stp_MovMag_insert
+*
+* insert record movimenti magazzino
+*
+* mod : 27/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_MovMag_insert]
+(
+ @idxItem INT = 0
+ , @numIntMtz INT
+ , @Qta INT
+)
+AS
+
+BEGIN tran
+ -- calcolo macchina...
+ DECLARE @idxMacchina INT = 0
+
+ SELECT @idxMacchina = idxMacchina
+ FROM InterventiMtz
+ WHERE numIntMtz = @numIntMtz
+
+ INSERT INTO MovMagRic(idxItem,numIntMtz,dtMov,Qta,idxMacchina)
+ VALUES(@idxItem,@numIntMtz,GETDATE(),@Qta,@idxMacchina)
+
+COMMIT tran
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_update.sql b/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_update.sql
new file mode 100644
index 0000000..d8a9e62
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_MovMag_update.sql
@@ -0,0 +1,25 @@
+/*************************************
+* STORED PROCEDURE stp_MovMag_update
+*
+* update record movimenti magazzino
+*
+* mod : 27/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_MovMag_update]
+(
+ @Original_idxItem INT = 0
+ , @Original_numIntMtz INT
+ , @Original_dtMov DATETIME
+ , @Qta INT
+)
+AS
+
+UPDATE MovMagRic
+ SET Qta = ISNULL(@Qta,0)
+WHERE idxItem = @Original_idxItem
+ AND numIntMtz = @Original_numIntMtz
+ AND dtMov = @Original_dtMov
+
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_delete.sql b/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_delete.sql
new file mode 100644
index 0000000..0d447aa
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_delete.sql
@@ -0,0 +1,17 @@
+/*********************************************************************************
+* STORED stp_MtzProg_delete
+*
+* delete riga MtzProg
+*
+**********************************************************************************/
+create PROCEDURE dbo.stp_MtzProg_delete
+(
+ @Original_idxIntPro INT
+)
+AS
+
+DELETE
+FROM MtzProgrammata
+WHERE idxIntPro = @Original_idxIntPro
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_duplica.sql b/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_duplica.sql
new file mode 100644
index 0000000..ab4940d
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_duplica.sql
@@ -0,0 +1,31 @@
+-- =============================================
+-- Author: S.E.Locatelli
+-- Create date: 2012-08-24
+-- Description: duplicazione interventi Mtz programmata tra macchine, con possibilità CANCELLAZIONE vecchi
+-- =============================================
+create PROCEDURE [dbo].[stp_MtzProg_duplica]
+(
+ @idxMacchinaFrom INT = 0,
+ @idxMacchinaTo INT = 0,
+ @mantainOld BIT = 0
+)
+AS
+BEGIN
+ SET NOCOUNT ON;
+
+ BEGIN tran
+
+ -- in primis cancello vecchi interventi programmati SE @mantainOld = 0
+ IF (@mantainOld=0)
+ BEGIN
+ DELETE FROM MtzProgrammata WHERE idxMacchina = @idxMacchinaTo
+ END
+
+ -- poi inserisco nuovi interventi
+ INSERT INTO MtzProgrammata(idxMacchina, inizio, codFrequenza, cadenza, descrizione, idxPriorita, isFermo, idxTipo)
+ SELECT @idxMacchinaTo AS idxMacchina, inizio, codFrequenza, cadenza, descrizione, idxPriorita, isFermo, idxTipo
+ FROM MtzProgrammata
+ WHERE idxMacchina = @idxMacchinaFrom
+
+ COMMIT tran
+END
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_getByKey.sql b/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_getByKey.sql
new file mode 100644
index 0000000..22ba03d
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_getByKey.sql
@@ -0,0 +1,17 @@
+/*********************************************************************************
+* STORED stp_MtzProg_getByKey
+*
+* restituisce riga MtzProg
+*
+**********************************************************************************/
+CREATE PROCEDURE dbo.stp_MtzProg_getByKey
+(
+ @idxIntPro INT
+)
+AS
+
+SELECT *
+FROM MtzProgrammata
+WHERE idxIntPro = @idxIntPro
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_insert.sql b/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_insert.sql
new file mode 100644
index 0000000..f1047cf
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_insert.sql
@@ -0,0 +1,24 @@
+/*********************************************************************************
+* STORED stp_MtzProg_insert
+*
+* insert riga MtzProg
+*
+**********************************************************************************/
+create PROCEDURE dbo.stp_MtzProg_insert
+(
+ @idxMacchina INT,
+ @inizio DATETIME,
+ @codFrequenza NCHAR(2),
+ @cadenza INT,
+ @descrizione NVARCHAR(2500),
+ @idxPriorita INT,
+ @isFermo BIT,
+ @idxTipo INT
+)
+AS
+
+INSERT INTO MtzProgrammata
+ (idxMacchina, inizio, codFrequenza, cadenza, descrizione, idxPriorita, isFermo, idxTipo)
+VALUES (@idxMacchina,@inizio,@codFrequenza,@cadenza,@descrizione,@idxPriorita,@isFermo,@idxTipo)
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_update.sql b/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_update.sql
new file mode 100644
index 0000000..e910adf
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_MtzProg_update.sql
@@ -0,0 +1,30 @@
+/*********************************************************************************
+* STORED stp_MtzProg_update
+*
+* aggiorna riga MtzProg
+*
+**********************************************************************************/
+CREATE PROCEDURE dbo.stp_MtzProg_update
+(
+ @idxIntPro INT,
+ @inizio DATETIME,
+ @codFrequenza NCHAR(2),
+ @cadenza INT,
+ @descrizione NVARCHAR(2500),
+ @idxPriorita INT,
+ @isFermo BIT,
+ @idxTipo INT
+)
+AS
+
+UPDATE MtzProgrammata
+SET inizio = @inizio,
+ codFrequenza= @codFrequenza,
+ cadenza = @cadenza,
+ descrizione = @descrizione,
+ idxPriorita = @idxPriorita,
+ isFermo = @isFermo,
+ idxTipo = @idxTipo
+WHERE idxIntPro = @idxIntPro
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_SinTag_UpdateQuery.sql b/Projects/GimDB/dbo/Stored Procedures/stp_SinTag_UpdateQuery.sql
new file mode 100644
index 0000000..dd2e0b3
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_SinTag_UpdateQuery.sql
@@ -0,0 +1,49 @@
+/*************************************
+* STORED PROCEDURE stp_SinTag_UpdateQuery
+*
+* update recordmerge come sinonimo del TagCordOrig (che sparisce) verso TagCode
+*
+* - ricodifica associazione verso item
+* - ricodifica associazione verso macchine
+* - crea record in tab sinonimi
+* - elimina record in tab item
+*
+* mod : 23/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_SinTag_UpdateQuery]
+(
+ @Original_TagCodeOrig nvarchar(50),
+ @TagCode nvarchar(50)
+)
+AS
+ SET NOCOUNT OFF;
+
+
+
+BEGIN tran
+
+ -- step 1: ricodifica associazione verso ITEMS
+ UPDATE Tag2Item
+ SET TagCode = @TagCode
+ WHERE TagCode = @Original_TagCodeOrig
+
+
+ -- step 2: ricodifica associazione verso MACCHINE
+ UPDATE Tag2Macc
+ SET TagCode = @TagCode
+ WHERE TagCode = @Original_TagCodeOrig
+ -- step 3: creo record sinonimi (FARE CON MERGE?!?)
+ UPDATE SinonimiTag
+ SET TagCode = @TagCode
+ WHERE ((TagCodeOrig = @Original_TagCodeOrig)) OR ((TagCode = @Original_TagCodeOrig))
+
+ --INSERT INTO SinonimiTag (TagCodeOrig, TagCode)
+ --VALUES (@Original_TagCodeOrig, @TagCode)
+
+ -- step 4: elimino ITEMS
+ DELETE
+ FROM AnagTags
+ WHERE TagCode = @Original_TagCodeOrig
+
+COMMIT Tran
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_delete.sql b/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_delete.sql
new file mode 100644
index 0000000..30e8113
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_delete.sql
@@ -0,0 +1,26 @@
+/*************************************
+* STORED PROCEDURE stp_StatoMag_delete
+*
+* elimina record magazzino (item + giacenza...)
+*
+* mod : 19/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_StatoMag_delete
+(
+ @Original_idxItem INT = 0
+)
+AS
+
+
+BEGIN tran
+
+ DELETE FROM MagRic
+ WHERE idxItem = @Original_idxItem
+
+ DELETE FROM AnagItems
+ WHERE idxItem = @Original_idxItem
+
+COMMIT tran
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_getByDescr.sql b/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_getByDescr.sql
new file mode 100644
index 0000000..7c4b128
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_getByDescr.sql
@@ -0,0 +1,20 @@
+/*************************************
+* STORED PROCEDURE stp_StatoMag_getByDescr
+*
+* recupera record data descrizione
+*
+* mod : 19/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_StatoMag_getByDescr]
+(
+ @Descrizione NVARCHAR(250)
+)
+AS
+
+-- cerco da descrizione
+SELECT *
+FROM v_StatoMag
+WHERE Descrizione = @Descrizione
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_getByIdxMacchina.sql b/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_getByIdxMacchina.sql
new file mode 100644
index 0000000..2d9b02e
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_getByIdxMacchina.sql
@@ -0,0 +1,23 @@
+/*************************************
+* STORED PROCEDURE stp_StatoMag_getByIdxMacchina
+*
+* recupera record items assegnati alla macchina
+*
+* mod : 27/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_StatoMag_getByIdxMacchina
+(
+ @idxMacchina INT
+)
+AS
+
+-- cerco da idxMacchina -> etichette -> items
+SELECT vsm.*
+FROM Tag2Item t2i
+ INNER JOIN Tag2Macc t2m ON t2i.TagCode = t2m.TagCode
+ INNER JOIN v_statoMag vsm ON vsm.idxItem = t2i.idxItem
+WHERE t2m.idxMacchina = @idxMacchina
+
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_insert.sql b/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_insert.sql
new file mode 100644
index 0000000..c948f56
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_insert.sql
@@ -0,0 +1,41 @@
+/*************************************
+* STORED PROCEDURE stp_StatoMag_insert
+*
+* insert record magazzino (inserisce item + giacenza in mag...)
+*
+* mod : 19/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_StatoMag_insert]
+(
+ @Descrizione NVARCHAR(250)
+ , @NomeCostruttore NVARCHAR(250)
+ , @CodCostruttore NVARCHAR(250)
+ , @CodInterno NVARCHAR(50)
+ , @QtaMin INT
+ , @QtaLotto INT
+ , @Valore DECIMAL(18, 6)
+ , @Giacenza INT
+ , @CodLocazione NVARCHAR(50)
+ , @Note NVARCHAR(MAX)
+)
+AS
+
+
+BEGIN tran
+
+ DECLARE @idxItem INT = 0
+ -- creo nuovo ITEM
+ INSERT INTO dbo.AnagItems (Descrizione, NomeCostruttore, CodCostruttore, CodInterno, QtaMin, QtaLotto, Valore)
+ VALUES (@Descrizione, @NomeCostruttore, @CodCostruttore, @CodInterno, @QtaMin, @QtaLotto, @Valore)
+
+ -- recupero IDX
+ SELECT @idxItem = SCOPE_IDENTITY()
+
+ -- creo record giacenza
+ INSERT INTO MagRic (idxItem,CodLocazione,Giacenza,Note,dtLastUpd)
+ VALUES (@idxItem, @CodLocazione, @Giacenza, @Note, GETDATE())
+
+COMMIT tran
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_update.sql b/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_update.sql
new file mode 100644
index 0000000..46bc479
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_StatoMag_update.sql
@@ -0,0 +1,53 @@
+/*************************************
+* STORED PROCEDURE stp_StatoMag_update
+*
+* update record magazzino (item + giacenza...)
+*
+* mod : 19/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE [dbo].[stp_StatoMag_update]
+(
+ @Original_idxItem INT = 0
+ , @Famiglia NVARCHAR(250)
+ , @Descrizione NVARCHAR(250)
+ , @NomeCostruttore NVARCHAR(250)
+ , @CodCostruttore NVARCHAR(250)
+ , @CodInterno NVARCHAR(50)
+ , @QtaMin INT
+ , @QtaLotto INT
+ , @Valore DECIMAL(18, 6)
+ , @CodLocazione NVARCHAR(50)
+ , @Note NVARCHAR(MAX)
+)
+AS
+
+
+BEGIN tran
+
+
+ -- update ITEM
+ UPDATE AnagItems
+ SET Famiglia = ISNULL(@Famiglia,'')
+ ,Descrizione = ISNULL(@Descrizione,'')
+ ,NomeCostruttore = ISNULL(@NomeCostruttore,'')
+ ,CodCostruttore = ISNULL(@CodCostruttore,'')
+ ,CodInterno = ISNULL(@CodInterno,'')
+ ,QtaMin = ISNULL(@QtaMin,'')
+ ,QtaLotto = ISNULL(@QtaLotto,'')
+ ,Valore = ISNULL(@Valore,'')
+ WHERE idxItem = @Original_idxItem
+
+ INSERT INTO dbo.AnagItems (Descrizione, NomeCostruttore, CodCostruttore, CodInterno, QtaMin, QtaLotto, Valore)
+ VALUES (@Descrizione, @NomeCostruttore, @CodCostruttore, @CodInterno, @QtaMin, @QtaLotto, @Valore)
+
+ -- update record giacenza
+ UPDATE dbo.MagRic
+ SET CodLocazione = ISNULL(@CodLocazione,'')
+ ,Note = ISNULL(@Note,'')
+ ,dtLastUpd = GETDATE()
+ WHERE idxItem = @Original_idxItem
+
+COMMIT tran
+
+RETURN
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_T2I_getByIdxItem.sql b/Projects/GimDB/dbo/Stored Procedures/stp_T2I_getByIdxItem.sql
new file mode 100644
index 0000000..1ea8d1a
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_T2I_getByIdxItem.sql
@@ -0,0 +1,17 @@
+
+/*************************************
+* STORED PROCEDURE stp_T2I_getByIdxItem
+*
+* tag da items
+*
+* mod : 24/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_T2I_getByIdxItem
+(
+ @idxItem INT
+)
+AS
+ SET NOCOUNT ON;
+SELECT idxItem, TagCode FROM dbo.Tag2Item
+WHERE idxItem=@idxItem
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_T2I_getByTag.sql b/Projects/GimDB/dbo/Stored Procedures/stp_T2I_getByTag.sql
new file mode 100644
index 0000000..1784d35
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_T2I_getByTag.sql
@@ -0,0 +1,16 @@
+/*************************************
+* STORED PROCEDURE stp_T2I_getByTag
+*
+* tag - items da tag
+*
+* mod : 24/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_T2I_getByTag
+(
+ @TagCode nvarchar(50)
+)
+AS
+ SET NOCOUNT ON;
+SELECT idxItem, TagCode FROM dbo.Tag2Item
+WHERE TagCode=@TagCode
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_T2M_deleteByTag.sql b/Projects/GimDB/dbo/Stored Procedures/stp_T2M_deleteByTag.sql
new file mode 100644
index 0000000..bb6b429
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_T2M_deleteByTag.sql
@@ -0,0 +1,19 @@
+/*************************************
+* STORED PROCEDURE stp_T2M_deleteByTag
+*
+* elimina record macchine2tags
+*
+* mod : 24/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_T2M_deleteByTag
+(
+ @Original_TagCode NVARCHAR(50)
+ ,@Original_idxMacchina INT
+)
+AS
+SET NOCOUNT ON;
+DELETE
+FROM Tag2Macc
+WHERE TagCode = @Original_TagCode
+ AND idxMacchina = @Original_idxMacchina
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_T2M_getByTag.sql b/Projects/GimDB/dbo/Stored Procedures/stp_T2M_getByTag.sql
new file mode 100644
index 0000000..ef22b59
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_T2M_getByTag.sql
@@ -0,0 +1,16 @@
+/*************************************
+* STORED PROCEDURE stp_T2I_getByIdxItem
+*
+* tag macchine da tags
+*
+* mod : 24/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_T2M_getByTag
+(
+ @TagCode nvarchar(50)
+)
+AS
+ SET NOCOUNT ON;
+SELECT TagCode, idxMacchina FROM dbo.Tag2Macc
+WHERE TagCode=@TagCode
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_VSM_avail4Tag.sql b/Projects/GimDB/dbo/Stored Procedures/stp_VSM_avail4Tag.sql
new file mode 100644
index 0000000..0f47876
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_VSM_avail4Tag.sql
@@ -0,0 +1,26 @@
+/*************************************
+* STORED PROCEDURE stp_VSM_avail4Tag
+*
+* elenco macchine associabili x TAG (non assegnate di già...)
+*
+* mod : 24/11/2015
+* aut : S.E. Locatelli
+**************************************/
+CREATE PROCEDURE stp_VSM_avail4Tag
+(
+ @TagCode nvarchar(50)
+)
+AS
+SET NOCOUNT OFF;
+BEGIN tran
+
+ SELECT am.*
+ FROM v_selMacchine am
+ WHERE value NOT IN
+ (
+ SELECT idxMacchina
+ FROM Tag2Macc t2m
+ WHERE t2m.TagCode = @TagCode
+ )
+
+COMMIT tran
\ No newline at end of file
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDate.sql b/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDate.sql
new file mode 100644
index 0000000..58934c6
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDate.sql
@@ -0,0 +1,20 @@
+
+/*************************************
+* STORED PROCEDURE stp_elencoIntByIntervDate
+* Recupera elenco interventi a partire dalle date inizio/fine di ricerca
+*
+* modif.: S.E.L. - 2010.01.25
+**************************************/
+create PROCEDURE stp_elencoIntByIntervDate
+(
+ @inizio DATETIME,
+ @fine DATETIME
+)
+AS
+
+ SELECT codImpianto, codMacchina, descrCausale, descrizione, descrizioneIntervento, durataMtz, durataOff, fineIntervento, guasto, idxImpianto, idxMacchina, idxStato,
+ inizioIntervento, minErogati, nomeImpianto, nomeMacchina, numIntMtz, richiesta, isFermo, scheduled
+ FROM v_elencoIntervFilt
+ WHERE (richiesta BETWEEN @inizio AND @fine)
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDateUserFilt.sql b/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDateUserFilt.sql
new file mode 100644
index 0000000..af86ece
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDateUserFilt.sql
@@ -0,0 +1,29 @@
+
+/*************************************
+* STORED PROCEDURE stp_elencoIntByIntervDateUserFilt
+* Recupera elenco interventi a partire dalle date inizio/fine di ricerca e dall'username ed i relativi filtri di ricerca salvati
+*
+* modif.: S.E.L. - 2010.01.25
+**************************************/
+create PROCEDURE stp_elencoIntByIntervDateUserFilt
+(
+ @inizio DATETIME,
+ @fine DATETIME,
+ @username VARCHAR(50)
+)
+AS
+
+ SELECT v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, v_elencoIntervFilt.descrCausale, v_elencoIntervFilt.descrizione,
+ v_elencoIntervFilt.descrizioneIntervento, v_elencoIntervFilt.durataMtz, v_elencoIntervFilt.durataOff, v_elencoIntervFilt.fineIntervento, v_elencoIntervFilt.guasto,
+ v_elencoIntervFilt.idxImpianto, v_elencoIntervFilt.idxMacchina, v_elencoIntervFilt.idxStato, v_elencoIntervFilt.inizioIntervento, v_elencoIntervFilt.minErogati,
+ v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina, v_elencoIntervFilt.numIntMtz, v_elencoIntervFilt.richiesta, v_elencoIntervFilt.isFermo,
+ v_elencoIntervFilt.scheduled
+ FROM v_elencoIntervFilt INNER JOIN
+ FiltroImpianti ON v_elencoIntervFilt.idxImpianto = FiltroImpianti.idxImpianto INNER JOIN
+ FiltroMacchine ON v_elencoIntervFilt.idxMacchina = FiltroMacchine.idxMacchina INNER JOIN
+ FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato
+ WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username) AND (FiltroMacchine.username = @username) AND
+ (FiltroImpianti.username = @username)
+
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDateUserFiltExtended.sql b/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDateUserFiltExtended.sql
new file mode 100644
index 0000000..3fa3e66
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDateUserFiltExtended.sql
@@ -0,0 +1,68 @@
+
+
+
+/*************************************
+* STORED PROCEDURE stp_elencoIntByIntervDateUserFiltExtended
+* Recupera elenco interventi a partire dalle date inizio/fine di ricerca e dall'username ed i relativi filtri di ricerca salvati
+*
+* Versione estesa x stampa con Totale Importo Materiali e Ore Operatori Esterni
+* NOTE : Le Ore Operatori Esterni sono TUTTE quelle con UM = MIN ( minuti )
+*
+* Steamware
+* modif. 2015.10.29
+**************************************/
+CREATE PROCEDURE [dbo].[stp_elencoIntByIntervDateUserFiltExtended]
+(
+ @inizio DATETIME
+ ,@fine DATETIME
+ ,@username VARCHAR(50)
+)
+AS
+
+SELECT
+ IntervFilt.codImpianto
+ ,IntervFilt.codMacchina
+ ,IntervFilt.descrCausale
+ ,IntervFilt.descrizione
+ ,IntervFilt.descrizioneIntervento
+ ,IntervFilt.durataMtz
+ ,IntervFilt.durataOff
+ ,IntervFilt.fineIntervento
+ ,IntervFilt.guasto
+ ,IntervFilt.idxImpianto
+ ,IntervFilt.idxMacchina
+ ,IntervFilt.idxStato
+ ,IntervFilt.inizioIntervento
+ ,IntervFilt.minErogati
+ ,IntervFilt.nomeImpianto
+ ,IntervFilt.nomeMacchina
+ ,IntervFilt.numIntMtz
+ ,IntervFilt.richiesta
+ ,IntervFilt.isFermo
+ ,IntervFilt.scheduled
+ -- estraggo TOTALE importo della Risorsa MAT ( Materiali )
+ ,( SELECT ISNULL(SUM(TotImport),0) FROM dbo.ImpiegoRisorse AS RisMAT
+ WHERE CodRisorsa = 'MAT' AND RisMAT.numIntMtz = IntervFilt.numIntMtz ) AS totImpMat
+
+ -- estraggo TOTALE Quantità della ORE operatori Esterni - presupposto che tutte causali con UM = ORE siano di opearori esterni
+ ,( SELECT ISNULL(SUM(QtaRisorsa),0) FROM dbo.ImpiegoRisorse AS RisMAT
+ INNER JOIN dbo.AnagTipoRisorsa AS AnagRis
+ ON RisMAT.CodRisorsa = AnagRis.CodRisorsa
+ WHERE AnagRis.UM = 'MIN' AND RisMAT.numIntMtz = IntervFilt.numIntMtz ) / 60 AS totQtaHR
+
+FROM v_elencoIntervFilt AS IntervFilt
+INNER JOIN FiltroImpianti
+ ON IntervFilt.idxImpianto = FiltroImpianti.idxImpianto
+INNER JOIN FiltroMacchine
+ ON IntervFilt.idxMacchina = FiltroMacchine.idxMacchina
+INNER JOIN FiltroStati
+ ON IntervFilt.idxStato = FiltroStati.idxStato
+
+WHERE (IntervFilt.richiesta BETWEEN @inizio AND @fine)
+ AND (FiltroStati.username = @username)
+ AND (FiltroMacchine.username = @username)
+ AND (FiltroImpianti.username = @username)
+
+RETURN
+
+
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDateUserFilt_fermaPrev.sql b/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDateUserFilt_fermaPrev.sql
new file mode 100644
index 0000000..a5a6f38
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntByIntervDateUserFilt_fermaPrev.sql
@@ -0,0 +1,33 @@
+
+/*************************************
+* STORED PROCEDURE stp_elencoIntByIntervDateUserFilt
+* Recupera elenco interventi a partire dalle date inizio/fine di ricerca e dall'username ed i relativi filtri di ricerca salvati
+* e con rispetto filtro x int a macchian ferma o di mtz preventiva
+*
+* modif.: S.E.L. - 2010.01.25
+**************************************/
+create PROCEDURE stp_elencoIntByIntervDateUserFilt_fermaPrev
+(
+ @inizio DATETIME,
+ @fine DATETIME,
+ @username VARCHAR(50),
+ @soloMaccFerma BIT,
+ @includiPreventiva BIT
+)
+AS
+
+ SELECT v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, v_elencoIntervFilt.descrCausale, v_elencoIntervFilt.descrizione,
+ v_elencoIntervFilt.descrizioneIntervento, v_elencoIntervFilt.durataMtz, v_elencoIntervFilt.durataOff, v_elencoIntervFilt.fineIntervento,
+ v_elencoIntervFilt.guasto, v_elencoIntervFilt.idxImpianto, v_elencoIntervFilt.idxMacchina, v_elencoIntervFilt.idxStato,
+ v_elencoIntervFilt.inizioIntervento, v_elencoIntervFilt.minErogati, v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina,
+ v_elencoIntervFilt.numIntMtz, v_elencoIntervFilt.richiesta, v_elencoIntervFilt.isFermo, v_elencoIntervFilt.scheduled
+ FROM v_elencoIntervFilt INNER JOIN
+ FiltroImpianti ON v_elencoIntervFilt.idxImpianto = FiltroImpianti.idxImpianto INNER JOIN
+ FiltroMacchine ON v_elencoIntervFilt.idxMacchina = FiltroMacchine.idxMacchina INNER JOIN
+ FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato
+ WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username)
+ AND (FiltroMacchine.username = @username) AND (FiltroImpianti.username = @username)
+ AND (v_elencoIntervFilt.isFermo = case @soloMaccFerma when 1 then 1 else v_elencoIntervFilt.isFermo end)
+ AND (v_elencoIntervFilt.scheduled = case @includiPreventiva when 0 then 0 else v_elencoIntervFilt.scheduled end)
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntMTBF_MTTR_fermaPrev.sql b/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntMTBF_MTTR_fermaPrev.sql
new file mode 100644
index 0000000..95a8490
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_elencoIntMTBF_MTTR_fermaPrev.sql
@@ -0,0 +1,56 @@
+
+/*************************************
+* STORED PROCEDURE stp_elencoIntMTBF_MTTR_fermaPrev
+* Restituisce elenco degli interventi x fare il calcolo MTBF/MTTR FILTRANDO per:
+* - idxStati
+* - idxImpianto
+* - idxMacchina
+* - solo ferma
+* - inclusione preventiva
+*
+* modif.: S.E.L. - 2010.05.11
+**************************************/
+CREATE PROCEDURE stp_elencoIntMTBF_MTTR_fermaPrev
+(
+ @inizio DATETIME,
+ @fine DATETIME,
+ @username VARCHAR(100),
+ @soloMaccFerma BIT,
+ @includiPreventiva BIT
+)
+AS
+
+
+ -- inizio con il creare la vista che mi serve x selezionare gli interventi filtrati dall'utente (per poterli escludere-includere)
+ WITH ElencoInt AS (
+ SELECT v_elencoIntervFilt.*
+ FROM FiltroImpianti INNER JOIN FiltroMacchine INNER JOIN v_elencoIntervFilt INNER JOIN
+ FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato ON FiltroMacchine.idxMacchina = v_elencoIntervFilt.idxMacchina
+ ON FiltroImpianti.idxImpianto = v_elencoIntervFilt.idxImpianto
+ WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username)
+ AND (FiltroMacchine.username = @username) AND (FiltroImpianti.username = @username)
+ AND (v_elencoIntervFilt.isFermo = CASE @soloMaccFerma WHEN 1 THEN 1 ELSE v_elencoIntervFilt.isFermo END)
+ AND (v_elencoIntervFilt.scheduled = CASE @includiPreventiva WHEN 0 THEN 0 ELSE v_elencoIntervFilt.scheduled END))
+
+
+ -- seleziono gli interventi DAVVERO erogati
+ SELECT COUNT(ElencoInt.numIntMtz) AS numInterventi, SUM(ElencoInt.durataMtz) AS totOreMtz,
+ SUM(ElencoInt.durataOff) AS totOreOfficina, ElencoInt.codImpianto, ElencoInt.codMacchina,
+ ElencoInt.nomeImpianto, ElencoInt.nomeMacchina
+ FROM ElencoInt
+ GROUP BY ElencoInt.codImpianto, ElencoInt.codMacchina, ElencoInt.nomeImpianto, ElencoInt.nomeMacchina
+
+ UNION
+
+ -- seleziono gli impianti che NON hanno ricevuto interventi ma comunque scelti dall'utente...
+ SELECT 0 AS numInterventi, 0 AS totOreMtz, 0 AS totOreOfficina, AnagImpianti.codImpianto, AnagMacchine.codMacchina, AnagImpianti.nomeImpianto,
+ AnagMacchine.nomeMacchina
+ FROM FiltroMacchine INNER JOIN
+ AnagMacchine ON FiltroMacchine.idxMacchina = AnagMacchine.idxMacchina INNER JOIN
+ AnagImpianti ON AnagMacchine.idxImpianto = AnagImpianti.idxImpianto LEFT OUTER JOIN
+ ElencoInt ON FiltroMacchine.idxMacchina = ElencoInt.idxMacchina
+ WHERE (ElencoInt.numIntMtz IS NULL)
+ GROUP BY AnagImpianti.codImpianto, AnagMacchine.codMacchina, AnagImpianti.nomeImpianto, AnagMacchine.nomeMacchina
+
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_insNewLemma.sql b/Projects/GimDB/dbo/Stored Procedures/stp_insNewLemma.sql
new file mode 100644
index 0000000..c83ac9b
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_insNewLemma.sql
@@ -0,0 +1,30 @@
+/*************************************
+* STORED PROCEDURE stp_insNewLemma
+*
+* elimina record anagrafica classe prodotto
+*
+* mod : 14/05/2012
+* aut : S.E. Locatelli
+**************************************/
+create PROCEDURE stp_insNewLemma
+(
+ @lemma NVARCHAR(50),
+ @traduzione NVARCHAR(500)
+)
+AS
+
+-- elimino se c'era già...
+DELETE
+FROM Vocabolario
+WHERE lemma = @lemma
+
+-- inserisco x tutte le lingue attive...
+INSERT INTO Vocabolario
+SELECT lingua, @lemma, @traduzione
+FROM Lingue
+
+SELECT *
+FROM Vocabolario
+WHERE lemma = @lemma
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getByTable.sql b/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getByTable.sql
new file mode 100644
index 0000000..7682d44
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getByTable.sql
@@ -0,0 +1,22 @@
+
+/***************************************
+* STORED stp_listValues_getByTable
+*
+* ottiene elenco campi data Table
+*
+* Steamware, S.E.L.
+* mod: 2014.08.04
+*
+****************************************/
+CREATE PROCEDURE [dbo].[stp_listValues_getByTable]
+(
+ @TableName NVARCHAR(50)
+)
+AS
+
+ SELECT *
+ FROM ListValues
+ WHERE TableName = @TableName
+ ORDER BY FieldName, ordinal
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getDistTable.sql b/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getDistTable.sql
new file mode 100644
index 0000000..8f2fd3f
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getDistTable.sql
@@ -0,0 +1,24 @@
+
+/***************************************
+* STORED stp_listValues_getDistTable
+*
+* ottiene elenco TableName
+*
+* Steamware, S.E.L.
+* mod: 2015.02.25
+*
+****************************************/
+create PROCEDURE [dbo].[stp_listValues_getDistTable]
+
+AS
+
+ SELECT DISTINCT TableName
+ , '-' AS FieldName
+ , '-' AS value
+ , '-' AS label
+ , 0 AS ordinal
+ FROM ListValues
+ ORDER BY TableName
+
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getValidValues.sql b/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getValidValues.sql
new file mode 100644
index 0000000..b250adc
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getValidValues.sql
@@ -0,0 +1,23 @@
+
+-- =============================================
+-- STORED stp_getValidValues
+--
+-- Author: S.E.L.
+-- Create date: 2011.05.26
+-- Description: gestione selezione dati parametrici
+-- =============================================
+create PROCEDURE [dbo].[stp_listValues_getValidValues]
+(
+ @TableName NVARCHAR(50),
+ @FieldName NVARCHAR(50)
+)
+AS
+BEGIN
+ SET NOCOUNT ON;
+
+ SELECT value, label
+ FROM ListValues
+ WHERE TableName = @TableName
+ AND FieldName = @FieldName
+ ORDER BY ordinal
+END
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getValidValuesFilt.sql b/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getValidValuesFilt.sql
new file mode 100644
index 0000000..e09cd1e
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getValidValuesFilt.sql
@@ -0,0 +1,26 @@
+
+-- =============================================
+-- STORED stp_getValidValuesFilt
+--
+-- Author: S.E.L.
+-- Create date: 2011.05.26
+-- Description: gestione selezione dati parametrici
+-- con filtro su valore con LIKE
+-- =============================================
+create PROCEDURE [dbo].[stp_listValues_getValidValuesFilt]
+(
+ @TableName NVARCHAR(50),
+ @FieldName NVARCHAR(50),
+ @valueLike NVARCHAR(10)
+)
+AS
+BEGIN
+ SET NOCOUNT ON;
+
+ SELECT value, label
+ FROM ListValues
+ WHERE TableName = @TableName
+ AND FieldName = @FieldName
+ AND value LIKE @valueLike +'%'
+ ORDER BY ordinal
+END
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getValidValuesTrad.sql b/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getValidValuesTrad.sql
new file mode 100644
index 0000000..dc8a194
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_listValues_getValidValuesTrad.sql
@@ -0,0 +1,26 @@
+
+-- =============================================
+-- STORED stp_getValidValues
+--
+-- Author: S.E.L.
+-- Create date: 2015.09.15
+-- Description: gestione selezione dati parametrici tradotti
+-- =============================================
+CREATE PROCEDURE [dbo].[stp_listValues_getValidValuesTrad]
+(
+ @TableName NVARCHAR(50),
+ @FieldName NVARCHAR(50),
+ @Lingua NVARCHAR(3)
+)
+AS
+BEGIN
+ SET NOCOUNT ON;
+
+ SELECT lv.value, ISNULL(v.Traduzione, lv.TableName+lv.FieldName+lv.value) AS label
+ FROM ListValues lv LEFT OUTER JOIN Vocabolario v
+ ON lv.TableName+lv.FieldName+lv.value = v.Lemma
+ AND v.Lingua = @Lingua
+ WHERE lv.TableName = @TableName
+ AND lv.FieldName = @FieldName
+ ORDER BY lv.ordinal
+END
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_oreEquivalenti.sql b/Projects/GimDB/dbo/Stored Procedures/stp_oreEquivalenti.sql
new file mode 100644
index 0000000..574ffef
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_oreEquivalenti.sql
@@ -0,0 +1,18 @@
+
+/*************************************
+* STORED PROCEDURE stp_oreEquivalenti
+* calcola le ore di apertura equivalenti x una data macchina e periodo
+*
+* modif.: S.E.L. - 2011.06.29
+**************************************/
+create PROCEDURE stp_oreEquivalenti
+(
+ @dataFrom DATETIME,
+ @dataTo DATETIME,
+ @idxMacchina INT
+)
+AS
+
+SELECT dbo.f_diffOreLavorative(@dataFrom, @dataTo, @idxMacchina) AS apertura
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_vie_getByPeriodoSearch.sql b/Projects/GimDB/dbo/Stored Procedures/stp_vie_getByPeriodoSearch.sql
new file mode 100644
index 0000000..461f3da
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_vie_getByPeriodoSearch.sql
@@ -0,0 +1,110 @@
+
+-- =============================================
+-- Author:
+-- Create date:
+-- Description:
+-- =============================================
+CREATE PROCEDURE [dbo].[stp_vie_getByPeriodoSearch] (
+ @inizio DATETIME
+ ,@fine DATETIME
+ ,@search NVARCHAR(50) = ''
+ )
+AS
+BEGIN
+ -- SET NOCOUNT ON added to prevent extra result sets from
+ -- interfering with SELECT statements.
+ SET NOCOUNT ON;
+
+ IF (
+ ISNULL (@search,'') = '' OR ISNULL (@search,'') = '*'
+ )
+ BEGIN
+ -- Insert statements for procedure here
+ SELECT DescrStato
+ ,codImpianto
+ ,codMacchina
+ ,dataLav
+ ,descrAmbitoGuasto
+ ,descrCausale
+ ,descrPriorita
+ ,descrTipo
+ ,descrizione
+ ,descrizioneIntervento
+ ,fineIntervento
+ ,guasto
+ ,idxAmbito
+ ,idxCausale
+ ,idxImpianto
+ ,idxMacchina
+ ,idxPriorita
+ ,idxStato
+ ,idxTipo
+ ,inizioIntervento
+ ,isFermo
+ ,isPreventivabile
+ ,matr
+ ,nomeImpianto
+ ,nomeMacchina
+ ,numIntMtz
+ ,presaInCarico
+ ,richiesta
+ ,turnoLav
+ FROM v_intervExp
+ WHERE (
+ richiesta BETWEEN @inizio
+ AND @fine
+ )
+ ORDER BY numIntMtz DESC
+ END
+ ELSE
+ BEGIN
+ SELECT DescrStato
+ ,codImpianto
+ ,codMacchina
+ ,dataLav
+ ,descrAmbitoGuasto
+ ,descrCausale
+ ,descrPriorita
+ ,descrTipo
+ ,descrizione
+ ,descrizioneIntervento
+ ,fineIntervento
+ ,guasto
+ ,idxAmbito
+ ,idxCausale
+ ,idxImpianto
+ ,idxMacchina
+ ,idxPriorita
+ ,idxStato
+ ,idxTipo
+ ,inizioIntervento
+ ,isFermo
+ ,isPreventivabile
+ ,matr
+ ,nomeImpianto
+ ,nomeMacchina
+ ,numIntMtz
+ ,presaInCarico
+ ,richiesta
+ ,turnoLav
+ FROM v_intervExp
+ WHERE (
+ richiesta BETWEEN @inizio
+ AND @fine
+ )
+ AND (
+ CONVERT(varchar(50),numIntMtz) LIKE '%' + @search + '%'
+ OR codImpianto LIKE '%' + @search + '%'
+ OR nomeImpianto LIKE '%' + @search + '%'
+ OR codMacchina LIKE '%' + @search + '%'
+ OR nomeMacchina LIKE '%' + @search + '%'
+ OR descrizione LIKE '%' + @search + '%'
+ OR descrAmbitoGuasto LIKE '%' + @search + '%'
+ OR descrCausale LIKE '%' + @search + '%'
+ OR descrizioneIntervento LIKE '%' + @search + '%'
+ OR descrPriorita LIKE '%' + @search + '%'
+ OR DescrStato LIKE '%' + @search + '%'
+ )
+ ORDER BY numIntMtz DESC
+ END
+END
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_vscm_getByConditio.sql b/Projects/GimDB/dbo/Stored Procedures/stp_vscm_getByConditio.sql
new file mode 100644
index 0000000..1c3ed87
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_vscm_getByConditio.sql
@@ -0,0 +1,17 @@
+-- =============================================
+-- Author: S.E.Locatelli
+-- Create date: 2013.12.27
+-- Description: ricerca causali by conditio
+-- =============================================
+create PROCEDURE stp_vscm_getByConditio
+(
+ @conditio INT = 0
+)
+AS
+
+SELECT value, label, conditio
+FROM v_selCausaliMacchine
+WHERE (conditio = @conditio)
+
+
+RETURN
diff --git a/Projects/GimDB/dbo/Stored Procedures/stp_vscm_getByConditioAndCurr.sql b/Projects/GimDB/dbo/Stored Procedures/stp_vscm_getByConditioAndCurr.sql
new file mode 100644
index 0000000..51d575c
--- /dev/null
+++ b/Projects/GimDB/dbo/Stored Procedures/stp_vscm_getByConditioAndCurr.sql
@@ -0,0 +1,35 @@
+-- =============================================
+-- Author: S.E.Locatelli
+-- Create date: 2013.12.27
+-- Description: ricerca causali by conditio + valore corrente (x storico)
+-- =============================================
+CREATE PROCEDURE stp_vscm_getByConditioAndCurr
+(
+ @conditio INT = 0,
+ @currVal INT = 0
+)
+AS
+DECLARE @trovati INT = 0
+
+SELECT @trovati = COUNT(*) FROM v_selCausaliMacchine WHERE value=@currVal AND conditio = @conditio
+-- controllo se c'è valore ok così...
+IF @trovati=1
+ BEGIN
+ SELECT value, label, conditio
+ FROM v_selCausaliMacchine
+ WHERE (conditio = @conditio)
+ END
+ELSE
+ BEGIN
+ SELECT @currVal as value, '--- ### ---' as label, @conditio as conditio
+
+ UNION
+
+ SELECT value, label, conditio
+ FROM v_selCausaliMacchine
+ WHERE (conditio = @conditio)
+ END
+
+
+
+RETURN
diff --git a/Projects/GimDB/dbo/Tables/AnagAmbitoGuasto.sql b/Projects/GimDB/dbo/Tables/AnagAmbitoGuasto.sql
new file mode 100644
index 0000000..649ce3f
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagAmbitoGuasto.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[AnagAmbitoGuasto] (
+ [idxAmbito] INT IDENTITY (1, 1) NOT NULL,
+ [descrAmbitoGuasto] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagAmbitoGuasto] PRIMARY KEY CLUSTERED ([idxAmbito] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagCausali.sql b/Projects/GimDB/dbo/Tables/AnagCausali.sql
new file mode 100644
index 0000000..0cc082c
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagCausali.sql
@@ -0,0 +1,9 @@
+CREATE TABLE [dbo].[AnagCausali] (
+ [idxCausale] INT IDENTITY (1, 1) NOT NULL,
+ [idxFamMacchine] INT NOT NULL,
+ [descrCausale] NVARCHAR (50) NULL,
+ [attiva] BIT CONSTRAINT [DF_AnagCausali_attiva] DEFAULT ((1)) NULL,
+ CONSTRAINT [PK_AnagCausali] PRIMARY KEY CLUSTERED ([idxCausale] ASC),
+ CONSTRAINT [FK_AnagCausali_AnagFamMacchine] FOREIGN KEY ([idxFamMacchine]) REFERENCES [dbo].[AnagFamMacchine] ([idxFamMacchine]) ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagClasseTurno.sql b/Projects/GimDB/dbo/Tables/AnagClasseTurno.sql
new file mode 100644
index 0000000..9436857
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagClasseTurno.sql
@@ -0,0 +1,7 @@
+CREATE TABLE [dbo].[AnagClasseTurno] (
+ [CodClasseTurno] NVARCHAR (50) NOT NULL,
+ [Descrizione] NVARCHAR (50) NULL,
+ [hSettStd] INT NULL,
+ CONSTRAINT [PK_AnagClasseTurno] PRIMARY KEY CLUSTERED ([CodClasseTurno] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagEventi.sql b/Projects/GimDB/dbo/Tables/AnagEventi.sql
new file mode 100644
index 0000000..96bd850
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagEventi.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[AnagEventi] (
+ [idxEvento] INT NOT NULL,
+ [DescrEvento] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagEventi] PRIMARY KEY CLUSTERED ([idxEvento] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagFamMacchine.sql b/Projects/GimDB/dbo/Tables/AnagFamMacchine.sql
new file mode 100644
index 0000000..437f3c7
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagFamMacchine.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[AnagFamMacchine] (
+ [idxFamMacchine] INT IDENTITY (1, 1) NOT NULL,
+ [nomeFamMacch] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagFamMacchine] PRIMARY KEY CLUSTERED ([idxFamMacchine] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagFrequenze.sql b/Projects/GimDB/dbo/Tables/AnagFrequenze.sql
new file mode 100644
index 0000000..6f5a567
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagFrequenze.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[AnagFrequenze] (
+ [codFrequenza] NCHAR (2) NOT NULL,
+ [frequenza] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagFrequenze] PRIMARY KEY CLUSTERED ([codFrequenza] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagImpianti.sql b/Projects/GimDB/dbo/Tables/AnagImpianti.sql
new file mode 100644
index 0000000..0e57940
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagImpianti.sql
@@ -0,0 +1,10 @@
+CREATE TABLE [dbo].[AnagImpianti] (
+ [idxImpianto] INT IDENTITY (1, 1) NOT NULL,
+ [codImpianto] NVARCHAR (50) NULL,
+ [nomeImpianto] NVARCHAR (50) NULL,
+ [tipoImpianto] NVARCHAR (50) NULL,
+ [funzDal] DATETIME NULL,
+ [funzAl] DATETIME NULL,
+ CONSTRAINT [PK_AnagImpianti] PRIMARY KEY CLUSTERED ([idxImpianto] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagItems.sql b/Projects/GimDB/dbo/Tables/AnagItems.sql
new file mode 100644
index 0000000..1a5a674
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagItems.sql
@@ -0,0 +1,23 @@
+CREATE TABLE [dbo].[AnagItems] (
+ [idxItem] INT IDENTITY (1, 1) NOT NULL,
+ [Famiglia] NVARCHAR (50) CONSTRAINT [DF_AnagItems_Famiglia] DEFAULT ('') NOT NULL,
+ [Descrizione] NVARCHAR (250) CONSTRAINT [DF_AnagItems_Descrizione] DEFAULT ('') NOT NULL,
+ [NomeCostruttore] NVARCHAR (250) CONSTRAINT [DF_AnagItems_NomeCostruttore] DEFAULT ('') NOT NULL,
+ [CodCostruttore] NVARCHAR (250) CONSTRAINT [DF_AnagItems_CodCostruttore] DEFAULT ('') NOT NULL,
+ [CodInterno] NVARCHAR (50) CONSTRAINT [DF_AnagItems_CodInterno] DEFAULT ('') NOT NULL,
+ [QtaMin] INT CONSTRAINT [DF_AnagItems_QtaMin] DEFAULT ((0)) NOT NULL,
+ [QtaLotto] INT CONSTRAINT [DF_AnagItems_QtaLotto] DEFAULT ((1)) NOT NULL,
+ [Valore] DECIMAL (18, 6) CONSTRAINT [DF_AnagItems_Valore] DEFAULT ((0)) NOT NULL,
+ CONSTRAINT [PK_AnagItems] PRIMARY KEY CLUSTERED ([idxItem] ASC)
+);
+
+
+
+
+
+
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'valore unitario item', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AnagItems', @level2type = N'COLUMN', @level2name = N'Valore';
+
diff --git a/Projects/GimDB/dbo/Tables/AnagLocazioni.sql b/Projects/GimDB/dbo/Tables/AnagLocazioni.sql
new file mode 100644
index 0000000..1a1a23d
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagLocazioni.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[AnagLocazioni] (
+ [CodLocazione] NVARCHAR (50) CONSTRAINT [DF_AnagLocazioni_CodLocazione] DEFAULT ('') NOT NULL,
+ [Descrizione] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagLocazioni] PRIMARY KEY CLUSTERED ([CodLocazione] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagMacchine.sql b/Projects/GimDB/dbo/Tables/AnagMacchine.sql
new file mode 100644
index 0000000..8a3d08a
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagMacchine.sql
@@ -0,0 +1,31 @@
+CREATE TABLE [dbo].[AnagMacchine] (
+ [idxMacchina] INT IDENTITY (1, 1) NOT NULL,
+ [idxImpianto] INT NULL,
+ [codMacchina] NVARCHAR (50) NULL,
+ [nomeMacchina] NVARCHAR (250) NULL,
+ [modello] NVARCHAR (250) NULL,
+ [matricola] NVARCHAR (50) NULL,
+ [anno] INT NULL,
+ [kgPeso] FLOAT (53) CONSTRAINT [DF_AnagMacchine_kgPeso] DEFAULT ((0)) NOT NULL,
+ [kwConsumo] FLOAT (53) CONSTRAINT [DF_AnagMacchine_kwConsumo] DEFAULT ((0)) NOT NULL,
+ [funzDal] DATETIME NULL,
+ [funzAl] DATETIME NULL,
+ CONSTRAINT [PK_AnagMacchine] PRIMARY KEY CLUSTERED ([idxMacchina] ASC),
+ CONSTRAINT [FK_AnagMacchine_AnagImpianti] FOREIGN KEY ([idxImpianto]) REFERENCES [dbo].[AnagImpianti] ([idxImpianto]) ON UPDATE CASCADE
+);
+
+
+GO
+
+CREATE TRIGGER updateAssociazioneFamMacchine
+ON dbo.AnagMacchine
+FOR INSERT
+AS
+
+-- aggiungo le eventuali "macchine orfane" alla fam macchine di base (1 = TUTTE)
+INSERT INTO Macchine2FamMacchine(idxMacchina, idxFamMacchine)
+(
+ SELECT am.idxMacchina, 1 FROM anagMacchine am LEFT OUTER JOIN macchine2FamMacchine m2f
+ ON am.idxMacchina=m2f.idxMacchina
+ WHERE m2f.idxmacchina IS NULL
+)
diff --git a/Projects/GimDB/dbo/Tables/AnagPeriodi.sql b/Projects/GimDB/dbo/Tables/AnagPeriodi.sql
new file mode 100644
index 0000000..3b5cce3
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagPeriodi.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[AnagPeriodi] (
+ [codPeriodo] NVARCHAR (20) NOT NULL,
+ [lemmaPeriodo] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagPeriodi] PRIMARY KEY CLUSTERED ([codPeriodo] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagPriorita.sql b/Projects/GimDB/dbo/Tables/AnagPriorita.sql
new file mode 100644
index 0000000..a1a1204
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagPriorita.sql
@@ -0,0 +1,7 @@
+CREATE TABLE [dbo].[AnagPriorita] (
+ [idxPriorita] INT NOT NULL,
+ [descrPriorita] NVARCHAR (50) NULL,
+ [stile] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagPriorita] PRIMARY KEY CLUSTERED ([idxPriorita] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagSemafori.sql b/Projects/GimDB/dbo/Tables/AnagSemafori.sql
new file mode 100644
index 0000000..3164de1
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagSemafori.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[AnagSemafori] (
+ [codSemaforo] NVARCHAR (50) NOT NULL,
+ [descrSemaforo] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagSemafori] PRIMARY KEY CLUSTERED ([codSemaforo] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagStati.sql b/Projects/GimDB/dbo/Tables/AnagStati.sql
new file mode 100644
index 0000000..4b3c2cb
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagStati.sql
@@ -0,0 +1,7 @@
+CREATE TABLE [dbo].[AnagStati] (
+ [idxStato] INT NOT NULL,
+ [DescrStato] NVARCHAR (50) NULL,
+ [stile] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagStati] PRIMARY KEY CLUSTERED ([idxStato] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagTags.sql b/Projects/GimDB/dbo/Tables/AnagTags.sql
new file mode 100644
index 0000000..a7bbcec
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagTags.sql
@@ -0,0 +1,15 @@
+CREATE TABLE [dbo].[AnagTags] (
+ [TagCode] NVARCHAR (50) NOT NULL,
+ [Class] NVARCHAR (50) CONSTRAINT [DF_AnagTag_Class] DEFAULT ('') NOT NULL,
+ [TagDescr] NVARCHAR (50) CONSTRAINT [DF_AnagTag_TagDescr] DEFAULT ('') NOT NULL,
+ CONSTRAINT [PK_AnagTag] PRIMARY KEY CLUSTERED ([TagCode] ASC)
+);
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Descrizioen dell''etichetta', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AnagTags', @level2type = N'COLUMN', @level2name = N'TagDescr';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'classe delle etichette (es FM = fam macchine)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AnagTags', @level2type = N'COLUMN', @level2name = N'Class';
+
diff --git a/Projects/GimDB/dbo/Tables/AnagTipoGuasto.sql b/Projects/GimDB/dbo/Tables/AnagTipoGuasto.sql
new file mode 100644
index 0000000..fee6488
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagTipoGuasto.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[AnagTipoGuasto] (
+ [idxTipo] INT IDENTITY (1, 1) NOT NULL,
+ [descrTipo] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagTipoGuasto] PRIMARY KEY CLUSTERED ([idxTipo] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagTipoRisorsa.sql b/Projects/GimDB/dbo/Tables/AnagTipoRisorsa.sql
new file mode 100644
index 0000000..520dd90
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagTipoRisorsa.sql
@@ -0,0 +1,8 @@
+CREATE TABLE [dbo].[AnagTipoRisorsa] (
+ [CodRisorsa] NVARCHAR (10) NOT NULL,
+ [UM] NVARCHAR (10) NOT NULL,
+ [DescrRisorsa] NVARCHAR (50) NOT NULL,
+ [Valuta] NVARCHAR (5) CONSTRAINT [DF_AnagTipoRisorsa_Valuta] DEFAULT ('€') NOT NULL,
+ CONSTRAINT [PK_AnagTipoRisorsa] PRIMARY KEY CLUSTERED ([CodRisorsa] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagTurni.sql b/Projects/GimDB/dbo/Tables/AnagTurni.sql
new file mode 100644
index 0000000..233ffc5
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagTurni.sql
@@ -0,0 +1,8 @@
+CREATE TABLE [dbo].[AnagTurni] (
+ [CodTurno] NVARCHAR (50) NOT NULL,
+ [hStart] INT NULL,
+ [hEnd] INT NULL,
+ [descr] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagTurni] PRIMARY KEY CLUSTERED ([CodTurno] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/AnagrOperMtz.sql b/Projects/GimDB/dbo/Tables/AnagrOperMtz.sql
new file mode 100644
index 0000000..214aa45
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/AnagrOperMtz.sql
@@ -0,0 +1,7 @@
+CREATE TABLE [dbo].[AnagrOperMtz] (
+ [matrOp] NVARCHAR (10) NOT NULL,
+ [Cognome] NVARCHAR (50) NULL,
+ [Nome] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_AnagrOperatoriMtz] PRIMARY KEY CLUSTERED ([matrOp] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/CDC.sql b/Projects/GimDB/dbo/Tables/CDC.sql
new file mode 100644
index 0000000..cf14a05
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/CDC.sql
@@ -0,0 +1,8 @@
+CREATE TABLE [dbo].[CDC] (
+ [COD_CDC] VARCHAR (10) NOT NULL,
+ [DESCRIZIONE] VARCHAR (200) NULL,
+ [COD_TIPO] VARCHAR (1) NOT NULL,
+ [POSIZIONE] VARCHAR (100) NULL,
+ PRIMARY KEY CLUSTERED ([COD_CDC] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/CalendFesteFerie.sql b/Projects/GimDB/dbo/Tables/CalendFesteFerie.sql
new file mode 100644
index 0000000..1f1219d
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/CalendFesteFerie.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[CalendFesteFerie] (
+ [data] DATETIME NOT NULL,
+ [descrizione] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_CalendFesteFerie] PRIMARY KEY CLUSTERED ([data] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/DIRITTI.sql b/Projects/GimDB/dbo/Tables/DIRITTI.sql
new file mode 100644
index 0000000..6789dec
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/DIRITTI.sql
@@ -0,0 +1,12 @@
+CREATE TABLE [dbo].[DIRITTI] (
+ [USER_NAME] NVARCHAR (50) NOT NULL,
+ [COD_CDC] NVARCHAR (50) NOT NULL,
+ [COD_MODULO] NVARCHAR (31) NOT NULL,
+ [COD_FUNZIONE] NVARCHAR (31) NOT NULL,
+ [VALUE] VARCHAR (255) NULL,
+ CONSTRAINT [PK_DIRITTI] PRIMARY KEY CLUSTERED ([USER_NAME] ASC, [COD_CDC] ASC, [COD_MODULO] ASC, [COD_FUNZIONE] ASC),
+ CONSTRAINT [FK_DIRITTI_FUNZIONE] FOREIGN KEY ([COD_FUNZIONE]) REFERENCES [dbo].[FUNZIONE] ([COD_FUNZIONE]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_DIRITTI_MODULO] FOREIGN KEY ([COD_MODULO]) REFERENCES [dbo].[MODULO] ([COD_MODULO]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_DIRITTI_UTENTE] FOREIGN KEY ([USER_NAME]) REFERENCES [dbo].[UTENTE] ([USER_NAME]) ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/FUNZIONE.sql b/Projects/GimDB/dbo/Tables/FUNZIONE.sql
new file mode 100644
index 0000000..b089e55
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/FUNZIONE.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[FUNZIONE] (
+ [COD_FUNZIONE] NVARCHAR (31) NOT NULL,
+ [DESCRIZIONE] NVARCHAR (500) NULL,
+ CONSTRAINT [PK_FUNZIONE] PRIMARY KEY CLUSTERED ([COD_FUNZIONE] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/FiltroImpianti.sql b/Projects/GimDB/dbo/Tables/FiltroImpianti.sql
new file mode 100644
index 0000000..f052b4d
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/FiltroImpianti.sql
@@ -0,0 +1,12 @@
+CREATE TABLE [dbo].[FiltroImpianti] (
+ [username] NVARCHAR (50) NOT NULL,
+ [idxImpianto] INT NOT NULL,
+ CONSTRAINT [PK_FiltroImpianti] PRIMARY KEY CLUSTERED ([username] ASC, [idxImpianto] ASC),
+ CONSTRAINT [FK_FiltroImpianti_AnagImpianti] FOREIGN KEY ([idxImpianto]) REFERENCES [dbo].[AnagImpianti] ([idxImpianto]) ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+
+GO
+CREATE NONCLUSTERED INDEX [i_username]
+ ON [dbo].[FiltroImpianti]([username] ASC);
+
diff --git a/Projects/GimDB/dbo/Tables/FiltroMacchine.sql b/Projects/GimDB/dbo/Tables/FiltroMacchine.sql
new file mode 100644
index 0000000..07b75b7
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/FiltroMacchine.sql
@@ -0,0 +1,12 @@
+CREATE TABLE [dbo].[FiltroMacchine] (
+ [username] NVARCHAR (50) NOT NULL,
+ [idxMacchina] INT NOT NULL,
+ CONSTRAINT [PK_FiltroMacchine] PRIMARY KEY CLUSTERED ([username] ASC, [idxMacchina] ASC),
+ CONSTRAINT [FK_FiltroMacchine_AnagMacchine] FOREIGN KEY ([idxMacchina]) REFERENCES [dbo].[AnagMacchine] ([idxMacchina]) ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+
+GO
+CREATE NONCLUSTERED INDEX [i_username]
+ ON [dbo].[FiltroMacchine]([username] ASC);
+
diff --git a/Projects/GimDB/dbo/Tables/FiltroStati.sql b/Projects/GimDB/dbo/Tables/FiltroStati.sql
new file mode 100644
index 0000000..20a3f49
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/FiltroStati.sql
@@ -0,0 +1,12 @@
+CREATE TABLE [dbo].[FiltroStati] (
+ [username] NVARCHAR (50) NOT NULL,
+ [idxStato] INT NOT NULL,
+ CONSTRAINT [PK_FiltroStati] PRIMARY KEY CLUSTERED ([username] ASC, [idxStato] ASC),
+ CONSTRAINT [FK_FiltroStati_AnagStati] FOREIGN KEY ([idxStato]) REFERENCES [dbo].[AnagStati] ([idxStato]) ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+
+GO
+CREATE NONCLUSTERED INDEX [i_username]
+ ON [dbo].[FiltroStati]([username] ASC);
+
diff --git a/Projects/GimDB/dbo/Tables/ImpiegoRisorse.sql b/Projects/GimDB/dbo/Tables/ImpiegoRisorse.sql
new file mode 100644
index 0000000..947b59e
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/ImpiegoRisorse.sql
@@ -0,0 +1,13 @@
+CREATE TABLE [dbo].[ImpiegoRisorse] (
+ [idxImpiego] INT IDENTITY (1, 1) NOT NULL,
+ [CodRisorsa] NVARCHAR (10) NOT NULL,
+ [numIntMtz] INT NOT NULL,
+ [QtaRisorsa] DECIMAL (18, 6) NOT NULL,
+ [CostoUnit] DECIMAL (18, 6) CONSTRAINT [DF_ImpiegoRisorse_CostoUnit] DEFAULT ((0)) NOT NULL,
+ [TotImport] AS ([QtaRisorsa]*[CostoUnit]),
+ [Note] NVARCHAR (MAX) CONSTRAINT [DF_ImpiegoRisorse_Note] DEFAULT ('') NOT NULL,
+ CONSTRAINT [PK_ImpiegoRisorse] PRIMARY KEY CLUSTERED ([idxImpiego] ASC),
+ CONSTRAINT [FK_ImpiegoRisorse_AnagTipoRisorsa] FOREIGN KEY ([CodRisorsa]) REFERENCES [dbo].[AnagTipoRisorsa] ([CodRisorsa]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_ImpiegoRisorse_InterventiMtz] FOREIGN KEY ([numIntMtz]) REFERENCES [dbo].[InterventiMtz] ([numIntMtz]) ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/InterventiMtz.sql b/Projects/GimDB/dbo/Tables/InterventiMtz.sql
new file mode 100644
index 0000000..c5c3ac6
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/InterventiMtz.sql
@@ -0,0 +1,56 @@
+CREATE TABLE [dbo].[InterventiMtz] (
+ [numIntMtz] INT IDENTITY (1, 1) NOT NULL,
+ [richiesta] DATETIME NOT NULL,
+ [dataLav] DATETIME NOT NULL,
+ [turnoLav] INT NOT NULL,
+ [matr] NVARCHAR (10) NOT NULL,
+ [guasto] DATETIME NOT NULL,
+ [idxAmbito] INT NOT NULL,
+ [idxPriorita] INT NOT NULL,
+ [isFermo] BIT CONSTRAINT [DF_InterventiMtz_isFermo] DEFAULT ((1)) NOT NULL,
+ [idxTipo] INT NOT NULL,
+ [idxImpianto] INT NOT NULL,
+ [idxMacchina] INT NOT NULL,
+ [descrizione] NVARCHAR (2500) NOT NULL,
+ [idxStato] INT NOT NULL,
+ [presaInCarico] DATETIME NULL,
+ [inizioIntervento] DATETIME NULL,
+ [fineIntervento] DATETIME NULL,
+ [descrizioneIntervento] NVARCHAR (2500) NULL,
+ [isPreventivabile] BIT CONSTRAINT [DF_InterventiMtz_isPreventivabile] DEFAULT ((0)) NOT NULL,
+ [idxCausale] INT NULL,
+ [scheduled] BIT CONSTRAINT [DF_InterventiMtz_scheduled] DEFAULT ((0)) NULL,
+ CONSTRAINT [PK_InterventiMtz] PRIMARY KEY CLUSTERED ([numIntMtz] ASC),
+ CONSTRAINT [FK_InterventiMtz_AnagAmbitoGuasto] FOREIGN KEY ([idxAmbito]) REFERENCES [dbo].[AnagAmbitoGuasto] ([idxAmbito]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_InterventiMtz_AnagCausali] FOREIGN KEY ([idxCausale]) REFERENCES [dbo].[AnagCausali] ([idxCausale]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_InterventiMtz_AnagImpianti] FOREIGN KEY ([idxImpianto]) REFERENCES [dbo].[AnagImpianti] ([idxImpianto]),
+ CONSTRAINT [FK_InterventiMtz_AnagMacchine] FOREIGN KEY ([idxMacchina]) REFERENCES [dbo].[AnagMacchine] ([idxMacchina]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_InterventiMtz_AnagPriorita] FOREIGN KEY ([idxPriorita]) REFERENCES [dbo].[AnagPriorita] ([idxPriorita]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_InterventiMtz_AnagStati] FOREIGN KEY ([idxStato]) REFERENCES [dbo].[AnagStati] ([idxStato]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_InterventiMtz_AnagTipoGuasto] FOREIGN KEY ([idxTipo]) REFERENCES [dbo].[AnagTipoGuasto] ([idxTipo]) ON UPDATE CASCADE
+);
+
+
+GO
+CREATE NONCLUSTERED INDEX [i_richiesta]
+ ON [dbo].[InterventiMtz]([richiesta] ASC);
+
+
+GO
+CREATE NONCLUSTERED INDEX [i_impianto]
+ ON [dbo].[InterventiMtz]([idxImpianto] ASC);
+
+
+GO
+CREATE NONCLUSTERED INDEX [i_macchina]
+ ON [dbo].[InterventiMtz]([idxMacchina] ASC);
+
+
+GO
+CREATE NONCLUSTERED INDEX [i_stato]
+ ON [dbo].[InterventiMtz]([idxStato] ASC);
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = 'indica se l''intervento sia stato generato da manutenzione programmata/preventiva', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'InterventiMtz', @level2type = N'COLUMN', @level2name = N'scheduled';
+
diff --git a/Projects/GimDB/dbo/Tables/InterventoOpMtz.sql b/Projects/GimDB/dbo/Tables/InterventoOpMtz.sql
new file mode 100644
index 0000000..7cbe207
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/InterventoOpMtz.sql
@@ -0,0 +1,9 @@
+CREATE TABLE [dbo].[InterventoOpMtz] (
+ [numIntMtz] INT NOT NULL,
+ [matrOp] NVARCHAR (10) NOT NULL,
+ [durataMinuti] INT NULL,
+ CONSTRAINT [PK_InterventoOpMtz] PRIMARY KEY CLUSTERED ([numIntMtz] ASC, [matrOp] ASC),
+ CONSTRAINT [FK_InterventoOpMtz_AnagrOperMtz] FOREIGN KEY ([matrOp]) REFERENCES [dbo].[AnagrOperMtz] ([matrOp]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_InterventoOpMtz_InterventiMtz] FOREIGN KEY ([numIntMtz]) REFERENCES [dbo].[InterventiMtz] ([numIntMtz]) ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/Lingue.sql b/Projects/GimDB/dbo/Tables/Lingue.sql
new file mode 100644
index 0000000..9ae1331
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/Lingue.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[Lingue] (
+ [Lingua] NVARCHAR (3) NOT NULL,
+ [DescrizioneLingua] NVARCHAR (50) NOT NULL,
+ CONSTRAINT [PK_Lingue] PRIMARY KEY CLUSTERED ([Lingua] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/ListValues.sql b/Projects/GimDB/dbo/Tables/ListValues.sql
new file mode 100644
index 0000000..868698b
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/ListValues.sql
@@ -0,0 +1,9 @@
+CREATE TABLE [dbo].[ListValues] (
+ [TableName] NVARCHAR (50) NOT NULL,
+ [FieldName] NVARCHAR (50) NOT NULL,
+ [value] NVARCHAR (10) NOT NULL,
+ [label] NVARCHAR (50) NULL,
+ [ordinal] INT NULL,
+ CONSTRAINT [PK_ListValues] PRIMARY KEY CLUSTERED ([TableName] ASC, [FieldName] ASC, [value] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/LogUpdateDb.sql b/Projects/GimDB/dbo/Tables/LogUpdateDb.sql
new file mode 100644
index 0000000..42dd985
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/LogUpdateDb.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[LogUpdateDb] (
+ [Versione] INT NOT NULL,
+ [Data] DATETIME NULL,
+ CONSTRAINT [PK_LogUpdateDb] PRIMARY KEY CLUSTERED ([Versione] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/MODULO.sql b/Projects/GimDB/dbo/Tables/MODULO.sql
new file mode 100644
index 0000000..d37b3b3
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/MODULO.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[MODULO] (
+ [COD_MODULO] NVARCHAR (31) NOT NULL,
+ [DESCRIZIONE] VARCHAR (200) NULL,
+ CONSTRAINT [PK_MODULO] PRIMARY KEY CLUSTERED ([COD_MODULO] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/Macchine2FamMacchine.sql b/Projects/GimDB/dbo/Tables/Macchine2FamMacchine.sql
new file mode 100644
index 0000000..61a1db6
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/Macchine2FamMacchine.sql
@@ -0,0 +1,8 @@
+CREATE TABLE [dbo].[Macchine2FamMacchine] (
+ [idxMacchina] INT NOT NULL,
+ [idxFamMacchine] INT NOT NULL,
+ CONSTRAINT [PK_Macchine2FamMacchine] PRIMARY KEY CLUSTERED ([idxMacchina] ASC, [idxFamMacchine] ASC),
+ CONSTRAINT [FK_Macchine2FamMacchine_AnagFamMacchine] FOREIGN KEY ([idxFamMacchine]) REFERENCES [dbo].[AnagFamMacchine] ([idxFamMacchine]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_Macchine2FamMacchine_AnagMacchine] FOREIGN KEY ([idxMacchina]) REFERENCES [dbo].[AnagMacchine] ([idxMacchina]) ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/MagRic.sql b/Projects/GimDB/dbo/Tables/MagRic.sql
new file mode 100644
index 0000000..ecb2cb8
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/MagRic.sql
@@ -0,0 +1,15 @@
+CREATE TABLE [dbo].[MagRic] (
+ [idxItem] INT NOT NULL,
+ [CodLocazione] NVARCHAR (50) CONSTRAINT [DF__MagRicamb__CodLo__041093DD] DEFAULT ('') NOT NULL,
+ [Giacenza] INT CONSTRAINT [DF__MagRicambi__Qta__031C6FA4] DEFAULT ((0)) NOT NULL,
+ [Note] NVARCHAR (MAX) CONSTRAINT [DF__MagRicambi__Note__0504B816] DEFAULT ('') NOT NULL,
+ [dtLastUpd] DATETIME NULL,
+ CONSTRAINT [PK__MagRicam__51E8426210504E93] PRIMARY KEY CLUSTERED ([idxItem] ASC, [CodLocazione] ASC),
+ CONSTRAINT [FK_MagRic_AnagItems] FOREIGN KEY ([idxItem]) REFERENCES [dbo].[AnagItems] ([idxItem]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_MagRic_AnagLocazioni] FOREIGN KEY ([CodLocazione]) REFERENCES [dbo].[AnagLocazioni] ([CodLocazione]) ON UPDATE CASCADE
+);
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'data-ora ultimo aggiornamento', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MagRic', @level2type = N'COLUMN', @level2name = N'dtLastUpd';
+
diff --git a/Projects/GimDB/dbo/Tables/MovMagRic.sql b/Projects/GimDB/dbo/Tables/MovMagRic.sql
new file mode 100644
index 0000000..e1bfd4b
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/MovMagRic.sql
@@ -0,0 +1,18 @@
+CREATE TABLE [dbo].[MovMagRic] (
+ [idxItem] INT NOT NULL,
+ [numIntMtz] INT NOT NULL,
+ [dtMov] DATETIME NOT NULL,
+ [Qta] INT CONSTRAINT [DF_MovMagRic_Qta] DEFAULT ((0)) NOT NULL,
+ [idxMacchina] INT NOT NULL,
+ [dtExport] DATETIME NULL,
+ CONSTRAINT [PK_MovMagRic] PRIMARY KEY CLUSTERED ([idxItem] ASC, [numIntMtz] ASC, [dtMov] ASC),
+ CONSTRAINT [FK_MovMagRic_AnagItems] FOREIGN KEY ([idxItem]) REFERENCES [dbo].[AnagItems] ([idxItem]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_MovMagRic_InterventiMtz] FOREIGN KEY ([numIntMtz]) REFERENCES [dbo].[InterventiMtz] ([numIntMtz]) ON UPDATE CASCADE
+);
+
+
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'data export verso ERP', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MovMagRic', @level2type = N'COLUMN', @level2name = N'dtExport';
+
diff --git a/Projects/GimDB/dbo/Tables/MtzProgPending.sql b/Projects/GimDB/dbo/Tables/MtzProgPending.sql
new file mode 100644
index 0000000..84eff90
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/MtzProgPending.sql
@@ -0,0 +1,13 @@
+CREATE TABLE [dbo].[MtzProgPending] (
+ [idxPending] INT IDENTITY (1, 1) NOT NULL,
+ [idxIntPro] INT NOT NULL,
+ [idxMacchina] INT NULL,
+ [data] DATETIME NULL,
+ [descrizione] NVARCHAR (2500) NULL,
+ [idxPriorita] INT NULL,
+ [isFermo] BIT CONSTRAINT [DF_MtzProgPending_isFermo] DEFAULT ((1)) NULL,
+ [idxTipo] INT NULL,
+ CONSTRAINT [PK_MtzProgPending] PRIMARY KEY CLUSTERED ([idxPending] ASC),
+ CONSTRAINT [FK_MtzProgPending_MtzProgrammata] FOREIGN KEY ([idxIntPro]) REFERENCES [dbo].[MtzProgrammata] ([idxIntPro]) ON DELETE CASCADE ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/MtzProgrammata.sql b/Projects/GimDB/dbo/Tables/MtzProgrammata.sql
new file mode 100644
index 0000000..7ab73bb
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/MtzProgrammata.sql
@@ -0,0 +1,40 @@
+CREATE TABLE [dbo].[MtzProgrammata] (
+ [idxIntPro] INT IDENTITY (1, 1) NOT NULL,
+ [idxMacchina] INT NULL,
+ [inizio] DATETIME NULL,
+ [codFrequenza] NCHAR (2) NULL,
+ [cadenza] INT NULL,
+ [descrizione] NVARCHAR (2500) NULL,
+ [idxPriorita] INT NULL,
+ [isFermo] BIT CONSTRAINT [DF_MtzProgrammata_isFermo] DEFAULT ((1)) NULL,
+ [idxTipo] INT NULL,
+ CONSTRAINT [PK_MtzProgrammata] PRIMARY KEY CLUSTERED ([idxIntPro] ASC),
+ CONSTRAINT [FK_MtzProgrammata_AnagFrequenze] FOREIGN KEY ([codFrequenza]) REFERENCES [dbo].[AnagFrequenze] ([codFrequenza]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_MtzProgrammata_AnagMacchine] FOREIGN KEY ([idxMacchina]) REFERENCES [dbo].[AnagMacchine] ([idxMacchina]) ON UPDATE CASCADE
+);
+
+
+GO
+/*********************************************************************************
+* TRIGGER trg_updateMPPending
+*
+* eliminazione, in caso di update di un intervento di MtzProgrammata,
+* dei record di interventi "pending" predisposti... così saranno rigenerati corretti
+*
+**********************************************************************************/
+CREATE TRIGGER trg_updateMPPending
+ON dbo.MtzProgrammata
+FOR UPDATE, DELETE
+AS
+
+BEGIN tran
+ -- elimino interventi pending interessati...
+ DELETE
+ FROM MtzProgPending
+ WHERE idxIntPro IN
+ (
+ -- prendendo gli interventi mtzProgrammata modificati...
+ SELECT DISTINCT idxIntPro FROM DELETED
+ )
+
+COMMIT tran
diff --git a/Projects/GimDB/dbo/Tables/OreAperturaSett.sql b/Projects/GimDB/dbo/Tables/OreAperturaSett.sql
new file mode 100644
index 0000000..0a0b832
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/OreAperturaSett.sql
@@ -0,0 +1,7 @@
+CREATE TABLE [dbo].[OreAperturaSett] (
+ [giorno] INT NOT NULL,
+ [descrGiorno] NVARCHAR (50) NULL,
+ [apertura] INT NULL,
+ CONSTRAINT [PK_OreAperturaSett_2] PRIMARY KEY CLUSTERED ([giorno] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/OreAperturaSettTurni.sql b/Projects/GimDB/dbo/Tables/OreAperturaSettTurni.sql
new file mode 100644
index 0000000..577328d
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/OreAperturaSettTurni.sql
@@ -0,0 +1,8 @@
+CREATE TABLE [dbo].[OreAperturaSettTurni] (
+ [CodClasseTurno] NVARCHAR (50) NOT NULL,
+ [CodTurno] NVARCHAR (50) NOT NULL,
+ [giorno] INT NOT NULL,
+ [descrGiorno] NVARCHAR (50) NULL,
+ CONSTRAINT [PK_OreAperturaSett] PRIMARY KEY CLUSTERED ([CodClasseTurno] ASC, [giorno] ASC, [CodTurno] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/OreChiusuraSett.sql b/Projects/GimDB/dbo/Tables/OreChiusuraSett.sql
new file mode 100644
index 0000000..487cc03
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/OreChiusuraSett.sql
@@ -0,0 +1,7 @@
+CREATE TABLE [dbo].[OreChiusuraSett] (
+ [giorno] INT NOT NULL,
+ [descrGiorno] NVARCHAR (50) NULL,
+ [chiusura] INT NULL,
+ CONSTRAINT [PK_OreAperturaSett_1] PRIMARY KEY CLUSTERED ([giorno] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/Permessi.sql b/Projects/GimDB/dbo/Tables/Permessi.sql
new file mode 100644
index 0000000..13f8d90
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/Permessi.sql
@@ -0,0 +1,10 @@
+CREATE TABLE [dbo].[Permessi] (
+ [COD_PERMESSO] VARCHAR (50) NOT NULL,
+ [URL] VARCHAR (250) NOT NULL,
+ [GRUPPO] INT NULL,
+ [NUMERO] INT NULL,
+ [NOME] VARCHAR (50) NULL,
+ [DESCRIZIONE] VARCHAR (50) NULL,
+ CONSTRAINT [PK_Permessi] PRIMARY KEY CLUSTERED ([COD_PERMESSO] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/Permessi2Funzione.sql b/Projects/GimDB/dbo/Tables/Permessi2Funzione.sql
new file mode 100644
index 0000000..c623e87
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/Permessi2Funzione.sql
@@ -0,0 +1,8 @@
+CREATE TABLE [dbo].[Permessi2Funzione] (
+ [COD_PERMESSO] VARCHAR (50) NOT NULL,
+ [COD_FUNZIONE] NVARCHAR (31) NOT NULL,
+ [READWRITE] CHAR (1) NULL,
+ CONSTRAINT [PK_Permessi2Funzione] PRIMARY KEY CLUSTERED ([COD_PERMESSO] ASC, [COD_FUNZIONE] ASC),
+ CONSTRAINT [FK_Permessi2Funzione_Permessi] FOREIGN KEY ([COD_PERMESSO]) REFERENCES [dbo].[Permessi] ([COD_PERMESSO]) ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/SinonimiTag.sql b/Projects/GimDB/dbo/Tables/SinonimiTag.sql
new file mode 100644
index 0000000..cf6e142
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/SinonimiTag.sql
@@ -0,0 +1,6 @@
+CREATE TABLE [dbo].[SinonimiTag] (
+ [TagCodeOrig] NVARCHAR (50) NOT NULL,
+ [TagCode] NVARCHAR (50) NOT NULL,
+ CONSTRAINT [PK_SinonimiTag] PRIMARY KEY CLUSTERED ([TagCodeOrig] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Tables/Tag2Item.sql b/Projects/GimDB/dbo/Tables/Tag2Item.sql
new file mode 100644
index 0000000..39ee470
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/Tag2Item.sql
@@ -0,0 +1,8 @@
+CREATE TABLE [dbo].[Tag2Item] (
+ [idxItem] INT NOT NULL,
+ [TagCode] NVARCHAR (50) NOT NULL,
+ CONSTRAINT [PK_Tag2Item] PRIMARY KEY CLUSTERED ([idxItem] ASC, [TagCode] ASC),
+ CONSTRAINT [FK_Tag2Item_AnagItems] FOREIGN KEY ([idxItem]) REFERENCES [dbo].[AnagItems] ([idxItem]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_Tag2Item_AnagTag] FOREIGN KEY ([TagCode]) REFERENCES [dbo].[AnagTags] ([TagCode]) ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/Tag2Macc.sql b/Projects/GimDB/dbo/Tables/Tag2Macc.sql
new file mode 100644
index 0000000..cf622bc
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/Tag2Macc.sql
@@ -0,0 +1,8 @@
+CREATE TABLE [dbo].[Tag2Macc] (
+ [TagCode] NVARCHAR (50) NOT NULL,
+ [idxMacchina] INT NOT NULL,
+ CONSTRAINT [PK_Tag2Macc] PRIMARY KEY CLUSTERED ([TagCode] ASC, [idxMacchina] ASC),
+ CONSTRAINT [FK_Tag2Macc_AnagMacchine] FOREIGN KEY ([idxMacchina]) REFERENCES [dbo].[AnagMacchine] ([idxMacchina]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_Tag2Macc_AnagTag] FOREIGN KEY ([TagCode]) REFERENCES [dbo].[AnagTags] ([TagCode]) ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/Tra_Ev2Stati.sql b/Projects/GimDB/dbo/Tables/Tra_Ev2Stati.sql
new file mode 100644
index 0000000..486b0ce
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/Tra_Ev2Stati.sql
@@ -0,0 +1,9 @@
+CREATE TABLE [dbo].[Tra_Ev2Stati] (
+ [idxStato] INT NOT NULL,
+ [idxEvento] INT NOT NULL,
+ [nextIdxStato] INT NOT NULL,
+ CONSTRAINT [PK_Tra_Ev2Stati] PRIMARY KEY CLUSTERED ([idxStato] ASC, [idxEvento] ASC),
+ CONSTRAINT [FK_Tra_Ev2Stati_AnagEventi] FOREIGN KEY ([idxEvento]) REFERENCES [dbo].[AnagEventi] ([idxEvento]) ON UPDATE CASCADE,
+ CONSTRAINT [FK_Tra_Ev2Stati_AnagStati] FOREIGN KEY ([idxStato]) REFERENCES [dbo].[AnagStati] ([idxStato]) ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/UTENTE.sql b/Projects/GimDB/dbo/Tables/UTENTE.sql
new file mode 100644
index 0000000..d5c72d6
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/UTENTE.sql
@@ -0,0 +1,16 @@
+CREATE TABLE [dbo].[UTENTE] (
+ [DOMINIO] VARCHAR (30) NULL,
+ [USER_NAME] NVARCHAR (50) NOT NULL,
+ [COGNOME] VARCHAR (100) NULL,
+ [NOME] VARCHAR (100) NULL,
+ [COD_SOCIETA] VARCHAR (5) NULL,
+ [MATRICOLA] VARCHAR (5) NULL,
+ [COD_CDC] VARCHAR (10) NULL,
+ [EMAIL] VARCHAR (100) NULL,
+ [SIGLA] NVARCHAR (5) NULL,
+ [COD_LINGUA] VARCHAR (3) NULL,
+ [ATTIVO] CHAR (1) NULL,
+ CONSTRAINT [PK_UTENTE] PRIMARY KEY CLUSTERED ([USER_NAME] ASC),
+ CONSTRAINT [FK_UTENTE_CDC] FOREIGN KEY ([COD_CDC]) REFERENCES [dbo].[CDC] ([COD_CDC]) ON UPDATE CASCADE
+);
+
diff --git a/Projects/GimDB/dbo/Tables/Vocabolario.sql b/Projects/GimDB/dbo/Tables/Vocabolario.sql
new file mode 100644
index 0000000..4c1d463
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/Vocabolario.sql
@@ -0,0 +1,13 @@
+CREATE TABLE [dbo].[Vocabolario] (
+ [Lingua] NVARCHAR (3) NOT NULL,
+ [Lemma] NVARCHAR (50) NOT NULL,
+ [Traduzione] NVARCHAR (500) NOT NULL,
+ CONSTRAINT [PK_Vocabolario] PRIMARY KEY CLUSTERED ([Lingua] ASC, [Lemma] ASC),
+ CONSTRAINT [FK_Vocabolario_Lingue] FOREIGN KEY ([Lingua]) REFERENCES [dbo].[Lingue] ([Lingua]) ON UPDATE CASCADE
+);
+
+
+GO
+CREATE NONCLUSTERED INDEX [I_lemma]
+ ON [dbo].[Vocabolario]([Lemma] ASC);
+
diff --git a/Projects/GimDB/dbo/Tables/tmp_importaMacchine.sql b/Projects/GimDB/dbo/Tables/tmp_importaMacchine.sql
new file mode 100644
index 0000000..d1fa1e2
--- /dev/null
+++ b/Projects/GimDB/dbo/Tables/tmp_importaMacchine.sql
@@ -0,0 +1,12 @@
+CREATE TABLE [dbo].[tmp_importaMacchine] (
+ [idGest] NVARCHAR (500) NULL,
+ [denominazione] NVARCHAR (500) NULL,
+ [costruttore] NVARCHAR (500) NULL,
+ [matricola] NVARCHAR (50) NULL,
+ [anno] INT NULL,
+ [reparto] NVARCHAR (500) NULL,
+ [Gruppo] NVARCHAR (500) NULL,
+ [idx] INT IDENTITY (1, 1) NOT NULL,
+ CONSTRAINT [PK_tmp_importaMacchine] PRIMARY KEY CLUSTERED ([idx] ASC)
+);
+
diff --git a/Projects/GimDB/dbo/Views/v_MovMagExpl.sql b/Projects/GimDB/dbo/Views/v_MovMagExpl.sql
new file mode 100644
index 0000000..a9201ba
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_MovMagExpl.sql
@@ -0,0 +1,176 @@
+CREATE VIEW dbo.v_MovMagExpl
+AS
+SELECT dbo.MovMagRic.idxItem, dbo.MovMagRic.numIntMtz, dbo.MovMagRic.dtMov, dbo.MovMagRic.Qta, dbo.AnagItems.Famiglia, dbo.AnagItems.Descrizione, dbo.AnagItems.NomeCostruttore,
+ dbo.AnagItems.CodCostruttore, dbo.AnagItems.CodInterno, dbo.AnagItems.QtaMin, dbo.AnagItems.QtaLotto, dbo.AnagItems.Valore, dbo.MagRic.Note, dbo.MagRic.dtLastUpd, dbo.MagRic.CodLocazione,
+ dbo.AnagLocazioni.Descrizione AS DescrLocazione, dbo.MovMagRic.idxMacchina, dbo.MovMagRic.dtExport
+FROM dbo.MovMagRic INNER JOIN
+ dbo.AnagItems ON dbo.MovMagRic.idxItem = dbo.AnagItems.idxItem INNER JOIN
+ dbo.MagRic ON dbo.AnagItems.idxItem = dbo.MagRic.idxItem LEFT OUTER JOIN
+ dbo.AnagLocazioni ON dbo.MagRic.CodLocazione = dbo.AnagLocazioni.CodLocazione
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 2, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_MovMagExpl';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane2', @value = N' NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_MovMagExpl';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "MovMagRic"
+ Begin Extent =
+ Top = 133
+ Left = 124
+ Bottom = 299
+ Right = 294
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagItems"
+ Begin Extent =
+ Top = 134
+ Left = 397
+ Bottom = 354
+ Right = 579
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "MagRic"
+ Begin Extent =
+ Top = 133
+ Left = 660
+ Bottom = 290
+ Right = 830
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagLocazioni"
+ Begin Extent =
+ Top = 150
+ Left = 908
+ Bottom = 246
+ Right = 1078
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 17
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_MovMagExpl';
+
diff --git a/Projects/GimDB/dbo/Views/v_StatoMag.sql b/Projects/GimDB/dbo/Views/v_StatoMag.sql
new file mode 100644
index 0000000..6142d8f
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_StatoMag.sql
@@ -0,0 +1,177 @@
+CREATE VIEW dbo.v_StatoMag
+AS
+SELECT dbo.AnagItems.idxItem, dbo.AnagItems.Famiglia, dbo.AnagItems.Descrizione, dbo.AnagItems.NomeCostruttore, dbo.AnagItems.CodCostruttore, dbo.AnagItems.CodInterno, dbo.AnagItems.QtaMin,
+ dbo.AnagItems.QtaLotto, dbo.AnagItems.Valore, ISNULL(dbo.MagRic.Giacenza, 0) + ISNULL(dbo.v_movMagPend.TotQtaMov, 0) AS Giacenza, dbo.AnagLocazioni.CodLocazione,
+ dbo.AnagLocazioni.Descrizione AS DescrLocazione, dbo.MagRic.Note, dbo.MagRic.dtLastUpd
+FROM dbo.AnagItems INNER JOIN
+ dbo.MagRic ON dbo.AnagItems.idxItem = dbo.MagRic.idxItem LEFT OUTER JOIN
+ dbo.v_movMagPend ON dbo.MagRic.idxItem = dbo.v_movMagPend.idxItem LEFT OUTER JOIN
+ dbo.AnagLocazioni ON dbo.MagRic.CodLocazione = dbo.AnagLocazioni.CodLocazione
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 2, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_StatoMag';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane2', @value = N'= 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_StatoMag';
+
+
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagItems"
+ Begin Extent =
+ Top = 35
+ Left = 95
+ Bottom = 260
+ Right = 277
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "MagRic"
+ Begin Extent =
+ Top = 82
+ Left = 384
+ Bottom = 245
+ Right = 554
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "v_movMagPend"
+ Begin Extent =
+ Top = 43
+ Left = 769
+ Bottom = 142
+ Right = 939
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagLocazioni"
+ Begin Extent =
+ Top = 230
+ Left = 662
+ Bottom = 326
+ Right = 832
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 14
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder ', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_StatoMag';
+
+
+
diff --git a/Projects/GimDB/dbo/Views/v_datiMTBFMTTR.sql b/Projects/GimDB/dbo/Views/v_datiMTBFMTTR.sql
new file mode 100644
index 0000000..51cdf41
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_datiMTBFMTTR.sql
@@ -0,0 +1,132 @@
+CREATE VIEW dbo.v_datiMTBFMTTR
+AS
+SELECT COUNT(numIntMtz) AS numInterventi, SUM(durataMtz) AS totOreMtz, SUM(durataOff) AS totOreOfficina, codImpianto, codMacchina, nomeImpianto,
+ nomeMacchina
+FROM dbo.v_elencoIntervFilt
+GROUP BY codImpianto, codMacchina, nomeImpianto, nomeMacchina
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[41] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "v_elencoIntervFilt"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 391
+ Right = 223
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 2235
+ Width = 3210
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 12
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_datiMTBFMTTR';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_datiMTBFMTTR';
+
diff --git a/Projects/GimDB/dbo/Views/v_elencoImpiantiMacchine.sql b/Projects/GimDB/dbo/Views/v_elencoImpiantiMacchine.sql
new file mode 100644
index 0000000..8febe66
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_elencoImpiantiMacchine.sql
@@ -0,0 +1,145 @@
+CREATE VIEW v_elencoImpiantiMacchine
+AS
+SELECT dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.AnagImpianti.tipoImpianto, dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina,
+ dbo.AnagMacchine.modello, ISNULL(dbo.AnagMacchine.matricola, 'n.d.') AS matricola, dbo.AnagMacchine.anno, dbo.AnagMacchine.kgPeso,
+ dbo.AnagMacchine.kwConsumo
+FROM dbo.AnagImpianti INNER JOIN
+ dbo.AnagMacchine ON dbo.AnagImpianti.idxImpianto = dbo.AnagMacchine.idxImpianto
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagImpianti"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 171
+ Right = 189
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagMacchine"
+ Begin Extent =
+ Top = 6
+ Left = 227
+ Bottom = 207
+ Right = 378
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 11
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_elencoImpiantiMacchine';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_elencoImpiantiMacchine';
+
diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/V1.3/GIM_0005.sql b/Projects/GimDB/dbo/Views/v_elencoIntervFilt.sql
similarity index 56%
rename from Projects/WebGIM/GIM_site/sql/Applicazione/V1.3/GIM_0005.sql
rename to Projects/GimDB/dbo/Views/v_elencoIntervFilt.sql
index cf4c722..e5ad917 100644
--- a/Projects/WebGIM/GIM_site/sql/Applicazione/V1.3/GIM_0005.sql
+++ b/Projects/GimDB/dbo/Views/v_elencoIntervFilt.sql
@@ -1,98 +1,28 @@
-SET xact_abort ON
-GO
-
-BEGIN TRANSACTION
-GO
-
-SET ANSI_NULLS ON
-GO
-
--- =============================================
--- Author: Marco Salvi
--- Create date: 11/03/2009
--- Description: Stored procedure per ricostruire gli indici e fare lo shrink su un db
--- =============================================
-CREATE PROCEDURE sp_IndiciAndShrink
-(
- @databaseName sysname
-)
+
+CREATE VIEW v_elencoIntervFilt
AS
-BEGIN
-
- -- elimino eventuale tab temporanea preesistente
- IF (SELECT COUNT(*) FROM TEMPDB..SYSOBJECTS WHERE NAME = '##TMP_nomiTabelle') > 0
- BEGIN
- DROP TABLE ##TMP_nomiTabelle
- END
-
- -- enumero le tab del db in una tab temporanea
- SELECT IDENT = IDENTITY (INT,1,1), NAME
- INTO ##TMP_nomiTabelle
- FROM sys.Tables
-
- -- eseguo reindicizzazione
- DECLARE @VAR1 INT
- SET @VAR1 = 1
- WHILE @VAR1 < = ( SELECT COUNT(*) FROM ##TMP_nomiTabelle)
- BEGIN
-
- DECLARE @OBJECTNAME VARCHAR(256)
-
- -- carico il nome della tab i-esima
- SELECT @OBJECTNAME = NAME
- FROM ##TMP_nomiTabelle
- WHERE [IDENT] = @VAR1
-
- -- rebuild indice
- DBCC DBREINDEX(@OBJECTNAME)
-
- -- incremento
- SET @VAR1 = @VAR1 + 1
-
- END
-
- --shrink del db
- DBCC SHRINKDATABASE (@databaseName)
-
-END
-GO
-
-COMMIT
-GO
-
-
-SET xact_abort ON
-GO
-
-BEGIN TRANSACTION
-GO
-
-SET ANSI_NULLS ON
-GO
-
-ALTER VIEW v_elencoIntervFilt
-AS
-SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto,
- dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.inizioIntervento,
- dbo.InterventiMtz.fineIntervento, ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento, ISNULL(dbo.AnagCausali.descrCausale,
- 'n.d. (causale)') AS descrCausale, ROUND(CAST(ISNULL(dbo.v_interventiErogati.totMinErogati, 0) AS FLOAT) / 60, 2) AS minErogati,
- ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento), 0) AS FLOAT) / 60, 2) AS durataMtz, CASE (isFermo)
- WHEN 1 THEN ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento), 0) AS FLOAT) / 60, 2)
- WHEN 0 THEN ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento), 0) AS FLOAT) / 60, 2) END AS durataOff,
- dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxStato, dbo.InterventiMtz.idxImpianto, dbo.InterventiMtz.idxMacchina
-FROM dbo.InterventiMtz INNER JOIN
- dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN
- dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN
- dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
- dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
- dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN
- dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN
- dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz LEFT OUTER JOIN
- dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale
+SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto,
+ dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.inizioIntervento,
+ dbo.InterventiMtz.fineIntervento, ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento,
+ ISNULL(dbo.AnagCausali.descrCausale, 'n.d. (causale)') AS descrCausale, ROUND(CAST(ISNULL(dbo.v_interventiErogati.totMinErogati, 0) AS float) / 60, 2)
+ AS minErogati, dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, dbo.InterventiMtz.idxMacchina) AS durataMtz,
+ CASE (isFermo) WHEN 1 THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina)
+ WHEN 0 THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina) END AS durataOff,
+ dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxStato, dbo.InterventiMtz.idxImpianto, dbo.InterventiMtz.idxMacchina, dbo.InterventiMtz.isFermo,
+ dbo.InterventiMtz.scheduled
+FROM dbo.InterventiMtz INNER JOIN
+ dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN
+ dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN
+ dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
+ dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
+ dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN
+ dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN
+ dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz LEFT OUTER JOIN
+ dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale
ORDER BY dbo.InterventiMtz.numIntMtz DESC
-GO
-EXEC sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
@@ -163,16 +93,6 @@ Begin DesignProperties =
Left = 0
End
Begin Tables =
- Begin Table = "InterventiMtz"
- Begin Extent =
- Top = 8
- Left = 486
- Bottom = 354
- Right = 671
- End
- DisplayFlags = 280
- TopColumn = 0
- End
Begin Table = "AnagAmbitoGuasto"
Begin Extent =
Top = 11
@@ -229,10 +149,7 @@ Begin DesignProperties =
Left = 90
Bottom = 356
Right = 241
- ', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt'
-GO
-
-EXEC sp_updateextendedproperty 'MS_DiagramPane2', ' End
+ End
DisplayFlags = 280
TopColumn = 0
End
@@ -242,7 +159,11 @@ EXEC sp_updateextendedproperty 'MS_DiagramPane2', ' End
Left = 739
Bottom = 81
Right = 890
- End
+ ', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_elencoIntervFilt';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane2', @value = ' End
DisplayFlags = 280
TopColumn = 0
End
@@ -256,6 +177,16 @@ EXEC sp_updateextendedproperty 'MS_DiagramPane2', ' End
DisplayFlags = 280
TopColumn = 0
End
+ Begin Table = "InterventiMtz"
+ Begin Extent =
+ Top = 8
+ Left = 486
+ Bottom = 354
+ Right = 671
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
End
End
Begin SQLPane =
@@ -265,21 +196,21 @@ EXEC sp_updateextendedproperty 'MS_DiagramPane2', ' End
End
Begin ColumnWidths = 30
Width = 284
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
+ Width = 915
+ Width = 1815
+ Width = 690
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1665
+ Width = 1665
Width = 1500
Width = 1500
- Width = 1500
- Width = 1575
- Width = 1500
- Width = 1500
+ Width = 1050
+ Width = 1020
+ Width = 1125
+ Width = 1815
Width = 1500
Width = 1500
Width = 1500
@@ -314,14 +245,9 @@ EXEC sp_updateextendedproperty 'MS_DiagramPane2', ' End
End
End
End
-', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt'
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_elencoIntervFilt';
+
+
GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 2, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_elencoIntervFilt';
-COMMIT
-GO
-
-
-
--- registro versione...
-INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(5, GETDATE())
-GO
diff --git a/WebSites/WebGIM/sql/GIM_0005.sql b/Projects/GimDB/dbo/Views/v_intervExp.sql
similarity index 54%
rename from WebSites/WebGIM/sql/GIM_0005.sql
rename to Projects/GimDB/dbo/Views/v_intervExp.sql
index 582d442..f18945a 100644
--- a/WebSites/WebGIM/sql/GIM_0005.sql
+++ b/Projects/GimDB/dbo/Views/v_intervExp.sql
@@ -1,327 +1,240 @@
-SET xact_abort ON
-GO
-
-BEGIN TRANSACTION
-GO
-
-SET ANSI_NULLS ON
-GO
-
--- =============================================
--- Author: Marco Salvi
--- Create date: 11/03/2009
--- Description: Stored procedure per ricostruire gli indici e fare lo shrink su un db
--- =============================================
-CREATE PROCEDURE sp_IndiciAndShrink
-(
- @databaseName sysname
-)
-AS
-BEGIN
-
- -- elimino eventuale tab temporanea preesistente
- IF (SELECT COUNT(*) FROM TEMPDB..SYSOBJECTS WHERE NAME = '##TMP_nomiTabelle') > 0
- BEGIN
- DROP TABLE ##TMP_nomiTabelle
- END
-
- -- enumero le tab del db in una tab temporanea
- SELECT IDENT = IDENTITY (INT,1,1), NAME
- INTO ##TMP_nomiTabelle
- FROM sys.Tables
-
- -- eseguo reindicizzazione
- DECLARE @VAR1 INT
- SET @VAR1 = 1
- WHILE @VAR1 < = ( SELECT COUNT(*) FROM ##TMP_nomiTabelle)
- BEGIN
-
- DECLARE @OBJECTNAME VARCHAR(256)
-
- -- carico il nome della tab i-esima
- SELECT @OBJECTNAME = NAME
- FROM ##TMP_nomiTabelle
- WHERE [IDENT] = @VAR1
-
- -- rebuild indice
- DBCC DBREINDEX(@OBJECTNAME)
-
- -- incremento
- SET @VAR1 = @VAR1 + 1
-
- END
-
- --shrink del db
- DBCC SHRINKDATABASE (@databaseName)
-
-END
-GO
-
-COMMIT
-GO
-
-
-SET xact_abort ON
-GO
-
-BEGIN TRANSACTION
-GO
-
-SET ANSI_NULLS ON
-GO
-
-ALTER VIEW v_elencoIntervFilt
-AS
-SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto,
- dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.inizioIntervento,
- dbo.InterventiMtz.fineIntervento, ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento, ISNULL(dbo.AnagCausali.descrCausale,
- 'n.d. (causale)') AS descrCausale, ROUND(CAST(ISNULL(dbo.v_interventiErogati.totMinErogati, 0) AS FLOAT) / 60, 2) AS minErogati,
- ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento), 0) AS FLOAT) / 60, 2) AS durataMtz, CASE (isFermo)
- WHEN 1 THEN ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento), 0) AS FLOAT) / 60, 2)
- WHEN 0 THEN ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento), 0) AS FLOAT) / 60, 2) END AS durataOff,
- dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxStato, dbo.InterventiMtz.idxImpianto, dbo.InterventiMtz.idxMacchina
-FROM dbo.InterventiMtz INNER JOIN
- dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN
- dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN
- dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
- dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
- dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN
- dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN
- dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz LEFT OUTER JOIN
- dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale
-ORDER BY dbo.InterventiMtz.numIntMtz DESC
-GO
-
-EXEC sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
-Begin DesignProperties =
- Begin PaneConfigurations =
- Begin PaneConfiguration = 0
- NumPanes = 4
- Configuration = "(H (1[40] 4[20] 2[20] 3) )"
- End
- Begin PaneConfiguration = 1
- NumPanes = 3
- Configuration = "(H (1 [50] 4 [25] 3))"
- End
- Begin PaneConfiguration = 2
- NumPanes = 3
- Configuration = "(H (1 [50] 2 [25] 3))"
- End
- Begin PaneConfiguration = 3
- NumPanes = 3
- Configuration = "(H (4 [30] 2 [40] 3))"
- End
- Begin PaneConfiguration = 4
- NumPanes = 2
- Configuration = "(H (1 [56] 3))"
- End
- Begin PaneConfiguration = 5
- NumPanes = 2
- Configuration = "(H (2 [66] 3))"
- End
- Begin PaneConfiguration = 6
- NumPanes = 2
- Configuration = "(H (4 [50] 3))"
- End
- Begin PaneConfiguration = 7
- NumPanes = 1
- Configuration = "(V (3))"
- End
- Begin PaneConfiguration = 8
- NumPanes = 3
- Configuration = "(H (1[56] 4[18] 2) )"
- End
- Begin PaneConfiguration = 9
- NumPanes = 2
- Configuration = "(H (1 [75] 4))"
- End
- Begin PaneConfiguration = 10
- NumPanes = 2
- Configuration = "(H (1[66] 2) )"
- End
- Begin PaneConfiguration = 11
- NumPanes = 2
- Configuration = "(H (4 [60] 2))"
- End
- Begin PaneConfiguration = 12
- NumPanes = 1
- Configuration = "(H (1) )"
- End
- Begin PaneConfiguration = 13
- NumPanes = 1
- Configuration = "(V (4))"
- End
- Begin PaneConfiguration = 14
- NumPanes = 1
- Configuration = "(V (2))"
- End
- ActivePaneConfig = 0
- End
- Begin DiagramPane =
- Begin Origin =
- Top = 0
- Left = 0
- End
- Begin Tables =
- Begin Table = "InterventiMtz"
- Begin Extent =
- Top = 8
- Left = 486
- Bottom = 354
- Right = 671
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "AnagAmbitoGuasto"
- Begin Extent =
- Top = 11
- Left = 82
- Bottom = 89
- Right = 255
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "AnagImpianti"
- Begin Extent =
- Top = 123
- Left = 219
- Bottom = 231
- Right = 370
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "AnagMacchine"
- Begin Extent =
- Top = 190
- Left = 826
- Bottom = 298
- Right = 977
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "AnagTipoGuasto"
- Begin Extent =
- Top = 90
- Left = 1143
- Bottom = 168
- Right = 1294
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "AnagPriorita"
- Begin Extent =
- Top = 23
- Left = 958
- Bottom = 116
- Right = 1109
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "AnagStati"
- Begin Extent =
- Top = 263
- Left = 90
- Bottom = 356
- Right = 241
- ', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt'
-GO
-
-EXEC sp_updateextendedproperty 'MS_DiagramPane2', ' End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "v_interventiErogati"
- Begin Extent =
- Top = 3
- Left = 739
- Bottom = 81
- Right = 890
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "AnagCausali"
- Begin Extent =
- Top = 291
- Left = 1011
- Bottom = 369
- Right = 1162
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- End
- End
- Begin SQLPane =
- End
- Begin DataPane =
- Begin ParameterDefaults = ""
- End
- Begin ColumnWidths = 30
- Width = 284
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1665
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1575
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- End
- End
- Begin CriteriaPane =
- Begin ColumnWidths = 11
- Column = 1440
- Alias = 900
- Table = 1170
- Output = 720
- Append = 1400
- NewValue = 1170
- SortType = 1350
- SortOrder = 1410
- GroupBy = 1350
- Filter = 1350
- Or = 1350
- Or = 1350
- Or = 1350
- End
- End
-End
-', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt'
-GO
-
-COMMIT
-GO
-
-
-
--- registro versione...
-INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(5, GETDATE())
-GO
+CREATE VIEW dbo.v_intervExp
+AS
+SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.InterventiMtz.dataLav, dbo.InterventiMtz.turnoLav, dbo.InterventiMtz.matr,
+ dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxAmbito, dbo.AnagAmbitoGuasto.descrAmbitoGuasto, dbo.InterventiMtz.idxPriorita, dbo.AnagPriorita.descrPriorita,
+ CASE dbo.InterventiMtz.isFermo WHEN 'True' THEN 'SI' ELSE 'NO' END AS isFermoSiNo, dbo.InterventiMtz.idxTipo, dbo.AnagTipoGuasto.descrTipo,
+ dbo.InterventiMtz.idxImpianto, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.InterventiMtz.idxMacchina, dbo.AnagMacchine.codMacchina,
+ dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.idxStato, dbo.AnagStati.DescrStato, ISNULL(dbo.InterventiMtz.presaInCarico,
+ dbo.InterventiMtz.richiesta) AS presaInCarico, ISNULL(dbo.InterventiMtz.inizioIntervento, ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta))
+ AS inizioIntervento, ISNULL(dbo.InterventiMtz.fineIntervento, GETDATE()) AS fineIntervento, dbo.InterventiMtz.descrizioneIntervento,
+ dbo.InterventiMtz.isPreventivabile, dbo.InterventiMtz.idxCausale, ISNULL(dbo.AnagCausali.descrCausale, 'N.D.') AS descrCausale, dbo.InterventiMtz.isFermo
+FROM dbo.InterventiMtz INNER JOIN
+ dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN
+ dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN
+ dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
+ dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
+ dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN
+ dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN
+ dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale
+ORDER BY dbo.InterventiMtz.numIntMtz DESC
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "InterventiMtz"
+ Begin Extent =
+ Top = 5
+ Left = 576
+ Bottom = 360
+ Right = 761
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagAmbitoGuasto"
+ Begin Extent =
+ Top = 4
+ Left = 213
+ Bottom = 82
+ Right = 386
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagImpianti"
+ Begin Extent =
+ Top = 113
+ Left = 834
+ Bottom = 221
+ Right = 985
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagMacchine"
+ Begin Extent =
+ Top = 181
+ Left = 227
+ Bottom = 289
+ Right = 378
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagTipoGuasto"
+ Begin Extent =
+ Top = 91
+ Left = 228
+ Bottom = 169
+ Right = 379
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagPriorita"
+ Begin Extent =
+ Top = 19
+ Left = 834
+ Bottom = 97
+ Right = 985
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagStati"
+ Begin Extent =
+ Top = 237
+ Left = 834
+ Bottom = 315
+ Right = 985
+ ', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_intervExp';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane2', @value = N' End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagCausali"
+ Begin Extent =
+ Top = 295
+ Left = 235
+ Bottom = 373
+ Right = 386
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 30
+ Width = 284
+ Width = 1500
+ Width = 1665
+ Width = 1185
+ Width = 1500
+ Width = 1500
+ Width = 1830
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_intervExp';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 2, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_intervExp';
+
diff --git a/Projects/GimDB/dbo/Views/v_interventiErogati.sql b/Projects/GimDB/dbo/Views/v_interventiErogati.sql
new file mode 100644
index 0000000..6c74b3f
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_interventiErogati.sql
@@ -0,0 +1,133 @@
+
+CREATE VIEW [dbo].[v_interventiErogati]
+AS
+SELECT numIntMtz
+ ,SUM(durataMinuti) AS totMinErogati
+FROM dbo.InterventoOpMtz
+GROUP BY numIntMtz
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "InterventoOpMtz"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 99
+ Right = 189
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 12
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_interventiErogati';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_interventiErogati';
+
diff --git a/Projects/GimDB/dbo/Views/v_macchine.sql b/Projects/GimDB/dbo/Views/v_macchine.sql
new file mode 100644
index 0000000..ad95a43
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_macchine.sql
@@ -0,0 +1,7 @@
+CREATE VIEW dbo.v_macchine
+AS
+SELECT dbo.AnagMacchine.idxMacchina, dbo.AnagMacchine.idxImpianto, dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.AnagMacchine.modello,
+ dbo.AnagMacchine.matricola, dbo.AnagMacchine.anno, dbo.AnagMacchine.kgPeso, dbo.AnagMacchine.kwConsumo, dbo.AnagMacchine.funzDal,
+ dbo.AnagMacchine.funzAl, dbo.AnagImpianti.codImpianto + ' - ' + dbo.AnagImpianti.nomeImpianto AS descrImpianto
+FROM dbo.AnagMacchine INNER JOIN
+ dbo.AnagImpianti ON dbo.AnagMacchine.idxImpianto = dbo.AnagImpianti.idxImpianto
diff --git a/Projects/GimDB/dbo/Views/v_movMagPend.sql b/Projects/GimDB/dbo/Views/v_movMagPend.sql
new file mode 100644
index 0000000..96b37ab
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_movMagPend.sql
@@ -0,0 +1,131 @@
+CREATE VIEW dbo.v_movMagPend
+AS
+SELECT idxItem, SUM(Qta) AS TotQtaMov
+FROM dbo.MovMagRic
+WHERE (dtExport IS NULL)
+GROUP BY idxItem
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_movMagPend';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "MovMagRic"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 220
+ Right = 208
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 12
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_movMagPend';
+
diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/V1.4 ITA/GIM_0221.sql b/Projects/GimDB/dbo/Views/v_mtzProgExp.sql
similarity index 80%
rename from Projects/WebGIM/GIM_site/sql/Applicazione/V1.4 ITA/GIM_0221.sql
rename to Projects/GimDB/dbo/Views/v_mtzProgExp.sql
index e0b65be..3b06063 100644
--- a/Projects/WebGIM/GIM_site/sql/Applicazione/V1.4 ITA/GIM_0221.sql
+++ b/Projects/GimDB/dbo/Views/v_mtzProgExp.sql
@@ -1,27 +1,17 @@
-set xact_abort on;
-go
-
-begin transaction;
-go
-
-set ANSI_NULLS on;
-go
-
-alter VIEW v_mtzProgExp
+CREATE VIEW dbo.v_mtzProgExp
AS
-SELECT dbo.MtzProgrammata.idxIntPro, dbo.MtzProgrammata.idxMacchina, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto,
- dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.MtzProgrammata.inizio, dbo.MtzProgrammata.codFrequenza,
- dbo.AnagFrequenze.frequenza, dbo.MtzProgrammata.cadenza, dbo.MtzProgrammata.descrizione, dbo.MtzProgrammata.idxPriorita,
- dbo.AnagPriorita.descrPriorita, dbo.MtzProgrammata.isFermo, dbo.MtzProgrammata.idxTipo, dbo.AnagTipoGuasto.descrTipo
+SELECT dbo.MtzProgrammata.idxIntPro, dbo.AnagImpianti.idxImpianto, dbo.MtzProgrammata.idxMacchina, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.AnagMacchine.codMacchina,
+ dbo.AnagMacchine.nomeMacchina, dbo.MtzProgrammata.inizio, dbo.MtzProgrammata.codFrequenza, dbo.AnagFrequenze.frequenza, dbo.MtzProgrammata.cadenza, dbo.MtzProgrammata.descrizione,
+ dbo.MtzProgrammata.idxPriorita, dbo.AnagPriorita.descrPriorita, dbo.MtzProgrammata.isFermo, dbo.MtzProgrammata.idxTipo, dbo.AnagTipoGuasto.descrTipo
FROM dbo.MtzProgrammata INNER JOIN
dbo.AnagMacchine ON dbo.MtzProgrammata.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
dbo.AnagFrequenze ON dbo.MtzProgrammata.codFrequenza = dbo.AnagFrequenze.codFrequenza INNER JOIN
dbo.AnagPriorita ON dbo.MtzProgrammata.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN
dbo.AnagTipoGuasto ON dbo.MtzProgrammata.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
dbo.AnagImpianti ON dbo.AnagMacchine.idxImpianto = dbo.AnagImpianti.idxImpianto
-go
-exec sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
@@ -161,10 +151,11 @@ Begin DesignProperties =
End
Begin ColumnWidths = 17
Width = 284
- Width = 1500', 'SCHEMA', 'dbo', 'VIEW', 'v_mtzProgExp';
-go
+ Width = 1500', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_mtzProgExp';
-exec sp_updateextendedproperty 'MS_DiagramPane2', '
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane2', @value = N'
Width = 1500
Width = 1500
Width = 1500
@@ -200,19 +191,9 @@ exec sp_updateextendedproperty 'MS_DiagramPane2', '
End
End
End
-', 'SCHEMA', 'dbo', 'VIEW', 'v_mtzProgExp';
-go
-
-commit;
-go
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_mtzProgExp';
-
-
-
-
--- registro versione...
-INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(221, GETDATE())
GO
-SELECT * FROM LogUpdateDb ORDER BY versione DESC
-GO
\ No newline at end of file
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 2, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_mtzProgExp';
+
diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/V1.4 USA/GIM_0221.sql b/Projects/GimDB/dbo/Views/v_mtzProgPendingExp.sql
similarity index 56%
rename from Projects/WebGIM/GIM_site/sql/Applicazione/V1.4 USA/GIM_0221.sql
rename to Projects/GimDB/dbo/Views/v_mtzProgPendingExp.sql
index e0b65be..45d2ef2 100644
--- a/Projects/WebGIM/GIM_site/sql/Applicazione/V1.4 USA/GIM_0221.sql
+++ b/Projects/GimDB/dbo/Views/v_mtzProgPendingExp.sql
@@ -1,27 +1,19 @@
-set xact_abort on;
-go
-
-begin transaction;
-go
-
-set ANSI_NULLS on;
-go
-
-alter VIEW v_mtzProgExp
+CREATE VIEW [dbo].[v_mtzProgPendingExp]
AS
-SELECT dbo.MtzProgrammata.idxIntPro, dbo.MtzProgrammata.idxMacchina, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto,
- dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.MtzProgrammata.inizio, dbo.MtzProgrammata.codFrequenza,
- dbo.AnagFrequenze.frequenza, dbo.MtzProgrammata.cadenza, dbo.MtzProgrammata.descrizione, dbo.MtzProgrammata.idxPriorita,
- dbo.AnagPriorita.descrPriorita, dbo.MtzProgrammata.isFermo, dbo.MtzProgrammata.idxTipo, dbo.AnagTipoGuasto.descrTipo
-FROM dbo.MtzProgrammata INNER JOIN
- dbo.AnagMacchine ON dbo.MtzProgrammata.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
- dbo.AnagFrequenze ON dbo.MtzProgrammata.codFrequenza = dbo.AnagFrequenze.codFrequenza INNER JOIN
- dbo.AnagPriorita ON dbo.MtzProgrammata.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN
- dbo.AnagTipoGuasto ON dbo.MtzProgrammata.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
- dbo.AnagImpianti ON dbo.AnagMacchine.idxImpianto = dbo.AnagImpianti.idxImpianto
-go
-exec sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+
+SELECT TOP (100) PERCENT dbo.MtzProgPending.idxPending, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.AnagMacchine.codMacchina,
+ dbo.AnagMacchine.nomeMacchina, dbo.MtzProgPending.data, dbo.MtzProgPending.descrizione, dbo.AnagPriorita.descrPriorita, dbo.MtzProgPending.isFermo,
+ dbo.AnagTipoGuasto.descrTipo, dbo.AnagTipoGuasto.idxTipo, dbo.AnagMacchine.idxMacchina, dbo.AnagMacchine.idxImpianto
+FROM dbo.MtzProgPending INNER JOIN
+ dbo.AnagMacchine ON dbo.MtzProgPending.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
+ dbo.AnagImpianti ON dbo.AnagMacchine.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN
+ dbo.AnagTipoGuasto ON dbo.MtzProgPending.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
+ dbo.AnagPriorita ON dbo.MtzProgPending.idxPriorita = dbo.AnagPriorita.idxPriorita
+ORDER BY dbo.MtzProgPending.data
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
@@ -92,62 +84,52 @@ Begin DesignProperties =
Left = 0
End
Begin Tables =
- Begin Table = "MtzProgrammata"
+ Begin Table = "MtzProgPending"
Begin Extent =
- Top = 6
- Left = 38
- Bottom = 275
- Right = 189
+ Top = 57
+ Left = 597
+ Bottom = 228
+ Right = 748
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "AnagMacchine"
Begin Extent =
- Top = 213
- Left = 288
- Bottom = 321
- Right = 439
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "AnagFrequenze"
- Begin Extent =
- Top = 6
- Left = 416
- Bottom = 84
- Right = 567
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "AnagPriorita"
- Begin Extent =
- Top = 6
- Left = 605
- Bottom = 99
- Right = 756
- End
- DisplayFlags = 280
- TopColumn = 0
- End
- Begin Table = "AnagTipoGuasto"
- Begin Extent =
- Top = 6
- Left = 794
- Bottom = 84
- Right = 945
+ Top = 33
+ Left = 341
+ Bottom = 253
+ Right = 492
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "AnagImpianti"
Begin Extent =
- Top = 137
- Left = 581
- Bottom = 267
- Right = 751
+ Top = 83
+ Left = 127
+ Bottom = 226
+ Right = 278
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagTipoGuasto"
+ Begin Extent =
+ Top = 182
+ Left = 869
+ Bottom = 260
+ Right = 1020
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagPriorita"
+ Begin Extent =
+ Top = 16
+ Left = 874
+ Bottom = 109
+ Right = 1025
End
DisplayFlags = 280
TopColumn = 0
@@ -159,18 +141,8 @@ Begin DesignProperties =
Begin DataPane =
Begin ParameterDefaults = ""
End
- Begin ColumnWidths = 17
+ Begin ColumnWidths = 10
Width = 284
- Width = 1500', 'SCHEMA', 'dbo', 'VIEW', 'v_mtzProgExp';
-go
-
-exec sp_updateextendedproperty 'MS_DiagramPane2', '
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
- Width = 1500
Width = 1500
Width = 1500
Width = 1500
@@ -183,7 +155,11 @@ exec sp_updateextendedproperty 'MS_DiagramPane2', '
End
End
Begin CriteriaPane =
- Begin ColumnWidths = 11
+ Begin ColumnWidths = 1', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_mtzProgPendingExp';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane2', @value = '1
Column = 1440
Alias = 900
Table = 1170
@@ -200,19 +176,9 @@ exec sp_updateextendedproperty 'MS_DiagramPane2', '
End
End
End
-', 'SCHEMA', 'dbo', 'VIEW', 'v_mtzProgExp';
-go
-
-commit;
-go
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_mtzProgPendingExp';
-
-
-
-
--- registro versione...
-INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(221, GETDATE())
GO
-SELECT * FROM LogUpdateDb ORDER BY versione DESC
-GO
\ No newline at end of file
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 2, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_mtzProgPendingExp';
+
diff --git a/Projects/GimDB/dbo/Views/v_reportSemestraleFix.sql b/Projects/GimDB/dbo/Views/v_reportSemestraleFix.sql
new file mode 100644
index 0000000..3edcc9c
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_reportSemestraleFix.sql
@@ -0,0 +1,133 @@
+CREATE VIEW dbo.v_reportSemestraleFix
+AS
+SELECT numIntMtz AS 'Richiesta Webgim Nr.', codImpianto AS 'Codice Reparto', nomeImpianto AS 'Reparto', nomeMacchina AS 'Descrizione Macchina ', codMacchina AS 'Codice macchina', dbo.f_fixCR(descrizione)
+ AS 'Descrizione Guasto', dbo.f_fixCR(descrizioneIntervento) AS 'Descrizione Intervento MTZ', guasto AS 'Ora Guasto', richiesta AS 'Ora Richiesta Webgim', inizioIntervento AS 'Ora Inizio Intervento',
+ fineIntervento AS 'Ora Fine Intervento', durataMtz AS 'Ore intervento MTZ', durataOff AS 'Ore fermo Officina', minErogati AS 'Ore operatori MTZ'
+FROM dbo.v_elencoIntervFilt
+WHERE (guasto BETWEEN '20140101' AND '20140701')
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "v_elencoIntervFilt"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 136
+ Right = 240
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_reportSemestraleFix';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_reportSemestraleFix';
+
diff --git a/Projects/GimDB/dbo/Views/v_risorseImpiegate.sql b/Projects/GimDB/dbo/Views/v_risorseImpiegate.sql
new file mode 100644
index 0000000..5b9c821
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_risorseImpiegate.sql
@@ -0,0 +1,131 @@
+CREATE VIEW dbo.v_risorseImpiegate
+AS
+SELECT numIntMtz, SUM(TotImport) AS TotImport
+FROM dbo.ImpiegoRisorse
+GROUP BY numIntMtz
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "ImpiegoRisorse"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 192
+ Right = 208
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 12
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_risorseImpiegate';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_risorseImpiegate';
+
diff --git a/Projects/GimDB/dbo/Views/v_selAmbiti.sql b/Projects/GimDB/dbo/Views/v_selAmbiti.sql
new file mode 100644
index 0000000..6f421a5
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selAmbiti.sql
@@ -0,0 +1,5 @@
+CREATE VIEW dbo.v_selAmbiti
+AS
+SELECT TOP (100) PERCENT idxAmbito AS value, descrAmbitoGuasto AS label
+FROM dbo.AnagAmbitoGuasto
+ORDER BY label
diff --git a/Projects/GimDB/dbo/Views/v_selAnTipoRis.sql b/Projects/GimDB/dbo/Views/v_selAnTipoRis.sql
new file mode 100644
index 0000000..3a28054
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selAnTipoRis.sql
@@ -0,0 +1,130 @@
+CREATE VIEW dbo.v_selAnTipoRis
+AS
+SELECT CodRisorsa AS value, DescrRisorsa + ' (' + UM + ')' AS label
+FROM dbo.AnagTipoRisorsa
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagTipoRisorsa"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 136
+ Right = 208
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 2355
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selAnTipoRis';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selAnTipoRis';
+
diff --git a/Projects/GimDB/dbo/Views/v_selCausaliMacchine.sql b/Projects/GimDB/dbo/Views/v_selCausaliMacchine.sql
new file mode 100644
index 0000000..7bdd20f
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selCausaliMacchine.sql
@@ -0,0 +1,143 @@
+CREATE VIEW v_selCausaliMacchine
+AS
+SELECT TOP (100) PERCENT dbo.AnagCausali.idxCausale AS value, dbo.AnagCausali.descrCausale AS label, dbo.Macchine2FamMacchine.idxMacchina AS conditio
+FROM dbo.Macchine2FamMacchine INNER JOIN
+ dbo.AnagCausali ON dbo.Macchine2FamMacchine.idxFamMacchine = dbo.AnagCausali.idxFamMacchine
+WHERE (dbo.AnagCausali.attiva = 1)
+ORDER BY conditio, label
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "Macchine2FamMacchine"
+ Begin Extent =
+ Top = 15
+ Left = 448
+ Bottom = 93
+ Right = 606
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "AnagCausali"
+ Begin Extent =
+ Top = 54
+ Left = 38
+ Bottom = 162
+ Right = 196
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selCausaliMacchine';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selCausaliMacchine';
+
diff --git a/Projects/GimDB/dbo/Views/v_selFam.sql b/Projects/GimDB/dbo/Views/v_selFam.sql
new file mode 100644
index 0000000..87be2cd
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selFam.sql
@@ -0,0 +1,119 @@
+create VIEW v_selFam
+AS
+SELECT idxFamMacchine AS value, nomeFamMacch AS label
+FROM dbo.AnagFamMacchine
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagFamMacchine"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 84
+ Right = 196
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selFam';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selFam';
+
diff --git a/Projects/GimDB/dbo/Views/v_selFamMacc.sql b/Projects/GimDB/dbo/Views/v_selFamMacc.sql
new file mode 100644
index 0000000..8a57166
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selFamMacc.sql
@@ -0,0 +1,8 @@
+CREATE VIEW dbo.v_selFamMacc
+AS
+SELECT dbo.Macchine2FamMacchine.idxFamMacchine, dbo.AnagMacchine.idxMacchina, dbo.AnagFamMacchine.nomeFamMacch AS famiglia,
+ ISNULL(dbo.AnagMacchine.codMacchina, 'n.d.') + ' - ' + dbo.AnagMacchine.nomeMacchina + ', mod. ' + ISNULL(dbo.AnagMacchine.modello, 'n.d.')
+ + ' (' + ISNULL(dbo.AnagMacchine.matricola, 'n.d.') + ')' AS macchina
+FROM dbo.Macchine2FamMacchine INNER JOIN
+ dbo.AnagFamMacchine ON dbo.Macchine2FamMacchine.idxFamMacchine = dbo.AnagFamMacchine.idxFamMacchine INNER JOIN
+ dbo.AnagMacchine ON dbo.Macchine2FamMacchine.idxMacchina = dbo.AnagMacchine.idxMacchina
diff --git a/Projects/GimDB/dbo/Views/v_selFreq.sql b/Projects/GimDB/dbo/Views/v_selFreq.sql
new file mode 100644
index 0000000..47339a0
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selFreq.sql
@@ -0,0 +1,130 @@
+CREATE VIEW dbo.v_selFreq
+AS
+SELECT codFrequenza AS value, frequenza AS label
+FROM dbo.AnagFrequenze
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagFrequenze"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 84
+ Right = 189
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selFreq';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selFreq';
+
diff --git a/Projects/GimDB/dbo/Views/v_selImpianti.sql b/Projects/GimDB/dbo/Views/v_selImpianti.sql
new file mode 100644
index 0000000..dd9c1bc
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selImpianti.sql
@@ -0,0 +1,131 @@
+CREATE VIEW dbo.v_selImpianti
+AS
+SELECT TOP (100) PERCENT idxImpianto AS value, nomeImpianto + ' - ' + ISNULL(tipoImpianto, 'n.d.') + ' (' + ISNULL(codImpianto, 'n.d.') + ')' AS label
+FROM dbo.AnagImpianti
+ORDER BY label
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagImpianti"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 114
+ Right = 189
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 4185
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selImpianti';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selImpianti';
+
diff --git a/Projects/GimDB/dbo/Views/v_selListVal.sql b/Projects/GimDB/dbo/Views/v_selListVal.sql
new file mode 100644
index 0000000..344bd99
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selListVal.sql
@@ -0,0 +1,132 @@
+
+CREATE VIEW [dbo].[v_selListVal]
+AS
+SELECT TableName + '-' + FieldName + '-' + value AS value, label
+FROM dbo.ListValues
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "ListValues"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 136
+ Right = 208
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selListVal';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selListVal';
+
diff --git a/Projects/GimDB/dbo/Views/v_selMacchine.sql b/Projects/GimDB/dbo/Views/v_selMacchine.sql
new file mode 100644
index 0000000..2671c4a
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selMacchine.sql
@@ -0,0 +1,132 @@
+CREATE VIEW dbo.v_selMacchine
+AS
+SELECT TOP (100) PERCENT idxMacchina AS value, LTRIM(RTRIM(nomeMacchina)) + ' (' + ISNULL(codMacchina, 'n.d.') + ') ' + ', mod. ' + ISNULL(modello, 'n.d.')
+ + ' (' + ISNULL(matricola, 'n.d.') + ')' AS label, idxImpianto AS conditio
+FROM dbo.AnagMacchine
+ORDER BY label
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = -384
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagMacchine"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 114
+ Right = 189
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 6795
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selMacchine';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selMacchine';
+
diff --git a/Projects/GimDB/dbo/Views/v_selOperMtz.sql b/Projects/GimDB/dbo/Views/v_selOperMtz.sql
new file mode 100644
index 0000000..9202928
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selOperMtz.sql
@@ -0,0 +1,131 @@
+create VIEW v_selOperMtz
+AS
+SELECT TOP (100) PERCENT matrOp AS value, matrOp + ' - ' + Cognome + ' ' + Nome AS label
+FROM dbo.AnagrOperMtz
+ORDER BY label
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagrOperMtz"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 99
+ Right = 190
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selOperMtz';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selOperMtz';
+
diff --git a/Projects/GimDB/dbo/Views/v_selPeriodiTrad.sql b/Projects/GimDB/dbo/Views/v_selPeriodiTrad.sql
new file mode 100644
index 0000000..cf281f8
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selPeriodiTrad.sql
@@ -0,0 +1,142 @@
+CREATE VIEW dbo.v_selPeriodiTrad
+AS
+SELECT TOP (100) PERCENT dbo.AnagPeriodi.codPeriodo AS value, dbo.v_vocabolario.Traduzione AS label, dbo.v_vocabolario.Lingua AS conditio
+FROM dbo.AnagPeriodi INNER JOIN
+ dbo.v_vocabolario ON dbo.AnagPeriodi.lemmaPeriodo = dbo.v_vocabolario.Lemma
+ORDER BY label
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagPeriodi"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 84
+ Right = 189
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "v_vocabolario"
+ Begin Extent =
+ Top = 6
+ Left = 227
+ Bottom = 99
+ Right = 378
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selPeriodiTrad';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selPeriodiTrad';
+
diff --git a/Projects/GimDB/dbo/Views/v_selPrior.sql b/Projects/GimDB/dbo/Views/v_selPrior.sql
new file mode 100644
index 0000000..152257d
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selPrior.sql
@@ -0,0 +1,5 @@
+CREATE VIEW dbo.v_selPrior
+AS
+SELECT TOP (100) PERCENT idxPriorita AS value, CAST(idxPriorita AS varchar(4)) + ' - ' + descrPriorita AS label
+FROM dbo.AnagPriorita
+ORDER BY label
diff --git a/Projects/GimDB/dbo/Views/v_selSemafori.sql b/Projects/GimDB/dbo/Views/v_selSemafori.sql
new file mode 100644
index 0000000..d7970e2
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selSemafori.sql
@@ -0,0 +1,131 @@
+CREATE VIEW dbo.v_selSemafori
+AS
+SELECT TOP (100) PERCENT codSemaforo AS value, descrSemaforo AS label
+FROM dbo.AnagSemafori
+ORDER BY label
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagSemafori"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 84
+ Right = 190
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selSemafori';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selSemafori';
+
diff --git a/Projects/GimDB/dbo/Views/v_selStato.sql b/Projects/GimDB/dbo/Views/v_selStato.sql
new file mode 100644
index 0000000..46ba830
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selStato.sql
@@ -0,0 +1,130 @@
+CREATE VIEW dbo.v_selStato
+AS
+SELECT idxStato AS value, DescrStato AS label
+FROM dbo.AnagStati
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagStati"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 99
+ Right = 189
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selStato';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selStato';
+
diff --git a/Projects/GimDB/dbo/Views/v_selTipoGuasto.sql b/Projects/GimDB/dbo/Views/v_selTipoGuasto.sql
new file mode 100644
index 0000000..590cfbb
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selTipoGuasto.sql
@@ -0,0 +1,131 @@
+CREATE VIEW dbo.v_selTipoGuasto
+AS
+SELECT TOP (100) PERCENT idxTipo AS value, descrTipo AS label
+FROM dbo.AnagTipoGuasto
+ORDER BY label
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagTipoGuasto"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 84
+ Right = 189
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selTipoGuasto';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selTipoGuasto';
+
diff --git a/Projects/GimDB/dbo/Views/v_selUtentiAll.sql b/Projects/GimDB/dbo/Views/v_selUtentiAll.sql
new file mode 100644
index 0000000..f44ea64
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selUtentiAll.sql
@@ -0,0 +1,119 @@
+create VIEW v_selUtentiAll
+AS
+SELECT USER_NAME AS value, COGNOME + ' ' + NOME + ', matr' + MATRICOLA + ' (cdc: ' + COD_CDC + ')' AS label, COD_CDC, ATTIVO
+FROM dbo.UTENTE AS ut
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "ut"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 114
+ Right = 190
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selUtentiAll';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selUtentiAll';
+
diff --git a/Projects/GimDB/dbo/Views/v_selUtentiShort.sql b/Projects/GimDB/dbo/Views/v_selUtentiShort.sql
new file mode 100644
index 0000000..39dc88d
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selUtentiShort.sql
@@ -0,0 +1,119 @@
+create VIEW v_selUtentiShort
+AS
+SELECT USER_NAME AS value, COGNOME + ' ' + NOME AS label, COD_CDC, ATTIVO
+FROM dbo.UTENTE AS ut
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "ut"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 114
+ Right = 190
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selUtentiShort';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selUtentiShort';
+
diff --git a/Projects/GimDB/dbo/Views/v_selUtentiShortAD.sql b/Projects/GimDB/dbo/Views/v_selUtentiShortAD.sql
new file mode 100644
index 0000000..bc82913
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_selUtentiShortAD.sql
@@ -0,0 +1,119 @@
+create VIEW v_selUtentiShortAD
+AS
+SELECT DOMINIO + '\' + USER_NAME AS value, COGNOME + ' ' + NOME AS label, COD_CDC, ATTIVO
+FROM dbo.UTENTE AS ut
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "ut"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 114
+ Right = 190
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selUtentiShortAD';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selUtentiShortAD';
+
diff --git a/Projects/GimDB/dbo/Views/v_vocabolario.sql b/Projects/GimDB/dbo/Views/v_vocabolario.sql
new file mode 100644
index 0000000..50f5b84
--- /dev/null
+++ b/Projects/GimDB/dbo/Views/v_vocabolario.sql
@@ -0,0 +1,130 @@
+CREATE VIEW v_vocabolario
+AS
+SELECT Lingua, Lemma, Traduzione
+FROM dbo.Vocabolario
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "Vocabolario"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 119
+ Right = 208
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_vocabolario';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_vocabolario';
+
diff --git a/Projects/GimDB/dwh/Views/VDWH_AnagStati.sql b/Projects/GimDB/dwh/Views/VDWH_AnagStati.sql
new file mode 100644
index 0000000..6dba58f
--- /dev/null
+++ b/Projects/GimDB/dwh/Views/VDWH_AnagStati.sql
@@ -0,0 +1,130 @@
+CREATE VIEW [dwh].VDWH_AnagStati
+AS
+SELECT idxStato, DescrStato
+FROM dbo.AnagStati
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagStati"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 119
+ Right = 208
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dwh', @level1type = N'VIEW', @level1name = N'VDWH_AnagStati';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dwh', @level1type = N'VIEW', @level1name = N'VDWH_AnagStati';
+
diff --git a/Projects/GimDB/dwh/Views/VDWH_DettaglioInterv_OLD.sql b/Projects/GimDB/dwh/Views/VDWH_DettaglioInterv_OLD.sql
new file mode 100644
index 0000000..fcf5257
--- /dev/null
+++ b/Projects/GimDB/dwh/Views/VDWH_DettaglioInterv_OLD.sql
@@ -0,0 +1,217 @@
+
+
+
+CREATE VIEW [dwh].[VDWH_DettaglioInterv_OLD]
+AS
+
+/*
+ Obsoleta - I campi sono stati tutti inseriti nella VDWH_ElencoInterventi
+*/
+
+SELECT
+ dbo.InterventiMtz.numIntMtz
+-- ,dbo.InterventiMtz.richiesta
+ ,dbo.InterventiMtz.dataLav AS Data
+ ,dbo.InterventiMtz.turnoLav AS Turno
+ ,dbo.InterventiMtz.matr AS matr
+-- ,dbo.InterventiMtz.guasto
+-- ,dbo.InterventiMtz.idxAmbito
+ ,dbo.AnagAmbitoGuasto.descrAmbitoGuasto
+-- ,dbo.InterventiMtz.idxPriorita
+ ,dbo.AnagPriorita.descrPriorita
+-- ,CASE dbo.InterventiMtz.isFermo WHEN 'True' THEN 'SI' ELSE 'NO' END AS isFermoSiNo
+-- ,dbo.InterventiMtz.idxTipo
+ ,dbo.AnagTipoGuasto.descrTipo
+-- ,dbo.InterventiMtz.idxImpianto
+-- ,dbo.AnagImpianti.codImpianto
+-- ,dbo.AnagImpianti.nomeImpianto
+-- ,dbo.InterventiMtz.idxMacchina
+-- ,dbo.AnagMacchine.codMacchina
+-- ,dbo.AnagMacchine.nomeMacchina
+-- ,dbo.InterventiMtz.descrizione
+-- ,dbo.InterventiMtz.idxStato
+ ,dbo.AnagStati.DescrStato
+ ,ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta) AS presaInCarico
+ ,ISNULL(dbo.InterventiMtz.inizioIntervento, ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta)) AS inizioIntervento
+ ,ISNULL(dbo.InterventiMtz.fineIntervento, GETDATE()) AS fineIntervento
+-- ,dbo.InterventiMtz.descrizioneIntervento
+ ,dbo.InterventiMtz.isPreventivabile
+-- ,dbo.InterventiMtz.idxCausale
+ ,ISNULL(dbo.AnagCausali.descrCausale, 'N.D.') AS descrCausale
+ ,dbo.InterventiMtz.isFermo
+FROM dbo.InterventiMtz
+INNER JOIN dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito
+INNER JOIN dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto
+INNER JOIN dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina
+INNER JOIN dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo
+INNER JOIN dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita
+INNER JOIN dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato
+LEFT JOIN dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale
+
+
+/*
+SELECT numIntMtz
+ ,dataLav AS Data
+ ,turnoLav AS Turno
+ ,matr
+ ,descrAmbitoGuasto
+ ,descrPriorita
+ ,descrTipo
+ ,DescrStato
+ ,presaInCarico
+ ,inizioIntervento
+ ,fineIntervento
+ ,isPreventivabile
+ ,descrCausale
+ ,isFermo
+FROM dbo.v_intervExp
+*/
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "v_intervExp"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 350
+ Right = 240
+ End
+ DisplayFlags = 280
+ TopColumn = 14
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 31
+ Width = 284
+ Width = 1500
+ Width = 1305
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dwh', @level1type = N'VIEW', @level1name = N'VDWH_DettaglioInterv_OLD';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dwh', @level1type = N'VIEW', @level1name = N'VDWH_DettaglioInterv_OLD';
+
diff --git a/Projects/GimDB/dwh/Views/VDWH_ElencoInterventi.sql b/Projects/GimDB/dwh/Views/VDWH_ElencoInterventi.sql
new file mode 100644
index 0000000..26ae3b2
--- /dev/null
+++ b/Projects/GimDB/dwh/Views/VDWH_ElencoInterventi.sql
@@ -0,0 +1,219 @@
+
+
+
+CREATE VIEW [dwh].[VDWH_ElencoInterventi]
+AS
+/*
+ messo in cte i campi della dbo.v_elencoIntervFilt + aggiunti i campi mancanti da da VDWH_DettaglioInterv
+*/
+WITH cte AS
+(
+ SELECT
+ dbo.InterventiMtz.numIntMtz
+ ,dbo.InterventiMtz.richiesta
+ ,dbo.AnagImpianti.codImpianto
+ ,dbo.AnagImpianti.nomeImpianto
+ ,dbo.AnagMacchine.codMacchina
+ ,dbo.AnagMacchine.nomeMacchina
+ ,dbo.InterventiMtz.descrizione
+ ,dbo.InterventiMtz.inizioIntervento
+ ,dbo.InterventiMtz.fineIntervento
+ ,ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento
+ ,ISNULL(dbo.AnagCausali.descrCausale, 'n.d. (causale)') AS descrCausale
+ ,ROUND(CAST(ISNULL(dbo.v_interventiErogati.totMinErogati, 0) AS FLOAT) / 60, 2) AS minErogati
+ ,dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, dbo.InterventiMtz.idxMacchina) AS durataMtz
+ ,CASE (isFermo) WHEN 1 THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina)
+ WHEN 0 THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina)
+ END AS durataOff
+ ,dbo.InterventiMtz.guasto
+ ,dbo.InterventiMtz.idxStato
+ ,dbo.InterventiMtz.idxImpianto
+ ,dbo.InterventiMtz.idxMacchina
+ -- ,dbo.InterventiMtz.isFermo
+ ,CASE dbo.InterventiMtz.isFermo WHEN 'True' THEN 'SI' ELSE 'NO' END AS isFermo
+ ,dbo.InterventiMtz.scheduled
+ -- aggiunti da VDWH_DettaglioInterv
+ ,dbo.InterventiMtz.turnoLav
+ ,dbo.InterventiMtz.matr
+ ,dbo.AnagAmbitoGuasto.descrAmbitoGuasto
+ ,dbo.AnagPriorita.descrPriorita
+ ,dbo.AnagTipoGuasto.descrTipo
+ ,dbo.AnagStati.DescrStato
+ ,ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta) AS presaInCarico
+ ,dbo.InterventiMtz.isPreventivabile
+ ,dbo.AnagFamMacchine.nomeFamMacch
+ FROM dbo.InterventiMtz
+ INNER JOIN dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito
+ INNER JOIN dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto
+ INNER JOIN dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina
+ INNER JOIN dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo
+ INNER JOIN dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita
+ INNER JOIN dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato
+ LEFT JOIN dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz
+ LEFT JOIN dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale
+ INNER JOIN dbo.AnagFamMacchine ON dbo.AnagCausali.idxFamMacchine = dbo.AnagFamMacchine.idxFamMacchine
+ -- ORDER BY dbo.InterventiMtz.numIntMtz DESC
+)
+SELECT numIntMtz AS [Richiesta Webgim Nr.]
+ ,codImpianto AS [Codice Reparto]
+ ,nomeImpianto AS Reparto
+ ,nomeMacchina AS [Descrizione Macchina ]
+ ,codMacchina AS [Codice macchina]
+ ,dbo.f_fixCR(descrizione) AS [Descrizione Guasto]
+ ,dbo.f_fixCR(descrizioneIntervento) AS [Descrizione Intervento MTZ]
+ ,guasto AS [Ora Guasto]
+ ,richiesta AS [Ora Richiesta Webgim]
+ ,inizioIntervento AS [Ora Inizio Intervento]
+ ,fineIntervento AS [Ora Fine Intervento]
+ ,durataMtz AS [Ore intervento MTZ]
+ ,durataOff AS [Ore fermo Officina]
+ ,minErogati AS [Ore operatori MTZ]
+ ,turnoLav AS Turno
+ ,matr AS Matricola
+ ,descrAmbitoGuasto AS [Ambito Guasto]
+ ,descrPriorita AS [Descrizione Priorita]
+ ,DescrStato AS [Descrizione Stato]
+ ,presaInCarico AS [Presa in Carico]
+ ,isPreventivabile AS [Preventivabile]
+ ,descrCausale AS [Descrizione Causale]
+ ,isFermo AS [isFermo]
+ ,descrTipo AS [Tipo Guasto]
+ ,nomeFamMacch AS [Famiglia Causale]
+FROM cte
+
+/*
+SELECT numIntMtz AS [Richiesta Webgim Nr.]
+ ,codImpianto AS [Codice Reparto]
+ ,nomeImpianto AS Reparto
+ ,nomeMacchina AS [Descrizione Macchina ]
+ ,codMacchina AS [Codice macchina]
+ ,dbo.f_fixCR(descrizione) AS [Descrizione Guasto]
+ ,dbo.f_fixCR(descrizioneIntervento) AS [Descrizione Intervento MTZ]
+ ,guasto AS [Ora Guasto]
+ ,richiesta AS [Ora Richiesta Webgim]
+ ,inizioIntervento AS [Ora Inizio Intervento]
+ ,fineIntervento AS [Ora Fine Intervento]
+ ,durataMtz AS [Ore intervento MTZ]
+ ,durataOff AS [Ore fermo Officina]
+ ,minErogati AS [Ore operatori MTZ]
+FROM dbo.v_elencoIntervFilt
+*/
+
+
+
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "v_elencoIntervFilt"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 136
+ Right = 240
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dwh', @level1type = N'VIEW', @level1name = N'VDWH_ElencoInterventi';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dwh', @level1type = N'VIEW', @level1name = N'VDWH_ElencoInterventi';
+
diff --git a/Projects/GimDB/dwh/Views/VDWH_ImpiegoRisorse.sql b/Projects/GimDB/dwh/Views/VDWH_ImpiegoRisorse.sql
new file mode 100644
index 0000000..c74b39e
--- /dev/null
+++ b/Projects/GimDB/dwh/Views/VDWH_ImpiegoRisorse.sql
@@ -0,0 +1,17 @@
+
+CREATE VIEW [dwh].[VDWH_ImpiegoRisorse]
+AS
+ SELECT
+ -- ImRi.idxImpiego
+ ImRi.numIntMtz
+ ,ImRi.CodRisorsa
+ ,AnRi.DescrRisorsa
+ ,ImRi.QtaRisorsa
+ ,ImRi.CostoUnit
+ ,ImRi.TotImport
+ ,AnRi.UM
+ ,AnRi.Valuta
+ -- ,ImRi.Note
+ FROM dbo.ImpiegoRisorse AS ImRi
+ INNER JOIN dbo.AnagTipoRisorsa AS AnRi
+ ON ImRi.CodRisorsa = AnRi.CodRisorsa
diff --git a/Projects/GimDB/dwh/Views/VDWH_IntervOperatori.sql b/Projects/GimDB/dwh/Views/VDWH_IntervOperatori.sql
new file mode 100644
index 0000000..1b60524
--- /dev/null
+++ b/Projects/GimDB/dwh/Views/VDWH_IntervOperatori.sql
@@ -0,0 +1,147 @@
+
+CREATE VIEW [dwh].[VDWH_IntervOperatori]
+AS
+SELECT
+ dbo.InterventoOpMtz.numIntMtz
+ ,dbo.InterventoOpMtz.durataMinuti
+ ,dbo.AnagrOperMtz.matrOp
+ ,dbo.AnagrOperMtz.Cognome
+ ,dbo.AnagrOperMtz.Nome
+FROM dbo.AnagrOperMtz
+INNER JOIN dbo.InterventoOpMtz ON dbo.AnagrOperMtz.matrOp = dbo.InterventoOpMtz.matrOp
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
+Begin DesignProperties =
+ Begin PaneConfigurations =
+ Begin PaneConfiguration = 0
+ NumPanes = 4
+ Configuration = "(H (1[40] 4[20] 2[20] 3) )"
+ End
+ Begin PaneConfiguration = 1
+ NumPanes = 3
+ Configuration = "(H (1 [50] 4 [25] 3))"
+ End
+ Begin PaneConfiguration = 2
+ NumPanes = 3
+ Configuration = "(H (1 [50] 2 [25] 3))"
+ End
+ Begin PaneConfiguration = 3
+ NumPanes = 3
+ Configuration = "(H (4 [30] 2 [40] 3))"
+ End
+ Begin PaneConfiguration = 4
+ NumPanes = 2
+ Configuration = "(H (1 [56] 3))"
+ End
+ Begin PaneConfiguration = 5
+ NumPanes = 2
+ Configuration = "(H (2 [66] 3))"
+ End
+ Begin PaneConfiguration = 6
+ NumPanes = 2
+ Configuration = "(H (4 [50] 3))"
+ End
+ Begin PaneConfiguration = 7
+ NumPanes = 1
+ Configuration = "(V (3))"
+ End
+ Begin PaneConfiguration = 8
+ NumPanes = 3
+ Configuration = "(H (1[56] 4[18] 2) )"
+ End
+ Begin PaneConfiguration = 9
+ NumPanes = 2
+ Configuration = "(H (1 [75] 4))"
+ End
+ Begin PaneConfiguration = 10
+ NumPanes = 2
+ Configuration = "(H (1[66] 2) )"
+ End
+ Begin PaneConfiguration = 11
+ NumPanes = 2
+ Configuration = "(H (4 [60] 2))"
+ End
+ Begin PaneConfiguration = 12
+ NumPanes = 1
+ Configuration = "(H (1) )"
+ End
+ Begin PaneConfiguration = 13
+ NumPanes = 1
+ Configuration = "(V (4))"
+ End
+ Begin PaneConfiguration = 14
+ NumPanes = 1
+ Configuration = "(V (2))"
+ End
+ ActivePaneConfig = 0
+ End
+ Begin DiagramPane =
+ Begin Origin =
+ Top = 0
+ Left = 0
+ End
+ Begin Tables =
+ Begin Table = "AnagrOperMtz"
+ Begin Extent =
+ Top = 6
+ Left = 38
+ Bottom = 119
+ Right = 208
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ Begin Table = "InterventoOpMtz"
+ Begin Extent =
+ Top = 6
+ Left = 246
+ Bottom = 141
+ Right = 416
+ End
+ DisplayFlags = 280
+ TopColumn = 0
+ End
+ End
+ End
+ Begin SQLPane =
+ End
+ Begin DataPane =
+ Begin ParameterDefaults = ""
+ End
+ Begin ColumnWidths = 9
+ Width = 284
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ Width = 1500
+ End
+ End
+ Begin CriteriaPane =
+ Begin ColumnWidths = 11
+ Column = 1440
+ Alias = 900
+ Table = 1170
+ Output = 720
+ Append = 1400
+ NewValue = 1170
+ SortType = 1350
+ SortOrder = 1410
+ GroupBy = 1350
+ Filter = 1350
+ Or = 1350
+ Or = 1350
+ Or = 1350
+ End
+ End
+End
+', @level0type = N'SCHEMA', @level0name = N'dwh', @level1type = N'VIEW', @level1name = N'VDWH_IntervOperatori';
+
+
+GO
+EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dwh', @level1type = N'VIEW', @level1name = N'VDWH_IntervOperatori';
+
diff --git a/Projects/GimDB/export/Views/v_allData.sql b/Projects/GimDB/export/Views/v_allData.sql
new file mode 100644
index 0000000..2aad597
--- /dev/null
+++ b/Projects/GimDB/export/Views/v_allData.sql
@@ -0,0 +1,52 @@
+CREATE VIEW export.v_allData
+AS
+
+SELECT InterventiMtz.numIntMtz
+ , CAST(InterventiMtz.dataLav AS DATE) as dataLav
+ , InterventiMtz.turnoLav
+ , InterventiMtz.matr
+ , InterventiMtz.richiesta
+ , AnagImpianti.codImpianto
+ , AnagImpianti.nomeImpianto
+ , AnagMacchine.codMacchina
+ , AnagMacchine.nomeMacchina
+ , InterventiMtz.descrizione
+ , InterventiMtz.inizioIntervento
+ , InterventiMtz.fineIntervento
+ , ISNULL(InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento
+ , ISNULL(AnagCausali.descrCausale, 'n.d. (causale)') AS descrCausale
+ , ROUND(CAST(ISNULL(v_interventiErogati.totMinErogati, 0) AS FLOAT) / 60, 2) AS minErogati
+ , CAST(ISNULL(vri.TotImport, 0) AS DECIMAL(9, 3)) AS ImportoTot
+ , dbo.f_diffOreLavorative(InterventiMtz.inizioIntervento, InterventiMtz.fineIntervento, InterventiMtz.idxMacchina) AS durataMtz
+ , CASE (isFermo)
+ WHEN 1
+ THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina)
+ WHEN 0
+ THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina)
+ END AS durataOff
+ , InterventiMtz.guasto
+ , InterventiMtz.idxStato
+ , InterventiMtz.idxImpianto
+ , InterventiMtz.idxMacchina
+ , InterventiMtz.isFermo
+ , InterventiMtz.scheduled
+FROM InterventiMtz
+INNER JOIN AnagAmbitoGuasto
+ ON InterventiMtz.idxAmbito = AnagAmbitoGuasto.idxAmbito
+INNER JOIN AnagImpianti
+ ON InterventiMtz.idxImpianto = AnagImpianti.idxImpianto
+INNER JOIN AnagMacchine
+ ON InterventiMtz.idxMacchina = AnagMacchine.idxMacchina
+INNER JOIN AnagTipoGuasto
+ ON InterventiMtz.idxTipo = AnagTipoGuasto.idxTipo
+INNER JOIN AnagPriorita
+ ON InterventiMtz.idxPriorita = AnagPriorita.idxPriorita
+INNER JOIN AnagStati
+ ON InterventiMtz.idxStato = AnagStati.idxStato
+LEFT JOIN v_interventiErogati
+ ON InterventiMtz.numIntMtz = v_interventiErogati.numIntMtz
+LEFT JOIN v_risorseImpiegate AS vri
+ ON InterventiMtz.numIntMtz = vri.numIntMtz
+LEFT JOIN AnagCausali
+ ON InterventiMtz.idxCausale = AnagCausali.idxCausale
+--ORDER BY InterventiMtz.numIntMtz DESC
diff --git a/Projects/GimDB/import/Stored Procedures/stp_importMagRic_step1.sql b/Projects/GimDB/import/Stored Procedures/stp_importMagRic_step1.sql
new file mode 100644
index 0000000..402ace0
--- /dev/null
+++ b/Projects/GimDB/import/Stored Procedures/stp_importMagRic_step1.sql
@@ -0,0 +1,62 @@
+
+-- =============================================
+-- Author: GAR
+-- Create date: 2015.11.20
+-- Description: Import iniziale dati: Items
+-- =============================================
+CREATE PROCEDURE [import].[stp_importMagRic_step1]
+AS
+BEGIN
+
+SET NOCOUNT ON;
+
+-- SELECT * FROM [som_ita].[tmp_ImportRic_A]
+DECLARE @Test BIT = 0; -- se 1 fa il rollback
+DECLARE @SummaryOfChanges TABLE (Change VARCHAR(10));
+
+BEGIN TRANSACTION;
+ -- CARICO I NUOVI ITEM
+ ;WITH cteImportRicA
+ AS (
+ SELECT DISTINCT
+ LTRIM(RTRIM(UPPER(Gruppo))) AS Famiglia,
+ LTRIM(RTRIM(UPPER(REPLACE(CASE WHEN ISNULL([Descrizione], '') <> ''
+ THEN [Descrizione]
+ ELSE [CodCostruttore]
+ END, '"', '')))) AS Descrizione
+ ,LTRIM(RTRIM(UPPER(NomeCostruttore))) AS NomeCostruttore
+ ,LTRIM(RTRIM(UPPER(CodCostruttore))) AS CodCostruttore
+ ,LTRIM(RTRIM(UPPER(CodSomaschini))) AS CodInterno
+ FROM [som_ita].[tmp_ImportRic_A]
+ )
+ MERGE INTO dbo.AnagItems AS Target
+ USING ( SELECT DISTINCT * FROM cteImportRicA ) AS Source
+ ON Target.Famiglia = Source.Famiglia AND Target.Descrizione = Source.Descrizione AND Target.NomeCostruttore = Source.NomeCostruttore AND Target.CodCostruttore = Source.CodCostruttore AND Target.CodInterno = Source.CodInterno
+
+ WHEN NOT MATCHED BY TARGET
+ THEN
+ INSERT ( Famiglia,Descrizione,NomeCostruttore,CodCostruttore,CodInterno)
+ VALUES ( Famiglia,Descrizione,NomeCostruttore,CodCostruttore,CodInterno)
+ --WHEN MATCHED -- AND Target.TranspCost <> Source.TranspCost AND @flgUpdate = 1
+ -- THEN
+ -- UPDATE SET Descrizione = Source.Descrizione
+ --WHEN NOT MATCHED BY SOURCE THEN
+ -- DELETE
+ OUTPUT $ACTION INTO @SummaryOfChanges;-- carico i cambiamenti in tabella
+
+ SELECT * FROM dbo.AnagItems
+
+IF @test = 1 ROLLBACK
+ ELSE COMMIT;
+
+-- Carico le modifiche fatte in variabile Testo
+SELECT Change + ' : ' + CONVERT(VARCHAR(10), COUNT(*))
+FROM @SummaryOfChanges
+GROUP BY Change;
+
+/* reset dbo.AnagItems
+DELETE dbo.AnagItems
+DBCC CHECKIDENT ('dbo.AnagItems', reseed, 0) -- reset idx tabella dopo delete
+*/
+
+END
\ No newline at end of file
diff --git a/Projects/GimDB/import/Stored Procedures/stp_importMagRic_step2.sql b/Projects/GimDB/import/Stored Procedures/stp_importMagRic_step2.sql
new file mode 100644
index 0000000..95a0355
--- /dev/null
+++ b/Projects/GimDB/import/Stored Procedures/stp_importMagRic_step2.sql
@@ -0,0 +1,72 @@
+
+
+-- =============================================
+-- Author: GAR
+-- Create date: 2015.11.20
+-- Description: Import iniziale dati: Giacenze
+-- =============================================
+CREATE PROCEDURE [import].[stp_importMagRic_step2]
+AS
+BEGIN
+
+SET NOCOUNT ON;
+
+--SELECT * FROM [som_ita].[tmp_ImportRic_A] WHERE Descrizione = ''
+--SELECT * FROM MagRic
+--SELECT * FROM AnagLocazioni
+
+DECLARE @Test BIT = 0; -- se 1 fa il rollback
+DECLARE @DataImp AS SMALLDATETIME = GETDATE();
+DECLARE @SummaryOfChanges TABLE (Change VARCHAR(10));
+
+BEGIN TRANSACTION;;
+
+ WITH cteImportRicA
+ AS (
+ SELECT LTRIM(RTRIM(UPPER(Gruppo))) AS Famiglia
+ ,LTRIM(RTRIM(UPPER(REPLACE(CASE WHEN ISNULL([Descrizione], '') <> ''
+ THEN [Descrizione]
+ ELSE [CodCostruttore]
+ END, '"', '')))) AS Descrizione -- tolgo eventuali "
+ ,LTRIM(RTRIM(UPPER(NomeCostruttore))) AS NomeCostruttore
+ ,LTRIM(RTRIM(UPPER(CodCostruttore))) AS CodCostruttore
+ ,LTRIM(RTRIM(UPPER(CodSomaschini))) AS CodInterno
+ ,Giacenza
+ FROM [som_ita].[tmp_ImportRic_A]
+ )
+ ,cteBis AS (
+ SELECT ai.*
+ ,'MAG00' AS CodLocazione
+ ,tmp.Giacenza
+ FROM cteImportRicA AS tmp
+ INNER JOIN dbo.AnagItems AS ai
+ ON tmp.Famiglia = ai.Famiglia AND tmp.Descrizione = ai.Descrizione AND tmp.NomeCostruttore = ai.NomeCostruttore AND tmp.CodCostruttore = ai.CodCostruttore AND tmp.CodInterno = ai.CodInterno
+ )
+ -- SELECT idxItem, 'MAG00' AS CodLocazione , Giacenza FROM cteBis WHERE idxItem = 1310
+ MERGE INTO dbo.MagRic AS Target
+ USING (
+ SELECT idxItem,CodLocazione,SUM(Giacenza) AS Giacenza FROM cteBis
+ GROUP BY idxItem ,CodLocazione
+ ) AS Source
+ ON Target.idxItem = Source.idxItem AND Target.CodLocazione = Source.CodLocazione
+ WHEN NOT MATCHED BY TARGET THEN
+ INSERT (idxItem,CodLocazione,Giacenza,dtLastUpd)
+ VALUES (idxItem,CodLocazione,Giacenza,@DataImp)
+ WHEN MATCHED THEN
+ UPDATE
+ SET Giacenza = Source.Giacenza ,dtLastUpd = @DataImp
+ --WHEN NOT MATCHED BY SOURCE THEN DELETE
+ OUTPUT $ACTION INTO @SummaryOfChanges;-- carico i cambiamenti in tabella
+
+ SELECT * FROM dbo.MagRic
+
+IF @Test = 1
+ ROLLBACK
+ELSE COMMIT;
+
+-- Carico le modifiche fatte in variabile Testo
+SELECT Change + ' : ' + CONVERT(VARCHAR(10), COUNT(*))
+FROM @SummaryOfChanges
+GROUP BY Change;
+
+END
\ No newline at end of file
diff --git a/Projects/GimDB/import/Stored Procedures/stp_importMagRic_step3.sql b/Projects/GimDB/import/Stored Procedures/stp_importMagRic_step3.sql
new file mode 100644
index 0000000..7955230
--- /dev/null
+++ b/Projects/GimDB/import/Stored Procedures/stp_importMagRic_step3.sql
@@ -0,0 +1,108 @@
+
+-- =============================================
+-- Author: GAR
+-- Create date: 2015.11.20
+-- Description: Import iniziale dati: Tags
+-- =============================================
+CREATE PROCEDURE [import].[stp_importMagRic_step3]
+AS
+BEGIN
+
+SET NOCOUNT ON;
+
+/*
+* NOTA: fare in modo che lo esegua in modo "becero" creando TUTTI i tags DISTINCT DESTINAZIONE che esistono (fatto salvo trim e TOP-UPPER x non creare sinonimi solo di errata scrittura), POI da sw farò "il merge" dei tags x riunificarli da WebGIM
+*
+* per farlo c'è la tabella di "sinonimi" per cui ad un certo Tag --> corrisponde il tag "merge" finale
+* QUESTO SIGNIFICA che dopo primo import (becero) nei successivi deve guardare la tabella SinonimiTag, ho creato alcuni esempi
+*
+* vedi step procedura abbozzati sotto
+*
+*/
+
+--SELECT * FROM [som_ita].[tmp_ImportRic_A] WHERE Descrizione = ''
+--SELECT * FROM dbo.SinonimiTag -- delete FROM dbo.SinonimiTag
+--SELECT * FROM dbo.AnagTags -- delete FROM dbo.AnagTags
+--SELECT * FROM dbo.Tag2Item -- DELETE FROM dbo.Tag2Item
+
+DECLARE @Test BIT = 0; -- se 1 fa il rollback
+DECLARE @DataImp AS SMALLDATETIME = GETDATE();
+DECLARE @SummaryOfChanges TABLE (Change VARCHAR(50));
+
+BEGIN TRANSACTION;;
+
+ -- ==========================================================
+ -- NUOVI SINONIMI - se ho sinonimi mancanti li carico in modalità 1=1 TagCodeOrig=TagCode
+ -- ==========================================================
+ WITH cteImportRicA
+ AS (
+ SELECT DISTINCT LTRIM(RTRIM(UPPER(Destinazione))) + '#' +
+ LTRIM(RTRIM(UPPER(Gruppo))) AS TagCodeOrig -- TagCodeOrig
+ FROM [som_ita].[tmp_ImportRic_A]
+ WHERE Destinazione <> '' OR GRUPPO <> ''
+ )
+ INSERT dbo.SinonimiTag
+ SELECT cte.TagCodeOrig, cte.TagCodeOrig
+ FROM cteImportRicA AS cte
+ LEFT JOIN dbo.SinonimiTag AS st ON cte.TagCodeOrig = st.TagCodeOrig
+ WHERE cte.TagCodeOrig <> '' AND
+ st.TagCode IS NULL -- solo nuovi
+
+ SELECT 'NEW SinonimiTag: ' + CAST ( @@ROWCOUNT AS VARCHAR(10) )
+ -- ==========================================================
+ -- INSERT TAGS NUOVI
+ -- ==========================================================
+ INSERT dbo.AnagTags
+ SELECT DISTINCT st.TagCode,'','' FROM dbo.SinonimiTag AS st
+ LEFT JOIN dbo.AnagTags AS at ON st.TagCode = at.TagCode
+ WHERE st.TagCode <> '' AND
+ at.TagCode IS NULL -- solo nuovi
+
+ SELECT 'NEW AnagTags: ' + CAST ( @@ROWCOUNT AS VARCHAR(10) )
+
+ -- ==========================================================
+ -- INSERIMENTO NEW Item-TagCode
+ -- ==========================================================
+ ;WITH cteImportRicA -- normalizzo campi in ingresso
+ AS (
+ SELECT LTRIM(RTRIM(UPPER(Gruppo))) AS Famiglia
+ ,LTRIM(RTRIM(UPPER(REPLACE(CASE WHEN ISNULL([Descrizione], '') <> ''
+ THEN [Descrizione]
+ ELSE [CodCostruttore]
+ END, '"', '')))) AS Descrizione -- tolgo eventuali "
+ ,LTRIM(RTRIM(UPPER(NomeCostruttore))) AS NomeCostruttore
+ ,LTRIM(RTRIM(UPPER(CodCostruttore))) AS CodCostruttore
+ ,LTRIM(RTRIM(UPPER(CodSomaschini))) AS CodInterno
+ ,LTRIM(RTRIM(UPPER(Destinazione))) + '#'
+ + LTRIM(RTRIM(UPPER(Gruppo))) AS TagCodeOrig -- TagCodeOrig
+ FROM [som_ita].[tmp_ImportRic_A]
+ )
+ ,cteNew AS -- ricavo idxItem e TagCode effettivo
+ (
+ SELECT DISTINCT ai.idxItem, st.TagCode
+ FROM cteImportRicA AS tmp
+ INNER JOIN dbo.AnagItems AS ai
+ ON tmp.Famiglia = ai.Famiglia AND tmp.Descrizione = ai.Descrizione AND tmp.NomeCostruttore = ai.NomeCostruttore AND tmp.CodCostruttore = ai.CodCostruttore AND tmp.CodInterno = ai.CodInterno
+ INNER JOIN dbo.SinonimiTag AS st ON tmp.TagCodeOrig = st.TagCodeOrig
+ )
+ --SELECT idxItem, TagCode FROM cteNew
+ -- inserisco new Item-TagCode
+ MERGE INTO dbo.Tag2Item AS Target
+ USING ( SELECT * FROM cteNew ) AS Source
+ ON Target.idxItem = Source.idxItem AND Target.TagCode = Source.TagCode
+ WHEN NOT MATCHED BY TARGET THEN
+ INSERT (idxItem,TagCode) VALUES (idxItem,TagCode)
+ -- WHEN MATCHED THEN UPDATE SET Giacenza = Source.Giacenza ,dtLastUpd = GETDATE()
+ -- WHEN NOT MATCHED BY SOURCE THEN DELETE
+ OUTPUT $ACTION INTO @SummaryOfChanges;-- carico i cambiamenti in tabella
+
+IF @Test = 1
+ ROLLBACK
+ELSE COMMIT;
+
+-- Carico le modifiche fatte in variabile Testo
+SELECT Change + ' Tag2Item: ' + CONVERT(VARCHAR(10), COUNT(*))
+FROM @SummaryOfChanges
+GROUP BY Change;
+
+END
\ No newline at end of file
diff --git a/Projects/GimDB/obj/Debug/GimDB.dll b/Projects/GimDB/obj/Debug/GimDB.dll
new file mode 100644
index 0000000..856f785
Binary files /dev/null and b/Projects/GimDB/obj/Debug/GimDB.dll differ
diff --git a/Projects/GimDB/obj/Debug/GimDB.sqlproj.FileListAbsolute.txt b/Projects/GimDB/obj/Debug/GimDB.sqlproj.FileListAbsolute.txt
new file mode 100644
index 0000000..a05b87e
--- /dev/null
+++ b/Projects/GimDB/obj/Debug/GimDB.sqlproj.FileListAbsolute.txt
@@ -0,0 +1,8 @@
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\bin\Debug\GimDB.dacpac
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\obj\Debug\GimDB.dll
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\obj\Debug\GimDB.pdb
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\bin\Debug\GimDB.dll
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\bin\Debug\GimDB.pdb
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\bin\Output\GimDB.dacpac
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\bin\Output\GimDB.dll
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\bin\Output\GimDB.pdb
diff --git a/Projects/GimDB/obj/Release/GimDB.dll b/Projects/GimDB/obj/Release/GimDB.dll
new file mode 100644
index 0000000..ff59b89
Binary files /dev/null and b/Projects/GimDB/obj/Release/GimDB.dll differ
diff --git a/Projects/GimDB/obj/Release/GimDB.sqlproj.FileListAbsolute.txt b/Projects/GimDB/obj/Release/GimDB.sqlproj.FileListAbsolute.txt
new file mode 100644
index 0000000..7848a23
--- /dev/null
+++ b/Projects/GimDB/obj/Release/GimDB.sqlproj.FileListAbsolute.txt
@@ -0,0 +1,5 @@
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\bin\Release\GimDB.dacpac
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\bin\Release\GimDB.dll
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\bin\Release\GimDB.pdb
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\obj\Release\GimDB.dll
+C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebGIM\Projects\GimDB\obj\Release\GimDB.pdb
diff --git a/Projects/GimDB/som_ita/Tables/tmp_ImportRic_A.sql b/Projects/GimDB/som_ita/Tables/tmp_ImportRic_A.sql
new file mode 100644
index 0000000..af07f40
--- /dev/null
+++ b/Projects/GimDB/som_ita/Tables/tmp_ImportRic_A.sql
@@ -0,0 +1,12 @@
+CREATE TABLE [som_ita].[tmp_ImportRic_A] (
+ [Descrizione] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_A_Descrizione] DEFAULT ('') NOT NULL,
+ [NomeCostruttore] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_A_NomeCostruttore] DEFAULT ('') NOT NULL,
+ [CodCostruttore] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_A_CodCostruttore] DEFAULT ('') NOT NULL,
+ [Destinazione] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_A_CodCostruttore1] DEFAULT ('') NOT NULL,
+ [CodSomaschini] NVARCHAR (50) CONSTRAINT [DF_tmp_ImportRic_A_CodSomaschini] DEFAULT ('') NOT NULL,
+ [Giacenza] INT CONSTRAINT [DF_tmp_ImportRic_A_Giacenza] DEFAULT ((0)) NOT NULL,
+ [Gruppo] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_A_Gruppo] DEFAULT ('') NOT NULL
+);
+
+
+
diff --git a/Projects/GimDB/som_ita/Tables/tmp_ImportRic_B.sql b/Projects/GimDB/som_ita/Tables/tmp_ImportRic_B.sql
new file mode 100644
index 0000000..0a9660d
--- /dev/null
+++ b/Projects/GimDB/som_ita/Tables/tmp_ImportRic_B.sql
@@ -0,0 +1,14 @@
+CREATE TABLE [som_ita].[tmp_ImportRic_B] (
+ [GrpFun] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_B_NomeCostruttore] DEFAULT ('') NOT NULL,
+ [FamTec] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_B_CodCostruttore] DEFAULT ('') NOT NULL,
+ [TipoMacc] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_B_Destinazione] DEFAULT ('') NOT NULL,
+ [Descrizione] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_B_Descrizione] DEFAULT ('') NOT NULL,
+ [CodSomaschini] NVARCHAR (50) CONSTRAINT [DF_tmp_ImportRic_B_CodSomaschini] DEFAULT ('') NOT NULL,
+ [QtaMin] INT NOT NULL,
+ [QtaLotto] INT NOT NULL,
+ [Giacenza] INT CONSTRAINT [DF_tmp_ImportRic_B_Giacenza] DEFAULT ((0)) NOT NULL,
+ [Ubicazione] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_B_Descrizione1] DEFAULT ('') NOT NULL,
+ [Nota_1] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_B_Descrizione1_1] DEFAULT ('') NOT NULL,
+ [Nota_2] NVARCHAR (250) CONSTRAINT [DF_tmp_ImportRic_B_Nota_11] DEFAULT ('') NOT NULL
+);
+
diff --git a/Projects/GimDB/voc/Stored Procedures/stp_getByLingua.sql b/Projects/GimDB/voc/Stored Procedures/stp_getByLingua.sql
new file mode 100644
index 0000000..c0cee69
--- /dev/null
+++ b/Projects/GimDB/voc/Stored Procedures/stp_getByLingua.sql
@@ -0,0 +1,9 @@
+create PROCEDURE voc.stp_getByLingua
+(
+ @Lingua nvarchar(3)
+)
+AS
+ SET NOCOUNT ON;
+SELECT Lingua, Lemma, Traduzione
+FROM Vocabolario
+WHERE (Lingua = @Lingua)
diff --git a/Projects/GimDB/voc/Stored Procedures/stp_getByLinguaLemmaLike.sql b/Projects/GimDB/voc/Stored Procedures/stp_getByLinguaLemmaLike.sql
new file mode 100644
index 0000000..3a71d6d
--- /dev/null
+++ b/Projects/GimDB/voc/Stored Procedures/stp_getByLinguaLemmaLike.sql
@@ -0,0 +1,33 @@
+/*************************************
+* STORED PROCEDURE stp_getByLemmaLike
+*
+* elenco record da ricerca LIKE su lemma
+*
+* mod : 2014.04.28
+* aut : S.E. Locatelli
+**************************************/
+create PROCEDURE voc.stp_getByLinguaLemmaLike
+(
+ @Lingua NVARCHAR(3),
+ @search NVARCHAR(50)
+)
+AS
+
+SET NOCOUNT ON;
+SELECT Lingua, Lemma
+ ,CASE WHEN @Lingua = 'LB' THEN CONVERT(NVARCHAR(500),Lemma)
+ ELSE Traduzione END
+ AS Traduzione -- la traduzione corrisponde ai campi/lemmi x i report
+FROM Vocabolario
+WHERE (Lemma LIKE @search + '%')
+ AND ( Lingua = CASE WHEN @Lingua = 'LB' -- se richiede le Label dei campi estraggo i lemmi in inglese
+ THEN 'EN'
+ ELSE @Lingua
+ END )
+
+/* OLD
+SELECT Lingua, Lemma, Traduzione
+FROM Vocabolario
+WHERE (Lemma LIKE @search + '%')
+ AND (Lingua = @Lingua)
+*/
diff --git a/Projects/GimDB/voc/Stored Procedures/stp_insNewLemma.sql b/Projects/GimDB/voc/Stored Procedures/stp_insNewLemma.sql
new file mode 100644
index 0000000..bbb96ea
--- /dev/null
+++ b/Projects/GimDB/voc/Stored Procedures/stp_insNewLemma.sql
@@ -0,0 +1,33 @@
+/*************************************
+* STORED PROCEDURE stp_insNewLemma
+*
+* inseriemtno lemma vocabolario
+*
+* mod : 14/05/2012
+* aut : S.E. Locatelli
+**************************************/
+create PROCEDURE voc.stp_insNewLemma
+(
+ @lemma NVARCHAR(50),
+ @traduzione NVARCHAR(500),
+ @OverWrite CHAR(1) = 'Y' -- Y/N Per forzarne inserimento anche se già presente
+)
+AS
+
+-- elimino se c'era già e se richiesto...
+IF @OverWrite = 'Y'
+BEGIN
+ DELETE FROM Vocabolario
+ WHERE lemma = @lemma
+END
+
+-- inserisco x tutte le lingue attive...
+INSERT INTO Vocabolario
+SELECT lingua, @lemma, @traduzione
+FROM Lingue
+
+SELECT *
+FROM Vocabolario
+WHERE lemma = @lemma
+
+RETURN
diff --git a/Projects/GimDB/voc/Stored Procedures/stp_updateQuery.sql b/Projects/GimDB/voc/Stored Procedures/stp_updateQuery.sql
new file mode 100644
index 0000000..0cd7005
--- /dev/null
+++ b/Projects/GimDB/voc/Stored Procedures/stp_updateQuery.sql
@@ -0,0 +1,9 @@
+create PROCEDURE voc.stp_updateQuery
+(
+ @Traduzione nvarchar(500),
+ @Original_Lingua nvarchar(3),
+ @Original_Lemma nvarchar(50)
+)
+AS
+ SET NOCOUNT OFF;
+UPDATE [dbo].[Vocabolario] SET [Traduzione] = @Traduzione WHERE ([Lingua] = @Original_Lingua) AND ([Lemma] = @Original_Lemma)
diff --git a/Projects/GimDB/voc/Stored Procedures/stp_upsertLemma.sql b/Projects/GimDB/voc/Stored Procedures/stp_upsertLemma.sql
new file mode 100644
index 0000000..7c666d5
--- /dev/null
+++ b/Projects/GimDB/voc/Stored Procedures/stp_upsertLemma.sql
@@ -0,0 +1,28 @@
+/*************************************
+* STORED PROCEDURE stp_upsertLemma
+*
+* upsert record lemma
+*
+* mod : 14/05/2012
+* aut : S.E. Locatelli
+**************************************/
+create PROCEDURE voc.stp_upsertLemma
+(
+ @Lingua NVARCHAR(3),
+ @Lemma NVARCHAR(50),
+ @Traduzione NVARCHAR(500)
+)
+AS
+
+-- effettuo merge x upsert!
+
+ MERGE Vocabolario AS target
+ USING (SELECT @Lingua, @Lemma, @Traduzione) AS source (Lingua, Lemma, Traduzione)
+ ON (target.Lingua = source.Lingua AND target.Lemma = source.Lemma)
+ WHEN MATCHED THEN
+ UPDATE SET Traduzione = source.traduzione
+ WHEN NOT MATCHED THEN
+ INSERT (Lingua, Lemma, Traduzione)
+ VALUES (source.Lingua, source.Lemma, source.Traduzione);
+
+RETURN
diff --git a/Projects/GimDB/voc/Stored Procedures/stp_voUpdateLemmiReport.sql b/Projects/GimDB/voc/Stored Procedures/stp_voUpdateLemmiReport.sql
new file mode 100644
index 0000000..5f3a90a
--- /dev/null
+++ b/Projects/GimDB/voc/Stored Procedures/stp_voUpdateLemmiReport.sql
@@ -0,0 +1,33 @@
+-- =============================================
+-- Author: Samuele Locatelli
+-- Create date: 2014.05.09
+-- Description: riallinea le traduzioni dei report ai termini corrispondenti a video
+-- =============================================
+create PROCEDURE voc.stp_voUpdateLemmiReport
+AS
+BEGIN
+ -- SET NOCOUNT ON added to prevent extra result sets from
+ -- interfering with SELECT statements.
+ SET NOCOUNT ON;
+
+ -- mostro situazione iniziale
+ SELECT *
+ FROM Vocabolario v1
+ inner join vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua
+ WHERE v1.lemma LIKE 'C2P_prt1_%'
+
+ -- update!
+ UPDATE v1
+ SET traduzione = v.traduzione
+ FROM Vocabolario v1
+ INNER JOIN vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua
+ WHERE v1.lemma LIKE 'C2P_prt1_%'
+
+
+ -- mostro situazione finale
+ SELECT *
+ FROM Vocabolario v1
+ inner join vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua
+ WHERE v1.lemma LIKE 'C2P_prt1_%'
+
+END
diff --git a/Projects/ReleaseClienti/Somaschini ITA/GIM_site.SourceManifest.xml b/Projects/ReleaseClienti/Somaschini ITA/GIM_site.SourceManifest.xml
index 75795f1..0f1977e 100644
--- a/Projects/ReleaseClienti/Somaschini ITA/GIM_site.SourceManifest.xml
+++ b/Projects/ReleaseClienti/Somaschini ITA/GIM_site.SourceManifest.xml
@@ -1,8 +1,8 @@
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/Projects/ReleaseClienti/Somaschini ITA/GIM_site.zip b/Projects/ReleaseClienti/Somaschini ITA/GIM_site.zip
index 081ca48..03d39b4 100644
Binary files a/Projects/ReleaseClienti/Somaschini ITA/GIM_site.zip and b/Projects/ReleaseClienti/Somaschini ITA/GIM_site.zip differ
diff --git a/Projects/WebGIM/.vs/config/applicationhost.config b/Projects/WebGIM/.vs/config/applicationhost.config
index d436084..b0057d8 100644
--- a/Projects/WebGIM/.vs/config/applicationhost.config
+++ b/Projects/WebGIM/.vs/config/applicationhost.config
@@ -162,7 +162,7 @@
-
+
diff --git a/Projects/WebGIM/GIM_data/DS_Mag.Designer.cs b/Projects/WebGIM/GIM_data/DS_Mag.Designer.cs
new file mode 100644
index 0000000..7430cc5
--- /dev/null
+++ b/Projects/WebGIM/GIM_data/DS_Mag.Designer.cs
@@ -0,0 +1,10813 @@
+//------------------------------------------------------------------------------
+//
+// 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 GIM_data {
+
+
+ ///
+ ///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("DS_Mag")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
+ public partial class DS_Mag : global::System.Data.DataSet {
+
+ private AnagLocazioniDataTable tableAnagLocazioni;
+
+ private MagRicDataTable tableMagRic;
+
+ private AnagItemsDataTable tableAnagItems;
+
+ private StatoMagDataTable tableStatoMag;
+
+ private AnagTagsDataTable tableAnagTags;
+
+ private Tag2ItemDataTable tableTag2Item;
+
+ private Tag2MaccDataTable tableTag2Macc;
+
+ private AnagMacchineDataTable tableAnagMacchine;
+
+ private SinonimiTagDataTable tableSinonimiTag;
+
+ private MovMagRicDataTable tableMovMagRic;
+
+ private global::System.Data.DataRelation relationFK_MagRic_AnagLocazioni;
+
+ private global::System.Data.DataRelation relationFK_MagRic_AnagItems;
+
+ private global::System.Data.DataRelation relationFK_Tag2Item_AnagItems;
+
+ private global::System.Data.DataRelation relationFK_Tag2Item_AnagTag;
+
+ private global::System.Data.DataRelation relationFK_Tag2Macc_AnagTag;
+
+ private global::System.Data.DataRelation relationFK_Tag2Macc_AnagMacchine;
+
+ private global::System.Data.DataRelation relationFK_MovMagRic_AnagItems;
+
+ private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public DS_Mag() {
+ 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", "4.0.0.0")]
+ protected DS_Mag(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["AnagLocazioni"] != null)) {
+ base.Tables.Add(new AnagLocazioniDataTable(ds.Tables["AnagLocazioni"]));
+ }
+ if ((ds.Tables["MagRic"] != null)) {
+ base.Tables.Add(new MagRicDataTable(ds.Tables["MagRic"]));
+ }
+ if ((ds.Tables["AnagItems"] != null)) {
+ base.Tables.Add(new AnagItemsDataTable(ds.Tables["AnagItems"]));
+ }
+ if ((ds.Tables["StatoMag"] != null)) {
+ base.Tables.Add(new StatoMagDataTable(ds.Tables["StatoMag"]));
+ }
+ if ((ds.Tables["AnagTags"] != null)) {
+ base.Tables.Add(new AnagTagsDataTable(ds.Tables["AnagTags"]));
+ }
+ if ((ds.Tables["Tag2Item"] != null)) {
+ base.Tables.Add(new Tag2ItemDataTable(ds.Tables["Tag2Item"]));
+ }
+ if ((ds.Tables["Tag2Macc"] != null)) {
+ base.Tables.Add(new Tag2MaccDataTable(ds.Tables["Tag2Macc"]));
+ }
+ if ((ds.Tables["AnagMacchine"] != null)) {
+ base.Tables.Add(new AnagMacchineDataTable(ds.Tables["AnagMacchine"]));
+ }
+ if ((ds.Tables["SinonimiTag"] != null)) {
+ base.Tables.Add(new SinonimiTagDataTable(ds.Tables["SinonimiTag"]));
+ }
+ if ((ds.Tables["MovMagRic"] != null)) {
+ base.Tables.Add(new MovMagRicDataTable(ds.Tables["MovMagRic"]));
+ }
+ 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", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagLocazioniDataTable AnagLocazioni {
+ get {
+ return this.tableAnagLocazioni;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public MagRicDataTable MagRic {
+ get {
+ return this.tableMagRic;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagItemsDataTable AnagItems {
+ get {
+ return this.tableAnagItems;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public StatoMagDataTable StatoMag {
+ get {
+ return this.tableStatoMag;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagTagsDataTable AnagTags {
+ get {
+ return this.tableAnagTags;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public Tag2ItemDataTable Tag2Item {
+ get {
+ return this.tableTag2Item;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public Tag2MaccDataTable Tag2Macc {
+ get {
+ return this.tableTag2Macc;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagMacchineDataTable AnagMacchine {
+ get {
+ return this.tableAnagMacchine;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public SinonimiTagDataTable SinonimiTag {
+ get {
+ return this.tableSinonimiTag;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public MovMagRicDataTable MovMagRic {
+ get {
+ return this.tableMovMagRic;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.0.0.0")]
+ public override global::System.Data.DataSet Clone() {
+ DS_Mag cln = ((DS_Mag)(base.Clone()));
+ cln.InitVars();
+ cln.SchemaSerializationMode = this.SchemaSerializationMode;
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override bool ShouldSerializeTables() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override bool ShouldSerializeRelations() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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["AnagLocazioni"] != null)) {
+ base.Tables.Add(new AnagLocazioniDataTable(ds.Tables["AnagLocazioni"]));
+ }
+ if ((ds.Tables["MagRic"] != null)) {
+ base.Tables.Add(new MagRicDataTable(ds.Tables["MagRic"]));
+ }
+ if ((ds.Tables["AnagItems"] != null)) {
+ base.Tables.Add(new AnagItemsDataTable(ds.Tables["AnagItems"]));
+ }
+ if ((ds.Tables["StatoMag"] != null)) {
+ base.Tables.Add(new StatoMagDataTable(ds.Tables["StatoMag"]));
+ }
+ if ((ds.Tables["AnagTags"] != null)) {
+ base.Tables.Add(new AnagTagsDataTable(ds.Tables["AnagTags"]));
+ }
+ if ((ds.Tables["Tag2Item"] != null)) {
+ base.Tables.Add(new Tag2ItemDataTable(ds.Tables["Tag2Item"]));
+ }
+ if ((ds.Tables["Tag2Macc"] != null)) {
+ base.Tables.Add(new Tag2MaccDataTable(ds.Tables["Tag2Macc"]));
+ }
+ if ((ds.Tables["AnagMacchine"] != null)) {
+ base.Tables.Add(new AnagMacchineDataTable(ds.Tables["AnagMacchine"]));
+ }
+ if ((ds.Tables["SinonimiTag"] != null)) {
+ base.Tables.Add(new SinonimiTagDataTable(ds.Tables["SinonimiTag"]));
+ }
+ if ((ds.Tables["MovMagRic"] != null)) {
+ base.Tables.Add(new MovMagRicDataTable(ds.Tables["MovMagRic"]));
+ }
+ 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", "4.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", "4.0.0.0")]
+ internal void InitVars() {
+ this.InitVars(true);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars(bool initTable) {
+ this.tableAnagLocazioni = ((AnagLocazioniDataTable)(base.Tables["AnagLocazioni"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagLocazioni != null)) {
+ this.tableAnagLocazioni.InitVars();
+ }
+ }
+ this.tableMagRic = ((MagRicDataTable)(base.Tables["MagRic"]));
+ if ((initTable == true)) {
+ if ((this.tableMagRic != null)) {
+ this.tableMagRic.InitVars();
+ }
+ }
+ this.tableAnagItems = ((AnagItemsDataTable)(base.Tables["AnagItems"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagItems != null)) {
+ this.tableAnagItems.InitVars();
+ }
+ }
+ this.tableStatoMag = ((StatoMagDataTable)(base.Tables["StatoMag"]));
+ if ((initTable == true)) {
+ if ((this.tableStatoMag != null)) {
+ this.tableStatoMag.InitVars();
+ }
+ }
+ this.tableAnagTags = ((AnagTagsDataTable)(base.Tables["AnagTags"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagTags != null)) {
+ this.tableAnagTags.InitVars();
+ }
+ }
+ this.tableTag2Item = ((Tag2ItemDataTable)(base.Tables["Tag2Item"]));
+ if ((initTable == true)) {
+ if ((this.tableTag2Item != null)) {
+ this.tableTag2Item.InitVars();
+ }
+ }
+ this.tableTag2Macc = ((Tag2MaccDataTable)(base.Tables["Tag2Macc"]));
+ if ((initTable == true)) {
+ if ((this.tableTag2Macc != null)) {
+ this.tableTag2Macc.InitVars();
+ }
+ }
+ this.tableAnagMacchine = ((AnagMacchineDataTable)(base.Tables["AnagMacchine"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagMacchine != null)) {
+ this.tableAnagMacchine.InitVars();
+ }
+ }
+ this.tableSinonimiTag = ((SinonimiTagDataTable)(base.Tables["SinonimiTag"]));
+ if ((initTable == true)) {
+ if ((this.tableSinonimiTag != null)) {
+ this.tableSinonimiTag.InitVars();
+ }
+ }
+ this.tableMovMagRic = ((MovMagRicDataTable)(base.Tables["MovMagRic"]));
+ if ((initTable == true)) {
+ if ((this.tableMovMagRic != null)) {
+ this.tableMovMagRic.InitVars();
+ }
+ }
+ this.relationFK_MagRic_AnagLocazioni = this.Relations["FK_MagRic_AnagLocazioni"];
+ this.relationFK_MagRic_AnagItems = this.Relations["FK_MagRic_AnagItems"];
+ this.relationFK_Tag2Item_AnagItems = this.Relations["FK_Tag2Item_AnagItems"];
+ this.relationFK_Tag2Item_AnagTag = this.Relations["FK_Tag2Item_AnagTag"];
+ this.relationFK_Tag2Macc_AnagTag = this.Relations["FK_Tag2Macc_AnagTag"];
+ this.relationFK_Tag2Macc_AnagMacchine = this.Relations["FK_Tag2Macc_AnagMacchine"];
+ this.relationFK_MovMagRic_AnagItems = this.Relations["FK_MovMagRic_AnagItems"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.DataSetName = "DS_Mag";
+ this.Prefix = "";
+ this.Namespace = "http://tempuri.org/DS_Mag.xsd";
+ this.EnforceConstraints = true;
+ this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
+ this.tableAnagLocazioni = new AnagLocazioniDataTable();
+ base.Tables.Add(this.tableAnagLocazioni);
+ this.tableMagRic = new MagRicDataTable();
+ base.Tables.Add(this.tableMagRic);
+ this.tableAnagItems = new AnagItemsDataTable();
+ base.Tables.Add(this.tableAnagItems);
+ this.tableStatoMag = new StatoMagDataTable();
+ base.Tables.Add(this.tableStatoMag);
+ this.tableAnagTags = new AnagTagsDataTable();
+ base.Tables.Add(this.tableAnagTags);
+ this.tableTag2Item = new Tag2ItemDataTable();
+ base.Tables.Add(this.tableTag2Item);
+ this.tableTag2Macc = new Tag2MaccDataTable();
+ base.Tables.Add(this.tableTag2Macc);
+ this.tableAnagMacchine = new AnagMacchineDataTable();
+ base.Tables.Add(this.tableAnagMacchine);
+ this.tableSinonimiTag = new SinonimiTagDataTable();
+ base.Tables.Add(this.tableSinonimiTag);
+ this.tableMovMagRic = new MovMagRicDataTable();
+ base.Tables.Add(this.tableMovMagRic);
+ this.relationFK_MagRic_AnagLocazioni = new global::System.Data.DataRelation("FK_MagRic_AnagLocazioni", new global::System.Data.DataColumn[] {
+ this.tableAnagLocazioni.CodLocazioneColumn}, new global::System.Data.DataColumn[] {
+ this.tableMagRic.CodLocazioneColumn}, false);
+ this.Relations.Add(this.relationFK_MagRic_AnagLocazioni);
+ this.relationFK_MagRic_AnagItems = new global::System.Data.DataRelation("FK_MagRic_AnagItems", new global::System.Data.DataColumn[] {
+ this.tableAnagItems.idxItemColumn}, new global::System.Data.DataColumn[] {
+ this.tableMagRic.idxItemColumn}, false);
+ this.Relations.Add(this.relationFK_MagRic_AnagItems);
+ this.relationFK_Tag2Item_AnagItems = new global::System.Data.DataRelation("FK_Tag2Item_AnagItems", new global::System.Data.DataColumn[] {
+ this.tableAnagItems.idxItemColumn}, new global::System.Data.DataColumn[] {
+ this.tableTag2Item.idxItemColumn}, false);
+ this.Relations.Add(this.relationFK_Tag2Item_AnagItems);
+ this.relationFK_Tag2Item_AnagTag = new global::System.Data.DataRelation("FK_Tag2Item_AnagTag", new global::System.Data.DataColumn[] {
+ this.tableAnagTags.TagCodeColumn}, new global::System.Data.DataColumn[] {
+ this.tableTag2Item.TagCodeColumn}, false);
+ this.Relations.Add(this.relationFK_Tag2Item_AnagTag);
+ this.relationFK_Tag2Macc_AnagTag = new global::System.Data.DataRelation("FK_Tag2Macc_AnagTag", new global::System.Data.DataColumn[] {
+ this.tableAnagTags.TagCodeColumn}, new global::System.Data.DataColumn[] {
+ this.tableTag2Macc.TagCodeColumn}, false);
+ this.Relations.Add(this.relationFK_Tag2Macc_AnagTag);
+ this.relationFK_Tag2Macc_AnagMacchine = new global::System.Data.DataRelation("FK_Tag2Macc_AnagMacchine", new global::System.Data.DataColumn[] {
+ this.tableAnagMacchine.idxMacchinaColumn}, new global::System.Data.DataColumn[] {
+ this.tableTag2Macc.idxMacchinaColumn}, false);
+ this.Relations.Add(this.relationFK_Tag2Macc_AnagMacchine);
+ this.relationFK_MovMagRic_AnagItems = new global::System.Data.DataRelation("FK_MovMagRic_AnagItems", new global::System.Data.DataColumn[] {
+ this.tableAnagItems.idxItemColumn}, new global::System.Data.DataColumn[] {
+ this.tableMovMagRic.idxItemColumn}, false);
+ this.Relations.Add(this.relationFK_MovMagRic_AnagItems);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeAnagLocazioni() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeMagRic() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeAnagItems() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeStatoMag() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeAnagTags() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeTag2Item() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeTag2Macc() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeAnagMacchine() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeSinonimiTag() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeMovMagRic() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ DS_Mag ds = new DS_Mag();
+ 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", "4.0.0.0")]
+ public delegate void AnagLocazioniRowChangeEventHandler(object sender, AnagLocazioniRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void MagRicRowChangeEventHandler(object sender, MagRicRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void AnagItemsRowChangeEventHandler(object sender, AnagItemsRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void StatoMagRowChangeEventHandler(object sender, StatoMagRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void AnagTagsRowChangeEventHandler(object sender, AnagTagsRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void Tag2ItemRowChangeEventHandler(object sender, Tag2ItemRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void Tag2MaccRowChangeEventHandler(object sender, Tag2MaccRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void AnagMacchineRowChangeEventHandler(object sender, AnagMacchineRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void SinonimiTagRowChangeEventHandler(object sender, SinonimiTagRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void MovMagRicRowChangeEventHandler(object sender, MovMagRicRowChangeEvent e);
+
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class AnagLocazioniDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodLocazione;
+
+ private global::System.Data.DataColumn columnDescrizione;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagLocazioniDataTable() {
+ this.TableName = "AnagLocazioni";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal AnagLocazioniDataTable(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", "4.0.0.0")]
+ protected AnagLocazioniDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn CodLocazioneColumn {
+ get {
+ return this.columnCodLocazione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn DescrizioneColumn {
+ get {
+ return this.columnDescrizione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public AnagLocazioniRow this[int index] {
+ get {
+ return ((AnagLocazioniRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagLocazioniRowChangeEventHandler AnagLocazioniRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagLocazioniRowChangeEventHandler AnagLocazioniRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagLocazioniRowChangeEventHandler AnagLocazioniRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagLocazioniRowChangeEventHandler AnagLocazioniRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddAnagLocazioniRow(AnagLocazioniRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagLocazioniRow AddAnagLocazioniRow(string CodLocazione, string Descrizione) {
+ AnagLocazioniRow rowAnagLocazioniRow = ((AnagLocazioniRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodLocazione,
+ Descrizione};
+ rowAnagLocazioniRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagLocazioniRow);
+ return rowAnagLocazioniRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagLocazioniRow FindByCodLocazione(string CodLocazione) {
+ return ((AnagLocazioniRow)(this.Rows.Find(new object[] {
+ CodLocazione})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ AnagLocazioniDataTable cln = ((AnagLocazioniDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagLocazioniDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnCodLocazione = base.Columns["CodLocazione"];
+ this.columnDescrizione = base.Columns["Descrizione"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnCodLocazione = new global::System.Data.DataColumn("CodLocazione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodLocazione);
+ this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescrizione);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodLocazione}, true));
+ this.columnCodLocazione.AllowDBNull = false;
+ this.columnCodLocazione.Unique = true;
+ this.columnCodLocazione.MaxLength = 50;
+ this.columnDescrizione.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagLocazioniRow NewAnagLocazioniRow() {
+ return ((AnagLocazioniRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagLocazioniRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagLocazioniRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagLocazioniRowChanged != null)) {
+ this.AnagLocazioniRowChanged(this, new AnagLocazioniRowChangeEvent(((AnagLocazioniRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagLocazioniRowChanging != null)) {
+ this.AnagLocazioniRowChanging(this, new AnagLocazioniRowChangeEvent(((AnagLocazioniRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagLocazioniRowDeleted != null)) {
+ this.AnagLocazioniRowDeleted(this, new AnagLocazioniRowChangeEvent(((AnagLocazioniRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagLocazioniRowDeleting != null)) {
+ this.AnagLocazioniRowDeleting(this, new AnagLocazioniRowChangeEvent(((AnagLocazioniRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveAnagLocazioniRow(AnagLocazioniRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ DS_Mag ds = new DS_Mag();
+ 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 = "AnagLocazioniDataTable";
+ 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 MagRicDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidxItem;
+
+ private global::System.Data.DataColumn columnCodLocazione;
+
+ private global::System.Data.DataColumn columnGiacenza;
+
+ private global::System.Data.DataColumn columnNote;
+
+ private global::System.Data.DataColumn columndtLastUpd;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MagRicDataTable() {
+ this.TableName = "MagRic";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal MagRicDataTable(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", "4.0.0.0")]
+ protected MagRicDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn idxItemColumn {
+ get {
+ return this.columnidxItem;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodLocazioneColumn {
+ get {
+ return this.columnCodLocazione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn GiacenzaColumn {
+ get {
+ return this.columnGiacenza;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn NoteColumn {
+ get {
+ return this.columnNote;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn dtLastUpdColumn {
+ get {
+ return this.columndtLastUpd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public MagRicRow this[int index] {
+ get {
+ return ((MagRicRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event MagRicRowChangeEventHandler MagRicRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event MagRicRowChangeEventHandler MagRicRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event MagRicRowChangeEventHandler MagRicRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event MagRicRowChangeEventHandler MagRicRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddMagRicRow(MagRicRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MagRicRow AddMagRicRow(AnagItemsRow parentAnagItemsRowByFK_MagRic_AnagItems, AnagLocazioniRow parentAnagLocazioniRowByFK_MagRic_AnagLocazioni, int Giacenza, string Note, System.DateTime dtLastUpd) {
+ MagRicRow rowMagRicRow = ((MagRicRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ null,
+ Giacenza,
+ Note,
+ dtLastUpd};
+ if ((parentAnagItemsRowByFK_MagRic_AnagItems != null)) {
+ columnValuesArray[0] = parentAnagItemsRowByFK_MagRic_AnagItems[0];
+ }
+ if ((parentAnagLocazioniRowByFK_MagRic_AnagLocazioni != null)) {
+ columnValuesArray[1] = parentAnagLocazioniRowByFK_MagRic_AnagLocazioni[0];
+ }
+ rowMagRicRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowMagRicRow);
+ return rowMagRicRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MagRicRow FindByidxItemCodLocazione(int idxItem, string CodLocazione) {
+ return ((MagRicRow)(this.Rows.Find(new object[] {
+ idxItem,
+ CodLocazione})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ MagRicDataTable cln = ((MagRicDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new MagRicDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidxItem = base.Columns["idxItem"];
+ this.columnCodLocazione = base.Columns["CodLocazione"];
+ this.columnGiacenza = base.Columns["Giacenza"];
+ this.columnNote = base.Columns["Note"];
+ this.columndtLastUpd = base.Columns["dtLastUpd"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnidxItem = new global::System.Data.DataColumn("idxItem", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxItem);
+ this.columnCodLocazione = new global::System.Data.DataColumn("CodLocazione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodLocazione);
+ this.columnGiacenza = new global::System.Data.DataColumn("Giacenza", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnGiacenza);
+ this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNote);
+ this.columndtLastUpd = new global::System.Data.DataColumn("dtLastUpd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columndtLastUpd);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidxItem,
+ this.columnCodLocazione}, true));
+ this.columnidxItem.AllowDBNull = false;
+ this.columnCodLocazione.AllowDBNull = false;
+ this.columnCodLocazione.MaxLength = 50;
+ this.columnGiacenza.AllowDBNull = false;
+ this.columnNote.AllowDBNull = false;
+ this.columnNote.MaxLength = 2147483647;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MagRicRow NewMagRicRow() {
+ return ((MagRicRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new MagRicRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(MagRicRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.MagRicRowChanged != null)) {
+ this.MagRicRowChanged(this, new MagRicRowChangeEvent(((MagRicRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.MagRicRowChanging != null)) {
+ this.MagRicRowChanging(this, new MagRicRowChangeEvent(((MagRicRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.MagRicRowDeleted != null)) {
+ this.MagRicRowDeleted(this, new MagRicRowChangeEvent(((MagRicRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.MagRicRowDeleting != null)) {
+ this.MagRicRowDeleting(this, new MagRicRowChangeEvent(((MagRicRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveMagRicRow(MagRicRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ DS_Mag ds = new DS_Mag();
+ 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 = "MagRicDataTable";
+ 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 AnagItemsDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidxItem;
+
+ private global::System.Data.DataColumn columnDescrizione;
+
+ private global::System.Data.DataColumn columnNomeCostruttore;
+
+ private global::System.Data.DataColumn columnCodCostruttore;
+
+ private global::System.Data.DataColumn columnCodInterno;
+
+ private global::System.Data.DataColumn columnQtaMin;
+
+ private global::System.Data.DataColumn columnQtaLotto;
+
+ private global::System.Data.DataColumn columnFamiglia;
+
+ private global::System.Data.DataColumn columnValore;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagItemsDataTable() {
+ this.TableName = "AnagItems";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal AnagItemsDataTable(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", "4.0.0.0")]
+ protected AnagItemsDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn idxItemColumn {
+ get {
+ return this.columnidxItem;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn DescrizioneColumn {
+ get {
+ return this.columnDescrizione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn NomeCostruttoreColumn {
+ get {
+ return this.columnNomeCostruttore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodCostruttoreColumn {
+ get {
+ return this.columnCodCostruttore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodInternoColumn {
+ get {
+ return this.columnCodInterno;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn QtaMinColumn {
+ get {
+ return this.columnQtaMin;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn QtaLottoColumn {
+ get {
+ return this.columnQtaLotto;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn FamigliaColumn {
+ get {
+ return this.columnFamiglia;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn ValoreColumn {
+ get {
+ return this.columnValore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public AnagItemsRow this[int index] {
+ get {
+ return ((AnagItemsRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagItemsRowChangeEventHandler AnagItemsRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagItemsRowChangeEventHandler AnagItemsRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagItemsRowChangeEventHandler AnagItemsRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagItemsRowChangeEventHandler AnagItemsRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddAnagItemsRow(AnagItemsRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagItemsRow AddAnagItemsRow(int idxItem, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodInterno, int QtaMin, int QtaLotto, string Famiglia, decimal Valore) {
+ AnagItemsRow rowAnagItemsRow = ((AnagItemsRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ idxItem,
+ Descrizione,
+ NomeCostruttore,
+ CodCostruttore,
+ CodInterno,
+ QtaMin,
+ QtaLotto,
+ Famiglia,
+ Valore};
+ rowAnagItemsRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagItemsRow);
+ return rowAnagItemsRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagItemsRow FindByidxItem(int idxItem) {
+ return ((AnagItemsRow)(this.Rows.Find(new object[] {
+ idxItem})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ AnagItemsDataTable cln = ((AnagItemsDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagItemsDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidxItem = base.Columns["idxItem"];
+ this.columnDescrizione = base.Columns["Descrizione"];
+ this.columnNomeCostruttore = base.Columns["NomeCostruttore"];
+ this.columnCodCostruttore = base.Columns["CodCostruttore"];
+ this.columnCodInterno = base.Columns["CodInterno"];
+ this.columnQtaMin = base.Columns["QtaMin"];
+ this.columnQtaLotto = base.Columns["QtaLotto"];
+ this.columnFamiglia = base.Columns["Famiglia"];
+ this.columnValore = base.Columns["Valore"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnidxItem = new global::System.Data.DataColumn("idxItem", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxItem);
+ this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescrizione);
+ this.columnNomeCostruttore = new global::System.Data.DataColumn("NomeCostruttore", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNomeCostruttore);
+ this.columnCodCostruttore = new global::System.Data.DataColumn("CodCostruttore", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCostruttore);
+ this.columnCodInterno = new global::System.Data.DataColumn("CodInterno", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodInterno);
+ this.columnQtaMin = new global::System.Data.DataColumn("QtaMin", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQtaMin);
+ this.columnQtaLotto = new global::System.Data.DataColumn("QtaLotto", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQtaLotto);
+ this.columnFamiglia = new global::System.Data.DataColumn("Famiglia", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFamiglia);
+ this.columnValore = new global::System.Data.DataColumn("Valore", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnValore);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidxItem}, true));
+ this.columnidxItem.AllowDBNull = false;
+ this.columnidxItem.Unique = true;
+ this.columnDescrizione.AllowDBNull = false;
+ this.columnDescrizione.MaxLength = 250;
+ this.columnNomeCostruttore.AllowDBNull = false;
+ this.columnNomeCostruttore.MaxLength = 250;
+ this.columnCodCostruttore.AllowDBNull = false;
+ this.columnCodCostruttore.MaxLength = 250;
+ this.columnCodInterno.AllowDBNull = false;
+ this.columnCodInterno.MaxLength = 50;
+ this.columnQtaMin.AllowDBNull = false;
+ this.columnQtaLotto.AllowDBNull = false;
+ this.columnFamiglia.AllowDBNull = false;
+ this.columnFamiglia.MaxLength = 50;
+ this.columnValore.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagItemsRow NewAnagItemsRow() {
+ return ((AnagItemsRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagItemsRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagItemsRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagItemsRowChanged != null)) {
+ this.AnagItemsRowChanged(this, new AnagItemsRowChangeEvent(((AnagItemsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagItemsRowChanging != null)) {
+ this.AnagItemsRowChanging(this, new AnagItemsRowChangeEvent(((AnagItemsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagItemsRowDeleted != null)) {
+ this.AnagItemsRowDeleted(this, new AnagItemsRowChangeEvent(((AnagItemsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagItemsRowDeleting != null)) {
+ this.AnagItemsRowDeleting(this, new AnagItemsRowChangeEvent(((AnagItemsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveAnagItemsRow(AnagItemsRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ DS_Mag ds = new DS_Mag();
+ 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 = "AnagItemsDataTable";
+ 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 StatoMagDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidxItem;
+
+ private global::System.Data.DataColumn columnFamiglia;
+
+ private global::System.Data.DataColumn columnDescrizione;
+
+ private global::System.Data.DataColumn columnNomeCostruttore;
+
+ private global::System.Data.DataColumn columnCodCostruttore;
+
+ private global::System.Data.DataColumn columnCodInterno;
+
+ private global::System.Data.DataColumn columnQtaMin;
+
+ private global::System.Data.DataColumn columnQtaLotto;
+
+ private global::System.Data.DataColumn columnValore;
+
+ private global::System.Data.DataColumn columnGiacenza;
+
+ private global::System.Data.DataColumn columnCodLocazione;
+
+ private global::System.Data.DataColumn columnDescrLocazione;
+
+ private global::System.Data.DataColumn columnNote;
+
+ private global::System.Data.DataColumn columndtLastUpd;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public StatoMagDataTable() {
+ this.TableName = "StatoMag";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal StatoMagDataTable(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", "4.0.0.0")]
+ protected StatoMagDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn idxItemColumn {
+ get {
+ return this.columnidxItem;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn FamigliaColumn {
+ get {
+ return this.columnFamiglia;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn DescrizioneColumn {
+ get {
+ return this.columnDescrizione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn NomeCostruttoreColumn {
+ get {
+ return this.columnNomeCostruttore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodCostruttoreColumn {
+ get {
+ return this.columnCodCostruttore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodInternoColumn {
+ get {
+ return this.columnCodInterno;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn QtaMinColumn {
+ get {
+ return this.columnQtaMin;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn QtaLottoColumn {
+ get {
+ return this.columnQtaLotto;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn ValoreColumn {
+ get {
+ return this.columnValore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn GiacenzaColumn {
+ get {
+ return this.columnGiacenza;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodLocazioneColumn {
+ get {
+ return this.columnCodLocazione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn DescrLocazioneColumn {
+ get {
+ return this.columnDescrLocazione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn NoteColumn {
+ get {
+ return this.columnNote;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn dtLastUpdColumn {
+ get {
+ return this.columndtLastUpd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public StatoMagRow this[int index] {
+ get {
+ return ((StatoMagRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event StatoMagRowChangeEventHandler StatoMagRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event StatoMagRowChangeEventHandler StatoMagRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event StatoMagRowChangeEventHandler StatoMagRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event StatoMagRowChangeEventHandler StatoMagRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddStatoMagRow(StatoMagRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public StatoMagRow AddStatoMagRow(int idxItem, string Famiglia, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodInterno, int QtaMin, int QtaLotto, decimal Valore, int Giacenza, string CodLocazione, string DescrLocazione, string Note, System.DateTime dtLastUpd) {
+ StatoMagRow rowStatoMagRow = ((StatoMagRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ idxItem,
+ Famiglia,
+ Descrizione,
+ NomeCostruttore,
+ CodCostruttore,
+ CodInterno,
+ QtaMin,
+ QtaLotto,
+ Valore,
+ Giacenza,
+ CodLocazione,
+ DescrLocazione,
+ Note,
+ dtLastUpd};
+ rowStatoMagRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowStatoMagRow);
+ return rowStatoMagRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public StatoMagRow FindByidxItem(int idxItem) {
+ return ((StatoMagRow)(this.Rows.Find(new object[] {
+ idxItem})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ StatoMagDataTable cln = ((StatoMagDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new StatoMagDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidxItem = base.Columns["idxItem"];
+ this.columnFamiglia = base.Columns["Famiglia"];
+ this.columnDescrizione = base.Columns["Descrizione"];
+ this.columnNomeCostruttore = base.Columns["NomeCostruttore"];
+ this.columnCodCostruttore = base.Columns["CodCostruttore"];
+ this.columnCodInterno = base.Columns["CodInterno"];
+ this.columnQtaMin = base.Columns["QtaMin"];
+ this.columnQtaLotto = base.Columns["QtaLotto"];
+ this.columnValore = base.Columns["Valore"];
+ this.columnGiacenza = base.Columns["Giacenza"];
+ this.columnCodLocazione = base.Columns["CodLocazione"];
+ this.columnDescrLocazione = base.Columns["DescrLocazione"];
+ this.columnNote = base.Columns["Note"];
+ this.columndtLastUpd = base.Columns["dtLastUpd"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnidxItem = new global::System.Data.DataColumn("idxItem", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxItem);
+ this.columnFamiglia = new global::System.Data.DataColumn("Famiglia", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFamiglia);
+ this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescrizione);
+ this.columnNomeCostruttore = new global::System.Data.DataColumn("NomeCostruttore", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNomeCostruttore);
+ this.columnCodCostruttore = new global::System.Data.DataColumn("CodCostruttore", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCostruttore);
+ this.columnCodInterno = new global::System.Data.DataColumn("CodInterno", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodInterno);
+ this.columnQtaMin = new global::System.Data.DataColumn("QtaMin", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQtaMin);
+ this.columnQtaLotto = new global::System.Data.DataColumn("QtaLotto", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQtaLotto);
+ this.columnValore = new global::System.Data.DataColumn("Valore", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnValore);
+ this.columnGiacenza = new global::System.Data.DataColumn("Giacenza", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnGiacenza);
+ this.columnCodLocazione = new global::System.Data.DataColumn("CodLocazione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodLocazione);
+ this.columnDescrLocazione = new global::System.Data.DataColumn("DescrLocazione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescrLocazione);
+ this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNote);
+ this.columndtLastUpd = new global::System.Data.DataColumn("dtLastUpd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columndtLastUpd);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidxItem}, true));
+ this.columnidxItem.AllowDBNull = false;
+ this.columnidxItem.Unique = true;
+ this.columnFamiglia.AllowDBNull = false;
+ this.columnFamiglia.Caption = "Descrizione";
+ this.columnFamiglia.MaxLength = 250;
+ this.columnDescrizione.AllowDBNull = false;
+ this.columnDescrizione.MaxLength = 250;
+ this.columnNomeCostruttore.AllowDBNull = false;
+ this.columnNomeCostruttore.MaxLength = 250;
+ this.columnCodCostruttore.AllowDBNull = false;
+ this.columnCodCostruttore.MaxLength = 250;
+ this.columnCodInterno.AllowDBNull = false;
+ this.columnCodInterno.MaxLength = 50;
+ this.columnQtaMin.AllowDBNull = false;
+ this.columnQtaLotto.AllowDBNull = false;
+ this.columnValore.AllowDBNull = false;
+ this.columnGiacenza.ReadOnly = true;
+ this.columnCodLocazione.MaxLength = 50;
+ this.columnDescrLocazione.MaxLength = 50;
+ this.columnNote.AllowDBNull = false;
+ this.columnNote.MaxLength = 2147483647;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public StatoMagRow NewStatoMagRow() {
+ return ((StatoMagRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new StatoMagRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(StatoMagRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.StatoMagRowChanged != null)) {
+ this.StatoMagRowChanged(this, new StatoMagRowChangeEvent(((StatoMagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.StatoMagRowChanging != null)) {
+ this.StatoMagRowChanging(this, new StatoMagRowChangeEvent(((StatoMagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.StatoMagRowDeleted != null)) {
+ this.StatoMagRowDeleted(this, new StatoMagRowChangeEvent(((StatoMagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.StatoMagRowDeleting != null)) {
+ this.StatoMagRowDeleting(this, new StatoMagRowChangeEvent(((StatoMagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveStatoMagRow(StatoMagRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ DS_Mag ds = new DS_Mag();
+ 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 = "StatoMagDataTable";
+ 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 AnagTagsDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnTagCode;
+
+ private global::System.Data.DataColumn columnClass;
+
+ private global::System.Data.DataColumn columnTagDescr;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagTagsDataTable() {
+ this.TableName = "AnagTags";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal AnagTagsDataTable(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", "4.0.0.0")]
+ protected AnagTagsDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn TagCodeColumn {
+ get {
+ return this.columnTagCode;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn ClassColumn {
+ get {
+ return this.columnClass;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn TagDescrColumn {
+ get {
+ return this.columnTagDescr;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public AnagTagsRow this[int index] {
+ get {
+ return ((AnagTagsRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagTagsRowChangeEventHandler AnagTagsRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagTagsRowChangeEventHandler AnagTagsRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagTagsRowChangeEventHandler AnagTagsRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagTagsRowChangeEventHandler AnagTagsRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddAnagTagsRow(AnagTagsRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagTagsRow AddAnagTagsRow(string TagCode, string Class, string TagDescr) {
+ AnagTagsRow rowAnagTagsRow = ((AnagTagsRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ TagCode,
+ Class,
+ TagDescr};
+ rowAnagTagsRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagTagsRow);
+ return rowAnagTagsRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagTagsRow FindByTagCode(string TagCode) {
+ return ((AnagTagsRow)(this.Rows.Find(new object[] {
+ TagCode})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ AnagTagsDataTable cln = ((AnagTagsDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagTagsDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnTagCode = base.Columns["TagCode"];
+ this.columnClass = base.Columns["Class"];
+ this.columnTagDescr = base.Columns["TagDescr"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnTagCode = new global::System.Data.DataColumn("TagCode", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTagCode);
+ this.columnClass = new global::System.Data.DataColumn("Class", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnClass);
+ this.columnTagDescr = new global::System.Data.DataColumn("TagDescr", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTagDescr);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnTagCode}, true));
+ this.columnTagCode.AllowDBNull = false;
+ this.columnTagCode.Unique = true;
+ this.columnTagCode.MaxLength = 50;
+ this.columnClass.AllowDBNull = false;
+ this.columnClass.MaxLength = 50;
+ this.columnTagDescr.AllowDBNull = false;
+ this.columnTagDescr.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagTagsRow NewAnagTagsRow() {
+ return ((AnagTagsRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagTagsRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagTagsRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagTagsRowChanged != null)) {
+ this.AnagTagsRowChanged(this, new AnagTagsRowChangeEvent(((AnagTagsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagTagsRowChanging != null)) {
+ this.AnagTagsRowChanging(this, new AnagTagsRowChangeEvent(((AnagTagsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagTagsRowDeleted != null)) {
+ this.AnagTagsRowDeleted(this, new AnagTagsRowChangeEvent(((AnagTagsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagTagsRowDeleting != null)) {
+ this.AnagTagsRowDeleting(this, new AnagTagsRowChangeEvent(((AnagTagsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveAnagTagsRow(AnagTagsRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ DS_Mag ds = new DS_Mag();
+ 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 = "AnagTagsDataTable";
+ 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 Tag2ItemDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidxItem;
+
+ private global::System.Data.DataColumn columnTagCode;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2ItemDataTable() {
+ this.TableName = "Tag2Item";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal Tag2ItemDataTable(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", "4.0.0.0")]
+ protected Tag2ItemDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn idxItemColumn {
+ get {
+ return this.columnidxItem;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn TagCodeColumn {
+ get {
+ return this.columnTagCode;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public Tag2ItemRow this[int index] {
+ get {
+ return ((Tag2ItemRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Tag2ItemRowChangeEventHandler Tag2ItemRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Tag2ItemRowChangeEventHandler Tag2ItemRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Tag2ItemRowChangeEventHandler Tag2ItemRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Tag2ItemRowChangeEventHandler Tag2ItemRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddTag2ItemRow(Tag2ItemRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2ItemRow AddTag2ItemRow(AnagItemsRow parentAnagItemsRowByFK_Tag2Item_AnagItems, AnagTagsRow parentAnagTagsRowByFK_Tag2Item_AnagTag) {
+ Tag2ItemRow rowTag2ItemRow = ((Tag2ItemRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ null};
+ if ((parentAnagItemsRowByFK_Tag2Item_AnagItems != null)) {
+ columnValuesArray[0] = parentAnagItemsRowByFK_Tag2Item_AnagItems[0];
+ }
+ if ((parentAnagTagsRowByFK_Tag2Item_AnagTag != null)) {
+ columnValuesArray[1] = parentAnagTagsRowByFK_Tag2Item_AnagTag[0];
+ }
+ rowTag2ItemRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowTag2ItemRow);
+ return rowTag2ItemRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2ItemRow FindByidxItemTagCode(int idxItem, string TagCode) {
+ return ((Tag2ItemRow)(this.Rows.Find(new object[] {
+ idxItem,
+ TagCode})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ Tag2ItemDataTable cln = ((Tag2ItemDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new Tag2ItemDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidxItem = base.Columns["idxItem"];
+ this.columnTagCode = base.Columns["TagCode"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnidxItem = new global::System.Data.DataColumn("idxItem", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxItem);
+ this.columnTagCode = new global::System.Data.DataColumn("TagCode", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTagCode);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidxItem,
+ this.columnTagCode}, true));
+ this.columnidxItem.AllowDBNull = false;
+ this.columnTagCode.AllowDBNull = false;
+ this.columnTagCode.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2ItemRow NewTag2ItemRow() {
+ return ((Tag2ItemRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new Tag2ItemRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(Tag2ItemRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.Tag2ItemRowChanged != null)) {
+ this.Tag2ItemRowChanged(this, new Tag2ItemRowChangeEvent(((Tag2ItemRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.Tag2ItemRowChanging != null)) {
+ this.Tag2ItemRowChanging(this, new Tag2ItemRowChangeEvent(((Tag2ItemRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.Tag2ItemRowDeleted != null)) {
+ this.Tag2ItemRowDeleted(this, new Tag2ItemRowChangeEvent(((Tag2ItemRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.Tag2ItemRowDeleting != null)) {
+ this.Tag2ItemRowDeleting(this, new Tag2ItemRowChangeEvent(((Tag2ItemRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveTag2ItemRow(Tag2ItemRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ DS_Mag ds = new DS_Mag();
+ 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 = "Tag2ItemDataTable";
+ 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 Tag2MaccDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnTagCode;
+
+ private global::System.Data.DataColumn columnidxMacchina;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2MaccDataTable() {
+ this.TableName = "Tag2Macc";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal Tag2MaccDataTable(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", "4.0.0.0")]
+ protected Tag2MaccDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn TagCodeColumn {
+ get {
+ return this.columnTagCode;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn idxMacchinaColumn {
+ get {
+ return this.columnidxMacchina;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public Tag2MaccRow this[int index] {
+ get {
+ return ((Tag2MaccRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Tag2MaccRowChangeEventHandler Tag2MaccRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Tag2MaccRowChangeEventHandler Tag2MaccRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Tag2MaccRowChangeEventHandler Tag2MaccRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Tag2MaccRowChangeEventHandler Tag2MaccRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddTag2MaccRow(Tag2MaccRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2MaccRow AddTag2MaccRow(AnagTagsRow parentAnagTagsRowByFK_Tag2Macc_AnagTag, AnagMacchineRow parentAnagMacchineRowByFK_Tag2Macc_AnagMacchine) {
+ Tag2MaccRow rowTag2MaccRow = ((Tag2MaccRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ null};
+ if ((parentAnagTagsRowByFK_Tag2Macc_AnagTag != null)) {
+ columnValuesArray[0] = parentAnagTagsRowByFK_Tag2Macc_AnagTag[0];
+ }
+ if ((parentAnagMacchineRowByFK_Tag2Macc_AnagMacchine != null)) {
+ columnValuesArray[1] = parentAnagMacchineRowByFK_Tag2Macc_AnagMacchine[0];
+ }
+ rowTag2MaccRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowTag2MaccRow);
+ return rowTag2MaccRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2MaccRow FindByTagCodeidxMacchina(string TagCode, int idxMacchina) {
+ return ((Tag2MaccRow)(this.Rows.Find(new object[] {
+ TagCode,
+ idxMacchina})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ Tag2MaccDataTable cln = ((Tag2MaccDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new Tag2MaccDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnTagCode = base.Columns["TagCode"];
+ this.columnidxMacchina = base.Columns["idxMacchina"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnTagCode = new global::System.Data.DataColumn("TagCode", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTagCode);
+ this.columnidxMacchina = new global::System.Data.DataColumn("idxMacchina", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxMacchina);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnTagCode,
+ this.columnidxMacchina}, true));
+ this.columnTagCode.AllowDBNull = false;
+ this.columnTagCode.MaxLength = 50;
+ this.columnidxMacchina.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2MaccRow NewTag2MaccRow() {
+ return ((Tag2MaccRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new Tag2MaccRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(Tag2MaccRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.Tag2MaccRowChanged != null)) {
+ this.Tag2MaccRowChanged(this, new Tag2MaccRowChangeEvent(((Tag2MaccRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.Tag2MaccRowChanging != null)) {
+ this.Tag2MaccRowChanging(this, new Tag2MaccRowChangeEvent(((Tag2MaccRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.Tag2MaccRowDeleted != null)) {
+ this.Tag2MaccRowDeleted(this, new Tag2MaccRowChangeEvent(((Tag2MaccRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.Tag2MaccRowDeleting != null)) {
+ this.Tag2MaccRowDeleting(this, new Tag2MaccRowChangeEvent(((Tag2MaccRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveTag2MaccRow(Tag2MaccRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ DS_Mag ds = new DS_Mag();
+ 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 = "Tag2MaccDataTable";
+ 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 AnagMacchineDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidxMacchina;
+
+ private global::System.Data.DataColumn columnidxImpianto;
+
+ private global::System.Data.DataColumn columncodMacchina;
+
+ private global::System.Data.DataColumn columnnomeMacchina;
+
+ private global::System.Data.DataColumn columnmodello;
+
+ private global::System.Data.DataColumn columnmatricola;
+
+ private global::System.Data.DataColumn columnanno;
+
+ private global::System.Data.DataColumn columnkgPeso;
+
+ private global::System.Data.DataColumn columnkwConsumo;
+
+ private global::System.Data.DataColumn columnfunzDal;
+
+ private global::System.Data.DataColumn columnfunzAl;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagMacchineDataTable() {
+ this.TableName = "AnagMacchine";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal AnagMacchineDataTable(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", "4.0.0.0")]
+ protected AnagMacchineDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn idxMacchinaColumn {
+ get {
+ return this.columnidxMacchina;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn idxImpiantoColumn {
+ get {
+ return this.columnidxImpianto;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn codMacchinaColumn {
+ get {
+ return this.columncodMacchina;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn nomeMacchinaColumn {
+ get {
+ return this.columnnomeMacchina;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn modelloColumn {
+ get {
+ return this.columnmodello;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn matricolaColumn {
+ get {
+ return this.columnmatricola;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn annoColumn {
+ get {
+ return this.columnanno;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn kgPesoColumn {
+ get {
+ return this.columnkgPeso;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn kwConsumoColumn {
+ get {
+ return this.columnkwConsumo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn funzDalColumn {
+ get {
+ return this.columnfunzDal;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn funzAlColumn {
+ get {
+ return this.columnfunzAl;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public AnagMacchineRow this[int index] {
+ get {
+ return ((AnagMacchineRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagMacchineRowChangeEventHandler AnagMacchineRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagMacchineRowChangeEventHandler AnagMacchineRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagMacchineRowChangeEventHandler AnagMacchineRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AnagMacchineRowChangeEventHandler AnagMacchineRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddAnagMacchineRow(AnagMacchineRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagMacchineRow AddAnagMacchineRow(int idxImpianto, string codMacchina, string nomeMacchina, string modello, string matricola, int anno, double kgPeso, double kwConsumo, System.DateTime funzDal, System.DateTime funzAl) {
+ AnagMacchineRow rowAnagMacchineRow = ((AnagMacchineRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ idxImpianto,
+ codMacchina,
+ nomeMacchina,
+ modello,
+ matricola,
+ anno,
+ kgPeso,
+ kwConsumo,
+ funzDal,
+ funzAl};
+ rowAnagMacchineRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagMacchineRow);
+ return rowAnagMacchineRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagMacchineRow FindByidxMacchina(int idxMacchina) {
+ return ((AnagMacchineRow)(this.Rows.Find(new object[] {
+ idxMacchina})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ AnagMacchineDataTable cln = ((AnagMacchineDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagMacchineDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidxMacchina = base.Columns["idxMacchina"];
+ this.columnidxImpianto = base.Columns["idxImpianto"];
+ this.columncodMacchina = base.Columns["codMacchina"];
+ this.columnnomeMacchina = base.Columns["nomeMacchina"];
+ this.columnmodello = base.Columns["modello"];
+ this.columnmatricola = base.Columns["matricola"];
+ this.columnanno = base.Columns["anno"];
+ this.columnkgPeso = base.Columns["kgPeso"];
+ this.columnkwConsumo = base.Columns["kwConsumo"];
+ this.columnfunzDal = base.Columns["funzDal"];
+ this.columnfunzAl = base.Columns["funzAl"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnidxMacchina = new global::System.Data.DataColumn("idxMacchina", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxMacchina);
+ this.columnidxImpianto = new global::System.Data.DataColumn("idxImpianto", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxImpianto);
+ this.columncodMacchina = new global::System.Data.DataColumn("codMacchina", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columncodMacchina);
+ this.columnnomeMacchina = new global::System.Data.DataColumn("nomeMacchina", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnnomeMacchina);
+ this.columnmodello = new global::System.Data.DataColumn("modello", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnmodello);
+ this.columnmatricola = new global::System.Data.DataColumn("matricola", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnmatricola);
+ this.columnanno = new global::System.Data.DataColumn("anno", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnanno);
+ this.columnkgPeso = new global::System.Data.DataColumn("kgPeso", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnkgPeso);
+ this.columnkwConsumo = new global::System.Data.DataColumn("kwConsumo", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnkwConsumo);
+ this.columnfunzDal = new global::System.Data.DataColumn("funzDal", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnfunzDal);
+ this.columnfunzAl = new global::System.Data.DataColumn("funzAl", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnfunzAl);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidxMacchina}, true));
+ this.columnidxMacchina.AutoIncrement = true;
+ this.columnidxMacchina.AutoIncrementSeed = -1;
+ this.columnidxMacchina.AutoIncrementStep = -1;
+ this.columnidxMacchina.AllowDBNull = false;
+ this.columnidxMacchina.ReadOnly = true;
+ this.columnidxMacchina.Unique = true;
+ this.columncodMacchina.MaxLength = 50;
+ this.columnnomeMacchina.MaxLength = 250;
+ this.columnmodello.MaxLength = 250;
+ this.columnmatricola.MaxLength = 50;
+ this.columnkgPeso.AllowDBNull = false;
+ this.columnkwConsumo.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagMacchineRow NewAnagMacchineRow() {
+ return ((AnagMacchineRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagMacchineRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagMacchineRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagMacchineRowChanged != null)) {
+ this.AnagMacchineRowChanged(this, new AnagMacchineRowChangeEvent(((AnagMacchineRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagMacchineRowChanging != null)) {
+ this.AnagMacchineRowChanging(this, new AnagMacchineRowChangeEvent(((AnagMacchineRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagMacchineRowDeleted != null)) {
+ this.AnagMacchineRowDeleted(this, new AnagMacchineRowChangeEvent(((AnagMacchineRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagMacchineRowDeleting != null)) {
+ this.AnagMacchineRowDeleting(this, new AnagMacchineRowChangeEvent(((AnagMacchineRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveAnagMacchineRow(AnagMacchineRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ DS_Mag ds = new DS_Mag();
+ 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 = "AnagMacchineDataTable";
+ 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 SinonimiTagDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnTagCodeOrig;
+
+ private global::System.Data.DataColumn columnTagCode;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public SinonimiTagDataTable() {
+ this.TableName = "SinonimiTag";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal SinonimiTagDataTable(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", "4.0.0.0")]
+ protected SinonimiTagDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn TagCodeOrigColumn {
+ get {
+ return this.columnTagCodeOrig;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn TagCodeColumn {
+ get {
+ return this.columnTagCode;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public SinonimiTagRow this[int index] {
+ get {
+ return ((SinonimiTagRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event SinonimiTagRowChangeEventHandler SinonimiTagRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event SinonimiTagRowChangeEventHandler SinonimiTagRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event SinonimiTagRowChangeEventHandler SinonimiTagRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event SinonimiTagRowChangeEventHandler SinonimiTagRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddSinonimiTagRow(SinonimiTagRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public SinonimiTagRow AddSinonimiTagRow(string TagCodeOrig, string TagCode) {
+ SinonimiTagRow rowSinonimiTagRow = ((SinonimiTagRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ TagCodeOrig,
+ TagCode};
+ rowSinonimiTagRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowSinonimiTagRow);
+ return rowSinonimiTagRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public SinonimiTagRow FindByTagCodeOrig(string TagCodeOrig) {
+ return ((SinonimiTagRow)(this.Rows.Find(new object[] {
+ TagCodeOrig})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ SinonimiTagDataTable cln = ((SinonimiTagDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new SinonimiTagDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnTagCodeOrig = base.Columns["TagCodeOrig"];
+ this.columnTagCode = base.Columns["TagCode"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnTagCodeOrig = new global::System.Data.DataColumn("TagCodeOrig", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTagCodeOrig);
+ this.columnTagCode = new global::System.Data.DataColumn("TagCode", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTagCode);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnTagCodeOrig}, true));
+ this.columnTagCodeOrig.AllowDBNull = false;
+ this.columnTagCodeOrig.Unique = true;
+ this.columnTagCodeOrig.MaxLength = 50;
+ this.columnTagCode.AllowDBNull = false;
+ this.columnTagCode.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public SinonimiTagRow NewSinonimiTagRow() {
+ return ((SinonimiTagRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new SinonimiTagRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(SinonimiTagRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.SinonimiTagRowChanged != null)) {
+ this.SinonimiTagRowChanged(this, new SinonimiTagRowChangeEvent(((SinonimiTagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.SinonimiTagRowChanging != null)) {
+ this.SinonimiTagRowChanging(this, new SinonimiTagRowChangeEvent(((SinonimiTagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.SinonimiTagRowDeleted != null)) {
+ this.SinonimiTagRowDeleted(this, new SinonimiTagRowChangeEvent(((SinonimiTagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.SinonimiTagRowDeleting != null)) {
+ this.SinonimiTagRowDeleting(this, new SinonimiTagRowChangeEvent(((SinonimiTagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveSinonimiTagRow(SinonimiTagRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ DS_Mag ds = new DS_Mag();
+ 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 = "SinonimiTagDataTable";
+ 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 MovMagRicDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidxItem;
+
+ private global::System.Data.DataColumn columnnumIntMtz;
+
+ private global::System.Data.DataColumn columndtMov;
+
+ private global::System.Data.DataColumn columnQta;
+
+ private global::System.Data.DataColumn columnidxMacchina;
+
+ private global::System.Data.DataColumn columndtExport;
+
+ private global::System.Data.DataColumn columnFamiglia;
+
+ private global::System.Data.DataColumn columnDescrizione;
+
+ private global::System.Data.DataColumn columnNomeCostruttore;
+
+ private global::System.Data.DataColumn columnCodCostruttore;
+
+ private global::System.Data.DataColumn columnCodInterno;
+
+ private global::System.Data.DataColumn columnQtaMin;
+
+ private global::System.Data.DataColumn columnQtaLotto;
+
+ private global::System.Data.DataColumn columnValore;
+
+ private global::System.Data.DataColumn columnNote;
+
+ private global::System.Data.DataColumn columndtLastUpd;
+
+ private global::System.Data.DataColumn columnCodLocazione;
+
+ private global::System.Data.DataColumn columnDescrLocazione;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MovMagRicDataTable() {
+ this.TableName = "MovMagRic";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal MovMagRicDataTable(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", "4.0.0.0")]
+ protected MovMagRicDataTable(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", "4.0.0.0")]
+ public global::System.Data.DataColumn idxItemColumn {
+ get {
+ return this.columnidxItem;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn numIntMtzColumn {
+ get {
+ return this.columnnumIntMtz;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn dtMovColumn {
+ get {
+ return this.columndtMov;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn QtaColumn {
+ get {
+ return this.columnQta;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn idxMacchinaColumn {
+ get {
+ return this.columnidxMacchina;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn dtExportColumn {
+ get {
+ return this.columndtExport;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn FamigliaColumn {
+ get {
+ return this.columnFamiglia;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn DescrizioneColumn {
+ get {
+ return this.columnDescrizione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn NomeCostruttoreColumn {
+ get {
+ return this.columnNomeCostruttore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodCostruttoreColumn {
+ get {
+ return this.columnCodCostruttore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodInternoColumn {
+ get {
+ return this.columnCodInterno;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn QtaMinColumn {
+ get {
+ return this.columnQtaMin;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn QtaLottoColumn {
+ get {
+ return this.columnQtaLotto;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn ValoreColumn {
+ get {
+ return this.columnValore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn NoteColumn {
+ get {
+ return this.columnNote;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn dtLastUpdColumn {
+ get {
+ return this.columndtLastUpd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodLocazioneColumn {
+ get {
+ return this.columnCodLocazione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn DescrLocazioneColumn {
+ get {
+ return this.columnDescrLocazione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public MovMagRicRow this[int index] {
+ get {
+ return ((MovMagRicRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event MovMagRicRowChangeEventHandler MovMagRicRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event MovMagRicRowChangeEventHandler MovMagRicRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event MovMagRicRowChangeEventHandler MovMagRicRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event MovMagRicRowChangeEventHandler MovMagRicRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddMovMagRicRow(MovMagRicRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MovMagRicRow AddMovMagRicRow(
+ AnagItemsRow parentAnagItemsRowByFK_MovMagRic_AnagItems,
+ int numIntMtz,
+ System.DateTime dtMov,
+ int Qta,
+ int idxMacchina,
+ System.DateTime dtExport,
+ string Famiglia,
+ string Descrizione,
+ string NomeCostruttore,
+ string CodCostruttore,
+ string CodInterno,
+ int QtaMin,
+ int QtaLotto,
+ decimal Valore,
+ string Note,
+ System.DateTime dtLastUpd,
+ string CodLocazione,
+ string DescrLocazione) {
+ MovMagRicRow rowMovMagRicRow = ((MovMagRicRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ numIntMtz,
+ dtMov,
+ Qta,
+ idxMacchina,
+ dtExport,
+ Famiglia,
+ Descrizione,
+ NomeCostruttore,
+ CodCostruttore,
+ CodInterno,
+ QtaMin,
+ QtaLotto,
+ Valore,
+ Note,
+ dtLastUpd,
+ CodLocazione,
+ DescrLocazione};
+ if ((parentAnagItemsRowByFK_MovMagRic_AnagItems != null)) {
+ columnValuesArray[0] = parentAnagItemsRowByFK_MovMagRic_AnagItems[0];
+ }
+ rowMovMagRicRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowMovMagRicRow);
+ return rowMovMagRicRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MovMagRicRow FindByidxItemnumIntMtzdtMov(int idxItem, int numIntMtz, System.DateTime dtMov) {
+ return ((MovMagRicRow)(this.Rows.Find(new object[] {
+ idxItem,
+ numIntMtz,
+ dtMov})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ MovMagRicDataTable cln = ((MovMagRicDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new MovMagRicDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidxItem = base.Columns["idxItem"];
+ this.columnnumIntMtz = base.Columns["numIntMtz"];
+ this.columndtMov = base.Columns["dtMov"];
+ this.columnQta = base.Columns["Qta"];
+ this.columnidxMacchina = base.Columns["idxMacchina"];
+ this.columndtExport = base.Columns["dtExport"];
+ this.columnFamiglia = base.Columns["Famiglia"];
+ this.columnDescrizione = base.Columns["Descrizione"];
+ this.columnNomeCostruttore = base.Columns["NomeCostruttore"];
+ this.columnCodCostruttore = base.Columns["CodCostruttore"];
+ this.columnCodInterno = base.Columns["CodInterno"];
+ this.columnQtaMin = base.Columns["QtaMin"];
+ this.columnQtaLotto = base.Columns["QtaLotto"];
+ this.columnValore = base.Columns["Valore"];
+ this.columnNote = base.Columns["Note"];
+ this.columndtLastUpd = base.Columns["dtLastUpd"];
+ this.columnCodLocazione = base.Columns["CodLocazione"];
+ this.columnDescrLocazione = base.Columns["DescrLocazione"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnidxItem = new global::System.Data.DataColumn("idxItem", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxItem);
+ this.columnnumIntMtz = new global::System.Data.DataColumn("numIntMtz", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnnumIntMtz);
+ this.columndtMov = new global::System.Data.DataColumn("dtMov", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columndtMov);
+ this.columnQta = new global::System.Data.DataColumn("Qta", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQta);
+ this.columnidxMacchina = new global::System.Data.DataColumn("idxMacchina", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxMacchina);
+ this.columndtExport = new global::System.Data.DataColumn("dtExport", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columndtExport);
+ this.columnFamiglia = new global::System.Data.DataColumn("Famiglia", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFamiglia);
+ this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescrizione);
+ this.columnNomeCostruttore = new global::System.Data.DataColumn("NomeCostruttore", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNomeCostruttore);
+ this.columnCodCostruttore = new global::System.Data.DataColumn("CodCostruttore", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCostruttore);
+ this.columnCodInterno = new global::System.Data.DataColumn("CodInterno", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodInterno);
+ this.columnQtaMin = new global::System.Data.DataColumn("QtaMin", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQtaMin);
+ this.columnQtaLotto = new global::System.Data.DataColumn("QtaLotto", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQtaLotto);
+ this.columnValore = new global::System.Data.DataColumn("Valore", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnValore);
+ this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNote);
+ this.columndtLastUpd = new global::System.Data.DataColumn("dtLastUpd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columndtLastUpd);
+ this.columnCodLocazione = new global::System.Data.DataColumn("CodLocazione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodLocazione);
+ this.columnDescrLocazione = new global::System.Data.DataColumn("DescrLocazione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescrLocazione);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidxItem,
+ this.columnnumIntMtz,
+ this.columndtMov}, true));
+ this.columnidxItem.AllowDBNull = false;
+ this.columnnumIntMtz.AllowDBNull = false;
+ this.columndtMov.AllowDBNull = false;
+ this.columnQta.AllowDBNull = false;
+ this.columnidxMacchina.AllowDBNull = false;
+ this.columnFamiglia.AllowDBNull = false;
+ this.columnFamiglia.MaxLength = 50;
+ this.columnDescrizione.AllowDBNull = false;
+ this.columnDescrizione.MaxLength = 250;
+ this.columnNomeCostruttore.AllowDBNull = false;
+ this.columnNomeCostruttore.MaxLength = 250;
+ this.columnCodCostruttore.AllowDBNull = false;
+ this.columnCodCostruttore.MaxLength = 250;
+ this.columnCodInterno.AllowDBNull = false;
+ this.columnCodInterno.MaxLength = 50;
+ this.columnQtaMin.AllowDBNull = false;
+ this.columnQtaLotto.AllowDBNull = false;
+ this.columnValore.AllowDBNull = false;
+ this.columnNote.AllowDBNull = false;
+ this.columnNote.MaxLength = 2147483647;
+ this.columnCodLocazione.AllowDBNull = false;
+ this.columnCodLocazione.MaxLength = 50;
+ this.columnDescrLocazione.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MovMagRicRow NewMovMagRicRow() {
+ return ((MovMagRicRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new MovMagRicRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(MovMagRicRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.MovMagRicRowChanged != null)) {
+ this.MovMagRicRowChanged(this, new MovMagRicRowChangeEvent(((MovMagRicRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.MovMagRicRowChanging != null)) {
+ this.MovMagRicRowChanging(this, new MovMagRicRowChangeEvent(((MovMagRicRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.MovMagRicRowDeleted != null)) {
+ this.MovMagRicRowDeleted(this, new MovMagRicRowChangeEvent(((MovMagRicRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.MovMagRicRowDeleting != null)) {
+ this.MovMagRicRowDeleting(this, new MovMagRicRowChangeEvent(((MovMagRicRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveMovMagRicRow(MovMagRicRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ DS_Mag ds = new DS_Mag();
+ 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 = "MovMagRicDataTable";
+ 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 AnagLocazioniRow : global::System.Data.DataRow {
+
+ private AnagLocazioniDataTable tableAnagLocazioni;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal AnagLocazioniRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagLocazioni = ((AnagLocazioniDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodLocazione {
+ get {
+ return ((string)(this[this.tableAnagLocazioni.CodLocazioneColumn]));
+ }
+ set {
+ this[this.tableAnagLocazioni.CodLocazioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Descrizione {
+ get {
+ try {
+ return ((string)(this[this.tableAnagLocazioni.DescrizioneColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Descrizione\' in table \'AnagLocazioni\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagLocazioni.DescrizioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsDescrizioneNull() {
+ return this.IsNull(this.tableAnagLocazioni.DescrizioneColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetDescrizioneNull() {
+ this[this.tableAnagLocazioni.DescrizioneColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MagRicRow[] GetMagRicRows() {
+ if ((this.Table.ChildRelations["FK_MagRic_AnagLocazioni"] == null)) {
+ return new MagRicRow[0];
+ }
+ else {
+ return ((MagRicRow[])(base.GetChildRows(this.Table.ChildRelations["FK_MagRic_AnagLocazioni"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class MagRicRow : global::System.Data.DataRow {
+
+ private MagRicDataTable tableMagRic;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal MagRicRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableMagRic = ((MagRicDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxItem {
+ get {
+ return ((int)(this[this.tableMagRic.idxItemColumn]));
+ }
+ set {
+ this[this.tableMagRic.idxItemColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodLocazione {
+ get {
+ return ((string)(this[this.tableMagRic.CodLocazioneColumn]));
+ }
+ set {
+ this[this.tableMagRic.CodLocazioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int Giacenza {
+ get {
+ return ((int)(this[this.tableMagRic.GiacenzaColumn]));
+ }
+ set {
+ this[this.tableMagRic.GiacenzaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Note {
+ get {
+ return ((string)(this[this.tableMagRic.NoteColumn]));
+ }
+ set {
+ this[this.tableMagRic.NoteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime dtLastUpd {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableMagRic.dtLastUpdColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'dtLastUpd\' in table \'MagRic\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableMagRic.dtLastUpdColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagLocazioniRow AnagLocazioniRow {
+ get {
+ return ((AnagLocazioniRow)(this.GetParentRow(this.Table.ParentRelations["FK_MagRic_AnagLocazioni"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_MagRic_AnagLocazioni"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagItemsRow AnagItemsRow {
+ get {
+ return ((AnagItemsRow)(this.GetParentRow(this.Table.ParentRelations["FK_MagRic_AnagItems"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_MagRic_AnagItems"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsdtLastUpdNull() {
+ return this.IsNull(this.tableMagRic.dtLastUpdColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetdtLastUpdNull() {
+ this[this.tableMagRic.dtLastUpdColumn] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class AnagItemsRow : global::System.Data.DataRow {
+
+ private AnagItemsDataTable tableAnagItems;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal AnagItemsRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagItems = ((AnagItemsDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxItem {
+ get {
+ return ((int)(this[this.tableAnagItems.idxItemColumn]));
+ }
+ set {
+ this[this.tableAnagItems.idxItemColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Descrizione {
+ get {
+ return ((string)(this[this.tableAnagItems.DescrizioneColumn]));
+ }
+ set {
+ this[this.tableAnagItems.DescrizioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string NomeCostruttore {
+ get {
+ return ((string)(this[this.tableAnagItems.NomeCostruttoreColumn]));
+ }
+ set {
+ this[this.tableAnagItems.NomeCostruttoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodCostruttore {
+ get {
+ return ((string)(this[this.tableAnagItems.CodCostruttoreColumn]));
+ }
+ set {
+ this[this.tableAnagItems.CodCostruttoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodInterno {
+ get {
+ return ((string)(this[this.tableAnagItems.CodInternoColumn]));
+ }
+ set {
+ this[this.tableAnagItems.CodInternoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int QtaMin {
+ get {
+ return ((int)(this[this.tableAnagItems.QtaMinColumn]));
+ }
+ set {
+ this[this.tableAnagItems.QtaMinColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int QtaLotto {
+ get {
+ return ((int)(this[this.tableAnagItems.QtaLottoColumn]));
+ }
+ set {
+ this[this.tableAnagItems.QtaLottoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Famiglia {
+ get {
+ return ((string)(this[this.tableAnagItems.FamigliaColumn]));
+ }
+ set {
+ this[this.tableAnagItems.FamigliaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal Valore {
+ get {
+ return ((decimal)(this[this.tableAnagItems.ValoreColumn]));
+ }
+ set {
+ this[this.tableAnagItems.ValoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MagRicRow[] GetMagRicRows() {
+ if ((this.Table.ChildRelations["FK_MagRic_AnagItems"] == null)) {
+ return new MagRicRow[0];
+ }
+ else {
+ return ((MagRicRow[])(base.GetChildRows(this.Table.ChildRelations["FK_MagRic_AnagItems"])));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2ItemRow[] GetTag2ItemRows() {
+ if ((this.Table.ChildRelations["FK_Tag2Item_AnagItems"] == null)) {
+ return new Tag2ItemRow[0];
+ }
+ else {
+ return ((Tag2ItemRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Tag2Item_AnagItems"])));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MovMagRicRow[] GetMovMagRicRows() {
+ if ((this.Table.ChildRelations["FK_MovMagRic_AnagItems"] == null)) {
+ return new MovMagRicRow[0];
+ }
+ else {
+ return ((MovMagRicRow[])(base.GetChildRows(this.Table.ChildRelations["FK_MovMagRic_AnagItems"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class StatoMagRow : global::System.Data.DataRow {
+
+ private StatoMagDataTable tableStatoMag;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal StatoMagRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableStatoMag = ((StatoMagDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxItem {
+ get {
+ return ((int)(this[this.tableStatoMag.idxItemColumn]));
+ }
+ set {
+ this[this.tableStatoMag.idxItemColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Famiglia {
+ get {
+ return ((string)(this[this.tableStatoMag.FamigliaColumn]));
+ }
+ set {
+ this[this.tableStatoMag.FamigliaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Descrizione {
+ get {
+ return ((string)(this[this.tableStatoMag.DescrizioneColumn]));
+ }
+ set {
+ this[this.tableStatoMag.DescrizioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string NomeCostruttore {
+ get {
+ return ((string)(this[this.tableStatoMag.NomeCostruttoreColumn]));
+ }
+ set {
+ this[this.tableStatoMag.NomeCostruttoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodCostruttore {
+ get {
+ return ((string)(this[this.tableStatoMag.CodCostruttoreColumn]));
+ }
+ set {
+ this[this.tableStatoMag.CodCostruttoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodInterno {
+ get {
+ return ((string)(this[this.tableStatoMag.CodInternoColumn]));
+ }
+ set {
+ this[this.tableStatoMag.CodInternoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int QtaMin {
+ get {
+ return ((int)(this[this.tableStatoMag.QtaMinColumn]));
+ }
+ set {
+ this[this.tableStatoMag.QtaMinColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int QtaLotto {
+ get {
+ return ((int)(this[this.tableStatoMag.QtaLottoColumn]));
+ }
+ set {
+ this[this.tableStatoMag.QtaLottoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal Valore {
+ get {
+ return ((decimal)(this[this.tableStatoMag.ValoreColumn]));
+ }
+ set {
+ this[this.tableStatoMag.ValoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int Giacenza {
+ get {
+ try {
+ return ((int)(this[this.tableStatoMag.GiacenzaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Giacenza\' in table \'StatoMag\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStatoMag.GiacenzaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodLocazione {
+ get {
+ try {
+ return ((string)(this[this.tableStatoMag.CodLocazioneColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodLocazione\' in table \'StatoMag\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStatoMag.CodLocazioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string DescrLocazione {
+ get {
+ try {
+ return ((string)(this[this.tableStatoMag.DescrLocazioneColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescrLocazione\' in table \'StatoMag\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStatoMag.DescrLocazioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Note {
+ get {
+ return ((string)(this[this.tableStatoMag.NoteColumn]));
+ }
+ set {
+ this[this.tableStatoMag.NoteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime dtLastUpd {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableStatoMag.dtLastUpdColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'dtLastUpd\' in table \'StatoMag\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStatoMag.dtLastUpdColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsGiacenzaNull() {
+ return this.IsNull(this.tableStatoMag.GiacenzaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetGiacenzaNull() {
+ this[this.tableStatoMag.GiacenzaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsCodLocazioneNull() {
+ return this.IsNull(this.tableStatoMag.CodLocazioneColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetCodLocazioneNull() {
+ this[this.tableStatoMag.CodLocazioneColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsDescrLocazioneNull() {
+ return this.IsNull(this.tableStatoMag.DescrLocazioneColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetDescrLocazioneNull() {
+ this[this.tableStatoMag.DescrLocazioneColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsdtLastUpdNull() {
+ return this.IsNull(this.tableStatoMag.dtLastUpdColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetdtLastUpdNull() {
+ this[this.tableStatoMag.dtLastUpdColumn] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class AnagTagsRow : global::System.Data.DataRow {
+
+ private AnagTagsDataTable tableAnagTags;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal AnagTagsRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagTags = ((AnagTagsDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string TagCode {
+ get {
+ return ((string)(this[this.tableAnagTags.TagCodeColumn]));
+ }
+ set {
+ this[this.tableAnagTags.TagCodeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Class {
+ get {
+ return ((string)(this[this.tableAnagTags.ClassColumn]));
+ }
+ set {
+ this[this.tableAnagTags.ClassColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string TagDescr {
+ get {
+ return ((string)(this[this.tableAnagTags.TagDescrColumn]));
+ }
+ set {
+ this[this.tableAnagTags.TagDescrColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2ItemRow[] GetTag2ItemRows() {
+ if ((this.Table.ChildRelations["FK_Tag2Item_AnagTag"] == null)) {
+ return new Tag2ItemRow[0];
+ }
+ else {
+ return ((Tag2ItemRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Tag2Item_AnagTag"])));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2MaccRow[] GetTag2MaccRows() {
+ if ((this.Table.ChildRelations["FK_Tag2Macc_AnagTag"] == null)) {
+ return new Tag2MaccRow[0];
+ }
+ else {
+ return ((Tag2MaccRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Tag2Macc_AnagTag"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class Tag2ItemRow : global::System.Data.DataRow {
+
+ private Tag2ItemDataTable tableTag2Item;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal Tag2ItemRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableTag2Item = ((Tag2ItemDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxItem {
+ get {
+ return ((int)(this[this.tableTag2Item.idxItemColumn]));
+ }
+ set {
+ this[this.tableTag2Item.idxItemColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string TagCode {
+ get {
+ return ((string)(this[this.tableTag2Item.TagCodeColumn]));
+ }
+ set {
+ this[this.tableTag2Item.TagCodeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagItemsRow AnagItemsRow {
+ get {
+ return ((AnagItemsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Tag2Item_AnagItems"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Tag2Item_AnagItems"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagTagsRow AnagTagRow {
+ get {
+ return ((AnagTagsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Tag2Item_AnagTag"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Tag2Item_AnagTag"]);
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class Tag2MaccRow : global::System.Data.DataRow {
+
+ private Tag2MaccDataTable tableTag2Macc;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal Tag2MaccRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableTag2Macc = ((Tag2MaccDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string TagCode {
+ get {
+ return ((string)(this[this.tableTag2Macc.TagCodeColumn]));
+ }
+ set {
+ this[this.tableTag2Macc.TagCodeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxMacchina {
+ get {
+ return ((int)(this[this.tableTag2Macc.idxMacchinaColumn]));
+ }
+ set {
+ this[this.tableTag2Macc.idxMacchinaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagTagsRow AnagTagRow {
+ get {
+ return ((AnagTagsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Tag2Macc_AnagTag"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Tag2Macc_AnagTag"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagMacchineRow AnagMacchineRow {
+ get {
+ return ((AnagMacchineRow)(this.GetParentRow(this.Table.ParentRelations["FK_Tag2Macc_AnagMacchine"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Tag2Macc_AnagMacchine"]);
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class AnagMacchineRow : global::System.Data.DataRow {
+
+ private AnagMacchineDataTable tableAnagMacchine;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal AnagMacchineRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagMacchine = ((AnagMacchineDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxMacchina {
+ get {
+ return ((int)(this[this.tableAnagMacchine.idxMacchinaColumn]));
+ }
+ set {
+ this[this.tableAnagMacchine.idxMacchinaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxImpianto {
+ get {
+ try {
+ return ((int)(this[this.tableAnagMacchine.idxImpiantoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'idxImpianto\' in table \'AnagMacchine\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagMacchine.idxImpiantoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string codMacchina {
+ get {
+ try {
+ return ((string)(this[this.tableAnagMacchine.codMacchinaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'codMacchina\' in table \'AnagMacchine\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagMacchine.codMacchinaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string nomeMacchina {
+ get {
+ try {
+ return ((string)(this[this.tableAnagMacchine.nomeMacchinaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'nomeMacchina\' in table \'AnagMacchine\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagMacchine.nomeMacchinaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string modello {
+ get {
+ try {
+ return ((string)(this[this.tableAnagMacchine.modelloColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'modello\' in table \'AnagMacchine\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagMacchine.modelloColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string matricola {
+ get {
+ try {
+ return ((string)(this[this.tableAnagMacchine.matricolaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'matricola\' in table \'AnagMacchine\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagMacchine.matricolaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int anno {
+ get {
+ try {
+ return ((int)(this[this.tableAnagMacchine.annoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'anno\' in table \'AnagMacchine\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagMacchine.annoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public double kgPeso {
+ get {
+ return ((double)(this[this.tableAnagMacchine.kgPesoColumn]));
+ }
+ set {
+ this[this.tableAnagMacchine.kgPesoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public double kwConsumo {
+ get {
+ return ((double)(this[this.tableAnagMacchine.kwConsumoColumn]));
+ }
+ set {
+ this[this.tableAnagMacchine.kwConsumoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime funzDal {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableAnagMacchine.funzDalColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'funzDal\' in table \'AnagMacchine\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagMacchine.funzDalColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime funzAl {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableAnagMacchine.funzAlColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'funzAl\' in table \'AnagMacchine\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagMacchine.funzAlColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsidxImpiantoNull() {
+ return this.IsNull(this.tableAnagMacchine.idxImpiantoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetidxImpiantoNull() {
+ this[this.tableAnagMacchine.idxImpiantoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IscodMacchinaNull() {
+ return this.IsNull(this.tableAnagMacchine.codMacchinaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetcodMacchinaNull() {
+ this[this.tableAnagMacchine.codMacchinaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsnomeMacchinaNull() {
+ return this.IsNull(this.tableAnagMacchine.nomeMacchinaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetnomeMacchinaNull() {
+ this[this.tableAnagMacchine.nomeMacchinaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsmodelloNull() {
+ return this.IsNull(this.tableAnagMacchine.modelloColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetmodelloNull() {
+ this[this.tableAnagMacchine.modelloColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsmatricolaNull() {
+ return this.IsNull(this.tableAnagMacchine.matricolaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetmatricolaNull() {
+ this[this.tableAnagMacchine.matricolaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsannoNull() {
+ return this.IsNull(this.tableAnagMacchine.annoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetannoNull() {
+ this[this.tableAnagMacchine.annoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsfunzDalNull() {
+ return this.IsNull(this.tableAnagMacchine.funzDalColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetfunzDalNull() {
+ this[this.tableAnagMacchine.funzDalColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsfunzAlNull() {
+ return this.IsNull(this.tableAnagMacchine.funzAlColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetfunzAlNull() {
+ this[this.tableAnagMacchine.funzAlColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2MaccRow[] GetTag2MaccRows() {
+ if ((this.Table.ChildRelations["FK_Tag2Macc_AnagMacchine"] == null)) {
+ return new Tag2MaccRow[0];
+ }
+ else {
+ return ((Tag2MaccRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Tag2Macc_AnagMacchine"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class SinonimiTagRow : global::System.Data.DataRow {
+
+ private SinonimiTagDataTable tableSinonimiTag;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal SinonimiTagRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableSinonimiTag = ((SinonimiTagDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string TagCodeOrig {
+ get {
+ return ((string)(this[this.tableSinonimiTag.TagCodeOrigColumn]));
+ }
+ set {
+ this[this.tableSinonimiTag.TagCodeOrigColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string TagCode {
+ get {
+ return ((string)(this[this.tableSinonimiTag.TagCodeColumn]));
+ }
+ set {
+ this[this.tableSinonimiTag.TagCodeColumn] = value;
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class MovMagRicRow : global::System.Data.DataRow {
+
+ private MovMagRicDataTable tableMovMagRic;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal MovMagRicRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableMovMagRic = ((MovMagRicDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxItem {
+ get {
+ return ((int)(this[this.tableMovMagRic.idxItemColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.idxItemColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int numIntMtz {
+ get {
+ return ((int)(this[this.tableMovMagRic.numIntMtzColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.numIntMtzColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime dtMov {
+ get {
+ return ((global::System.DateTime)(this[this.tableMovMagRic.dtMovColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.dtMovColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int Qta {
+ get {
+ return ((int)(this[this.tableMovMagRic.QtaColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.QtaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxMacchina {
+ get {
+ return ((int)(this[this.tableMovMagRic.idxMacchinaColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.idxMacchinaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime dtExport {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableMovMagRic.dtExportColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'dtExport\' in table \'MovMagRic\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableMovMagRic.dtExportColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Famiglia {
+ get {
+ return ((string)(this[this.tableMovMagRic.FamigliaColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.FamigliaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Descrizione {
+ get {
+ return ((string)(this[this.tableMovMagRic.DescrizioneColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.DescrizioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string NomeCostruttore {
+ get {
+ return ((string)(this[this.tableMovMagRic.NomeCostruttoreColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.NomeCostruttoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodCostruttore {
+ get {
+ return ((string)(this[this.tableMovMagRic.CodCostruttoreColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.CodCostruttoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodInterno {
+ get {
+ return ((string)(this[this.tableMovMagRic.CodInternoColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.CodInternoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int QtaMin {
+ get {
+ return ((int)(this[this.tableMovMagRic.QtaMinColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.QtaMinColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int QtaLotto {
+ get {
+ return ((int)(this[this.tableMovMagRic.QtaLottoColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.QtaLottoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal Valore {
+ get {
+ return ((decimal)(this[this.tableMovMagRic.ValoreColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.ValoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Note {
+ get {
+ return ((string)(this[this.tableMovMagRic.NoteColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.NoteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime dtLastUpd {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableMovMagRic.dtLastUpdColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'dtLastUpd\' in table \'MovMagRic\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableMovMagRic.dtLastUpdColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodLocazione {
+ get {
+ return ((string)(this[this.tableMovMagRic.CodLocazioneColumn]));
+ }
+ set {
+ this[this.tableMovMagRic.CodLocazioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string DescrLocazione {
+ get {
+ try {
+ return ((string)(this[this.tableMovMagRic.DescrLocazioneColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescrLocazione\' in table \'MovMagRic\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableMovMagRic.DescrLocazioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagItemsRow AnagItemsRow {
+ get {
+ return ((AnagItemsRow)(this.GetParentRow(this.Table.ParentRelations["FK_MovMagRic_AnagItems"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_MovMagRic_AnagItems"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsdtExportNull() {
+ return this.IsNull(this.tableMovMagRic.dtExportColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetdtExportNull() {
+ this[this.tableMovMagRic.dtExportColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsdtLastUpdNull() {
+ return this.IsNull(this.tableMovMagRic.dtLastUpdColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetdtLastUpdNull() {
+ this[this.tableMovMagRic.dtLastUpdColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsDescrLocazioneNull() {
+ return this.IsNull(this.tableMovMagRic.DescrLocazioneColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetDescrLocazioneNull() {
+ this[this.tableMovMagRic.DescrLocazioneColumn] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class AnagLocazioniRowChangeEvent : global::System.EventArgs {
+
+ private AnagLocazioniRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagLocazioniRowChangeEvent(AnagLocazioniRow 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", "4.0.0.0")]
+ public AnagLocazioniRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public class MagRicRowChangeEvent : global::System.EventArgs {
+
+ private MagRicRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MagRicRowChangeEvent(MagRicRow 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", "4.0.0.0")]
+ public MagRicRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public class AnagItemsRowChangeEvent : global::System.EventArgs {
+
+ private AnagItemsRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagItemsRowChangeEvent(AnagItemsRow 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", "4.0.0.0")]
+ public AnagItemsRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public class StatoMagRowChangeEvent : global::System.EventArgs {
+
+ private StatoMagRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public StatoMagRowChangeEvent(StatoMagRow 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", "4.0.0.0")]
+ public StatoMagRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public class AnagTagsRowChangeEvent : global::System.EventArgs {
+
+ private AnagTagsRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagTagsRowChangeEvent(AnagTagsRow 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", "4.0.0.0")]
+ public AnagTagsRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public class Tag2ItemRowChangeEvent : global::System.EventArgs {
+
+ private Tag2ItemRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2ItemRowChangeEvent(Tag2ItemRow 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", "4.0.0.0")]
+ public Tag2ItemRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public class Tag2MaccRowChangeEvent : global::System.EventArgs {
+
+ private Tag2MaccRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Tag2MaccRowChangeEvent(Tag2MaccRow 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", "4.0.0.0")]
+ public Tag2MaccRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public class AnagMacchineRowChangeEvent : global::System.EventArgs {
+
+ private AnagMacchineRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagMacchineRowChangeEvent(AnagMacchineRow 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", "4.0.0.0")]
+ public AnagMacchineRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public class SinonimiTagRowChangeEvent : global::System.EventArgs {
+
+ private SinonimiTagRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public SinonimiTagRowChangeEvent(SinonimiTagRow 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", "4.0.0.0")]
+ public SinonimiTagRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ public class MovMagRicRowChangeEvent : global::System.EventArgs {
+
+ private MovMagRicRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public MovMagRicRowChangeEvent(MovMagRicRow 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", "4.0.0.0")]
+ public MovMagRicRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+ }
+}
+namespace GIM_data.DS_MagTableAdapters {
+
+
+ ///
+ ///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 AnagLocazioniTableAdapter : 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", "4.0.0.0")]
+ public AnagLocazioniTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "AnagLocazioni";
+ tableMapping.ColumnMappings.Add("CodLocazione", "CodLocazione");
+ tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagLocazioni] WHERE (([CodLocazione] = @Original_CodLocazione" +
+ "))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLocazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLocazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagLocazioni] ([CodLocazione], [Descrizione]) VALUES (@CodLoc" +
+ "azione, @Descrizione)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLocazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLocazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", 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 = "UPDATE [dbo].[AnagLocazioni] SET [CodLocazione] = @CodLocazione, [Descrizione] = " +
+ "@Descrizione WHERE (([CodLocazione] = @Original_CodLocazione))";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLocazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLocazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLocazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLocazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodLocazione, Descrizione FROM dbo.AnagLocazioni";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_AnLoc_deleteQuery";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLocazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_AnLoc_insertQuery";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLocazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_AnLoc_updateQuery";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLocazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLocazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(DS_Mag.AnagLocazioniDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.AnagLocazioniDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.AnagLocazioniDataTable dataTable = new DS_Mag.AnagLocazioniDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag.AnagLocazioniDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag dataSet) {
+ return this.Adapter.Update(dataSet, "AnagLocazioni");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodLocazione) {
+ if ((Original_CodLocazione == null)) {
+ throw new global::System.ArgumentNullException("Original_CodLocazione");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodLocazione));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodLocazione, string Descrizione) {
+ if ((CodLocazione == null)) {
+ throw new global::System.ArgumentNullException("CodLocazione");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodLocazione));
+ }
+ if ((Descrizione == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Descrizione));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodLocazione, string Descrizione, string Original_CodLocazione) {
+ if ((CodLocazione == null)) {
+ throw new global::System.ArgumentNullException("CodLocazione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodLocazione));
+ }
+ if ((Descrizione == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Descrizione));
+ }
+ if ((Original_CodLocazione == null)) {
+ throw new global::System.ArgumentNullException("Original_CodLocazione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodLocazione));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string Descrizione, string Original_CodLocazione) {
+ return this.Update(Original_CodLocazione, Descrizione, Original_CodLocazione);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)]
+ public virtual int deleteQuery(string Original_CodLocazione) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Original_CodLocazione == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_CodLocazione));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)]
+ public virtual int insertQuery(string CodLocazione, string Descrizione) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
+ if ((CodLocazione == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodLocazione));
+ }
+ if ((Descrizione == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Descrizione));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
+ public virtual int updateQuery(string CodLocazione, string Descrizione, string Original_CodLocazione) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ if ((CodLocazione == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodLocazione));
+ }
+ if ((Descrizione == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Descrizione));
+ }
+ if ((Original_CodLocazione == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(Original_CodLocazione));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
+ ///
+ ///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 MagRicTableAdapter : 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", "4.0.0.0")]
+ public MagRicTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "MagRic";
+ tableMapping.ColumnMappings.Add("idxItem", "idxItem");
+ tableMapping.ColumnMappings.Add("CodLocazione", "CodLocazione");
+ tableMapping.ColumnMappings.Add("Giacenza", "Giacenza");
+ tableMapping.ColumnMappings.Add("Note", "Note");
+ tableMapping.ColumnMappings.Add("dtLastUpd", "dtLastUpd");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[MagRic] WHERE (([idxItem] = @Original_idxItem) AND ([CodLocazi" +
+ "one] = @Original_CodLocazione))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLocazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLocazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[MagRic] ([idxItem], [CodLocazione], [Giacenza], [Note], [dtLas" +
+ "tUpd]) VALUES (@idxItem, @CodLocazione, @Giacenza, @Note, @dtLastUpd)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLocazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLocazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Giacenza", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Giacenza", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dtLastUpd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtLastUpd", 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 = "UPDATE [dbo].[MagRic] SET [idxItem] = @idxItem, [CodLocazione] = @CodLocazione, [" +
+ "Giacenza] = @Giacenza, [Note] = @Note, [dtLastUpd] = @dtLastUpd WHERE (([idxItem" +
+ "] = @Original_idxItem) AND ([CodLocazione] = @Original_CodLocazione))";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLocazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLocazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Giacenza", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Giacenza", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dtLastUpd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtLastUpd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLocazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLocazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 = "SELECT idxItem, CodLocazione, Giacenza, Note, dtLastUpd FROM dbo.MagRic";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(DS_Mag.MagRicDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.MagRicDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.MagRicDataTable dataTable = new DS_Mag.MagRicDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag.MagRicDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag dataSet) {
+ return this.Adapter.Update(dataSet, "MagRic");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_idxItem, string Original_CodLocazione) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxItem));
+ if ((Original_CodLocazione == null)) {
+ throw new global::System.ArgumentNullException("Original_CodLocazione");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodLocazione));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(int idxItem, string CodLocazione, int Giacenza, string Note, global::System.Nullable dtLastUpd) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxItem));
+ if ((CodLocazione == null)) {
+ throw new global::System.ArgumentNullException("CodLocazione");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodLocazione));
+ }
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Giacenza));
+ if ((Note == null)) {
+ throw new global::System.ArgumentNullException("Note");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Note));
+ }
+ if ((dtLastUpd.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(dtLastUpd.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(int idxItem, string CodLocazione, int Giacenza, string Note, global::System.Nullable dtLastUpd, int Original_idxItem, string Original_CodLocazione) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxItem));
+ if ((CodLocazione == null)) {
+ throw new global::System.ArgumentNullException("CodLocazione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodLocazione));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Giacenza));
+ if ((Note == null)) {
+ throw new global::System.ArgumentNullException("Note");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Note));
+ }
+ if ((dtLastUpd.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(dtLastUpd.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_idxItem));
+ if ((Original_CodLocazione == null)) {
+ throw new global::System.ArgumentNullException("Original_CodLocazione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodLocazione));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(int Giacenza, string Note, global::System.Nullable dtLastUpd, int Original_idxItem, string Original_CodLocazione) {
+ return this.Update(Original_idxItem, Original_CodLocazione, Giacenza, Note, dtLastUpd, Original_idxItem, Original_CodLocazione);
+ }
+ }
+
+ ///
+ ///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 AnagItemsTableAdapter : 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", "4.0.0.0")]
+ public AnagItemsTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "AnagItems";
+ tableMapping.ColumnMappings.Add("idxItem", "idxItem");
+ tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
+ tableMapping.ColumnMappings.Add("NomeCostruttore", "NomeCostruttore");
+ tableMapping.ColumnMappings.Add("CodCostruttore", "CodCostruttore");
+ tableMapping.ColumnMappings.Add("CodSomaschini", "CodInterno");
+ tableMapping.ColumnMappings.Add("QtaMin", "QtaMin");
+ tableMapping.ColumnMappings.Add("QtaLotto", "QtaLotto");
+ tableMapping.ColumnMappings.Add("Famiglia", "Famiglia");
+ tableMapping.ColumnMappings.Add("Valore", "Valore");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagItems] WHERE (([idxItem] = @Original_idxItem))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagItems] ([Famiglia], [Descrizione], [NomeCostruttore], [CodCostruttore], [CodSomaschini], [QtaMin], [QtaLotto], [Valore]) VALUES (@Famiglia, @Descrizione, @NomeCostruttore, @CodCostruttore, @CodSomaschini, @QtaMin, @QtaLotto, @Valore)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NomeCostruttore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NomeCostruttore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCostruttore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCostruttore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSomaschini", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSomaschini", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaMin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaMin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaLotto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaLotto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Valore", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "Valore", 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 = @"UPDATE [dbo].[AnagItems] SET [Famiglia] = @Famiglia, [Descrizione] = @Descrizione, [NomeCostruttore] = @NomeCostruttore, [CodCostruttore] = @CodCostruttore, [CodSomaschini] = @CodSomaschini, [QtaMin] = @QtaMin, [QtaLotto] = @QtaLotto, [Valore] = @Valore WHERE (([idxItem] = @Original_idxItem))";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NomeCostruttore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NomeCostruttore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCostruttore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCostruttore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSomaschini", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSomaschini", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaMin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaMin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaLotto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaLotto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Valore", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "Valore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.AnagItems";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_AnItems_getByTag";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(DS_Mag.AnagItemsDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.AnagItemsDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.AnagItemsDataTable dataTable = new DS_Mag.AnagItemsDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.AnagItemsDataTable getByTag(string TagCode) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((TagCode == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TagCode));
+ }
+ DS_Mag.AnagItemsDataTable dataTable = new DS_Mag.AnagItemsDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag.AnagItemsDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag dataSet) {
+ return this.Adapter.Update(dataSet, "AnagItems");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_idxItem) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxItem));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string Famiglia, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodSomaschini, int QtaMin, int QtaLotto, decimal Valore) {
+ if ((Famiglia == null)) {
+ throw new global::System.ArgumentNullException("Famiglia");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Famiglia));
+ }
+ if ((Descrizione == null)) {
+ throw new global::System.ArgumentNullException("Descrizione");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Descrizione));
+ }
+ if ((NomeCostruttore == null)) {
+ throw new global::System.ArgumentNullException("NomeCostruttore");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(NomeCostruttore));
+ }
+ if ((CodCostruttore == null)) {
+ throw new global::System.ArgumentNullException("CodCostruttore");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodCostruttore));
+ }
+ if ((CodSomaschini == null)) {
+ throw new global::System.ArgumentNullException("CodSomaschini");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodSomaschini));
+ }
+ this.Adapter.InsertCommand.Parameters[5].Value = ((int)(QtaMin));
+ this.Adapter.InsertCommand.Parameters[6].Value = ((int)(QtaLotto));
+ this.Adapter.InsertCommand.Parameters[7].Value = ((decimal)(Valore));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string Famiglia, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodSomaschini, int QtaMin, int QtaLotto, decimal Valore, int Original_idxItem) {
+ if ((Famiglia == null)) {
+ throw new global::System.ArgumentNullException("Famiglia");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Famiglia));
+ }
+ if ((Descrizione == null)) {
+ throw new global::System.ArgumentNullException("Descrizione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Descrizione));
+ }
+ if ((NomeCostruttore == null)) {
+ throw new global::System.ArgumentNullException("NomeCostruttore");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(NomeCostruttore));
+ }
+ if ((CodCostruttore == null)) {
+ throw new global::System.ArgumentNullException("CodCostruttore");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodCostruttore));
+ }
+ if ((CodSomaschini == null)) {
+ throw new global::System.ArgumentNullException("CodSomaschini");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodSomaschini));
+ }
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(QtaMin));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(QtaLotto));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Valore));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idxItem));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+ }
+
+ ///
+ ///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 StatoMagTableAdapter : 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", "4.0.0.0")]
+ public StatoMagTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "StatoMag";
+ tableMapping.ColumnMappings.Add("idxItem", "idxItem");
+ tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
+ tableMapping.ColumnMappings.Add("NomeCostruttore", "NomeCostruttore");
+ tableMapping.ColumnMappings.Add("CodCostruttore", "CodCostruttore");
+ tableMapping.ColumnMappings.Add("CodSomaschini", "CodInterno");
+ tableMapping.ColumnMappings.Add("QtaMin", "QtaMin");
+ tableMapping.ColumnMappings.Add("QtaLotto", "QtaLotto");
+ tableMapping.ColumnMappings.Add("Valore", "Valore");
+ tableMapping.ColumnMappings.Add("Giacenza", "Giacenza");
+ tableMapping.ColumnMappings.Add("CodLocazione", "CodLocazione");
+ tableMapping.ColumnMappings.Add("DescrLocazione", "DescrLocazione");
+ tableMapping.ColumnMappings.Add("Note", "Note");
+ tableMapping.ColumnMappings.Add("dtLastUpd", "dtLastUpd");
+ tableMapping.ColumnMappings.Add("Famiglia", "Famiglia");
+ tableMapping.ColumnMappings.Add("CodInterno", "CodInterno");
+ this._adapter.TableMappings.Add(tableMapping);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_StatoMag";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_StatoMag_delete";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_StatoMag_getByDescr";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_StatoMag_getByIdxMacchina";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[4].Connection = this.Connection;
+ this._commandCollection[4].CommandText = "dbo.stp_StatoMag_insert";
+ this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NomeCostruttore", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCostruttore", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodInterno", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaMin", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaLotto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Valore", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Giacenza", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLocazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[5].Connection = this.Connection;
+ this._commandCollection[5].CommandText = "dbo.stp_StatoMag_update";
+ this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Famiglia", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NomeCostruttore", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCostruttore", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodInterno", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaMin", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaLotto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Valore", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLocazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(DS_Mag.StatoMagDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.StatoMagDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.StatoMagDataTable dataTable = new DS_Mag.StatoMagDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.StatoMagDataTable getByDescr(string Descrizione) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((Descrizione == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Descrizione));
+ }
+ DS_Mag.StatoMagDataTable dataTable = new DS_Mag.StatoMagDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.StatoMagDataTable getByIdxMacc(global::System.Nullable idxMacchina) {
+ this.Adapter.SelectCommand = this.CommandCollection[3];
+ if ((idxMacchina.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxMacchina.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_Mag.StatoMagDataTable dataTable = new DS_Mag.StatoMagDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int deleteQuery(global::System.Nullable Original_idxItem) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Original_idxItem.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(Original_idxItem.Value));
+ }
+ else {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int insertQuery(string Descrizione, string NomeCostruttore, string CodCostruttore, string CodInterno, global::System.Nullable QtaMin, global::System.Nullable QtaLotto, global::System.Nullable Valore, global::System.Nullable Giacenza, string CodLocazione, string Note) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
+ if ((Descrizione == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Descrizione));
+ }
+ if ((NomeCostruttore == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(NomeCostruttore));
+ }
+ if ((CodCostruttore == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(CodCostruttore));
+ }
+ if ((CodInterno == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(CodInterno));
+ }
+ if ((QtaMin.HasValue == true)) {
+ command.Parameters[5].Value = ((int)(QtaMin.Value));
+ }
+ else {
+ command.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((QtaLotto.HasValue == true)) {
+ command.Parameters[6].Value = ((int)(QtaLotto.Value));
+ }
+ else {
+ command.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((Valore.HasValue == true)) {
+ command.Parameters[7].Value = ((decimal)(Valore.Value));
+ }
+ else {
+ command.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((Giacenza.HasValue == true)) {
+ command.Parameters[8].Value = ((int)(Giacenza.Value));
+ }
+ else {
+ command.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((CodLocazione == null)) {
+ command.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[9].Value = ((string)(CodLocazione));
+ }
+ if ((Note == null)) {
+ command.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[10].Value = ((string)(Note));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updateQuery(global::System.Nullable Original_idxItem, string Famiglia, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodInterno, global::System.Nullable QtaMin, global::System.Nullable QtaLotto, global::System.Nullable Valore, string CodLocazione, string Note) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
+ if ((Original_idxItem.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(Original_idxItem.Value));
+ }
+ else {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((Famiglia == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Famiglia));
+ }
+ if ((Descrizione == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(Descrizione));
+ }
+ if ((NomeCostruttore == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(NomeCostruttore));
+ }
+ if ((CodCostruttore == null)) {
+ command.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[5].Value = ((string)(CodCostruttore));
+ }
+ if ((CodInterno == null)) {
+ command.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[6].Value = ((string)(CodInterno));
+ }
+ if ((QtaMin.HasValue == true)) {
+ command.Parameters[7].Value = ((int)(QtaMin.Value));
+ }
+ else {
+ command.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((QtaLotto.HasValue == true)) {
+ command.Parameters[8].Value = ((int)(QtaLotto.Value));
+ }
+ else {
+ command.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((Valore.HasValue == true)) {
+ command.Parameters[9].Value = ((decimal)(Valore.Value));
+ }
+ else {
+ command.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ if ((CodLocazione == null)) {
+ command.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[10].Value = ((string)(CodLocazione));
+ }
+ if ((Note == null)) {
+ command.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[11].Value = ((string)(Note));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
+ ///
+ ///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 AnagTagsTableAdapter : 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", "4.0.0.0")]
+ public AnagTagsTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "AnagTags";
+ tableMapping.ColumnMappings.Add("TagCode", "TagCode");
+ tableMapping.ColumnMappings.Add("Class", "Class");
+ tableMapping.ColumnMappings.Add("TagDescr", "TagDescr");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [AnagTags] WHERE (([TagCode] = @Original_TagCode))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [AnagTags] ([TagCode], [Class], [TagDescr]) VALUES (@TagCode, @Class," +
+ " @TagDescr)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Class", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Class", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagDescr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagDescr", 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 = "UPDATE [AnagTags] SET [TagCode] = @TagCode, [Class] = @Class, [TagDescr] = @TagDe" +
+ "scr WHERE (([TagCode] = @Original_TagCode))";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Class", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Class", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagDescr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagDescr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT TagCode, Class, TagDescr\r\nFROM AnagTags";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_AnTag_avail4Item";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxItem", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_AnTag_deleteQuery";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_AnTag_getByKey";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[4].Connection = this.Connection;
+ this._commandCollection[4].CommandText = "dbo.stp_AnTag_insertQuery";
+ this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Class", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagDescr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[5].Connection = this.Connection;
+ this._commandCollection[5].CommandText = "dbo.stp_AnTag_updateQuery";
+ this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Class", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagDescr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(DS_Mag.AnagTagsDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.AnagTagsDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.AnagTagsDataTable dataTable = new DS_Mag.AnagTagsDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.AnagTagsDataTable avail4item(global::System.Nullable idxItem) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((idxItem.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxItem.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_Mag.AnagTagsDataTable dataTable = new DS_Mag.AnagTagsDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.AnagTagsDataTable getByKey(string TagCode) {
+ this.Adapter.SelectCommand = this.CommandCollection[3];
+ if ((TagCode == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TagCode));
+ }
+ DS_Mag.AnagTagsDataTable dataTable = new DS_Mag.AnagTagsDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag.AnagTagsDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag dataSet) {
+ return this.Adapter.Update(dataSet, "AnagTags");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_TagCode) {
+ if ((Original_TagCode == null)) {
+ throw new global::System.ArgumentNullException("Original_TagCode");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_TagCode));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string TagCode, string Class, string TagDescr) {
+ if ((TagCode == null)) {
+ throw new global::System.ArgumentNullException("TagCode");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TagCode));
+ }
+ if ((Class == null)) {
+ throw new global::System.ArgumentNullException("Class");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Class));
+ }
+ if ((TagDescr == null)) {
+ throw new global::System.ArgumentNullException("TagDescr");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(TagDescr));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string TagCode, string Class, string TagDescr, string Original_TagCode) {
+ if ((TagCode == null)) {
+ throw new global::System.ArgumentNullException("TagCode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TagCode));
+ }
+ if ((Class == null)) {
+ throw new global::System.ArgumentNullException("Class");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Class));
+ }
+ if ((TagDescr == null)) {
+ throw new global::System.ArgumentNullException("TagDescr");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(TagDescr));
+ }
+ if ((Original_TagCode == null)) {
+ throw new global::System.ArgumentNullException("Original_TagCode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_TagCode));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string Class, string TagDescr, string Original_TagCode) {
+ return this.Update(Original_TagCode, Class, TagDescr, Original_TagCode);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int deleteQuery(string Original_TagCode) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
+ if ((Original_TagCode == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_TagCode));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int insertQuery(string TagCode, string Class, string TagDescr) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
+ if ((TagCode == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(TagCode));
+ }
+ if ((Class == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Class));
+ }
+ if ((TagDescr == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(TagDescr));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updateQuery(string TagCode, string Class, string TagDescr, string Original_TagCode) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
+ if ((TagCode == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(TagCode));
+ }
+ if ((Class == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Class));
+ }
+ if ((TagDescr == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(TagDescr));
+ }
+ if ((Original_TagCode == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(Original_TagCode));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
+ ///
+ ///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 Tag2ItemTableAdapter : 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", "4.0.0.0")]
+ public Tag2ItemTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "Tag2Item";
+ tableMapping.ColumnMappings.Add("idxItem", "idxItem");
+ tableMapping.ColumnMappings.Add("TagCode", "TagCode");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag2Item] WHERE (([idxItem] = @Original_idxItem) AND ([TagCode" +
+ "] = @Original_TagCode))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag2Item] ([idxItem], [TagCode]) VALUES (@idxItem, @TagCode)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", 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 = "UPDATE [dbo].[Tag2Item] SET [idxItem] = @idxItem, [TagCode] = @TagCode WHERE (([i" +
+ "dxItem] = @Original_idxItem) AND ([TagCode] = @Original_TagCode))";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT idxItem, TagCode FROM dbo.Tag2Item";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_T2I_getByIdxItem";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxItem", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_T2I_getByTag";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(DS_Mag.Tag2ItemDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.Tag2ItemDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.Tag2ItemDataTable dataTable = new DS_Mag.Tag2ItemDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.Tag2ItemDataTable getByItem(global::System.Nullable idxItem) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((idxItem.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxItem.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_Mag.Tag2ItemDataTable dataTable = new DS_Mag.Tag2ItemDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.Tag2ItemDataTable getByTag(string TagCode) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((TagCode == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TagCode));
+ }
+ DS_Mag.Tag2ItemDataTable dataTable = new DS_Mag.Tag2ItemDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag.Tag2ItemDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag dataSet) {
+ return this.Adapter.Update(dataSet, "Tag2Item");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_idxItem, string Original_TagCode) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxItem));
+ if ((Original_TagCode == null)) {
+ throw new global::System.ArgumentNullException("Original_TagCode");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_TagCode));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(int idxItem, string TagCode) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxItem));
+ if ((TagCode == null)) {
+ throw new global::System.ArgumentNullException("TagCode");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(TagCode));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(int idxItem, string TagCode, int Original_idxItem, string Original_TagCode) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxItem));
+ if ((TagCode == null)) {
+ throw new global::System.ArgumentNullException("TagCode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(TagCode));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_idxItem));
+ if ((Original_TagCode == null)) {
+ throw new global::System.ArgumentNullException("Original_TagCode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_TagCode));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(int Original_idxItem, string Original_TagCode) {
+ return this.Update(Original_idxItem, Original_TagCode, Original_idxItem, Original_TagCode);
+ }
+ }
+
+ ///
+ ///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 Tag2MaccTableAdapter : 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", "4.0.0.0")]
+ public Tag2MaccTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "Tag2Macc";
+ tableMapping.ColumnMappings.Add("TagCode", "TagCode");
+ tableMapping.ColumnMappings.Add("idxMacchina", "idxMacchina");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag2Macc] WHERE (([TagCode] = @Original_TagCode) AND ([idxMacc" +
+ "hina] = @Original_idxMacchina))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag2Macc] ([TagCode], [idxMacchina]) VALUES (@TagCode, @idxMac" +
+ "china)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", 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 = "UPDATE [dbo].[Tag2Macc] SET [TagCode] = @TagCode, [idxMacchina] = @idxMacchina WH" +
+ "ERE (([TagCode] = @Original_TagCode) AND ([idxMacchina] = @Original_idxMacchina)" +
+ ")";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT TagCode, idxMacchina FROM dbo.Tag2Macc";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_T2M_getByTag";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(DS_Mag.Tag2MaccDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.Tag2MaccDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.Tag2MaccDataTable dataTable = new DS_Mag.Tag2MaccDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.Tag2MaccDataTable getByTag(string TagCode) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((TagCode == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TagCode));
+ }
+ DS_Mag.Tag2MaccDataTable dataTable = new DS_Mag.Tag2MaccDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag.Tag2MaccDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag dataSet) {
+ return this.Adapter.Update(dataSet, "Tag2Macc");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_TagCode, int Original_idxMacchina) {
+ if ((Original_TagCode == null)) {
+ throw new global::System.ArgumentNullException("Original_TagCode");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_TagCode));
+ }
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_idxMacchina));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string TagCode, int idxMacchina) {
+ if ((TagCode == null)) {
+ throw new global::System.ArgumentNullException("TagCode");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TagCode));
+ }
+ this.Adapter.InsertCommand.Parameters[1].Value = ((int)(idxMacchina));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string TagCode, int idxMacchina, string Original_TagCode, int Original_idxMacchina) {
+ if ((TagCode == null)) {
+ throw new global::System.ArgumentNullException("TagCode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TagCode));
+ }
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(idxMacchina));
+ if ((Original_TagCode == null)) {
+ throw new global::System.ArgumentNullException("Original_TagCode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_TagCode));
+ }
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_idxMacchina));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string Original_TagCode, int Original_idxMacchina) {
+ return this.Update(Original_TagCode, Original_idxMacchina, Original_TagCode, Original_idxMacchina);
+ }
+ }
+
+ ///
+ ///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 AnagMacchineTableAdapter : 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", "4.0.0.0")]
+ public AnagMacchineTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "AnagMacchine";
+ tableMapping.ColumnMappings.Add("idxMacchina", "idxMacchina");
+ tableMapping.ColumnMappings.Add("idxImpianto", "idxImpianto");
+ tableMapping.ColumnMappings.Add("codMacchina", "codMacchina");
+ tableMapping.ColumnMappings.Add("nomeMacchina", "nomeMacchina");
+ tableMapping.ColumnMappings.Add("modello", "modello");
+ tableMapping.ColumnMappings.Add("matricola", "matricola");
+ tableMapping.ColumnMappings.Add("anno", "anno");
+ tableMapping.ColumnMappings.Add("kgPeso", "kgPeso");
+ tableMapping.ColumnMappings.Add("kwConsumo", "kwConsumo");
+ tableMapping.ColumnMappings.Add("funzDal", "funzDal");
+ tableMapping.ColumnMappings.Add("funzAl", "funzAl");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagMacchine] WHERE (([idxMacchina] = @Original_idxMacchina))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagMacchine] ([idxImpianto], [codMacchina], [nomeMacchina], [modello], [matricola], [anno], [kgPeso], [kwConsumo], [funzDal], [funzAl]) VALUES (@idxImpianto, @codMacchina, @nomeMacchina, @modello, @matricola, @anno, @kgPeso, @kwConsumo, @funzDal, @funzAl)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomeMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomeMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@modello", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "modello", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "matricola", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "anno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kgPeso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kgPeso", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kwConsumo", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kwConsumo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@funzDal", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "funzDal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@funzAl", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "funzAl", 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 = @"UPDATE [dbo].[AnagMacchine] SET [idxImpianto] = @idxImpianto, [codMacchina] = @codMacchina, [nomeMacchina] = @nomeMacchina, [modello] = @modello, [matricola] = @matricola, [anno] = @anno, [kgPeso] = @kgPeso, [kwConsumo] = @kwConsumo, [funzDal] = @funzDal, [funzAl] = @funzAl WHERE (([idxMacchina] = @Original_idxMacchina))";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomeMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomeMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@modello", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "modello", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "matricola", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "anno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kgPeso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kgPeso", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kwConsumo", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kwConsumo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@funzDal", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "funzDal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@funzAl", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "funzAl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, a" +
+ "nno, kgPeso, kwConsumo, funzDal, funzAl FROM dbo.AnagMacchine";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_T2M_deleteByTag";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxMacchina", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_AM_getByTag";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(DS_Mag.AnagMacchineDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.AnagMacchineDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.AnagMacchineDataTable dataTable = new DS_Mag.AnagMacchineDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.AnagMacchineDataTable getByTag(string TagCode) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((TagCode == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TagCode));
+ }
+ DS_Mag.AnagMacchineDataTable dataTable = new DS_Mag.AnagMacchineDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag.AnagMacchineDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag dataSet) {
+ return this.Adapter.Update(dataSet, "AnagMacchine");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_idxMacchina) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxMacchina));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(global::System.Nullable idxImpianto, string codMacchina, string nomeMacchina, string modello, string matricola, global::System.Nullable anno, double kgPeso, double kwConsumo, global::System.Nullable funzDal, global::System.Nullable funzAl) {
+ if ((idxImpianto.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxImpianto.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ if ((codMacchina == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(codMacchina));
+ }
+ if ((nomeMacchina == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(nomeMacchina));
+ }
+ if ((modello == null)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(modello));
+ }
+ if ((matricola == null)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(matricola));
+ }
+ if ((anno.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((int)(anno.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.InsertCommand.Parameters[6].Value = ((double)(kgPeso));
+ this.Adapter.InsertCommand.Parameters[7].Value = ((double)(kwConsumo));
+ if ((funzDal.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(funzDal.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((funzAl.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[9].Value = ((System.DateTime)(funzAl.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(global::System.Nullable idxImpianto, string codMacchina, string nomeMacchina, string modello, string matricola, global::System.Nullable anno, double kgPeso, double kwConsumo, global::System.Nullable funzDal, global::System.Nullable funzAl, int Original_idxMacchina) {
+ if ((idxImpianto.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxImpianto.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ if ((codMacchina == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(codMacchina));
+ }
+ if ((nomeMacchina == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(nomeMacchina));
+ }
+ if ((modello == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(modello));
+ }
+ if ((matricola == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(matricola));
+ }
+ if ((anno.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(anno.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(kgPeso));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((double)(kwConsumo));
+ if ((funzDal.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(funzDal.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((funzAl.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(funzAl.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_idxMacchina));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int deleteTag2Macc(string Original_TagCode, global::System.Nullable Original_idxMacchina) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Original_TagCode == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_TagCode));
+ }
+ if ((Original_idxMacchina.HasValue == true)) {
+ command.Parameters[2].Value = ((int)(Original_idxMacchina.Value));
+ }
+ else {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
+ ///
+ ///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 SinonimiTagTableAdapter : 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", "4.0.0.0")]
+ public SinonimiTagTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "SinonimiTag";
+ tableMapping.ColumnMappings.Add("TagCodeOrig", "TagCodeOrig");
+ tableMapping.ColumnMappings.Add("TagCode", "TagCode");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[SinonimiTag] WHERE (([TagCodeOrig] = @Original_TagCodeOrig))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCodeOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCodeOrig", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[SinonimiTag] ([TagCodeOrig], [TagCode]) VALUES (@TagCodeOrig, " +
+ "@TagCode)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCodeOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCodeOrig", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", 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 = "UPDATE [dbo].[SinonimiTag] SET [TagCodeOrig] = @TagCodeOrig, [TagCode] = @TagCode" +
+ " WHERE (([TagCodeOrig] = @Original_TagCodeOrig))";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCodeOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCodeOrig", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCodeOrig", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagCodeOrig", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT TagCodeOrig, TagCode FROM dbo.SinonimiTag";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_SinTag_UpdateQuery";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCodeOrig", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(DS_Mag.SinonimiTagDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.SinonimiTagDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.SinonimiTagDataTable dataTable = new DS_Mag.SinonimiTagDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag.SinonimiTagDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag dataSet) {
+ return this.Adapter.Update(dataSet, "SinonimiTag");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_TagCodeOrig) {
+ if ((Original_TagCodeOrig == null)) {
+ throw new global::System.ArgumentNullException("Original_TagCodeOrig");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_TagCodeOrig));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string TagCodeOrig, string TagCode) {
+ if ((TagCodeOrig == null)) {
+ throw new global::System.ArgumentNullException("TagCodeOrig");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TagCodeOrig));
+ }
+ if ((TagCode == null)) {
+ throw new global::System.ArgumentNullException("TagCode");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(TagCode));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string TagCodeOrig, string TagCode, string Original_TagCodeOrig) {
+ if ((TagCodeOrig == null)) {
+ throw new global::System.ArgumentNullException("TagCodeOrig");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TagCodeOrig));
+ }
+ if ((TagCode == null)) {
+ throw new global::System.ArgumentNullException("TagCode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(TagCode));
+ }
+ if ((Original_TagCodeOrig == null)) {
+ throw new global::System.ArgumentNullException("Original_TagCodeOrig");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_TagCodeOrig));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string TagCode, string Original_TagCodeOrig) {
+ return this.Update(Original_TagCodeOrig, TagCode, Original_TagCodeOrig);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
+ public virtual int updateQuery(string Original_TagCodeOrig, string TagCode) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Original_TagCodeOrig == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_TagCodeOrig));
+ }
+ if ((TagCode == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(TagCode));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
+ ///
+ ///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 MovMagRicTableAdapter : 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", "4.0.0.0")]
+ public MovMagRicTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "MovMagRic";
+ tableMapping.ColumnMappings.Add("idxItem", "idxItem");
+ tableMapping.ColumnMappings.Add("numIntMtz", "numIntMtz");
+ tableMapping.ColumnMappings.Add("dtMov", "dtMov");
+ tableMapping.ColumnMappings.Add("Qta", "Qta");
+ tableMapping.ColumnMappings.Add("idxMacchina", "idxMacchina");
+ tableMapping.ColumnMappings.Add("dtExport", "dtExport");
+ tableMapping.ColumnMappings.Add("Famiglia", "Famiglia");
+ tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
+ tableMapping.ColumnMappings.Add("NomeCostruttore", "NomeCostruttore");
+ tableMapping.ColumnMappings.Add("CodCostruttore", "CodCostruttore");
+ tableMapping.ColumnMappings.Add("CodInterno", "CodInterno");
+ tableMapping.ColumnMappings.Add("QtaMin", "QtaMin");
+ tableMapping.ColumnMappings.Add("QtaLotto", "QtaLotto");
+ tableMapping.ColumnMappings.Add("Valore", "Valore");
+ tableMapping.ColumnMappings.Add("Note", "Note");
+ tableMapping.ColumnMappings.Add("dtLastUpd", "dtLastUpd");
+ tableMapping.ColumnMappings.Add("CodLocazione", "CodLocazione");
+ tableMapping.ColumnMappings.Add("DescrLocazione", "DescrLocazione");
+ this._adapter.TableMappings.Add(tableMapping);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_MovMagExpl";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_MovMag_delete";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_numIntMtz", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dtMov", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_MovMag_getByNumInt";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numIntMtz", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_MovMag_insert";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxItem", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numIntMtz", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[4].Connection = this.Connection;
+ this._commandCollection[4].CommandText = "dbo.stp_MovMag_update";
+ this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_numIntMtz", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dtMov", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", 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", "4.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(DS_Mag.MovMagRicDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.MovMagRicDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.MovMagRicDataTable dataTable = new DS_Mag.MovMagRicDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.MovMagRicDataTable getByNumInt(global::System.Nullable numIntMtz) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((numIntMtz.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(numIntMtz.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_Mag.MovMagRicDataTable dataTable = new DS_Mag.MovMagRicDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int deleteQuery(global::System.Nullable Original_idxItem, global::System.Nullable Original_numIntMtz, global::System.Nullable Original_dtMov) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Original_idxItem.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(Original_idxItem.Value));
+ }
+ else {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((Original_numIntMtz.HasValue == true)) {
+ command.Parameters[2].Value = ((int)(Original_numIntMtz.Value));
+ }
+ else {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((Original_dtMov.HasValue == true)) {
+ command.Parameters[3].Value = ((System.DateTime)(Original_dtMov.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int insertQuery(global::System.Nullable idxItem, global::System.Nullable numIntMtz, global::System.Nullable Qta) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ if ((idxItem.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(idxItem.Value));
+ }
+ else {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((numIntMtz.HasValue == true)) {
+ command.Parameters[2].Value = ((int)(numIntMtz.Value));
+ }
+ else {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((Qta.HasValue == true)) {
+ command.Parameters[3].Value = ((int)(Qta.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updateQuery(global::System.Nullable Original_idxItem, global::System.Nullable Original_numIntMtz, global::System.Nullable Original_dtMov, global::System.Nullable Qta) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
+ if ((Original_idxItem.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(Original_idxItem.Value));
+ }
+ else {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((Original_numIntMtz.HasValue == true)) {
+ command.Parameters[2].Value = ((int)(Original_numIntMtz.Value));
+ }
+ else {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((Original_dtMov.HasValue == true)) {
+ command.Parameters[3].Value = ((System.DateTime)(Original_dtMov.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((Qta.HasValue == true)) {
+ command.Parameters[4].Value = ((int)(Qta.Value));
+ }
+ else {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
+ ///
+ ///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 AnagLocazioniTableAdapter _anagLocazioniTableAdapter;
+
+ private MagRicTableAdapter _magRicTableAdapter;
+
+ private AnagItemsTableAdapter _anagItemsTableAdapter;
+
+ private AnagTagsTableAdapter _anagTagsTableAdapter;
+
+ private Tag2ItemTableAdapter _tag2ItemTableAdapter;
+
+ private Tag2MaccTableAdapter _tag2MaccTableAdapter;
+
+ private AnagMacchineTableAdapter _anagMacchineTableAdapter;
+
+ private SinonimiTagTableAdapter _sinonimiTagTableAdapter;
+
+ private bool _backupDataSetBeforeUpdate;
+
+ private global::System.Data.IDbConnection _connection;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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 AnagLocazioniTableAdapter AnagLocazioniTableAdapter {
+ get {
+ return this._anagLocazioniTableAdapter;
+ }
+ set {
+ this._anagLocazioniTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 MagRicTableAdapter MagRicTableAdapter {
+ get {
+ return this._magRicTableAdapter;
+ }
+ set {
+ this._magRicTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 AnagItemsTableAdapter AnagItemsTableAdapter {
+ get {
+ return this._anagItemsTableAdapter;
+ }
+ set {
+ this._anagItemsTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 AnagTagsTableAdapter AnagTagsTableAdapter {
+ get {
+ return this._anagTagsTableAdapter;
+ }
+ set {
+ this._anagTagsTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 Tag2ItemTableAdapter Tag2ItemTableAdapter {
+ get {
+ return this._tag2ItemTableAdapter;
+ }
+ set {
+ this._tag2ItemTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 Tag2MaccTableAdapter Tag2MaccTableAdapter {
+ get {
+ return this._tag2MaccTableAdapter;
+ }
+ set {
+ this._tag2MaccTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 AnagMacchineTableAdapter AnagMacchineTableAdapter {
+ get {
+ return this._anagMacchineTableAdapter;
+ }
+ set {
+ this._anagMacchineTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 SinonimiTagTableAdapter SinonimiTagTableAdapter {
+ get {
+ return this._sinonimiTagTableAdapter;
+ }
+ set {
+ this._sinonimiTagTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public global::System.Data.IDbConnection Connection {
+ get {
+ if ((this._connection != null)) {
+ return this._connection;
+ }
+ if (((this._anagLocazioniTableAdapter != null)
+ && (this._anagLocazioniTableAdapter.Connection != null))) {
+ return this._anagLocazioniTableAdapter.Connection;
+ }
+ if (((this._magRicTableAdapter != null)
+ && (this._magRicTableAdapter.Connection != null))) {
+ return this._magRicTableAdapter.Connection;
+ }
+ if (((this._anagItemsTableAdapter != null)
+ && (this._anagItemsTableAdapter.Connection != null))) {
+ return this._anagItemsTableAdapter.Connection;
+ }
+ if (((this._anagTagsTableAdapter != null)
+ && (this._anagTagsTableAdapter.Connection != null))) {
+ return this._anagTagsTableAdapter.Connection;
+ }
+ if (((this._tag2ItemTableAdapter != null)
+ && (this._tag2ItemTableAdapter.Connection != null))) {
+ return this._tag2ItemTableAdapter.Connection;
+ }
+ if (((this._tag2MaccTableAdapter != null)
+ && (this._tag2MaccTableAdapter.Connection != null))) {
+ return this._tag2MaccTableAdapter.Connection;
+ }
+ if (((this._anagMacchineTableAdapter != null)
+ && (this._anagMacchineTableAdapter.Connection != null))) {
+ return this._anagMacchineTableAdapter.Connection;
+ }
+ if (((this._sinonimiTagTableAdapter != null)
+ && (this._sinonimiTagTableAdapter.Connection != null))) {
+ return this._sinonimiTagTableAdapter.Connection;
+ }
+ return null;
+ }
+ set {
+ this._connection = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int TableAdapterInstanceCount {
+ get {
+ int count = 0;
+ if ((this._anagLocazioniTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._magRicTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._anagItemsTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._anagTagsTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._tag2ItemTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._tag2MaccTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._anagMacchineTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._sinonimiTagTableAdapter != 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", "4.0.0.0")]
+ private int UpdateUpdatedRows(DS_Mag dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) {
+ int result = 0;
+ if ((this._anagLocazioniTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagLocazioni.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagLocazioniTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._anagItemsTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagItems.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagItemsTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._anagTagsTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagTags.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagTagsTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._anagMacchineTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagMacchine.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagMacchineTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._magRicTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.MagRic.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._magRicTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._tag2ItemTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Tag2Item.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._tag2ItemTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._tag2MaccTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Tag2Macc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._tag2MaccTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._sinonimiTagTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.SinonimiTag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._sinonimiTagTableAdapter.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", "4.0.0.0")]
+ private int UpdateInsertedRows(DS_Mag dataSet, global::System.Collections.Generic.List allAddedRows) {
+ int result = 0;
+ if ((this._anagLocazioniTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagLocazioni.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagLocazioniTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._anagItemsTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagItems.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagItemsTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._anagTagsTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagTags.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagTagsTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._anagMacchineTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagMacchine.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagMacchineTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._magRicTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.MagRic.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._magRicTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._tag2ItemTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Tag2Item.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._tag2ItemTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._tag2MaccTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Tag2Macc.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._tag2MaccTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._sinonimiTagTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.SinonimiTag.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._sinonimiTagTableAdapter.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", "4.0.0.0")]
+ private int UpdateDeletedRows(DS_Mag dataSet, global::System.Collections.Generic.List allChangedRows) {
+ int result = 0;
+ if ((this._sinonimiTagTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.SinonimiTag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._sinonimiTagTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._tag2MaccTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Tag2Macc.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._tag2MaccTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._tag2ItemTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Tag2Item.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._tag2ItemTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._magRicTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.MagRic.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._magRicTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._anagMacchineTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagMacchine.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagMacchineTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._anagTagsTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagTags.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagTagsTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._anagItemsTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagItems.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagItemsTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._anagLocazioniTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagLocazioni.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagLocazioniTableAdapter.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", "4.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", "4.0.0.0")]
+ public virtual int UpdateAll(DS_Mag dataSet) {
+ if ((dataSet == null)) {
+ throw new global::System.ArgumentNullException("dataSet");
+ }
+ if ((dataSet.HasChanges() == false)) {
+ return 0;
+ }
+ if (((this._anagLocazioniTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagLocazioniTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._magRicTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._magRicTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._anagItemsTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagItemsTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._anagTagsTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagTagsTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._tag2ItemTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._tag2ItemTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._tag2MaccTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._tag2MaccTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._anagMacchineTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagMacchineTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._sinonimiTagTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._sinonimiTagTableAdapter.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