Update db con query x creazione

git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@7 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
This commit is contained in:
samuele
2009-01-13 17:50:48 +00:00
parent 047bdb9cdd
commit 0e28d99c50
5 changed files with 192 additions and 117 deletions
+4 -1
View File
@@ -16,4 +16,7 @@ NOTE:
ANAGRAFICA:
copiare versione anagrafica di Steamware SOLO CON GIM (anche ci fosse altro cambia poco comunque...)
copiare versione anagrafica di Steamware SOLO CON GIM (anche ci fosse altro cambia poco comunque...)
Iscrizione automatica utenti
- poiché non daremo URM e alla bse gli utenti DEVONo essere di tipo GIM_U, va creata una pagina x inserire il cliente in caso di unauth nella tab DIRITTI con ruolo base da WebConfig ("dirittoAutoEnroll") - deve anche chiedere nome/cognome/email utenteS
+118 -113
View File
@@ -1,57 +1,57 @@
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
<section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</configSections>
<system.web>
<identity />
<authentication mode="Windows" />
<globalization uiCulture="auto" enableClientBasedCulture="true"/>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="Microsoft.Web.Preview.UI" assembly="Microsoft.Web.Preview"/>
<add tagPrefix="asp" namespace="Microsoft.Web.Preview.UI.Controls" assembly="Microsoft.Web.Preview"/>
</controls>
</pages>
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.Web.Services2, Version=2.0.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
<buildProviders>
<add extension="*.asbx" type="Microsoft.Web.Preview.Services.BridgeBuildProvider"/>
</buildProviders>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add verb="GET,HEAD,POST" path="*.asbx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<customErrors mode="Off"/>
<!--<customErrors mode="RemoteOnly" defaultRedirect="unauthorized.aspx"/>-->
<httpRuntime maxRequestLength="102400" />
<!-- qui sopra configurato x gestire allegati fino a 100 mb...
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
<section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</configSections>
<system.web>
<identity />
<authentication mode="Windows" />
<globalization uiCulture="auto" enableClientBasedCulture="true"/>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="Microsoft.Web.Preview.UI" assembly="Microsoft.Web.Preview"/>
<add tagPrefix="asp" namespace="Microsoft.Web.Preview.UI.Controls" assembly="Microsoft.Web.Preview"/>
</controls>
</pages>
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.Web.Services2, Version=2.0.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
<buildProviders>
<add extension="*.asbx" type="Microsoft.Web.Preview.Services.BridgeBuildProvider"/>
</buildProviders>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add verb="GET,HEAD,POST" path="*.asbx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<customErrors mode="Off"/>
<!--<customErrors mode="RemoteOnly" defaultRedirect="unauthorized.aspx"/>-->
<httpRuntime maxRequestLength="102400" />
<!-- qui sopra configurato x gestire allegati fino a 100 mb...
<httpRuntime
maxRequestLength="102400"
executionTimeout="1200"
@@ -61,42 +61,42 @@
appRequestQueueLimit="100" />
-->
</system.web>
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
</scripting>
</system.web.extensions>
<appSettings>
<add key="CodModulo" value="GIM"/>
<add key="dominio" value="VOSTRO410"/>
<add key="intUpdatePagina_ms" value="120000"/>
<add key="_righeDataGrid" value="30"/>
<add key="_righeDataGridAnagr" value="20"/>
<add key="_righeDataGridLong" value="40"/>
<add key="_righeDataGridMed" value="15"/>
<add key="_righeDataGridShort" value="10"/>
<add key="_fromEmail" value="info@steamware.net"/>
<add key="_logLevel" value="5"/>
<add key="_logMaxMb" value="30"/>
<add key="_allowForceUser" value="true"/>
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx"/>
<add key="_commonPages" value="menu.aspx"/>
<add key="_titoloPagina" value="GIM"/>
<add key="titleApp" value="GIM_titleApp"/>
<add key="welcomeApp" value="GIM_welcomeApp"/>
<add key="appName" value="GIM"/>
<add key="mainRev" value="0.9"/>
<add key="copyRight" value="SteamWare © 2006-2009"/>
<add key="defaultApp" value="GIM_Appl"/>
<add key="defaultTitle" value="GIM_ShortWelcome"/>
<add key="defaultBody" value="GIM_LongWelcome"/>
<add key="_adminEmail" value="info@steamware.net" />
<add key="_logDir" value="./logs/"/>
<add key="_smtpCli" value="localhost"/>
<add key="PermessiConnectionString" value="Data Source=localhost;Initial Catalog=GIM;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="UtenteCdcConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="VocabolarioConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User id=sa;Password=keyhammer"/>
</system.web>
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
</scripting>
</system.web.extensions>
<appSettings>
<add key="CodModulo" value="GIM"/>
<add key="dominio" value="VOSTRO410"/>
<add key="intUpdatePagina_ms" value="120000"/>
<add key="_righeDataGrid" value="30"/>
<add key="_righeDataGridAnagr" value="20"/>
<add key="_righeDataGridLong" value="40"/>
<add key="_righeDataGridMed" value="15"/>
<add key="_righeDataGridShort" value="10"/>
<add key="_fromEmail" value="info@steamware.net"/>
<add key="_logLevel" value="5"/>
<add key="_logMaxMb" value="30"/>
<add key="_allowForceUser" value="true"/>
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx"/>
<add key="_commonPages" value="menu.aspx"/>
<add key="_titoloPagina" value="GIM"/>
<add key="titleApp" value="GIM_titleApp"/>
<add key="welcomeApp" value="GIM_welcomeApp"/>
<add key="appName" value="GIM"/>
<add key="mainRev" value="0.9"/>
<add key="copyRight" value="SteamWare © 2006-2009"/>
<add key="defaultApp" value="GIM_Appl"/>
<add key="defaultTitle" value="GIM_ShortWelcome"/>
<add key="defaultBody" value="GIM_LongWelcome"/>
<add key="_adminEmail" value="info@steamware.net" />
<add key="_logDir" value="./logs/"/>
<add key="_smtpCli" value="localhost"/>
<add key="PermessiConnectionString" value="Data Source=localhost;Initial Catalog=GIM;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="UtenteCdcConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="VocabolarioConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="AppConnectionString" value="Data Source=localhost;Initial Catalog=GIM;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="TestAppConnectionString" value="Data Source=localhost;Initial Catalog=GIM_test;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<!-- Configuraizone parte db -->
@@ -109,34 +109,39 @@
<add key="dbAuthVers" value="1"/>
<add key="dbVocabVers" value="1"/>
<add key="dbAppVers" value="1"/>
</appSettings>
<connectionStrings>
<!--<add name="SteamWare_BremboConnectionString" connectionString="Data Source=localhost;Initial Catalog=SteamWare_Brembo;Persist Security Info=True;User id=sa;Password=keyhammer"
<!-- Gestione Auto-enroll-->
<add key="autoEnrollEnabled" value="true"/>
<add key="autoEnrollCdc" value="X999"/>
<add key="autoEnrollModulo" value="GIM"/>
<add key="autoEnrollFunzione" value="GIM_U"/>
</appSettings>
<connectionStrings>
<!--<add name="SteamWare_BremboConnectionString" connectionString="Data Source=localhost;Initial Catalog=SteamWare_Brembo;Persist Security Info=True;User id=sa;Password=keyhammer"
providerName="System.Data.SqlClient" />
<add name="AnagraficaBremboConnectionString" connectionString="Data Source=localhost;Initial Catalog=AnagraficaBrembo;Persist Security Info=True;User id=sa;Password=keyhammer"
providerName="System.Data.SqlClient" />
<add name="BPFConnectionString" connectionString="Data Source=localhost;Initial Catalog=BPF;Persist Security Info=True;User id=sa;Password=keyhammer"
providerName="System.Data.SqlClient" />-->
</connectionStrings>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ASBXHandler" verb="GET,HEAD,POST" path="*.asbx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.Enterprise.ASPNetHelper" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<codeBase version="8.0.0.0" href="file:///C:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.Enterprise.ASPNetHelper.DLL"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</connectionStrings>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ASBXHandler" verb="GET,HEAD,POST" path="*.asbx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.Enterprise.ASPNetHelper" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<codeBase version="8.0.0.0" href="file:///C:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.Enterprise.ASPNetHelper.DLL"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
+18
View File
@@ -28,6 +28,24 @@ BEGIN
END
GO
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'AnagAmbitoGuasto' AND TABLE_SCHEMA = 'dbo')
BEGIN
DROP TABLE dbo.AnagAmbitoGuasto
END
GO
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'AnagMacchine' AND TABLE_SCHEMA = 'dbo')
BEGIN
DROP TABLE dbo.AnagMacchine
END
GO
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'AnagImpianti' AND TABLE_SCHEMA = 'dbo')
BEGIN
DROP TABLE dbo.AnagImpianti
END
GO
/* elimino stored e funzioni */
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[f_padLeft]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
+43
View File
@@ -125,6 +125,49 @@ GO
commit
GO
/* Ambito guasto mtz */
CREATE TABLE AnagAmbitoGuasto(
idxAmbito INT NOT NULL IDENTITY CONSTRAINT PK_AnagAmbitoGuasto PRIMARY KEY,
descrAmbitoGuasto NVARCHAR(50)
)
GO
/* anag impianti e macchine*/
BEGIN TRANSACTION
GO
CREATE TABLE AnagImpianti(
idxImpianto INT NOT NULL IDENTITY CONSTRAINT PK_AnagImpianti PRIMARY KEY,
codImpianto NVARCHAR(50),
nomeImpianto NVARCHAR(50),
tipoImpianto NVARCHAR(50),
funzDal DATETIME,
funzAl DATETIME
)
GO
CREATE TABLE AnagMacchine(
idxMacchina INT NOT NULL IDENTITY CONSTRAINT PK_AnagMacchine PRIMARY KEY,
codMacchina NVARCHAR(50),
idxImpianto INT,
nomeMacchina NVARCHAR(50),
modello NVARCHAR(50),
matricola NVARCHAR(50),
anno INT,
kgPeso FLOAT,
kwConsumo FLOAT,
funzDal DATETIME,
funzAl DATETIME
)
GO
ALTER TABLE AnagMacchine ADD
CONSTRAINT FK_AnagMacchine_AnagImpianti FOREIGN KEY(idxImpianto) REFERENCES AnagImpianti(idxImpianto) ON UPDATE CASCADE
GO
COMMIT
GO
/*registro versione...*/
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(1, GETDATE())
GO
+9 -3
View File
@@ -10,8 +10,10 @@
-- inserisco valori permessi
SET xact_abort ON
GO
BEGIN TRANSACTION
GO
INSERT INTO dbo.Permessi
VALUES ('ADMIN', 'menu.aspx', 4, 0, 'Admin', 'Admin')
INSERT INTO dbo.Permessi
@@ -19,9 +21,9 @@ INSERT INTO dbo.Permessi
INSERT INTO dbo.Permessi
VALUES ('ANAG', 'menu.aspx', 1, 0, 'AnagraficheBase', 'AnagraficheBase')
INSERT INTO dbo.Permessi
VALUES ('ANAG_cauPre', 'cauPre.aspx', 1, 1, 'AnagrCauPre', 'AnagrCauPreLong')
VALUES ('ANAG_ambitiGuasto', 'anagAmbitiGuasto.aspx', 1, 1, 'AnagAmbitiGuasto', 'AnagAmbitiGuastoLong')
INSERT INTO dbo.Permessi
VALUES ('ANAG_cause', 'causeFamiglie', 1, 3, 'GeatAnagCause', 'GeatAnagCauseLong')
VALUES ('ANAG_causali', 'gestioneCausali.aspx', 1, 3, 'GestioneCausali', 'GestioneCausaliLong')
INSERT INTO dbo.Permessi
VALUES ('ANAG_impianti', 'impianti.aspx', 1, 2, 'GestImpianti', 'GestImpiantiLong')
INSERT INTO dbo.Permessi
@@ -41,6 +43,7 @@ INSERT INTO dbo.Permessi
INSERT INTO dbo.Permessi
VALUES ('RicMan_list', 'listRichiesta.aspx', 2, 2, 'ListaRichieste', 'ListaRichiesteLong')
GO
COMMIT TRANSACTION
GO
@@ -48,8 +51,10 @@ GO
-- inserisco valori permessi2funzioni
SET xact_abort ON
GO
BEGIN TRANSACTION
GO
INSERT INTO dbo.Permessi2Funzione
VALUES ('ADMIN', N'GIM_AppAdmin', NULL)
INSERT INTO dbo.Permessi2Funzione
@@ -57,7 +62,7 @@ INSERT INTO dbo.Permessi2Funzione
INSERT INTO dbo.Permessi2Funzione
VALUES ('ANAG', N'GIM_SU', NULL)
INSERT INTO dbo.Permessi2Funzione
VALUES ('ANAG_cauPre', N'GIM_SU', NULL)
VALUES ('ANAG_ambitiGuasto', N'GIM_SU', NULL)
INSERT INTO dbo.Permessi2Funzione
VALUES ('ANAG_impianti', N'GIM_SU', NULL)
INSERT INTO dbo.Permessi2Funzione
@@ -81,6 +86,7 @@ GO
COMMIT TRANSACTION
GO
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(2, GETDATE())
GO