Update a vers 1.3.200, con
- VS2010 - nuovo installer - gestione modifiche interventi mtz programmata git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@190 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
This commit is contained in:
+110
-4
@@ -17096,7 +17096,7 @@ ORDER BY numIntMtz DESC";
|
||||
[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 = 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 idxIntPro, idxMacchina, inizio, codFrequenza, cadenza, descrizione, idxPri" +
|
||||
@@ -17104,12 +17104,31 @@ ORDER BY numIntMtz DESC";
|
||||
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 = @"SELECT MtzProgrammata.idxIntPro, MtzProgrammata.idxMacchina, MtzProgrammata.inizio, MtzProgrammata.codFrequenza, MtzProgrammata.cadenza,
|
||||
this._commandCollection[1].CommandText = "dbo.stp_MtzProg_getByKey";
|
||||
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("@idxIntPro", 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 = @"SELECT MtzProgrammata.idxIntPro, MtzProgrammata.idxMacchina, MtzProgrammata.inizio, MtzProgrammata.codFrequenza, MtzProgrammata.cadenza,
|
||||
MtzProgrammata.descrizione, MtzProgrammata.idxPriorita, MtzProgrammata.isFermo, MtzProgrammata.idxTipo
|
||||
FROM MtzProgrammata LEFT OUTER JOIN
|
||||
MtzProgPending ON MtzProgrammata.idxIntPro = MtzProgPending.idxIntPro
|
||||
WHERE (MtzProgPending.idxPending IS NULL)";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[3].Connection = this.Connection;
|
||||
this._commandCollection[3].CommandText = "dbo.stp_MtzProg_update";
|
||||
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("@idxIntPro", 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("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codFrequenza", global::System.Data.SqlDbType.NChar, 2, 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("@cadenza", 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("@descrizione", global::System.Data.SqlDbType.NVarChar, 500, 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("@idxPriorita", 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("@isFermo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxTipo", 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()]
|
||||
@@ -17140,8 +17159,25 @@ WHERE (MtzProgPending.idxPending IS NULL)";
|
||||
[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_applicazione.MtzProgrammataDataTable getNotScheduled() {
|
||||
public virtual DS_applicazione.MtzProgrammataDataTable getByKey(global::System.Nullable<int> idxIntPro) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((idxIntPro.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxIntPro.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_applicazione.MtzProgrammataDataTable dataTable = new DS_applicazione.MtzProgrammataDataTable();
|
||||
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_applicazione.MtzProgrammataDataTable getNotScheduled() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
DS_applicazione.MtzProgrammataDataTable dataTable = new DS_applicazione.MtzProgrammataDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
@@ -17336,6 +17372,76 @@ WHERE (MtzProgPending.idxPending IS 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")]
|
||||
public virtual int updateQuery(global::System.Nullable<int> idxIntPro, global::System.Nullable<global::System.DateTime> inizio, string codFrequenza, global::System.Nullable<int> cadenza, string descrizione, global::System.Nullable<int> idxPriorita, global::System.Nullable<bool> isFermo, global::System.Nullable<int> idxTipo) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
|
||||
if ((idxIntPro.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxIntPro.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((inizio.HasValue == true)) {
|
||||
command.Parameters[2].Value = ((System.DateTime)(inizio.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((codFrequenza == null)) {
|
||||
command.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[3].Value = ((string)(codFrequenza));
|
||||
}
|
||||
if ((cadenza.HasValue == true)) {
|
||||
command.Parameters[4].Value = ((int)(cadenza.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((descrizione == null)) {
|
||||
command.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[5].Value = ((string)(descrizione));
|
||||
}
|
||||
if ((idxPriorita.HasValue == true)) {
|
||||
command.Parameters[6].Value = ((int)(idxPriorita.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((isFermo.HasValue == true)) {
|
||||
command.Parameters[7].Value = ((bool)(isFermo.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((idxTipo.HasValue == true)) {
|
||||
command.Parameters[8].Value = ((int)(idxTipo.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[8].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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,29 +4,29 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="79" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="29" ViewPortY="101" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:LogUpdateDb" ZOrder="35" X="36" Y="19" Height="122" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:AnagAmbitoGuasto" ZOrder="34" X="322" Y="20" Height="122" Width="251" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:AnagPriorita" ZOrder="23" X="153" Y="373" Height="190" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:AnagImpianti" ZOrder="28" X="810" Y="350" Height="207" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="126" />
|
||||
<Shape ID="DesignTable:v_macchine" ZOrder="14" X="1116" Y="309" Height="343" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:v_macchine" ZOrder="16" X="1116" Y="309" Height="343" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:v_selFamMacc" ZOrder="24" X="1102" Y="88" Height="190" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
|
||||
<Shape ID="DesignTable:AnagFamMacchine" ZOrder="8" X="1080" Y="-44" Height="105" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:v_intervExp" ZOrder="1" X="484" Y="217" Height="412" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:AnagFamMacchine" ZOrder="10" X="1080" Y="-44" Height="105" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:v_intervExp" ZOrder="3" X="484" Y="217" Height="412" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:AnagTipoGuasto" ZOrder="26" X="118" Y="199" Height="105" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="22" X="813" Y="178" Height="139" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:InterventoOpMtz" ZOrder="2" X="793" Y="582" Height="173" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:v_mtzProgExp" ZOrder="20" X="104" Y="603" Height="275" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:MtzProgPending" ZOrder="19" X="882" Y="776" Height="224" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="160" />
|
||||
<Shape ID="DesignTable:MtzProgrammata" ZOrder="18" X="1141" Y="749" Height="241" Width="240" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="177" />
|
||||
<Shape ID="DesignTable:CalendFesteFerie" ZOrder="16" X="78" Y="890" Height="122" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:OreAperturaSett" ZOrder="7" X="366" Y="836" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:FiltroImpianti" ZOrder="11" X="1399" Y="644" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:FiltroMacchine" ZOrder="12" X="1410" Y="168" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:FiltroStati" ZOrder="10" X="764" Y="7" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:AnagCausali" ZOrder="6" X="1433" Y="-40" Height="156" Width="192" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
|
||||
<Shape ID="DesignTable:AnagrOperMtz" ZOrder="4" X="531" Y="669" Height="122" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:InterventoOpMtz" ZOrder="4" X="793" Y="582" Height="173" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:v_mtzProgExp" ZOrder="2" X="82" Y="571" Height="248" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:MtzProgPending" ZOrder="20" X="821" Y="791" Height="224" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="160" />
|
||||
<Shape ID="DesignTable:MtzProgrammata" ZOrder="1" X="1141" Y="749" Height="306" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="198" />
|
||||
<Shape ID="DesignTable:CalendFesteFerie" ZOrder="18" X="78" Y="890" Height="122" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:OreAperturaSett" ZOrder="9" X="366" Y="836" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:FiltroImpianti" ZOrder="13" X="1399" Y="644" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:FiltroMacchine" ZOrder="14" X="1410" Y="168" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:FiltroStati" ZOrder="12" X="764" Y="7" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:AnagCausali" ZOrder="8" X="1433" Y="-40" Height="156" Width="192" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
|
||||
<Shape ID="DesignTable:AnagrOperMtz" ZOrder="6" X="531" Y="669" Height="122" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_AnagMacchine_AnagImpianti" ZOrder="33" LineWidth="11">
|
||||
@@ -129,19 +129,19 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_MtzProgPending_MtzProgrammata" ZOrder="17" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_MtzProgPending_MtzProgrammata" ZOrder="19" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1141</X>
|
||||
<Y>846</Y>
|
||||
<Y>861</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1117</X>
|
||||
<Y>846</Y>
|
||||
<X>1056</X>
|
||||
<Y>861</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_FiltroImpianti_AnagImpianti" ZOrder="15" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_FiltroImpianti_AnagImpianti" ZOrder="17" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1017</X>
|
||||
@@ -157,7 +157,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:v_macchine_FiltroMacchine" ZOrder="13" LineWidth="11">
|
||||
<Connector ID="DesignRelation:v_macchine_FiltroMacchine" ZOrder="15" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1362</X>
|
||||
@@ -173,7 +173,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_FiltroStati_AnagStati" ZOrder="9" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_FiltroStati_AnagStati" ZOrder="11" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>922</X>
|
||||
@@ -185,7 +185,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagCausali_AnagFamMacchine" ZOrder="5" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagCausali_AnagFamMacchine" ZOrder="7" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1328</X>
|
||||
@@ -197,7 +197,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_InterventoOpMtz_AnagrOperMtz" ZOrder="3" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_InterventoOpMtz_AnagrOperMtz" ZOrder="5" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>754</X>
|
||||
|
||||
Binary file not shown.
+1481
-1284
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -10,8 +10,8 @@ public class mtzProgr
|
||||
{
|
||||
#region table adapters
|
||||
|
||||
protected GIM_data.DS_applicazioneTableAdapters.MtzProgrammataTableAdapter taMtzProg;
|
||||
protected GIM_data.DS_applicazioneTableAdapters.MtzProgPendingTableAdapter taMtzPend;
|
||||
public GIM_data.DS_applicazioneTableAdapters.MtzProgrammataTableAdapter taMtzProg;
|
||||
public GIM_data.DS_applicazioneTableAdapters.MtzProgPendingTableAdapter taMtzPend;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -106,9 +106,12 @@
|
||||
<PackageAsSingleFile>false</PackageAsSingleFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="AjaxControlToolkit, Version=3.0.31106.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL">
|
||||
<Reference Include="AjaxControlToolkit, Version=3.5.60623.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\Library\AspNetAjax\WebForms\Release\AjaxControlToolkit.dll</HintPath>
|
||||
<HintPath>..\packages\AjaxControlToolkit.4.1.60623\lib\35\AjaxControlToolkit.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SanitizerProviders">
|
||||
<HintPath>..\packages\AjaxControlToolkit.4.1.60623\lib\35\SanitizerProviders\SanitizerProviders.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
@@ -162,6 +165,9 @@
|
||||
<Content Include="priorita.aspx" />
|
||||
<Content Include="report_analisi.aspx" />
|
||||
<Content Include="report_impianti.aspx" />
|
||||
<Content Include="packages.config" />
|
||||
<None Include="sql\Voc\VocGIM_0200.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0200.sql" />
|
||||
<Content Include="Style.css" />
|
||||
<Content Include="test.aspx" />
|
||||
<Content Include="tipoGuasto.aspx" />
|
||||
@@ -1011,9 +1017,7 @@
|
||||
<Content Include="images\semaVerde_l.gif" />
|
||||
<Content Include="images\semaVerde_m.gif" />
|
||||
<Content Include="images\semaVerde_s.gif" />
|
||||
<Content Include="images\sfondo.jpg" />
|
||||
<Content Include="images\sfondo.png" />
|
||||
<Content Include="images\sfondoBody.jpg" />
|
||||
<Content Include="images\table.png" />
|
||||
<Content Include="images\unknown_l.png" />
|
||||
<Content Include="images\unknown_m.png" />
|
||||
@@ -1085,16 +1089,31 @@
|
||||
<ItemGroup>
|
||||
<None Include="help\images\._browser" />
|
||||
<None Include="images\Thumbs.db" />
|
||||
<None Include="sql\GIM_0008.sql" />
|
||||
<None Include="sql\GIM_0000.sql" />
|
||||
<None Include="sql\GIM_0001.sql" />
|
||||
<None Include="sql\GIM_0002.sql" />
|
||||
<None Include="sql\GIM_0003.sql" />
|
||||
<None Include="sql\GIM_0004.sql" />
|
||||
<None Include="sql\GIM_0005.sql" />
|
||||
<None Include="sql\GIM_0006.sql" />
|
||||
<None Include="sql\GIM_0007.sql" />
|
||||
<None Include="sql\GIM_0020.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0008.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0000.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0001.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0002.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0003.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0004.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0005.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0006.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0007.sql" />
|
||||
<None Include="sql\Applicazione\GIM_0020.sql" />
|
||||
<Content Include="Web.Test218.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Web.WinLab.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Web.Somaschini.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Web.Release.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\SteamWare\SteamWare.csproj">
|
||||
|
||||
@@ -68,7 +68,6 @@
|
||||
padding-bottom: 1px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.semaforoVerde
|
||||
{
|
||||
color: Green;
|
||||
@@ -84,6 +83,14 @@
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* colori base */
|
||||
.sfondoGrigio
|
||||
{
|
||||
background-color: #CDCDCD;
|
||||
}
|
||||
|
||||
/* END colori base */
|
||||
|
||||
/* @group Calendario */
|
||||
|
||||
.calSel
|
||||
@@ -1251,10 +1258,6 @@ A:hover
|
||||
{
|
||||
font-size: 8pt;
|
||||
}
|
||||
.txtMini
|
||||
{
|
||||
font-size: 8pt;
|
||||
}
|
||||
.txtMiniLeft
|
||||
{
|
||||
font-size: 8pt;
|
||||
@@ -3001,3 +3004,4 @@ grViewBorder
|
||||
{
|
||||
background-color: silver;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an atrribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<appSettings>
|
||||
|
||||
<add key="echoLemmi"
|
||||
value="true"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an atrribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
@@ -0,0 +1,72 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an atrribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
|
||||
<appSettings>
|
||||
<add key="dominio"
|
||||
value="SOMASCHINI"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="_logLevel"
|
||||
value="5"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="exportFormat1"
|
||||
value="~/ExportPdf.aspx?tipo={0}"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="exportFormat2"
|
||||
value="~/ExportPdf.aspx?tipo={0}&idx={1}"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="exportFormat3"
|
||||
value="~/ExportPdf.aspx?tipo={0}&inizio={1}&fine={2}&username={3}"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="PermessiConnectionString"
|
||||
value="Data Source=localhost;Initial Catalog=GIM;Persist Security Info=True;User id=steamware;Password=viadante16"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="UtenteCdcConnectionString"
|
||||
value="Data Source=localhost;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User id=steamware;Password=viadante16"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="VocabolarioConnectionString"
|
||||
value="Data Source=localhost;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User id=steamware;Password=viadante16"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="AppConnectionString"
|
||||
value="Data Source=localhost;Initial Catalog=GIM;Persist Security Info=True;User id=steamware;Password=viadante16"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="TestAppConnectionString"
|
||||
value="Data Source=localhost;Initial Catalog=GIM_test;Persist Security Info=True;User id=steamware;Password=viadante16"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="stampanteRichiesteMtz"
|
||||
value="\\pc-manutenzione\HP-manut"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="GIMConnectionString"
|
||||
connectionString="Data Source=localhost;Initial Catalog=GIM;Persist Security Info=True;User ID=steamware;Password=viadante16"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an atrribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an atrribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Note: As an alternative to hand editing this file you can use the
|
||||
web admin tool to configure settings for your application. Use
|
||||
@@ -22,7 +22,7 @@
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<system.web>
|
||||
<identity/>
|
||||
<identity />
|
||||
<authentication mode="Windows" />
|
||||
<globalization uiCulture="auto" enableClientBasedCulture="true" />
|
||||
<pages>
|
||||
@@ -31,6 +31,7 @@
|
||||
<!--<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" />-->
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
|
||||
</controls>
|
||||
</pages>
|
||||
<compilation debug="true">
|
||||
@@ -81,73 +82,75 @@
|
||||
</scripting>
|
||||
</system.web.extensions>
|
||||
<appSettings>
|
||||
<add key="CodModulo" value="GIM"/>
|
||||
<add key="dominio" value="VOSTRO410"/>
|
||||
<add key="intUpdatePagina_ms" value="60000"/>
|
||||
<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="6"/>
|
||||
<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="1.1"/>
|
||||
<add key="minRev" value="195"/>
|
||||
<add key="copyRight" value="SteamWare © 2006-2011"/>
|
||||
<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="exportFormat1" value="./ExportPdf.aspx?tipo={0}"/>
|
||||
<add key="exportFormat2" value="./ExportPdf.aspx?tipo={0}&idx={1}"/>
|
||||
<add key="exportFormat3" value="./ExportPdf.aspx?tipo={0}&inizio={1}&fine={2}&username={3}"/>
|
||||
<add key="_logDir" value="./logs/"/>
|
||||
<add key="_smtpCli" value="localhost"/>
|
||||
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_som;Persist Security Info=True;User id=sa;Password=keyhammer"/>
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User id=sa;Password=keyhammer"/>
|
||||
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User id=sa;Password=keyhammer"/>
|
||||
<add key="AppConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_som;Persist Security Info=True;User id=sa;Password=keyhammer"/>
|
||||
<add key="TestAppConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_test;Persist Security Info=True;User id=sa;Password=keyhammer"/>
|
||||
<add key="CodModulo" value="GIM" />
|
||||
<add key="dominio" value="VOSTRO410" />
|
||||
<add key="intUpdatePagina_ms" value="60000" />
|
||||
<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="6" />
|
||||
<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="1.3" />
|
||||
<add key="minRev" value="200" />
|
||||
<add key="copyRight" value="SteamWare © 2006-2012" />
|
||||
<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="exportFormat1" value="./ExportPdf.aspx?tipo={0}" />
|
||||
<add key="exportFormat2" value="./ExportPdf.aspx?tipo={0}&idx={1}" />
|
||||
<add key="exportFormat3" value="./ExportPdf.aspx?tipo={0}&inizio={1}&fine={2}&username={3}" />
|
||||
<add key="_logDir" value="./logs/" />
|
||||
<add key="_smtpCli" value="localhost" />
|
||||
<add key="echoLemmi" value="false" />
|
||||
<!--stringhe connessione-->
|
||||
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM;Persist Security Info=True;User id=sa;Password=keyhammer" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User id=sa;Password=keyhammer" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Somas_Vocabolario;Persist Security Info=True;User id=sa;Password=keyhammer" />
|
||||
<add key="AppConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM;Persist Security Info=True;User id=sa;Password=keyhammer" />
|
||||
<add key="TestAppConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_test;Persist Security Info=True;User id=sa;Password=keyhammer" />
|
||||
<!--valori default-->
|
||||
<add key ="defaultMatr" value="0000"/>
|
||||
<add key ="defaultCodImp" value="0000"/>
|
||||
<add key ="defaultCodMacc" value="0000"/>
|
||||
<add key="defaultMatr" value="0000" />
|
||||
<add key="defaultCodImp" value="0000" />
|
||||
<add key="defaultCodMacc" value="0000" />
|
||||
<!--gestione turni-->
|
||||
<add key="shiftTurno" value="6"/>
|
||||
<add key="durataTurno" value="8"/>
|
||||
<add key="defaultDelay" value="15"/>
|
||||
<add key="shiftTurno" value="6" />
|
||||
<add key="durataTurno" value="8" />
|
||||
<add key="defaultDelay" value="15" />
|
||||
<!-- Configurazione parte db -->
|
||||
<add key="_sqlDir" value="sql"/>
|
||||
<add key="dbUpdateEnabled" value="true"/>
|
||||
<add key="dbAuthName" value="SteamWare_Anagrafica"/>
|
||||
<add key="dbVocabName" value="SteamWare_Vocabolario"/>
|
||||
<add key="dbAppName" value="GIM"/>
|
||||
<add key="dbTest" value="GIM_test"/>
|
||||
<add key="dbAuthVers" value="1"/>
|
||||
<add key="dbVocabVers" value="1"/>
|
||||
<add key="dbAppVers" value="5"/>
|
||||
<add key="dbAppCreaEnab" value="false"/>
|
||||
<add key="sqlFileFormat" value="{0}_{1:0000}.sql"/>
|
||||
<add key="sqlScriptDir" value="sql"/>
|
||||
<add key="appFilePre" value="GIM"/>
|
||||
<add key="_sqlDir" value="sql" />
|
||||
<add key="dbUpdateEnabled" value="true" />
|
||||
<add key="dbAuthName" value="SteamWare_Anagrafica" />
|
||||
<add key="dbVocabName" value="SteamWare_Vocabolario" />
|
||||
<add key="dbAppName" value="GIM" />
|
||||
<add key="dbTest" value="GIM_test" />
|
||||
<add key="dbAuthVers" value="1" />
|
||||
<add key="dbVocabVers" value="1" />
|
||||
<add key="dbAppVers" value="5" />
|
||||
<add key="dbAppCreaEnab" value="false" />
|
||||
<add key="sqlFileFormat" value="{0}_{1:0000}.sql" />
|
||||
<add key="sqlScriptDir" value="sql" />
|
||||
<add key="appFilePre" value="GIM" />
|
||||
<!-- Gestione Auto-enroll-->
|
||||
<add key="autoEnrollEnabled" value="false"/>
|
||||
<add key="autoEnrollCdc" value="X999"/>
|
||||
<add key="autoEnrollModulo" value="GIM"/>
|
||||
<add key="autoEnrollFunzione" value="GIM_U"/>
|
||||
<add key="autoEnrollEnabled" value="false" />
|
||||
<add key="autoEnrollCdc" value="X999" />
|
||||
<add key="autoEnrollModulo" value="GIM" />
|
||||
<add key="autoEnrollFunzione" value="GIM_U" />
|
||||
<!--gestione stampanti-->
|
||||
<add key ="stampanteRichiesteMtz" value="PDFCreator"/>
|
||||
<add key="stampanteRichiesteMtz" value="PDFCreator" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="GIMConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_som;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient"/>
|
||||
<add name="GIMConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
@@ -180,6 +183,10 @@
|
||||
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.codedom>
|
||||
@@ -195,4 +202,4 @@
|
||||
</compiler>
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
</configuration>
|
||||
</configuration>
|
||||
@@ -1,21 +1,20 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true"
|
||||
Inherits="mod_dettMtzProg" Codebehind="mod_dettMtzProg.ascx.cs" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_dettMtzProg" CodeBehind="mod_dettMtzProg.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
|
||||
<table style="background-color: #DFDFDF;">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div style="float:left;">
|
||||
<h3>
|
||||
<asp:Label ID="lblInsNewIntPro" runat="server" />
|
||||
</h3>
|
||||
<div style="float: left;">
|
||||
<h3>
|
||||
<asp:Label ID="lblInsNewIntPro" runat="server" />
|
||||
</h3>
|
||||
</div>
|
||||
<div style="float: right; padding-top: 20px;">
|
||||
<uc1:mod_filtro ID="mod_filtroImpianto" runat="server" css="txtMini" Oneh_selValore="eh_selectedImpianto" />
|
||||
<asp:ObjectDataSource ID="odsImpianti" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selImpiantiTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div style="float: right; padding-top: 20px;">
|
||||
<uc1:mod_filtro ID="mod_filtroImpianto" runat="server" css="txtMini" Oneh_selValore="eh_selectedImpianto" />
|
||||
<asp:ObjectDataSource ID="odsImpianti" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selImpiantiTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
@@ -31,10 +30,9 @@
|
||||
<asp:Label runat="server" ID="lblMacchineInteressate" />
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<asp:Label runat="server" ID="lblTxtCerca" Text="Ricerca"></asp:Label>
|
||||
<asp:Label runat="server" ID="lblTxtCerca" Text="Ricerca"></asp:Label>
|
||||
<asp:TextBox runat="server" ID="txtCercaMacchine" Width="8em" Text="*" OnTextChanged="txtCercaMacchine_TextChanged" />
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -1,112 +1,216 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true"
|
||||
Inherits="mod_elencoMtzProg" Codebehind="mod_elencoMtzProg.ascx.cs" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_elencoMtzProg" CodeBehind="mod_elencoMtzProg.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
|
||||
<div style="width: 100%; background: #cdcdcd;" class="txtMini">
|
||||
<% if (false)
|
||||
{ %>
|
||||
<link href="../Style.css" rel="stylesheet" type="text/css" />
|
||||
<% } %>
|
||||
<div class="txtMini" style="width: 100%; padding: 2px 4px 2px 4px; background-color: #CDCDCD;
|
||||
margin-right: 10px;">
|
||||
<asp:Button ID="btnShowNew" runat="server" OnClick="btnShowNew_Click" />
|
||||
<asp:Button ID="btnMassEdit" runat="server" OnClick="btnMassEdit_Click" />
|
||||
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
||||
<ContentTemplate>
|
||||
<asp:Panel runat="server" ID="pnlMassEdit" Visible="false" BackColor="#CDCDCD" Height="125px">
|
||||
<div class="divSx" style="margin-right: 10px; width: 360px;">
|
||||
<div class="divSx">
|
||||
<div class="divSx" style="width: 180px;">
|
||||
<asp:CheckBox runat="server" ID="chkInizioMtzPro" AutoPostBack="true" OnCheckedChanged="chkInizioMtzPro_CheckedChanged" />
|
||||
<asp:Panel ID="pnlInizio" runat="server" Visible="false">
|
||||
<asp:TextBox runat="server" ID="txtDataInizio" Width="6em" CssClass="textEv_1" />
|
||||
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" FirstDayOfWeek="Monday"
|
||||
TargetControlID="txtDataInizio" Format="dd/MM/yy">
|
||||
</cc1:CalendarExtender>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<div class="divSx" style="width: 180px;">
|
||||
<asp:CheckBox runat="server" ID="chkPrior" AutoPostBack="true" OnCheckedChanged="chkPrior_CheckedChanged" />
|
||||
<asp:Panel ID="pnlPrior" runat="server" Visible="false">
|
||||
<asp:DropDownList runat="server" ID="ddlPrior" DataSourceID="odsPrior" DataTextField="label"
|
||||
DataValueField="value" CssClass="textEv_1" OnDataBound="ddlPrior_DataBound" />
|
||||
<asp:ObjectDataSource ID="odsPrior" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selPriorTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<div class="divSx" style="width: 180px;">
|
||||
<asp:CheckBox runat="server" ID="chkSetFermo" AutoPostBack="true" OnCheckedChanged="chkSetFermo_CheckedChanged" />
|
||||
<asp:Panel ID="pnlSetFermo" runat="server" Visible="false">
|
||||
<asp:CheckBox runat="server" ID="chkImpFermo" Font-Bold="true" Font-Size="8pt" />
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<div class="divSx" style="width: 180px;">
|
||||
<asp:CheckBox runat="server" ID="chkTipoGuasto" AutoPostBack="true" OnCheckedChanged="chkTipoGuasto_CheckedChanged" />
|
||||
<asp:Panel ID="pnlTipoGuasto" runat="server" Visible="false">
|
||||
<asp:DropDownList runat="server" ID="ddlTipo" CssClass="textEv_1" DataSourceID="odsTipo"
|
||||
DataTextField="label" DataValueField="value">
|
||||
</asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsTipo" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selTipoGuastoTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<div class="divSx" style="width: 180px;">
|
||||
<asp:CheckBox runat="server" ID="chkFreq" AutoPostBack="true" OnCheckedChanged="chkFreq_CheckedChanged" />
|
||||
<asp:Panel ID="pnlFreq" runat="server" Visible="false">
|
||||
<asp:DropDownList runat="server" ID="ddlFreq" CssClass="textEv_1" DataSourceID="odsFreq"
|
||||
DataTextField="label" DataValueField="value">
|
||||
</asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsFreq" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selFreqTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<div class="divSx" style="width: 180px;">
|
||||
<asp:CheckBox runat="server" ID="chkCadenza" AutoPostBack="true" OnCheckedChanged="chkCadenza_CheckedChanged" />
|
||||
<asp:Panel ID="pnlCadenza" runat="server" Visible="false">
|
||||
<asp:TextBox runat="server" ID="txtCadenza" Width="2em" CssClass="textEv_1" />
|
||||
</asp:Panel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="divSx" style="margin-right: 10px;">
|
||||
<asp:CheckBox runat="server" ID="chkDescrMtzPro" AutoPostBack="true" OnCheckedChanged="chkDescrMtzPro_CheckedChanged" />
|
||||
<asp:Panel ID="pnlDescrMtzPro" runat="server" Visible="false">
|
||||
<asp:TextBox runat="server" ID="txtDescrizione" TextMode="MultiLine" Rows="6" Width="30em"
|
||||
CssClass="textEv_1Left" />
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<div class="divSx" style="margin-right: 10px;">
|
||||
Selezionare a sinistra le opzioni da sovrascrivere:
|
||||
<br />
|
||||
<asp:Button ID="btnEditConfirm" runat="server" Height="28px" OnClick="btnEditConfirm_Click"
|
||||
Enabled="false" />
|
||||
<br />
|
||||
<asp:Button ID="btnEditCancel" runat="server" Height="28px" OnClick="btnEditCancel_Click"
|
||||
Enabled="false" />
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div style="font-size:9pt;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="idxIntPro" DataSourceID="ods" OnRowDataBound="grView_RowDataBound"
|
||||
OnRowUpdating="grView_RowUpdating">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:BoundField DataField="idxIntPro" Visible="false" />
|
||||
<asp:TemplateField HeaderText="lblMacchina" SortExpression="nomeMacchina">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("nomeMacchina") %>' />
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Eval("codMacchina","({0})") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="inizio" HeaderText="inizioMtzPro"
|
||||
SortExpression="inizio" DataFormatString="{0:dd/MM/yy}" HtmlEncode="False" />
|
||||
<asp:BoundField DataField="frequenza" HeaderText="frequenzaMtzPro" SortExpression="frequenza" />
|
||||
<asp:BoundField DataField="cadenza" HeaderText="cadenzaMtzPro" SortExpression="cadenza" />
|
||||
<asp:TemplateField HeaderText="descrizione" SortExpression="descrizione">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# trimmaTesto(Eval("descrizione"),50) %>'
|
||||
ToolTip='<%# Eval("descrizione") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="descrTipo" HeaderText="lblTipoGuastoShort" SortExpression="descrTipo" />
|
||||
<asp:TemplateField HeaderText="chkImpFermoShort" SortExpression="isFermo" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="Label2" runat="server" Checked='<%# Eval("isFermo") %>' Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="lblPriorShort" SortExpression="descrPriorita" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label6" runat="server" Text='<%# Eval("idxPriorita") %>' ToolTip='<%# Eval("descrPriorita") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
CommandArgument='<%# Eval("idxIntPro") %>' ToolTip='<%# traduci("Delete") %>'
|
||||
Visible="true" ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina , SteamWare.dimImg.small) %>' />
|
||||
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||
TargetControlID="imgDelete">
|
||||
</cc1:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="GIM_data.DS_applicazioneTableAdapters.v_mtzProgExpTableAdapter"
|
||||
FilterExpression=" codMacchina LIKE '%{0}%' OR nomeMacchina LIKE '%{0}%' OR descrizione LIKE '%{0}%' "
|
||||
DeleteMethod="Delete" InsertMethod="Insert" UpdateMethod="Update">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
<asp:SessionParameter DefaultValue="0" Name="idxTipo" SessionField="idxTipo_filt" Type="Int32"/>
|
||||
<asp:SessionParameter DefaultValue="0" Name="idxMacchina" SessionField="idxMacchina_filt" Type="Int32"/>
|
||||
|
||||
<%--<asp:ControlParameter ControlID="mod_filtroTipo" DefaultValue="0" Name="idxTipo"
|
||||
<div style="font-size: 9pt;">
|
||||
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="idxIntPro" DataSourceID="ods" OnRowDataBound="grView_RowDataBound"
|
||||
PageSize="20" OnRowUpdating="grView_RowUpdating">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="lblidxIntPro" Text='<%# Eval("idxIntPro") %>' Visible='<%# pnlMassEdit.Visible %>'
|
||||
Font-Size="6pt" />
|
||||
<asp:CheckBox ID="chkSelect" runat="server" Visible='<%# pnlMassEdit.Visible %>' />
|
||||
</ItemTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:CheckBox ID="btnSelAll" runat="server" Checked="false" ToolTip='<%# traduci("btnSelAll") %>'
|
||||
OnCheckedChanged="btnSelAll_Click" CssClass="ctrHeaderPager" AutoPostBack="true"
|
||||
Visible='<%# pnlMassEdit.Visible %>' />
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="lblMacchina" SortExpression="nomeMacchina">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("nomeMacchina") %>' />
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Eval("codMacchina","({0})") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="inizio" HeaderText="inizioMtzPro" SortExpression="inizio"
|
||||
DataFormatString="{0:dd/MM/yy}" HtmlEncode="False" />
|
||||
<asp:BoundField DataField="frequenza" HeaderText="frequenzaMtzPro" SortExpression="frequenza" />
|
||||
<asp:BoundField DataField="cadenza" HeaderText="cadenzaMtzPro" SortExpression="cadenza" />
|
||||
<asp:TemplateField HeaderText="descrizione" SortExpression="descrizione">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# trimmaTesto(Eval("descrizione"),50) %>'
|
||||
ToolTip='<%# Eval("descrizione") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="descrTipo" HeaderText="lblTipoGuastoShort" SortExpression="descrTipo" />
|
||||
<asp:TemplateField HeaderText="chkImpFermoShort" SortExpression="isFermo" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="Label2" runat="server" Checked='<%# Eval("isFermo") %>' Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="lblPriorShort" SortExpression="descrPriorita" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label6" runat="server" Text='<%# Eval("idxPriorita") %>' ToolTip='<%# Eval("descrPriorita") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
CommandArgument='<%# Eval("idxIntPro") %>' ToolTip='<%# traduci("Delete") %>'
|
||||
Visible="true" ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina , SteamWare.dimImg.small) %>' />
|
||||
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||
TargetControlID="imgDelete">
|
||||
</cc1:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="GIM_data.DS_applicazioneTableAdapters.v_mtzProgExpTableAdapter"
|
||||
FilterExpression=" codMacchina LIKE '%{0}%' OR nomeMacchina LIKE '%{0}%' OR descrizione LIKE '%{0}%' "
|
||||
DeleteMethod="Delete" InsertMethod="Insert" UpdateMethod="Update">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
<asp:SessionParameter DefaultValue="0" Name="idxTipo" SessionField="idxTipo_filt"
|
||||
Type="Int32" />
|
||||
<asp:SessionParameter DefaultValue="0" Name="idxMacchina" SessionField="idxMacchina_filt"
|
||||
Type="Int32" />
|
||||
<%--<asp:ControlParameter ControlID="mod_filtroTipo" DefaultValue="0" Name="idxTipo"
|
||||
PropertyName="valoreInt" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="mod_filtroMacchina" DefaultValue="0" Name="idxMacchina"
|
||||
PropertyName="valoreInt" Type="Int32" />--%>
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxIntPro" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="idxMacchina" Type="Int32" />
|
||||
<asp:Parameter Name="inizio" Type="DateTime" />
|
||||
<asp:Parameter Name="codFrequenza" Type="String" />
|
||||
<asp:Parameter Name="cadenza" Type="Int32" />
|
||||
<asp:Parameter Name="descrizione" Type="String" />
|
||||
<asp:Parameter Name="idxPriorita" Type="Int32" />
|
||||
<asp:Parameter Name="isFermo" Type="Boolean" />
|
||||
<asp:Parameter Name="idxTipo" Type="Int32" />
|
||||
<asp:Parameter Name="Original_idxIntPro" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="idxMacchina" Type="Int32" />
|
||||
<asp:Parameter Name="inizio" Type="DateTime" />
|
||||
<asp:Parameter Name="codFrequenza" Type="String" />
|
||||
<asp:Parameter Name="cadenza" Type="Int32" />
|
||||
<asp:Parameter Name="descrizione" Type="String" />
|
||||
<asp:Parameter Name="idxPriorita" Type="Int32" />
|
||||
<asp:Parameter Name="isFermo" Type="Boolean" />
|
||||
<asp:Parameter Name="idxTipo" Type="Int32" />
|
||||
</InsertParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxIntPro" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="idxMacchina" Type="Int32" />
|
||||
<asp:Parameter Name="inizio" Type="DateTime" />
|
||||
<asp:Parameter Name="codFrequenza" Type="String" />
|
||||
<asp:Parameter Name="cadenza" Type="Int32" />
|
||||
<asp:Parameter Name="descrizione" Type="String" />
|
||||
<asp:Parameter Name="idxPriorita" Type="Int32" />
|
||||
<asp:Parameter Name="isFermo" Type="Boolean" />
|
||||
<asp:Parameter Name="idxTipo" Type="Int32" />
|
||||
<asp:Parameter Name="Original_idxIntPro" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="idxMacchina" Type="Int32" />
|
||||
<asp:Parameter Name="inizio" Type="DateTime" />
|
||||
<asp:Parameter Name="codFrequenza" Type="String" />
|
||||
<asp:Parameter Name="cadenza" Type="Int32" />
|
||||
<asp:Parameter Name="descrizione" Type="String" />
|
||||
<asp:Parameter Name="idxPriorita" Type="Int32" />
|
||||
<asp:Parameter Name="isFermo" Type="Boolean" />
|
||||
<asp:Parameter Name="idxTipo" Type="Int32" />
|
||||
</InsertParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using System.Data;
|
||||
using GIM_data;
|
||||
|
||||
public partial class mod_elencoMtzProg : ApplicationUserControl
|
||||
{
|
||||
@@ -13,6 +14,7 @@ public partial class mod_elencoMtzProg : ApplicationUserControl
|
||||
public event EventHandler eh_newReq;
|
||||
public event EventHandler eh_resetSelezione;
|
||||
public event EventHandler eh_selValore;
|
||||
public event EventHandler eh_updateDone;
|
||||
|
||||
#endregion
|
||||
protected string _idxGridView;
|
||||
@@ -24,8 +26,17 @@ public partial class mod_elencoMtzProg : ApplicationUserControl
|
||||
{
|
||||
base.traduciObj();
|
||||
btnShowNew.Text = traduci("btnShowNew");
|
||||
//lblFiltMacchina.Text = traduci("lblFiltMacchina");
|
||||
//lblFiltTipo.Text = traduci("lblFiltTipo");
|
||||
btnMassEdit.Text = traduci("btnMassEditShow");
|
||||
btnEditCancel.Text = traduci("btnEditCancel");
|
||||
btnEditConfirm.Text = traduci("btnEditConfirm");
|
||||
chkInizioMtzPro.Text = traduci("chkInizioMtzPro");
|
||||
chkPrior.Text = traduci("chkPrior");
|
||||
chkSetFermo.Text = traduci("chkSetFermo");
|
||||
chkImpFermo.Text = traduci("chkImpFermo");
|
||||
chkTipoGuasto.Text = traduci("chkTipoGuasto");
|
||||
chkFreq.Text = traduci("lblFreq");
|
||||
chkCadenza.Text = traduci("lblCadenza");
|
||||
chkDescrMtzPro.Text = traduci("chkDescrMtzPro");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -54,6 +65,7 @@ public partial class mod_elencoMtzProg : ApplicationUserControl
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
setBtnEdit();
|
||||
checkFixOds();
|
||||
grView.DataBind();
|
||||
}
|
||||
@@ -206,6 +218,8 @@ public partial class mod_elencoMtzProg : ApplicationUserControl
|
||||
{
|
||||
base.OnInit(e);
|
||||
_idxGridView = "idxIntPro";
|
||||
txtDataInizio.Text = DateTime.Now.ToShortDateString();
|
||||
txtCadenza.Text = "1";
|
||||
}
|
||||
|
||||
void mod_filtroMacchina_eh_selValore(object sender, EventArgs e)
|
||||
@@ -234,4 +248,196 @@ public partial class mod_elencoMtzProg : ApplicationUserControl
|
||||
}
|
||||
ods.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// controllo visibilità pannello edit in massa
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMassEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
pnlMassEdit.Visible = !pnlMassEdit.Visible;
|
||||
if (pnlMassEdit.Visible)
|
||||
{
|
||||
btnMassEdit.Text = traduci("btnMassEditHide");
|
||||
}
|
||||
else
|
||||
{
|
||||
btnMassEdit.Text = traduci("btnMassEditShow");
|
||||
}
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// seleziona/deseleziona le righe indicate...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSelAll_Click(object sender, EventArgs e)
|
||||
{
|
||||
// seleziono tutti i valori visibili nel datagrid
|
||||
CheckBox chkbox = ((CheckBox)sender);
|
||||
bool isChecked = chkbox.Checked;
|
||||
if (!isChecked)
|
||||
{
|
||||
chkbox.ToolTip = traduci("btnSelAll");
|
||||
}
|
||||
else
|
||||
{
|
||||
chkbox.ToolTip = traduci("btnDeselAll");
|
||||
}
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna selezione di default
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPrior_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
ddlPrior.SelectedIndex = 2;
|
||||
}
|
||||
|
||||
#region gestione checkBox edit campi
|
||||
|
||||
protected void chkInizioMtzPro_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
pnlInizio.Visible = chkInizioMtzPro.Checked;
|
||||
setBtnEdit();
|
||||
}
|
||||
protected void chkPrior_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
pnlPrior.Visible = chkPrior.Checked;
|
||||
setBtnEdit();
|
||||
}
|
||||
protected void chkSetFermo_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
pnlSetFermo.Visible = chkSetFermo.Checked;
|
||||
setBtnEdit();
|
||||
}
|
||||
protected void chkTipoGuasto_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
pnlTipoGuasto.Visible = chkTipoGuasto.Checked;
|
||||
setBtnEdit();
|
||||
}
|
||||
protected void chkFreq_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
pnlFreq.Visible = chkFreq.Checked;
|
||||
setBtnEdit();
|
||||
}
|
||||
protected void chkCadenza_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
pnlCadenza.Visible = chkCadenza.Checked;
|
||||
setBtnEdit();
|
||||
}
|
||||
protected void chkDescrMtzPro_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
pnlDescrMtzPro.Visible = chkDescrMtzPro.Checked;
|
||||
setBtnEdit();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistema btn edit (attivi se almeno 1 valore checked)
|
||||
/// </summary>
|
||||
protected void setBtnEdit()
|
||||
{
|
||||
bool saveEnabled = false;
|
||||
if (chkCadenza.Checked || chkDescrMtzPro.Checked || chkFreq.Checked || chkTipoGuasto.Checked || chkInizioMtzPro.Checked || chkPrior.Checked || chkSetFermo.Checked)
|
||||
{
|
||||
saveEnabled = true;
|
||||
}
|
||||
btnEditConfirm.Enabled = saveEnabled;
|
||||
btnEditCancel.Enabled = saveEnabled;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// applica edit a tutte le righe selezionate
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnEditConfirm_Click(object sender, EventArgs e)
|
||||
{
|
||||
// controllo quali righe siano checked
|
||||
DS_applicazione.MtzProgrammataRow rigaMtzPro;
|
||||
int idxIntPro;
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked)
|
||||
{
|
||||
try
|
||||
{
|
||||
// leggo il record della riga
|
||||
idxIntPro = Convert.ToInt32(((Label)riga.FindControl("lblidxIntPro")).Text);
|
||||
rigaMtzPro = (DS_applicazione.MtzProgrammataRow)mtzProgr.obj.taMtzProg.getByKey(idxIntPro)[0];
|
||||
// controllo 1:1 i valori che si vogliono sovrascrivere
|
||||
if (chkInizioMtzPro.Checked)
|
||||
{
|
||||
rigaMtzPro.inizio = Convert.ToDateTime(txtDataInizio.Text);
|
||||
}
|
||||
if (chkPrior.Checked)
|
||||
{
|
||||
rigaMtzPro.idxPriorita = Convert.ToInt32(ddlPrior.SelectedValue);
|
||||
}
|
||||
if (chkSetFermo.Checked)
|
||||
{
|
||||
rigaMtzPro.isFermo = chkSetFermo.Checked;
|
||||
}
|
||||
if (chkTipoGuasto.Checked)
|
||||
{
|
||||
rigaMtzPro.idxTipo = Convert.ToInt32(ddlTipo.Text);
|
||||
}
|
||||
if (chkFreq.Checked)
|
||||
{
|
||||
rigaMtzPro.codFrequenza = ddlFreq.SelectedValue;
|
||||
}
|
||||
if (chkCadenza.Checked)
|
||||
{
|
||||
rigaMtzPro.cadenza = Convert.ToInt32(txtCadenza.Text);
|
||||
}
|
||||
if (chkDescrMtzPro.Checked)
|
||||
{
|
||||
rigaMtzPro.descrizione = txtDescrizione.Text;
|
||||
}
|
||||
// aggiorno i valori!
|
||||
mtzProgr.obj.taMtzProg.updateQuery(rigaMtzPro.idxIntPro, rigaMtzPro.inizio, rigaMtzPro.codFrequenza, rigaMtzPro.cadenza, rigaMtzPro.descrizione, rigaMtzPro.idxPriorita, rigaMtzPro.isFermo, rigaMtzPro.idxTipo);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
// a questo punto aggiorno e ricalcolo pending!
|
||||
mtzProgr.obj.processaCodaMtzPro();
|
||||
grView.DataBind();
|
||||
UpdatePanel2.Update();
|
||||
// chiamo evento
|
||||
if (eh_updateDone != null)
|
||||
{
|
||||
eh_updateDone(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// annulla edit (deseleziona checkbox...)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnEditCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
chkCadenza.Checked = false;
|
||||
chkDescrMtzPro.Checked = false;
|
||||
chkFreq.Checked = false;
|
||||
chkInizioMtzPro.Checked = false;
|
||||
chkPrior.Checked = false;
|
||||
chkSetFermo.Checked = false;
|
||||
chkTipoGuasto.Checked = false;
|
||||
pnlCadenza.Visible = false;
|
||||
pnlDescrMtzPro.Visible = false;
|
||||
pnlFreq.Visible = false;
|
||||
pnlInizio.Visible = false;
|
||||
pnlPrior.Visible = false;
|
||||
pnlSetFermo.Visible = false;
|
||||
pnlTipoGuasto.Visible = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+280
-2
@@ -1,10 +1,9 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -21,6 +20,285 @@ public partial class mod_elencoMtzProg {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnShowNew;
|
||||
|
||||
/// <summary>
|
||||
/// btnMassEdit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnMassEdit;
|
||||
|
||||
/// <summary>
|
||||
/// UpdatePanel1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel UpdatePanel1;
|
||||
|
||||
/// <summary>
|
||||
/// pnlMassEdit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlMassEdit;
|
||||
|
||||
/// <summary>
|
||||
/// chkInizioMtzPro control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkInizioMtzPro;
|
||||
|
||||
/// <summary>
|
||||
/// pnlInizio control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlInizio;
|
||||
|
||||
/// <summary>
|
||||
/// txtDataInizio control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtDataInizio;
|
||||
|
||||
/// <summary>
|
||||
/// CalendarExtender1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1;
|
||||
|
||||
/// <summary>
|
||||
/// chkPrior control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkPrior;
|
||||
|
||||
/// <summary>
|
||||
/// pnlPrior control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlPrior;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPrior control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlPrior;
|
||||
|
||||
/// <summary>
|
||||
/// odsPrior control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsPrior;
|
||||
|
||||
/// <summary>
|
||||
/// chkSetFermo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkSetFermo;
|
||||
|
||||
/// <summary>
|
||||
/// pnlSetFermo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlSetFermo;
|
||||
|
||||
/// <summary>
|
||||
/// chkImpFermo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkImpFermo;
|
||||
|
||||
/// <summary>
|
||||
/// chkTipoGuasto control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkTipoGuasto;
|
||||
|
||||
/// <summary>
|
||||
/// pnlTipoGuasto control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlTipoGuasto;
|
||||
|
||||
/// <summary>
|
||||
/// ddlTipo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlTipo;
|
||||
|
||||
/// <summary>
|
||||
/// odsTipo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipo;
|
||||
|
||||
/// <summary>
|
||||
/// chkFreq control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkFreq;
|
||||
|
||||
/// <summary>
|
||||
/// pnlFreq control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlFreq;
|
||||
|
||||
/// <summary>
|
||||
/// ddlFreq control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlFreq;
|
||||
|
||||
/// <summary>
|
||||
/// odsFreq control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsFreq;
|
||||
|
||||
/// <summary>
|
||||
/// chkCadenza control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkCadenza;
|
||||
|
||||
/// <summary>
|
||||
/// pnlCadenza control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlCadenza;
|
||||
|
||||
/// <summary>
|
||||
/// txtCadenza control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtCadenza;
|
||||
|
||||
/// <summary>
|
||||
/// chkDescrMtzPro control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkDescrMtzPro;
|
||||
|
||||
/// <summary>
|
||||
/// pnlDescrMtzPro control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlDescrMtzPro;
|
||||
|
||||
/// <summary>
|
||||
/// txtDescrizione control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtDescrizione;
|
||||
|
||||
/// <summary>
|
||||
/// btnEditConfirm control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnEditConfirm;
|
||||
|
||||
/// <summary>
|
||||
/// btnEditCancel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnEditCancel;
|
||||
|
||||
/// <summary>
|
||||
/// UpdatePanel2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel UpdatePanel2;
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true"
|
||||
Inherits="mod_mtzPrevPending" Codebehind="mod_mtzPrevPending.ascx.cs" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_mtzPrevPending" CodeBehind="mod_mtzPrevPending.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<div style="text-align: right;">
|
||||
<asp:HyperLink ID="hlExportExcel" runat="server" Target="_blank" />
|
||||
</div>
|
||||
<div style="font-size: 8pt;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
DataKeyNames="idxPending" DataSourceID="ods" OnDataBound="grView_DataBound">
|
||||
DataKeyNames="idxPending" DataSourceID="ods" OnDataBound="grView_DataBound" EnableModelValidation="True">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
@@ -21,19 +20,29 @@
|
||||
<Columns>
|
||||
<asp:BoundField DataField="data" HeaderText="data" SortExpression="data" DataFormatString="{0:dd/MM/yyyy}"
|
||||
HtmlEncode="false" />
|
||||
<asp:BoundField DataField="codImpianto" HeaderText="codImpianto" SortExpression="codImpianto" />
|
||||
<asp:BoundField DataField="nomeImpianto" HeaderText="nomeImpianto" SortExpression="nomeImpianto" />
|
||||
<asp:BoundField DataField="codMacchina" HeaderText="codMacchina" SortExpression="codMacchina" />
|
||||
<asp:BoundField DataField="nomeMacchina" HeaderText="nomeMacchina" SortExpression="nomeMacchina" />
|
||||
<asp:TemplateField HeaderText="nomeImpianto" SortExpression="nomeImpianto">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("codImpianto") %>' />
|
||||
<br />
|
||||
<b><asp:Label ID="Label2" runat="server" Text='<%# Eval("nomeImpianto") %>' /></b>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="nomeMacchina" SortExpression="nomeMacchina">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("codMacchina") %>' />
|
||||
<br />
|
||||
<b><asp:Label ID="Label4" runat="server" Text='<%# Eval("nomeMacchina") %>' /></b>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="descrizione" HeaderText="descrizione" SortExpression="descrizione" />
|
||||
<asp:BoundField DataField="descrPriorita" HeaderText="descrPriorita" SortExpression="descrPriorita" />
|
||||
<asp:CheckBoxField DataField="isFermo" HeaderText="chkImpFermo" SortExpression="isFermo" />
|
||||
<asp:BoundField DataField="descrTipo" HeaderText="descrTipo" SortExpression="descrTipo" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini"></asp:Label>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_mtzProgPendingExpTableAdapter"
|
||||
OldValuesParameterFormatString="original_{0}" FilterExpression=" (codImpianto LIKE '%{0}%') OR (nomeImpianto LIKE '%{0}%') OR (codMacchina LIKE '%{0}%') OR (nomeMacchina LIKE '%{0}%') OR (descrizione LIKE '%{0}%') OR (descrPriorita LIKE '%{0}%') OR (descrTipo LIKE '%{0}%') ">
|
||||
OldValuesParameterFormatString="Original_{0}" FilterExpression=" (codImpianto LIKE '%{0}%') OR (nomeImpianto LIKE '%{0}%') OR (codMacchina LIKE '%{0}%') OR (nomeMacchina LIKE '%{0}%') OR (descrizione LIKE '%{0}%') OR (descrPriorita LIKE '%{0}%') OR (descrTipo LIKE '%{0}%') ">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
<asp:SessionParameter DefaultValue="0" Name="idxTipo" SessionField="idxTipo_filt"
|
||||
|
||||
+1
-2
@@ -1,10 +1,9 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1481
-1284
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 8.9 KiB |
@@ -10,11 +10,18 @@ public partial class mtzProg : System.Web.UI.Page
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
mod_elencoMtzProg1.eh_newReq += new EventHandler(mod_elencoMtzProg1_eh_newReq);
|
||||
mod_elencoMtzProg1.eh_updateDone += new EventHandler(mod_elencoMtzProg1_eh_updateDone);
|
||||
mod_dettMtzProg1.eh_newInserted += new EventHandler(mod_dettMtzProg1_eh_newInserted);
|
||||
mod_filtraMtzProg1.eh_newFiltroSel += new EventHandler(mod_filtraMtzProg1_eh_newFiltroSel);
|
||||
traduciObj();
|
||||
}
|
||||
|
||||
void mod_elencoMtzProg1_eh_updateDone(object sender, EventArgs e)
|
||||
{
|
||||
// update della visualizzazione pre-export in excel
|
||||
mod_mtzPrevPending1.doUpdate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// è stato chiamato evento "nuovo filtro" e quindi aggiorno
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
@@ -97,3 +97,36 @@ c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\WebGIM\GIM_s
|
||||
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\WebGIM\GIM_site\obj\Debug\RdlCompile.compiled
|
||||
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\WebGIM\GIM_site\obj\Debug\GIM_site.dll
|
||||
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\WebGIM\GIM_site\obj\Debug\GIM_site.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_site.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_site.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_data.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SteamWare.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\Flesk.ViewState.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ICSharpCode.SharpZipLib.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SteamWare.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SteamWare.xml
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_data.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Debug\GIM_site.csprojResolveAssemblyReference.cache
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Debug\RdlCompile.cache
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Debug\RdlCompile.compiled
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Debug\GIM_site.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Debug\GIM_site.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\AjaxControlToolkit.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SanitizerProviders.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\AjaxControlToolkit.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ar\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\cs\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\de\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\es\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\fr\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\he\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\hi\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\it\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ja\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ko\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\nl\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\pt\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ru\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\tr-TR\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\zh-CHS\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\zh-CHT\AjaxControlToolkit.resources.dll
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -4,10 +4,8 @@ C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_d
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SteamWare.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\Flesk.ViewState.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ICSharpCode.SharpZipLib.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\System.Web.Ajax.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_data.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\AjaxControlToolkit.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\System.Web.Ajax.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ar\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\cs\AjaxControlToolkit.resources.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\de\AjaxControlToolkit.resources.dll
|
||||
@@ -29,3 +27,5 @@ C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Somas
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Somaschini\RdlCompile.compiled
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Somaschini\GIM_site.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Somaschini\GIM_site.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\AjaxControlToolkit.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SanitizerProviders.dll
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="AjaxControlToolkit" version="4.1.60623" targetFramework="net35" />
|
||||
</packages>
|
||||
@@ -0,0 +1,420 @@
|
||||
/****************************************************************
|
||||
* SteamWare s.r.l.
|
||||
*
|
||||
* Setup iniziale DB applicazione WebGIM con eliminazione oggetti
|
||||
*
|
||||
* modificato: 2009-01-23 S.E.L.
|
||||
*
|
||||
****************************************************************/
|
||||
|
||||
/* elimino funzioni */
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
IF NOT object_id('f_padLeft') IS NULL
|
||||
DROP FUNCTION f_padLeft
|
||||
GO
|
||||
|
||||
IF NOT object_id('rightDivision') IS NULL
|
||||
DROP FUNCTION rightDivision
|
||||
GO
|
||||
|
||||
COMMIT
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* elimino stored */
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
IF NOT object_id('sp_clonaImpianto') IS NULL
|
||||
DROP PROCEDURE sp_clonaImpianto
|
||||
GO
|
||||
|
||||
IF NOT object_id('sp_clonaMacchina') IS NULL
|
||||
DROP PROCEDURE sp_clonaMacchina
|
||||
GO
|
||||
|
||||
IF NOT object_id('sp_elencoIntMTBF_MTTR') IS NULL
|
||||
DROP PROCEDURE sp_elencoIntMTBF_MTTR
|
||||
GO
|
||||
|
||||
IF NOT object_id('sp_insRichiesta') IS NULL
|
||||
DROP PROCEDURE sp_insRichiesta
|
||||
GO
|
||||
|
||||
IF NOT object_id('sp_procStatEv') IS NULL
|
||||
DROP PROCEDURE sp_procStatEv
|
||||
GO
|
||||
|
||||
IF NOT object_id('sp_setPresaInCarico') IS NULL
|
||||
DROP PROCEDURE sp_setPresaInCarico
|
||||
GO
|
||||
|
||||
IF NOT object_id('sp_spostaMacchina') IS NULL
|
||||
DROP PROCEDURE sp_spostaMacchina
|
||||
GO
|
||||
|
||||
IF NOT object_id('sp_updateIntervento') IS NULL
|
||||
DROP PROCEDURE sp_updateIntervento
|
||||
GO
|
||||
|
||||
IF NOT object_id('sp_updateInterventoFull') IS NULL
|
||||
DROP PROCEDURE sp_updateInterventoFull
|
||||
GO
|
||||
|
||||
COMMIT
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* elimino le viste... */
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_datiMTBFMTTR') IS NULL
|
||||
DROP VIEW v_datiMTBFMTTR
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_elencoImpiantiMacchine') IS NULL
|
||||
DROP VIEW v_elencoImpiantiMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_elencoIntervFilt') IS NULL
|
||||
DROP VIEW v_elencoIntervFilt
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_interventiErogati') IS NULL
|
||||
DROP VIEW v_interventiErogati
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_intervExp') IS NULL
|
||||
DROP VIEW v_intervExp
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_macchine') IS NULL
|
||||
DROP VIEW v_macchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_mtzProgExp') IS NULL
|
||||
DROP VIEW v_mtzProgExp
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selAmbiti') IS NULL
|
||||
DROP VIEW v_selAmbiti
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selCausaliMacchine') IS NULL
|
||||
DROP VIEW v_selCausaliMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selFamMacc') IS NULL
|
||||
DROP VIEW v_selFamMacc
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selFreq') IS NULL
|
||||
DROP VIEW v_selFreq
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selImpianti') IS NULL
|
||||
DROP VIEW v_selImpianti
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selMacchine') IS NULL
|
||||
DROP VIEW v_selMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selPeriodiTrad') IS NULL
|
||||
DROP VIEW v_selPeriodiTrad
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selPrior') IS NULL
|
||||
DROP VIEW v_selPrior
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selSemafori') IS NULL
|
||||
DROP VIEW v_selSemafori
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selStato') IS NULL
|
||||
DROP VIEW v_selStato
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_selTipoGuasto') IS NULL
|
||||
DROP VIEW v_selTipoGuasto
|
||||
GO
|
||||
|
||||
IF NOT object_id('v_vocabolario') IS NULL
|
||||
DROP VIEW v_vocabolario
|
||||
GO
|
||||
|
||||
COMMIT
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*Svuoto eventuali tabelle già presenti...*/
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_InterventiMtz_AnagAmbitoGuasto') IS NULL
|
||||
|
||||
ALTER TABLE InterventiMtz DROP
|
||||
CONSTRAINT FK_InterventiMtz_AnagAmbitoGuasto
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagAmbitoGuasto') IS NULL
|
||||
DROP TABLE AnagAmbitoGuasto
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_Causali2FamMacchine_AnagCausali') IS NULL
|
||||
|
||||
ALTER TABLE Causali2FamMacchine DROP
|
||||
CONSTRAINT FK_Causali2FamMacchine_AnagCausali
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_InterventiMtz_AnagCausali') IS NULL
|
||||
|
||||
ALTER TABLE InterventiMtz DROP
|
||||
CONSTRAINT FK_InterventiMtz_AnagCausali
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagCausali') IS NULL
|
||||
DROP TABLE AnagCausali
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_Tra_Ev2Stati_AnagEventi') IS NULL
|
||||
|
||||
ALTER TABLE Tra_Ev2Stati DROP
|
||||
CONSTRAINT FK_Tra_Ev2Stati_AnagEventi
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagEventi') IS NULL
|
||||
DROP TABLE AnagEventi
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_Causali2FamMacchine_AnagFamMacchine') IS NULL
|
||||
|
||||
ALTER TABLE Causali2FamMacchine DROP
|
||||
CONSTRAINT FK_Causali2FamMacchine_AnagFamMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_Macchine2FamMacchine_AnagFamMacchine') IS NULL
|
||||
|
||||
ALTER TABLE Macchine2FamMacchine DROP
|
||||
CONSTRAINT FK_Macchine2FamMacchine_AnagFamMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagFamMacchine') IS NULL
|
||||
DROP TABLE AnagFamMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_MtzProgrammata_AnagFrequenze') IS NULL
|
||||
|
||||
ALTER TABLE MtzProgrammata DROP
|
||||
CONSTRAINT FK_MtzProgrammata_AnagFrequenze
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagFrequenze') IS NULL
|
||||
DROP TABLE AnagFrequenze
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_FiltroImpianti_AnagImpianti') IS NULL
|
||||
|
||||
ALTER TABLE FiltroImpianti DROP
|
||||
CONSTRAINT FK_FiltroImpianti_AnagImpianti
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_InterventiMtz_AnagImpianti') IS NULL
|
||||
|
||||
ALTER TABLE InterventiMtz DROP
|
||||
CONSTRAINT FK_InterventiMtz_AnagImpianti
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_AnagMacchine_AnagImpianti') IS NULL
|
||||
|
||||
ALTER TABLE AnagMacchine DROP
|
||||
CONSTRAINT FK_AnagMacchine_AnagImpianti
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagImpianti') IS NULL
|
||||
DROP TABLE AnagImpianti
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_MtzProgrammata_AnagMacchine') IS NULL
|
||||
|
||||
ALTER TABLE MtzProgrammata DROP
|
||||
CONSTRAINT FK_MtzProgrammata_AnagMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_FiltroMacchine_AnagMacchine') IS NULL
|
||||
|
||||
ALTER TABLE FiltroMacchine DROP
|
||||
CONSTRAINT FK_FiltroMacchine_AnagMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_InterventiMtz_AnagMacchine') IS NULL
|
||||
|
||||
ALTER TABLE InterventiMtz DROP
|
||||
CONSTRAINT FK_InterventiMtz_AnagMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_Macchine2FamMacchine_AnagMacchine') IS NULL
|
||||
|
||||
ALTER TABLE Macchine2FamMacchine DROP
|
||||
CONSTRAINT FK_Macchine2FamMacchine_AnagMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagMacchine') IS NULL
|
||||
DROP TABLE AnagMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagPeriodi') IS NULL
|
||||
DROP TABLE AnagPeriodi
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_InterventiMtz_AnagPriorita') IS NULL
|
||||
|
||||
ALTER TABLE InterventiMtz DROP
|
||||
CONSTRAINT FK_InterventiMtz_AnagPriorita
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagPriorita') IS NULL
|
||||
DROP TABLE AnagPriorita
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagSemafori') IS NULL
|
||||
DROP TABLE AnagSemafori
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_Tra_Ev2Stati_AnagStati') IS NULL
|
||||
|
||||
ALTER TABLE Tra_Ev2Stati DROP
|
||||
CONSTRAINT FK_Tra_Ev2Stati_AnagStati
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_FiltroStati_AnagStati') IS NULL
|
||||
|
||||
ALTER TABLE FiltroStati DROP
|
||||
CONSTRAINT FK_FiltroStati_AnagStati
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_InterventiMtz_AnagStati') IS NULL
|
||||
|
||||
ALTER TABLE InterventiMtz DROP
|
||||
CONSTRAINT FK_InterventiMtz_AnagStati
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagStati') IS NULL
|
||||
DROP TABLE AnagStati
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_InterventiMtz_AnagTipoGuasto') IS NULL
|
||||
|
||||
ALTER TABLE InterventiMtz DROP
|
||||
CONSTRAINT FK_InterventiMtz_AnagTipoGuasto
|
||||
GO
|
||||
|
||||
IF NOT object_id('AnagTipoGuasto') IS NULL
|
||||
DROP TABLE AnagTipoGuasto
|
||||
GO
|
||||
|
||||
IF NOT object_id('CalendFesteFerie') IS NULL
|
||||
DROP TABLE CalendFesteFerie
|
||||
GO
|
||||
|
||||
IF NOT object_id('Causali2FamMacchine') IS NULL
|
||||
DROP TABLE Causali2FamMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('FiltroImpianti') IS NULL
|
||||
DROP TABLE FiltroImpianti
|
||||
GO
|
||||
|
||||
IF NOT object_id('FiltroMacchine') IS NULL
|
||||
DROP TABLE FiltroMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('FiltroStati') IS NULL
|
||||
DROP TABLE FiltroStati
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_InterventoOpMtz_InterventiMtz') IS NULL
|
||||
|
||||
ALTER TABLE InterventoOpMtz DROP
|
||||
CONSTRAINT FK_InterventoOpMtz_InterventiMtz
|
||||
GO
|
||||
|
||||
IF NOT object_id('InterventiMtz') IS NULL
|
||||
DROP TABLE InterventiMtz
|
||||
GO
|
||||
|
||||
IF NOT object_id('InterventoOpMtz') IS NULL
|
||||
DROP TABLE InterventoOpMtz
|
||||
GO
|
||||
|
||||
IF NOT object_id('LogUpdateDb') IS NULL
|
||||
DROP TABLE LogUpdateDb
|
||||
GO
|
||||
|
||||
IF NOT object_id('Macchine2FamMacchine') IS NULL
|
||||
DROP TABLE Macchine2FamMacchine
|
||||
GO
|
||||
|
||||
IF NOT object_id('MtzProgPending') IS NULL
|
||||
DROP TABLE MtzProgPending
|
||||
GO
|
||||
|
||||
IF NOT object_id('MtzProgrammata') IS NULL
|
||||
DROP TABLE MtzProgrammata
|
||||
GO
|
||||
|
||||
IF NOT object_id('OreAperturaSett') IS NULL
|
||||
DROP TABLE OreAperturaSett
|
||||
GO
|
||||
|
||||
IF NOT object_id('FK_Permessi2Funzione_Permessi') IS NULL
|
||||
|
||||
ALTER TABLE Permessi2Funzione DROP
|
||||
CONSTRAINT FK_Permessi2Funzione_Permessi
|
||||
GO
|
||||
|
||||
IF NOT object_id('Permessi') IS NULL
|
||||
DROP TABLE Permessi
|
||||
GO
|
||||
|
||||
IF NOT object_id('Permessi2Funzione') IS NULL
|
||||
DROP TABLE Permessi2Funzione
|
||||
GO
|
||||
|
||||
IF NOT object_id('Tra_Ev2Stati') IS NULL
|
||||
DROP TABLE Tra_Ev2Stati
|
||||
GO
|
||||
|
||||
COMMIT
|
||||
GO
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,991 @@
|
||||
/****************************************************************
|
||||
* SteamWare s.r.l.
|
||||
*
|
||||
* Setup iniziale DB WebGIM con valorizzazione valori di default
|
||||
*
|
||||
* modificato: 2009-01-13 S.E.L.
|
||||
*
|
||||
****************************************************************/
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
SET IDENTITY_INSERT dbo.AnagAmbitoGuasto ON
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagAmbitoGuasto
|
||||
(idxAmbito, descrAmbitoGuasto)
|
||||
VALUES (1, N'non definito')
|
||||
INSERT INTO dbo.AnagAmbitoGuasto
|
||||
(idxAmbito, descrAmbitoGuasto)
|
||||
VALUES (2, N'usura')
|
||||
INSERT INTO dbo.AnagAmbitoGuasto
|
||||
(idxAmbito, descrAmbitoGuasto)
|
||||
VALUES (3, N'accidentale - urti')
|
||||
INSERT INTO dbo.AnagAmbitoGuasto
|
||||
(idxAmbito, descrAmbitoGuasto)
|
||||
VALUES (4, N'set-up')
|
||||
INSERT INTO dbo.AnagAmbitoGuasto
|
||||
(idxAmbito, descrAmbitoGuasto)
|
||||
VALUES (5, N'rottura inserto')
|
||||
INSERT INTO dbo.AnagAmbitoGuasto
|
||||
(idxAmbito, descrAmbitoGuasto)
|
||||
VALUES (6, N'mancanza energia')
|
||||
INSERT INTO dbo.AnagAmbitoGuasto
|
||||
(idxAmbito, descrAmbitoGuasto)
|
||||
VALUES (7, N'Mtz programmata')
|
||||
INSERT INTO dbo.AnagAmbitoGuasto
|
||||
(idxAmbito, descrAmbitoGuasto)
|
||||
VALUES (8, N'errata programmazione')
|
||||
INSERT INTO dbo.AnagAmbitoGuasto
|
||||
(idxAmbito, descrAmbitoGuasto)
|
||||
VALUES (9, N'pulizia')
|
||||
GO
|
||||
|
||||
SET IDENTITY_INSERT dbo.AnagAmbitoGuasto OFF
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagEventi
|
||||
VALUES (1, N'Presa in carico')
|
||||
INSERT INTO dbo.AnagEventi
|
||||
VALUES (2, N'Conclusione intervento')
|
||||
INSERT INTO dbo.AnagEventi
|
||||
VALUES (3, N'Annullamento intervento')
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
SET IDENTITY_INSERT dbo.AnagFamMacchine ON
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagFamMacchine
|
||||
(idxFamMacchine, nomeFamMacch)
|
||||
VALUES (1, N'Tornitrici MonoMandrino')
|
||||
INSERT INTO dbo.AnagFamMacchine
|
||||
(idxFamMacchine, nomeFamMacch)
|
||||
VALUES (2, N'Foratrici')
|
||||
INSERT INTO dbo.AnagFamMacchine
|
||||
(idxFamMacchine, nomeFamMacch)
|
||||
VALUES (3, N'Lappatrici')
|
||||
INSERT INTO dbo.AnagFamMacchine
|
||||
(idxFamMacchine, nomeFamMacch)
|
||||
VALUES (4, N'Impianto Elettrico')
|
||||
INSERT INTO dbo.AnagFamMacchine
|
||||
(idxFamMacchine, nomeFamMacch)
|
||||
VALUES (5, N'Impianto Pneumatico')
|
||||
INSERT INTO dbo.AnagFamMacchine
|
||||
(idxFamMacchine, nomeFamMacch)
|
||||
VALUES (6, N'Impianto Idraulico')
|
||||
INSERT INTO dbo.AnagFamMacchine
|
||||
(idxFamMacchine, nomeFamMacch)
|
||||
VALUES (7, N'Raccolta sfrido')
|
||||
GO
|
||||
|
||||
SET IDENTITY_INSERT dbo.AnagFamMacchine OFF
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
SET IDENTITY_INSERT dbo.AnagImpianti ON
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (1, N'MTZ', N'Manutenzione', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (2, N'STRUM', N'Strumenti di misura /Controllo', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (3, N'TORN', N'Tornitura', N'Reparto', '2009-01-01 00:00:00.000', '2018-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (4, N'DEN', N'Dentatura', N'Reparto', '2009-01-01 00:00:00.000', '2018-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (5, N'DENGLE', N'Dentatura Gleason', N'Reparto', '2009-01-01 00:00:00.000', '2018-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (6, N'CLAV', N'Centri di lavoro', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (7, N'CTS', N'Centratura Intestatura / Taglio Seghetti', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (8, N'TRA', N'Trapani', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (9, N'SBA', N'Sbavatrici', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (10, N'REINT', N'Rettifiche Interne', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (11, N'REEXT', N'Rettifiche Esterne', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (12, N'TORFIN', N'Tornitura Finitura', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (13, N'REDENT', N'Rettifiche Denti', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (14, N'LOG', N'Logistica', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (15, N'IMP', N'Impianti e Servizi', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
INSERT INTO dbo.AnagImpianti
|
||||
(idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
||||
VALUES (16, N'SI', N'Sistemi Informatici', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000')
|
||||
GO
|
||||
|
||||
SET IDENTITY_INSERT dbo.AnagImpianti OFF
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
SET IDENTITY_INSERT dbo.AnagMacchine ON
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (3, 7, N'--SE/1', N'Segatrice a nastro', N'DAITO GA 260 W', NULL, 1988, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (4, 7, N'--SE/2', N'Segatrice a nastro', N'DAITO GA 260 W', NULL, 1988, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (5, 3, N'--EM/7', N'Tornio verticale CN con caricatore', N'EMAG VSC 7', NULL, 2007, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (6, 3, N'--DT20', N'Tornio a 2 teste CN con portale (isola LP1)', N'MAZAK DT20', NULL, 2005, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (7, 3, N'EM3152', N'Tornio verticale CN con caricatore', N'EMAG VSC 315', NULL, 2005, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (8, 3, N'-EM400', N'Tornio verticale CN con caricatore', N'EMAG VSC 400', NULL, 1999, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (9, 3, N'MT5003', N'Tornio CN con portale', N'GRAZIANO MT500 CNC', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (10, 3, N'-EM315', N'Tornio verticale CN con caricatore', N'EMAG VSC 315', NULL, 1997, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (11, 3, N'---PDF', N'Tornio frontale a 2 teste CN', N'PITTLER 200 CNC PDF', NULL, 1995, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (12, 3, N'MT5002', N'Tornio CN con portale', N'GRAZIANO MT500 CNC', NULL, 1995, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (13, 3, N'-MT500', N'Tornio CN con portale', N'GRAZIANO MT500 CNC', NULL, 1994, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (14, 3, N'--P200', N'Tornio frontale a 2 teste CN con robot', N'PITTLER 200 CNC PETRA 1', NULL, 1989, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (15, 3, N'-OK165', N'Tornio frontale a 2 teste CN', N'OKUMA 165 CNC', NULL, 1989, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (16, 3, N'--P315', N'Tornio frontale a 2 teste CN', N'PITTLER 315 CNC PETRA 2', NULL, 1988, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (17, 3, N'--P250', N'Tornio frontale a 2 teste CN con robot', N'PITTLER 250 CNC PETRA 1', NULL, 1987, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (18, 3, N'--TP/1', N'Tornio parallelo', N'CMT URSUS 225', NULL, 1980, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (19, 3, N'--TP/2', N'Tornio parallelo', N'CMT URSUS 225', NULL, 1985, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (20, 3, N'-FELSO', N'Tornio verticale CN a 2 teste con caricatore', N'FELSOMAT FZ350', NULL, 2008, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (21, 8, N'-TMB/1', N'Trapano multiplo', N'BERARDI VB II Z', NULL, 1980, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (22, 8, N'-TMB/2', N'Trapano multiplo', N'BERARDI VB II Z', NULL, 1980, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (23, 8, N'---TMO', N'Trapano multiplo', N'OLIVETTI', NULL, 1978, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (24, 8, N'----TO', N'Trapano', N'OLIVETTI', NULL, 1975, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (25, 1, N'RECORD', N'Maschiatrice', N'RECORD', NULL, 1993, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (26, 1, N'---MJN', N'Maschiatrice', N'JOANNES', NULL, 1978, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (27, 1, N'--BV25', N'Brocciatrice', N'VARINELLI 1320', NULL, 1981, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (28, 1, N'--BMV6', N'Brocciatrice', N'VARINELLI 1600', NULL, 1980, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (29, 9, N'--GR/5', N'Sbavatrice GR/5', N'MPM SAG50/PN', NULL, 1978, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (30, 9, N'--GR/4', N'Sbavatrice GR/4', N'MINITOOLS MT600', NULL, 1990, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (31, 9, N'--GR/7', N'Smussatrice GR/7', N'RAVAGLIA', NULL, 2005, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (32, 9, N'--GR/8', N'Smussatrice GR/8', N'RAVAGLIA', NULL, 2005, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (33, 9, N'--GR/3', N'Sbavatrice GR/3', N'MPM', NULL, 1988, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (34, 9, N'N/D', N'Sbavatrice (in Isola LP1)', N'SAMPUTENSILI ', NULL, 2004, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (35, 9, N'---SCT', N'Sbavatrice', N'SAMPUTENSILI SCT3', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (36, 9, N'--GR/1', N'Sbavatrice GR/1', N'GRATOMAT KGG533', NULL, 1979, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (37, 9, N'--GR/2', N'Sbavatrice GR/2', N'GRATOMAT 300L', NULL, 1989, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (38, 6, N'-V5005', N'Centro di lavoro CN', N'DOOSAN VC500', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (39, 6, N'-V5004', N'Centro di lavoro CN', N'DOOSAN VC500', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (40, 6, N'--V500', N'Centro di lavoro CN', N'DAEWOO ACE VC500', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (41, 6, N'-V5002', N'Centro di lavoro CN', N'DAEWOO ACE VC500', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (42, 6, N'-V5003', N'Centro di lavoro CN', N'DAEWOO ACE VC500', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (43, 6, N'--V400', N'Centro di lavoro CN', N'DAEWOO ACE V400', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (44, 1, N'----MK', N'Fresatrice CN', N'MIKRON WF 31 CNC', NULL, 1989, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (45, 6, N'--V650', N'Centro di lavoro CN', N'DOOSAN MYNX 650', NULL, 2008, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (46, 4, N'-GP20A', N'Dentatrice a creatore CN con caricatore', N'GLEASON PFAUTER GP 200', NULL, 2005, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (47, 4, N'P180/1', N'Dentatrice a creatore CN con caricatore', N'PFAUTER PA 180 CNC', NULL, 2001, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (48, 4, N'P300/1', N'Dentatrice a creatore CN con caricatore', N'PFAUTER PE 300 CNC', NULL, 1997, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (49, 4, N'P250/1', N'Dentatrice a creatore CN con caricatore', N'PFAUTER PE 250 CNC', NULL, 1995, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (50, 4, N'H280C1', N'Dentatrice a creatore CN con caricatore', N'HURTH WF 280', NULL, 1988, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (51, 4, N'H280/1', N'Dentatrice a creatore', N'HURTH WF 280', NULL, 1983, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (52, 4, N'P160/1', N'Dentatrice a creatore CNC', N'PFAUTER P160 H/11', NULL, 1990, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (53, 4, N'P160H1', N'Dentatrice a creatore', N'PFAUTER P160 H/11', NULL, 1983, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (54, 4, N'P403/1', N'Dentatrice a creatore', N'PFAUTER P403', NULL, 1983, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (55, 4, N'P630/1', N'Dentatrice a creatore CNC', N'PFAUTER P630', NULL, 2005, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (56, 4, N'P400/1', N'Dentatrice a creatore', N'PFAUTER P400', NULL, 1972, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (57, 4, N'--LS/2', N'Dentatrice a stozzare con robot', N'LORENZ LS 200', NULL, 2001, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (58, 4, N'-SNJ/3', N'Dentatrice a stozzare', N'LORENZ SNJ 5 AUTO', NULL, 2001, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (59, 4, N'--LS/1', N'Dentatrice a stozzare', N'LORENZ LS 302', NULL, 1986, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (60, 4, N'-SN4/2', N'Dentatrice a stozzare', N'LORENZ SN 4', NULL, 1969, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (61, 4, N'-SNJ/1', N'Dentatrice a stozzare', N'LORENZ SNJ 5', NULL, 1962, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (62, 4, N'-SNJ/2', N'Dentatrice a stozzare', N'LORENZ SNJ 5', NULL, 1962, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (63, 11, N'STU1/1', N'Rettifica per esterni CN con caricatore (isol', N'STUDER ECO 1000', NULL, 2003, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (64, 11, N'K175/1', N'Rettifica per esterni CN', N'KELLENBERGER R 175 CN', NULL, 1988, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (65, 11, N'K175/2', N'Rettifica per esterni CN', N'KELLENBERGER R 175 CN', NULL, 1994, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (66, 11, N'--K125', N'Rettifica per esterni', N'KELLENBERGER R 125', NULL, 1987, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (67, 11, N'TA1018', N'Rettifica per esterni', N'TACCHELLA UM 1018', NULL, 1986, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (68, 11, N'-TA612', N'Rettifica per esterni', N'TACCHELLA UN 612', NULL, 1986, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (69, 1, N'-RE12K', N'Rettifica per alberi scanalati CN', N'F.W. REFORM KSA 1200 CN', NULL, 1990, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (70, 1, N'--RIT4', N'Rettifica per innesti', N'TACCHELLA 4 AM', NULL, 1986, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (71, 1, N'----FV', N'Rettifica piani a tavola rotante', N'FAVRETTO MR 75 CN', NULL, 1988, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (72, 1, N'----RC', N'Rettifica centri', N'TECHNICA ZSM 6-5100-810', NULL, 1994, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (73, 1, N'N/D', N'Rettifica filetti', N'REISHAUER US', NULL, 1981, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (74, 1, N'-RFMSO', N'Rettifica filetti', N'MSO GA-2', NULL, 1979, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (75, 1, N'N/D', N'Affilatrice per creatori rettifica filetti', N'REISHAUER US', NULL, 1981, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (76, 10, N'--VM40', N'Rettifica per interni CN', N'VOUMARD 403 Y CN', NULL, 2003, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (77, 10, N'--VM15', N'Rettifica per interni CN', N'VOUMARD 150 CNC', NULL, 2002, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (78, 10, N'--VM5N', N'Rettifica per interni CN', N'VOUMARD 5N CN', NULL, 1999, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (79, 10, N'-MRE44', N'Rettifica per interni CN', N'MORARA 700 CN', NULL, 1989, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (80, 10, N'--MRIE', N'Rettifica per interni CN', N'MORARA MICRO I-E CN', NULL, 1987, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (81, 10, N'-VM5/1', N'Rettifica per interni', N'VOUMARD 5A', NULL, 1978, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (82, 10, N'-VM5/2', N'Rettifica per interni', N'VOUMARD 5A', NULL, 1979, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (83, 10, N'-VM5/3', N'Rettifica per interni', N'VOUMARD 5A', NULL, 1980, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (84, 10, N'-IC2MC', N'Rettifica per interni CN (in isola LP2)', N'MORARA I/C 2M', NULL, 2005, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (85, 1, N'--SN/2', N'Lappatrice (in isola LP2)', N'SUNNEN ML-2000', NULL, 2005, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (86, 1, N'----SN', N'Lappatrice', N'SUNNEN MBB1680A', NULL, 1983, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (87, 1, N'-RZ400', N'Rettifica denti CN con robot', N'REISHAUER RZ 400', NULL, 2005, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (88, 1, N'RZ4002', N'Rettifica denti CN con robot', N'REISHAUER RZ 400', NULL, 2006, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (89, 1, N'RZ4003', N'Rettifica denti CN con robot', N'REISHAUER RZ 400', NULL, 2008, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (90, 1, N'-RZ150', N'Rettifica denti CN con robot', N'REISHAUER RZ 150', NULL, 2003, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (91, 1, N'-RZ362', N'Rettifica denti CN ', N'REISHAUER RZ 362 A', NULL, 1997, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (92, 1, N'RZ362C', N'Rettifica denti CN ', N'REISHAUER RZ 362 A', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (93, 1, N'RZ362P', N'Rettifica denti CN ', N'REISHAUER RZ 362 A', NULL, 2000, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (94, 1, N'--RZ/2', N'Rettifica denti elettronica', N'REISHAUER RZ 300 E', NULL, 1996, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (95, 1, N'-RZ820', N'Rettifica denti CN', N'REISHAUER RZ 820 CN', NULL, 1995, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (96, 1, N'--RZAS', N'Rettifica denti CN', N'REISHAUER RZ 301 AS CN', NULL, 1994, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (97, 1, N'---RZS', N'Rettifica denti CN', N'REISHAUER RZ 301 S CN', NULL, 1989, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (98, 1, N'----ZB', N'Rettifica denti', N'REISHAUER ZB', NULL, 1979, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (99, 1, N'-H20BU', N'Bilanciatrice CN', N'SCHENCK H280BU', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (100, 1, N'N/D', N'Lavatrice', N'CEMASTIR TURBO LC1000', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (101, 1, N'----GB', N'Raddrizzatrice', N'GALDABINI RPRS/25', NULL, 1970, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (102, 1, N'N/D', N'Diamantatrici per mole', N'REISHAUER AM10', NULL, 1987, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (103, 1, N'N/D', N'Diamantatrici per mole', N'REISHAUER AM10', NULL, 1987, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (104, 1, N'N/D', N'Bilanciatrice per mole', N'HOFFMAN', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (105, 1, N'--PR/2', N'Macchina piantaggio spine Mercedes Z92', N'NUOVA VAEP MA0079', NULL, 2006, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (106, 1, N'--PR/3', N'Macchina piantaggio spine Mercedes Z46', N'SOMASCHINI', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (107, 1, N'---STR', N'Punzonatrice a rullare', N'SOMAUT', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (108, 1, N'--ST/1', N'Punzonatrice', N'AUTOMATOR', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (109, 1, N'--ST/2', N'Punzonatrice', N'AUTOMATOR', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (110, 1, N'--PRCM', N'Pressa', N'CMP T150', NULL, 1999, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (111, 1, N'----PR', N'Pressa', N'OMCN 161/R T40', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (112, 1, N'N/D', N'Arrotondatrice per dentature', N'PICCO K15', NULL, 1980, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (113, 1, N'N/D', N'Dentatrice a creatore', N'PFAUTER RS9 KS', NULL, 1972, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (114, 1, N'N/D', N'Dentatrice conica spirale CN', N'GLEASON G175 CNC', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (115, 1, N'N/D', N'Dentatrice conica spirale CN', N'GLEASON 116 CNC', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (116, 1, N'N/D', N'Dentatrice conica spirale', N'GLEASON 106', NULL, 1989, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (117, 1, N'N/D', N'Lappatrice per coppie coniche Gleason', N'GLEASON LAPPER 503', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (118, 1, N'N/D', N'Lappatrice per coppie coniche Gleason', N'GLEASON LAPPER 119 HYPOID', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (119, 1, N'N/D', N'Lappatrice per coppie coniche Gleason', N'GLEASON LAPPER 6"', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (120, 2, N'N/D', N'Tester di controllo coppie coniche Gleason', N'TESTER 6"', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (121, 2, N'N/D', N'Tester di controllo coppie coniche Gleason', N'TESTER 17A', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (122, 2, N'N/D', N'Tester di controllo coppie coniche Gleason', N'TESTER 502', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (123, 2, N'N/D', N'Tester di controllo coppie coniche Gleason', N'TESTER 13', NULL, 1985, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (124, 11, N'N/D', N'Rettifica per esterni', N'MSO FH 300x500', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (125, 2, N'N/D', N'Centro CN di misurazione 3D', N'ZEISS PRISMO 9/12/7', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (126, 2, N'N/D', N'Centro CN di misurazione ingr.', N'HÖFLER ZP 630 CN', NULL, 1996, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (127, 2, N'N/D', N'Centro CN di misurazione ingr.', N'HÖFLER EMZ 632 CN', NULL, 1990, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (128, 2, N'N/D', N'Ingranometro', N'HÖFLER ZW630 CN', NULL, 1995, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (129, 2, N'N/D', N'Macchina prova rumorosità', N'HURTH ZP 300', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (130, 2, N'N/D', N'Rugosimetro', N'PERTHEN S5P', NULL, NULL, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (131, 2, N'N/D', N'Durometro', N'WOLPERT DIA-TESTOR 1551', NULL, 1995, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (132, 2, N'N/D', N'Durometro', N'REICHERTER', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (133, 2, N'N/D', N'Durometro', N'GALILEO', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (134, 2, N'N/D', N'Proiettore di profili', N'HAUSER', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (135, 2, N'N/D', N'Apparecchio altimetro digitale con controp.', N'DIGIMAR 817C', NULL, 1990, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (136, 2, N'N/D', N'Interassimetro', N'PARKSON', NULL, 0, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (137, 2, N'N/D', N'Apparecchio controllo conicita'' pneum./elettr.', N'STOTZ DLS-27', NULL, 1996, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (138, 2, N'N/D', N'Appararecchio controllo strumenti di misura', N'JOINT DMS 680', NULL, 1995, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (139, 1, N'N/D', N'Profilometro', N'MAHR - PERTHOMETER PRK', NULL, 1997, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (140, 2, N'N/D', N'Appararecchio prova bruciature', N'ROLLSCAN 200-1', NULL, 1997, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (141, 1, N'N/D', N'Apparecchio per coni', N'STOTZ - DLS 27 M1 (4 elementi)', NULL, 1997, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (142, 2, N'N/D', N'Altimetro', N'TESA - MICROHITE', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (143, 1, N'N/D', N'Troncatrice', N'IMPTECH - C 10', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (144, 1, N'N/D', N'Inglobatrice', N'BUEHLER - SIMPLIMET 2000', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (145, 1, N'N/D', N'Levigatrice', N'BUEHLER - METASERV 2000', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (146, 2, N'N/D', N'Microdurometro', N'FUTURE TECH - FM-7', NULL, 1998, 1, 1, NULL, NULL)
|
||||
INSERT INTO dbo.AnagMacchine
|
||||
(idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
||||
VALUES (147, 2, N'N/D', N'Magnetoscopio per controllo ND', N'CGM ITALIA CEMSA FOS 1000', NULL, 2000, 1, 1, NULL, NULL)
|
||||
GO
|
||||
|
||||
SET IDENTITY_INSERT dbo.AnagMacchine OFF
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagSemafori
|
||||
VALUES (N'semaforoGiallo', N'Valore da verificare')
|
||||
INSERT INTO dbo.AnagSemafori
|
||||
VALUES (N'semaforoRosso', N'Errore/Attenzione')
|
||||
INSERT INTO dbo.AnagSemafori
|
||||
VALUES (N'semaforoVerde', N'Valore OK')
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-01-01 00:00:00.000', N'primo dell''anno')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-01-06 00:00:00.000', N'epifania')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-04-12 00:00:00.000', N'Pasqua')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-04-13 00:00:00.000', N'Lunedì dell''angelo')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-04-25 00:00:00.000', N'festa della liberazione')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-05-01 00:00:00.000', N'festa dei lavoratori')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-06-02 00:00:00.000', N'festa della repubblica')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-08-15 00:00:00.000', N'ferragosto')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-11-02 00:00:00.000', N'festività dei morti')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-12-08 00:00:00.000', N'immacolata concezione')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-12-25 00:00:00.000', N'Natale')
|
||||
INSERT INTO dbo.CalendFesteFerie
|
||||
VALUES ('2009-12-26 00:00:00.000', N'S.Stefano')
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (0, N'Dom', 2.00)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (1, N'Lun', 24.00)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (2, N'Mar', 24.00)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (3, N'Mer', 24.00)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (4, N'Gio', 24.00)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (5, N'Ven', 24.00)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (6, N'Sab', 22.00)
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagPriorita
|
||||
VALUES (1, N'Pericolo di infortunio', N'semaforoRosso')
|
||||
INSERT INTO dbo.AnagPriorita
|
||||
VALUES (2, N'Produzione Ferma', N'semaforoGiallo')
|
||||
INSERT INTO dbo.AnagPriorita
|
||||
VALUES (3, N'Intervento fine lavoro', N'semaforoVerde')
|
||||
INSERT INTO dbo.AnagPriorita
|
||||
VALUES (4, N'Intervento nel mese', N'semaforoVerde')
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagStati
|
||||
VALUES (1, N'Richiesto', N'semaforoRosso')
|
||||
INSERT INTO dbo.AnagStati
|
||||
VALUES (2, N'In corso', N'semaforoGiallo')
|
||||
INSERT INTO dbo.AnagStati
|
||||
VALUES (3, N'Concluso', N'semaforoVerde')
|
||||
INSERT INTO dbo.AnagStati
|
||||
VALUES (4, N'Annullato', N'semaforoVerde')
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
SET IDENTITY_INSERT dbo.AnagTipoGuasto ON
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagTipoGuasto
|
||||
(idxTipo, descrTipo)
|
||||
VALUES (1, N'elettrico')
|
||||
INSERT INTO dbo.AnagTipoGuasto
|
||||
(idxTipo, descrTipo)
|
||||
VALUES (2, N'meccanico')
|
||||
INSERT INTO dbo.AnagTipoGuasto
|
||||
(idxTipo, descrTipo)
|
||||
VALUES (3, N'pulizia')
|
||||
INSERT INTO dbo.AnagTipoGuasto
|
||||
(idxTipo, descrTipo)
|
||||
VALUES (4, N'servizi')
|
||||
GO
|
||||
|
||||
SET IDENTITY_INSERT dbo.AnagTipoGuasto OFF
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagPeriodi
|
||||
VALUES (N'0_freeSel', N'_freeSel')
|
||||
INSERT INTO dbo.AnagPeriodi
|
||||
VALUES (N'1_today', N'today')
|
||||
INSERT INTO dbo.AnagPeriodi
|
||||
VALUES (N'2_yesterday', N'yesterday')
|
||||
INSERT INTO dbo.AnagPeriodi
|
||||
VALUES (N'3_last_7', N'last_7')
|
||||
INSERT INTO dbo.AnagPeriodi
|
||||
VALUES (N'4_this_week', N'this_week')
|
||||
INSERT INTO dbo.AnagPeriodi
|
||||
VALUES (N'5_last_30', N'last_30')
|
||||
INSERT INTO dbo.AnagPeriodi
|
||||
VALUES (N'6_this_month', N'this_month')
|
||||
INSERT INTO dbo.AnagPeriodi
|
||||
VALUES (N'7_last_month', N'last_month')
|
||||
INSERT INTO dbo.AnagPeriodi
|
||||
VALUES (N'8_this_year', N'this_year')
|
||||
INSERT INTO dbo.AnagPeriodi
|
||||
VALUES (N'9_last_year', N'last_year')
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ADMIN', 'menu.aspx', 4, 0, 'Admin', 'Admin')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ADMIN_vocab', 'vocabolario.aspx', 4, 1, 'Vocabolario', 'Vocabolario')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ADV_MTZ', 'menu.aspx', 3, 0, 'AreaMtz', 'AreaMtzLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ADV_MTZ_Impianti', 'report_impianti.aspx', 3, 2, 'reportImpianti', 'reportImpiantiLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ADV_MTZ_Interactive', 'reportInteractive.aspx', 9993, 4, 'reportInterattivo', 'reportInterattivoLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ADV_MTZ_Interventi', 'report_analisi.aspx', 3, 3, 'reportInterventi', 'reportInterventiLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ADV_MTZ_mtzProg', 'mtzProg.aspx', 3, 1, 'MtzProg', 'MtzProgLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG', 'menu.aspx', 1, 0, 'AnagraficheBase', 'AnagraficheBase')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG_ambitiGuasto', 'anagAmbitiGuasto.aspx', 1, 1, 'AnagAmbitiGuasto', 'AnagAmbitiGuastoLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG_aperturaImp', 'aperturaImpianti.aspx', 1, 9, 'AnagAperturaSett', 'AnagAperturaSettLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG_assegnazioni', 'assegnazioniMacchineImpianti.aspx', 1, 5, 'AssegnMaccImp', 'AssegnMaccImpLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG_calChiusura', 'calendChiusura.aspx', 1, 10, 'AnagCalChiusure', 'AnagCalChiusureLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG_causali', 'gestioneCausali.aspx', 9991, 7, 'GestioneCausali', 'GestioneCausaliLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG_famMacc', 'famiglieMacchine.aspx', 9991, 6, 'FamMacchine', 'FamMacchineLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG_impianti', 'impianti.aspx', 1, 3, 'GestImpianti', 'GestImpiantiLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG_macchine', 'macchine.aspx', 1, 4, 'GestMacchine', 'GestMacchineLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG_priorita', 'priorita.aspx', 1, 2, 'AnagPriorita', 'AnagPrioritaLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('ANAG_tipo', 'tipoGuasto.aspx', 1, 8, 'AnagTipo', 'AnagTipoLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('HELP', 'menu.aspx', 5, 0, 'Help', 'HelpLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('HELP_support', 'help.aspx', 5, 1, 'HelpSupport', 'HelpSupportLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('RicMan', 'menu.aspx', 2, 0, 'RicManArea', 'RicManAreaLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('RicMan_edit', 'dettaglioIntervento.aspx', 999, 1, 'EditRicMan', 'EditRicManLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('RicMan_ins', 'insertRichiesta.aspx', 2, 1, 'InsRicMan', 'InsRicManLong')
|
||||
INSERT INTO dbo.Permessi
|
||||
VALUES ('RicMan_list', 'elencoRichieste.aspx', 2, 2, 'ElencoRichieste', 'ElencoRichiesteLong')
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ADMIN', N'GIM_AppAdmin', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ADMIN_vocab', N'GIM_AppAdmin', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ADV_MTZ', N'GIM_U', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ADV_MTZ_Impianti', N'GIM_U', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ADV_MTZ_Interactive', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ADV_MTZ_Interventi', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ADV_MTZ_mtzProg', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG_ambitiGuasto', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG_aperturaImp', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG_assegnazioni', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG_calChiusura', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG_causali', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG_famMacc', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG_impianti', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG_macchine', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG_priorita', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('ANAG_tipo', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('HELP', N'GIM_U', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('HELP_support', N'GIM_U', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('RicMan', N'GIM_U', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('RicMan_edit', N'GIM_SU', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('RicMan_ins', N'GIM_U', NULL)
|
||||
INSERT INTO dbo.Permessi2Funzione
|
||||
VALUES ('RicMan_list', N'GIM_U', NULL)
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Tra_Ev2Stati
|
||||
VALUES (1, 1, 2)
|
||||
INSERT INTO dbo.Tra_Ev2Stati
|
||||
VALUES (1, 2, 3)
|
||||
INSERT INTO dbo.Tra_Ev2Stati
|
||||
VALUES (1, 3, 4)
|
||||
INSERT INTO dbo.Tra_Ev2Stati
|
||||
VALUES (2, 2, 3)
|
||||
INSERT INTO dbo.Tra_Ev2Stati
|
||||
VALUES (2, 3, 4)
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
SET xact_abort ON
|
||||
GO
|
||||
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.AnagFrequenze
|
||||
VALUES (N'dd', N'giorni')
|
||||
INSERT INTO dbo.AnagFrequenze
|
||||
VALUES (N'MM', N'mesi')
|
||||
INSERT INTO dbo.AnagFrequenze
|
||||
VALUES (N'ww', N'settimane')
|
||||
INSERT INTO dbo.AnagFrequenze
|
||||
VALUES (N'yy', N'anni')
|
||||
GO
|
||||
|
||||
COMMIT TRANSACTION
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(2, GETDATE())
|
||||
GO
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,38 @@
|
||||
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, ISNULL(dbo.v_interventiErogati.totMinErogati / 60, 0) AS minErogati, ISNULL(DATEDIFF(hour, dbo.InterventiMtz.inizioIntervento,
|
||||
dbo.InterventiMtz.fineIntervento), 0) AS durataMtz, CASE (isFermo) WHEN 1 THEN ISNULL(DATEDIFF(hour, dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento),
|
||||
0) WHEN 0 THEN ISNULL(DATEDIFF(hour, dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento), 0) 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
|
||||
|
||||
COMMIT
|
||||
GO
|
||||
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(4, GETDATE())
|
||||
GO
|
||||
@@ -0,0 +1,327 @@
|
||||
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
|
||||
@@ -0,0 +1,434 @@
|
||||
/* modifiche per gestione corretta reportistica x mtz preventiva o meno... */
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
alter table InterventiMtz add
|
||||
scheduled bit constraint DF_InterventiMtz_scheduled default (0)
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', 'indica se l''intervento sia stato generato da manutenzione programmata/preventiva', 'USER', 'dbo', 'TABLE', 'InterventiMtz', 'COLUMN', 'scheduled'
|
||||
go
|
||||
|
||||
update InterventiMtz set scheduled=0
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/*************************************
|
||||
* STORED PROCEDURE sp_insRichiesta
|
||||
* Inserisce nuova richiesta di intervento
|
||||
*
|
||||
* modif.: S.E.L. - 2009.02.20
|
||||
**************************************/
|
||||
alter 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(500),
|
||||
@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)
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
/* aggiorno: se Ambito Guasto è 7 allora è mtz Prog... */
|
||||
UPDATE InterventiMtz
|
||||
SET scheduled = 1
|
||||
WHERE (idxAmbito = 7)
|
||||
GO
|
||||
|
||||
|
||||
/* indici! */
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
create index i_username on FiltroImpianti(username)
|
||||
go
|
||||
|
||||
create index i_username on FiltroMacchine(username)
|
||||
go
|
||||
|
||||
create index i_username on FiltroStati(username)
|
||||
go
|
||||
|
||||
create index i_richiesta on InterventiMtz(richiesta)
|
||||
go
|
||||
|
||||
create index i_impianto on InterventiMtz(idxImpianto)
|
||||
go
|
||||
|
||||
create index i_macchina on InterventiMtz(idxMacchina)
|
||||
go
|
||||
|
||||
create index i_stato on InterventiMtz(idxStato)
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
/* update view */
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
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, 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]
|
||||
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 = 5
|
||||
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
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
/* nuove stored + stored con filtraggio esteso! */
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/*************************************
|
||||
* 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
|
||||
go
|
||||
|
||||
/*************************************
|
||||
* 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
|
||||
go
|
||||
|
||||
/*************************************
|
||||
* 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
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
/*************************************
|
||||
* 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.01.25
|
||||
**************************************/
|
||||
create PROCEDURE stp_elencoIntMTBF_MTTR_fermaPrev
|
||||
(
|
||||
@inizio DATETIME,
|
||||
@fine DATETIME,
|
||||
@username VARCHAR(100),
|
||||
@soloMaccFerma BIT,
|
||||
@includiPreventiva BIT
|
||||
)
|
||||
AS
|
||||
|
||||
SELECT COUNT(v_elencoIntervFilt.numIntMtz) AS numInterventi, SUM(v_elencoIntervFilt.durataMtz) AS totOreMtz,
|
||||
SUM(v_elencoIntervFilt.durataOff) AS totOreOfficina, v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina,
|
||||
v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina
|
||||
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)
|
||||
GROUP BY v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(6, GETDATE())
|
||||
GO
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Sistemo trigger x la gestioen di nuove macchine con le causali sstandard... */
|
||||
|
||||
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
|
||||
)
|
||||
GO
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(7, GETDATE())
|
||||
GO
|
||||
@@ -0,0 +1,67 @@
|
||||
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:
|
||||
* - idxStati
|
||||
* - idxImpianto
|
||||
* - idxMacchina
|
||||
*
|
||||
* modif.: S.E.L. - 2010.05.11
|
||||
**************************************/
|
||||
alter PROCEDURE sp_elencoIntMTBF_MTTR
|
||||
(
|
||||
@inizio DATETIME,
|
||||
@fine DATETIME,
|
||||
@username VARCHAR(100)
|
||||
)
|
||||
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))
|
||||
|
||||
|
||||
-- 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
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(8, GETDATE())
|
||||
GO
|
||||
@@ -0,0 +1,601 @@
|
||||
create table AnagClasseTurno(
|
||||
CodClasseTurno nvarchar(50) not null constraint PK_AnagClasseTurno primary key,
|
||||
Descrizione nvarchar(50),
|
||||
hSettStd int
|
||||
)
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
INSERT INTO dbo.AnagClasseTurno
|
||||
VALUES (N'2t5gg', N'2 turni, 5 gg', 80)
|
||||
INSERT INTO dbo.AnagClasseTurno
|
||||
VALUES (N'3t5gg', N'3 turni, 5 gg', 120)
|
||||
go
|
||||
|
||||
commit transaction
|
||||
go
|
||||
|
||||
|
||||
create table AnagTurni(
|
||||
CodTurno nvarchar(50) not null constraint PK_AnagTurni primary key,
|
||||
hStart int,
|
||||
hEnd int,
|
||||
descr nvarchar(50)
|
||||
)
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
INSERT INTO dbo.AnagTurni
|
||||
VALUES (N'T1', 6, 14, N'Turno 8h standard')
|
||||
INSERT INTO dbo.AnagTurni
|
||||
VALUES (N'T2', 14, 22, N'Turno 8h standard')
|
||||
INSERT INTO dbo.AnagTurni
|
||||
VALUES (N'T3', 22, 6, N'Turno 8h standard')
|
||||
INSERT INTO dbo.AnagTurni
|
||||
VALUES (N'TA', 0, 6, N'Turno 6h std')
|
||||
INSERT INTO dbo.AnagTurni
|
||||
VALUES (N'TB', 6, 12, N'Turno 6h std')
|
||||
INSERT INTO dbo.AnagTurni
|
||||
VALUES (N'TC', 12, 18, N'Turno 6h std')
|
||||
INSERT INTO dbo.AnagTurni
|
||||
VALUES (N'TD', 18, 24, N'Turno 6h std')
|
||||
go
|
||||
|
||||
commit transaction
|
||||
go
|
||||
|
||||
|
||||
drop table OreAperturaSett
|
||||
go
|
||||
|
||||
|
||||
create table OreAperturaSettTurni(
|
||||
CodClasseTurno nvarchar(50) not null,
|
||||
CodTurno nvarchar(50) not null,
|
||||
giorno int not null,
|
||||
descrGiorno nvarchar(50),
|
||||
|
||||
constraint PK_OreAperturaSett primary key(CodClasseTurno,giorno,CodTurno)
|
||||
)
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'2t5gg', N'T1', 1, N'Lun')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'2t5gg', N'T1', 2, N'Mar')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'2t5gg', N'T1', 3, N'Mer')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'2t5gg', N'T1', 4, N'Gio')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'2t5gg', N'T1', 5, N'Ven')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'2t5gg', N'T2', 1, N'Lun')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'2t5gg', N'T2', 2, N'Mar')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'2t5gg', N'T2', 3, N'Mer')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'2t5gg', N'T2', 4, N'Gio')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'2t5gg', N'T2', 5, N'Ven')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T1', 1, N'Lun')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T1', 2, N'Mar')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T1', 3, N'Mer')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T1', 4, N'Gio')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T1', 5, N'Ven')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T2', 1, N'Lun')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T2', 2, N'Mar')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T2', 3, N'Mer')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T2', 4, N'Gio')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T2', 5, N'Ven')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T3', 1, N'Lun')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T3', 2, N'Mar')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T3', 3, N'Mer')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T3', 4, N'Gio')
|
||||
INSERT INTO dbo.OreAperturaSettTurni
|
||||
VALUES (N'3t5gg', N'T3', 5, N'Ven')
|
||||
go
|
||||
|
||||
commit transaction
|
||||
go
|
||||
|
||||
|
||||
create table OreChiusuraSett(
|
||||
giorno int not null constraint PK_OreAperturaSett_1 primary key,
|
||||
descrGiorno nvarchar(50),
|
||||
chiusura int
|
||||
)
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
INSERT INTO dbo.OreChiusuraSett
|
||||
VALUES (6, N'Sab', 16)
|
||||
INSERT INTO dbo.OreChiusuraSett
|
||||
VALUES (7, N'Dom', 24)
|
||||
go
|
||||
|
||||
commit transaction
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***********************************************************************************
|
||||
* 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
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***********************************************************************************
|
||||
* 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
|
||||
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, 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]
|
||||
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 = "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
|
||||
End
|
||||
DisplayFlags = 280
|
||||
TopColumn = 0
|
||||
End
|
||||
Begin Table = "v_interventiErogati"
|
||||
Begin Extent =
|
||||
Top = 3
|
||||
Left = 739
|
||||
Bottom = 81
|
||||
Right = 890
|
||||
', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt'
|
||||
go
|
||||
|
||||
exec sp_updateextendedproperty 'MS_DiagramPane2', ' 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
|
||||
Begin Table = "InterventiMtz"
|
||||
Begin Extent =
|
||||
Top = 8
|
||||
Left = 486
|
||||
Bottom = 354
|
||||
Right = 671
|
||||
End
|
||||
DisplayFlags = 280
|
||||
TopColumn = 0
|
||||
End
|
||||
End
|
||||
End
|
||||
Begin SQLPane =
|
||||
End
|
||||
Begin DataPane =
|
||||
Begin ParameterDefaults = ""
|
||||
End
|
||||
Begin ColumnWidths = 30
|
||||
Width = 284
|
||||
Width = 915
|
||||
Width = 1815
|
||||
Width = 690
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1665
|
||||
Width = 1665
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1050
|
||||
Width = 1020
|
||||
Width = 1125
|
||||
Width = 1815
|
||||
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
|
||||
|
||||
|
||||
create table OreAperturaSett(
|
||||
giorno int not null constraint PK_OreAperturaSett_2 primary key,
|
||||
descrGiorno nvarchar(50),
|
||||
apertura int
|
||||
)
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (0, N'Dom', 0)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (1, N'Lun', 24)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (2, N'Mar', 24)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (3, N'Mer', 24)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (4, N'Gio', 24)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (5, N'Ven', 24)
|
||||
INSERT INTO dbo.OreAperturaSett
|
||||
VALUES (6, N'Sab', 8)
|
||||
go
|
||||
|
||||
commit transaction
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/*************************************
|
||||
* 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
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(20, GETDATE())
|
||||
GO
|
||||
@@ -0,0 +1,111 @@
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
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 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
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
exec sp_rename 'stp_duplicaMtzProgr', 'stp_MtzProg_duplica', 'object'
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/*********************************************************************************
|
||||
* STORED stp_MtzProg_getByKey
|
||||
*
|
||||
* restituisce riga MtzProg
|
||||
*
|
||||
**********************************************************************************/
|
||||
create PROCEDURE stp_MtzProg_getByKey
|
||||
(
|
||||
@idxIntPro INT
|
||||
)
|
||||
AS
|
||||
|
||||
SELECT *
|
||||
FROM MtzProgrammata
|
||||
WHERE idxIntPro = @idxIntPro
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
/*********************************************************************************
|
||||
* STORED stp_MtzProg_update
|
||||
*
|
||||
* aggiorna riga MtzProg
|
||||
*
|
||||
**********************************************************************************/
|
||||
create PROCEDURE stp_MtzProg_update
|
||||
(
|
||||
@idxIntPro INT,
|
||||
@inizio DATETIME,
|
||||
@codFrequenza NCHAR(2),
|
||||
@cadenza INT,
|
||||
@descrizione NVARCHAR(500),
|
||||
@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
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(200, GETDATE())
|
||||
GO
|
||||
Binary file not shown.
BIN
Binary file not shown.
+10
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<system.web>
|
||||
<pages>
|
||||
<controls>
|
||||
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
|
||||
</controls>
|
||||
</pages>
|
||||
</system.web>
|
||||
</configuration>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/zh-CHS/AjaxControlToolkit.resources.dll
Vendored
BIN
Binary file not shown.
Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/zh-CHT/AjaxControlToolkit.resources.dll
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user