From bd40fd4e383fcfa78a42b3dc3b823acb904e6d49 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 18 Feb 2013 18:22:13 +0100 Subject: [PATCH] fix sql x vista --- Projects/WebGIM/GIM_site/Style.css | 6 +- .../GIM_site/sql/Applicazione/GIM_0221.sql | 218 ++++++++++++++++++ 2 files changed, 222 insertions(+), 2 deletions(-) create mode 100644 Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0221.sql diff --git a/Projects/WebGIM/GIM_site/Style.css b/Projects/WebGIM/GIM_site/Style.css index 0a9758d..7cdc1ee 100644 --- a/Projects/WebGIM/GIM_site/Style.css +++ b/Projects/WebGIM/GIM_site/Style.css @@ -1840,12 +1840,14 @@ A:hover background-image: -o-linear-gradient( #ddf,#e1f1ff ); background-image: linear-gradient( #ddf,#e1f1ff ); /**/ - /*background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 )); + /* + background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 )); background-image: -webkit-linear-gradient( #fff,#f1f1f1 ); background-image: -moz-linear-gradient( #fff,#f1f1f1 ); background-image: -ms-linear-gradient( #fff,#f1f1f1 ); background-image: -o-linear-gradient( #fff,#f1f1f1 ); - background-image: linear-gradient( #fff,#f1f1f1 );*/ + background-image: linear-gradient( #fff,#f1f1f1 ); + */ border: 1px solid #CDCDCD; } .ctrRowStyleRight diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0221.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0221.sql new file mode 100644 index 0000000..e0b65be --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0221.sql @@ -0,0 +1,218 @@ +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +alter VIEW 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 +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] +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 = "MtzProgrammata" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 275 + Right = 189 + 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 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagImpianti" + Begin Extent = + Top = 137 + Left = 581 + Bottom = 267 + Right = 751 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 17 + 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 + 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_mtzProgExp'; +go + +commit; +go + + + + + + +-- 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