Completata gestione della manutenzione programmata...

git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@50 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
This commit is contained in:
samuele
2009-01-29 10:44:46 +00:00
parent cec0040708
commit 2a417edb6c
7 changed files with 739 additions and 330 deletions
+516 -301
View File
@@ -374,6 +374,18 @@ where idxImpianto=@idxImpianto</CommandText>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_macchine" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByIdxMacchina" GetMethodModifier="Public" GetMethodName="getByIdxMacchina" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByIdxMacchina" UserSourceName="getByIdxMacchina">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl, descrImpianto
FROM v_macchine
WHERE idxMacchina=@idxMacchina</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="idxMacchina" ColumnName="idxMacchina" DataSourceName="GIM.dbo.v_macchine" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxMacchina" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.sp_clonaMacchina" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_clonaMacchina" Modifier="Public" Name="sp_clonaMacchina" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="sp_clonaMacchina">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -905,6 +917,153 @@ FROM v_mtzProgExp</CommandText>
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MtzProgPendingTableAdapter" GeneratorDataComponentClassName="MtzProgPendingTableAdapter" Name="MtzProgPending" UserDataComponentName="MtzProgPendingTableAdapter">
<MainSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.MtzProgPending" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[MtzProgPending] WHERE (([idxPending] = @Original_idxPending))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxPending" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxPending" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[MtzProgPending] ([idxIntPro], [idxMacchina], [data], [descrizione], [idxPriorita], [isFermo], [idxTipo]) VALUES (@idxIntPro, @idxMacchina, @data, @descrizione, @idxPriorita, @isFermo, @idxTipo)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxIntPro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxIntPro" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxMacchina" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@data" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="data" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrizione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxPriorita" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxPriorita" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@isFermo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isFermo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxTipo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipo" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idxPending, idxIntPro, idxMacchina, data, descrizione, idxPriorita, isFermo, idxTipo FROM dbo.MtzProgPending</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[MtzProgPending] SET [idxIntPro] = @idxIntPro, [idxMacchina] = @idxMacchina, [data] = @data, [descrizione] = @descrizione, [idxPriorita] = @idxPriorita, [isFermo] = @isFermo, [idxTipo] = @idxTipo WHERE (([idxPending] = @Original_idxPending))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxIntPro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxIntPro" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxMacchina" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@data" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="data" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrizione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxPriorita" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxPriorita" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@isFermo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isFermo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxTipo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxPending" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxPending" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="idxPending" DataSetColumn="idxPending" />
<Mapping SourceColumn="idxIntPro" DataSetColumn="idxIntPro" />
<Mapping SourceColumn="idxMacchina" DataSetColumn="idxMacchina" />
<Mapping SourceColumn="data" DataSetColumn="data" />
<Mapping SourceColumn="descrizione" DataSetColumn="descrizione" />
<Mapping SourceColumn="idxPriorita" DataSetColumn="idxPriorita" />
<Mapping SourceColumn="isFermo" DataSetColumn="isFermo" />
<Mapping SourceColumn="idxTipo" DataSetColumn="idxTipo" />
</Mappings>
<Sources>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.MtzProgPending" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByDataScad" GetMethodModifier="Public" GetMethodName="getByDataScad" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByDataScad" UserSourceName="getByDataScad">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT idxPending, idxIntPro, idxMacchina, data, descrizione, idxPriorita, isFermo, idxTipo FROM dbo.MtzProgPending WHERE data &lt; @dataScadenza</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="dataScadenza" ColumnName="data" DataSourceName="GIM.dbo.MtzProgPending" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dataScadenza" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="data" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MtzProgrammataTableAdapter" GeneratorDataComponentClassName="MtzProgrammataTableAdapter" Name="MtzProgrammata" UserDataComponentName="MtzProgrammataTableAdapter">
<MainSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.MtzProgrammata" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[MtzProgrammata] WHERE (([idxIntPro] = @Original_idxIntPro))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxIntPro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxIntPro" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[MtzProgrammata] ([idxMacchina], [inizio], [codFrequenza], [cadenza], [descrizione], [idxPriorita], [isFermo], [idxTipo]) VALUES (@idxMacchina, @inizio, @codFrequenza, @cadenza, @descrizione, @idxPriorita, @isFermo, @idxTipo)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxMacchina" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@inizio" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="inizio" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@codFrequenza" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="codFrequenza" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@cadenza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cadenza" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrizione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxPriorita" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxPriorita" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@isFermo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isFermo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxTipo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipo" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idxIntPro, idxMacchina, inizio, codFrequenza, cadenza, descrizione, idxPriorita, isFermo, idxTipo FROM dbo.MtzProgrammata</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[MtzProgrammata] SET [idxMacchina] = @idxMacchina, [inizio] = @inizio, [codFrequenza] = @codFrequenza, [cadenza] = @cadenza, [descrizione] = @descrizione, [idxPriorita] = @idxPriorita, [isFermo] = @isFermo, [idxTipo] = @idxTipo WHERE (([idxIntPro] = @Original_idxIntPro))</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxMacchina" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@inizio" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="inizio" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@codFrequenza" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="codFrequenza" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@cadenza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cadenza" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrizione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxPriorita" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxPriorita" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@isFermo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="isFermo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxTipo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxIntPro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxIntPro" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="idxIntPro" DataSetColumn="idxIntPro" />
<Mapping SourceColumn="idxMacchina" DataSetColumn="idxMacchina" />
<Mapping SourceColumn="inizio" DataSetColumn="inizio" />
<Mapping SourceColumn="codFrequenza" DataSetColumn="codFrequenza" />
<Mapping SourceColumn="cadenza" DataSetColumn="cadenza" />
<Mapping SourceColumn="descrizione" DataSetColumn="descrizione" />
<Mapping SourceColumn="idxPriorita" DataSetColumn="idxPriorita" />
<Mapping SourceColumn="isFermo" DataSetColumn="isFermo" />
<Mapping SourceColumn="idxTipo" DataSetColumn="idxTipo" />
</Mappings>
<Sources>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.MtzProgrammata" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getNotScheduled" GetMethodModifier="Public" GetMethodName="getNotScheduled" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getNotScheduled" UserSourceName="getNotScheduled">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<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)</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -916,16 +1075,16 @@ FROM v_mtzProgExp</CommandText>
<xs:element name="LogUpdateDb" msprop:Generator_UserTableName="LogUpdateDb" msprop:Generator_RowDeletedName="LogUpdateDbRowDeleted" msprop:Generator_RowChangedName="LogUpdateDbRowChanged" msprop:Generator_RowClassName="LogUpdateDbRow" msprop:Generator_RowChangingName="LogUpdateDbRowChanging" msprop:Generator_RowEvArgName="LogUpdateDbRowChangeEvent" msprop:Generator_RowEvHandlerName="LogUpdateDbRowChangeEventHandler" msprop:Generator_TableClassName="LogUpdateDbDataTable" msprop:Generator_TableVarName="tableLogUpdateDb" msprop:Generator_RowDeletingName="LogUpdateDbRowDeleting" msprop:Generator_TablePropName="LogUpdateDb">
<xs:complexType>
<xs:sequence>
<xs:element name="Versione" msprop:Generator_UserColumnName="Versione" msprop:Generator_ColumnPropNameInRow="Versione" msprop:Generator_ColumnVarNameInTable="columnVersione" msprop:Generator_ColumnPropNameInTable="VersioneColumn" type="xs:int" />
<xs:element name="Data" msprop:Generator_UserColumnName="Data" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInTable="DataColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="Versione" msprop:Generator_UserColumnName="Versione" msprop:Generator_ColumnVarNameInTable="columnVersione" msprop:Generator_ColumnPropNameInRow="Versione" msprop:Generator_ColumnPropNameInTable="VersioneColumn" type="xs:int" />
<xs:element name="Data" msprop:Generator_UserColumnName="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnPropNameInTable="DataColumn" type="xs:dateTime" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagAmbitoGuasto" msprop:Generator_UserTableName="AnagAmbitoGuasto" msprop:Generator_RowDeletedName="AnagAmbitoGuastoRowDeleted" msprop:Generator_RowChangedName="AnagAmbitoGuastoRowChanged" msprop:Generator_RowClassName="AnagAmbitoGuastoRow" msprop:Generator_RowChangingName="AnagAmbitoGuastoRowChanging" msprop:Generator_RowEvArgName="AnagAmbitoGuastoRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagAmbitoGuastoRowChangeEventHandler" msprop:Generator_TableClassName="AnagAmbitoGuastoDataTable" msprop:Generator_TableVarName="tableAnagAmbitoGuasto" msprop:Generator_RowDeletingName="AnagAmbitoGuastoRowDeleting" msprop:Generator_TablePropName="AnagAmbitoGuasto">
<xs:complexType>
<xs:sequence>
<xs:element name="idxAmbito" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxAmbito" msprop:Generator_ColumnVarNameInTable="columnidxAmbito" msprop:Generator_ColumnPropNameInRow="idxAmbito" msprop:Generator_ColumnPropNameInTable="idxAmbitoColumn" type="xs:int" />
<xs:element name="descrAmbitoGuasto" msprop:Generator_UserColumnName="descrAmbitoGuasto" msprop:Generator_ColumnVarNameInTable="columndescrAmbitoGuasto" msprop:Generator_ColumnPropNameInRow="descrAmbitoGuasto" msprop:Generator_ColumnPropNameInTable="descrAmbitoGuastoColumn" minOccurs="0">
<xs:element name="idxAmbito" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxAmbito" msprop:Generator_ColumnPropNameInRow="idxAmbito" msprop:Generator_ColumnVarNameInTable="columnidxAmbito" msprop:Generator_ColumnPropNameInTable="idxAmbitoColumn" type="xs:int" />
<xs:element name="descrAmbitoGuasto" msprop:Generator_UserColumnName="descrAmbitoGuasto" msprop:Generator_ColumnPropNameInRow="descrAmbitoGuasto" msprop:Generator_ColumnVarNameInTable="columndescrAmbitoGuasto" msprop:Generator_ColumnPropNameInTable="descrAmbitoGuastoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
@@ -938,186 +1097,7 @@ FROM v_mtzProgExp</CommandText>
<xs:element name="AnagPriorita" msprop:Generator_UserTableName="AnagPriorita" msprop:Generator_RowDeletedName="AnagPrioritaRowDeleted" msprop:Generator_RowChangedName="AnagPrioritaRowChanged" msprop:Generator_RowClassName="AnagPrioritaRow" msprop:Generator_RowChangingName="AnagPrioritaRowChanging" msprop:Generator_RowEvArgName="AnagPrioritaRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagPrioritaRowChangeEventHandler" msprop:Generator_TableClassName="AnagPrioritaDataTable" msprop:Generator_TableVarName="tableAnagPriorita" msprop:Generator_RowDeletingName="AnagPrioritaRowDeleting" msprop:Generator_TablePropName="AnagPriorita">
<xs:complexType>
<xs:sequence>
<xs:element name="idxPriorita" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxPriorita" msprop:Generator_ColumnVarNameInTable="columnidxPriorita" msprop:Generator_ColumnPropNameInRow="idxPriorita" msprop:Generator_ColumnPropNameInTable="idxPrioritaColumn" type="xs:int" />
<xs:element name="descrPriorita" msprop:Generator_UserColumnName="descrPriorita" msprop:Generator_ColumnVarNameInTable="columndescrPriorita" msprop:Generator_ColumnPropNameInRow="descrPriorita" msprop:Generator_ColumnPropNameInTable="descrPrioritaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="stile" msprop:Generator_UserColumnName="stile" msprop:Generator_ColumnPropNameInRow="stile" msprop:Generator_ColumnVarNameInTable="columnstile" msprop:Generator_ColumnPropNameInTable="stileColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagImpianti" msprop:Generator_UserTableName="AnagImpianti" msprop:Generator_RowDeletedName="AnagImpiantiRowDeleted" msprop:Generator_RowChangedName="AnagImpiantiRowChanged" msprop:Generator_RowClassName="AnagImpiantiRow" msprop:Generator_RowChangingName="AnagImpiantiRowChanging" msprop:Generator_RowEvArgName="AnagImpiantiRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagImpiantiRowChangeEventHandler" msprop:Generator_TableClassName="AnagImpiantiDataTable" msprop:Generator_TableVarName="tableAnagImpianti" msprop:Generator_RowDeletingName="AnagImpiantiRowDeleting" msprop:Generator_TablePropName="AnagImpianti">
<xs:complexType>
<xs:sequence>
<xs:element name="idxImpianto" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxImpianto" msprop:Generator_ColumnVarNameInTable="columnidxImpianto" msprop:Generator_ColumnPropNameInRow="idxImpianto" msprop:Generator_ColumnPropNameInTable="idxImpiantoColumn" type="xs:int" />
<xs:element name="codImpianto" msprop:Generator_UserColumnName="codImpianto" msprop:Generator_ColumnVarNameInTable="columncodImpianto" msprop:Generator_ColumnPropNameInRow="codImpianto" msprop:Generator_ColumnPropNameInTable="codImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nomeImpianto" msprop:Generator_UserColumnName="nomeImpianto" msprop:Generator_ColumnVarNameInTable="columnnomeImpianto" msprop:Generator_ColumnPropNameInRow="nomeImpianto" msprop:Generator_ColumnPropNameInTable="nomeImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="tipoImpianto" msprop:Generator_UserColumnName="tipoImpianto" msprop:Generator_ColumnVarNameInTable="columntipoImpianto" msprop:Generator_ColumnPropNameInRow="tipoImpianto" msprop:Generator_ColumnPropNameInTable="tipoImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="funzDal" msprop:Generator_UserColumnName="funzDal" msprop:Generator_ColumnVarNameInTable="columnfunzDal" msprop:Generator_ColumnPropNameInRow="funzDal" msprop:Generator_ColumnPropNameInTable="funzDalColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="funzAl" msprop:Generator_UserColumnName="funzAl" msprop:Generator_ColumnVarNameInTable="columnfunzAl" msprop:Generator_ColumnPropNameInRow="funzAl" msprop:Generator_ColumnPropNameInTable="funzAlColumn" type="xs:dateTime" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_macchine" msprop:Generator_UserTableName="v_macchine" msprop:Generator_RowDeletedName="v_macchineRowDeleted" msprop:Generator_RowChangedName="v_macchineRowChanged" msprop:Generator_RowClassName="v_macchineRow" msprop:Generator_RowChangingName="v_macchineRowChanging" msprop:Generator_RowEvArgName="v_macchineRowChangeEvent" msprop:Generator_RowEvHandlerName="v_macchineRowChangeEventHandler" msprop:Generator_TableClassName="v_macchineDataTable" msprop:Generator_TableVarName="tablev_macchine" msprop:Generator_RowDeletingName="v_macchineRowDeleting" msprop:Generator_TablePropName="v_macchine">
<xs:complexType>
<xs:sequence>
<xs:element name="idxMacchina" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxMacchina" msprop:Generator_ColumnVarNameInTable="columnidxMacchina" msprop:Generator_ColumnPropNameInRow="idxMacchina" msprop:Generator_ColumnPropNameInTable="idxMacchinaColumn" type="xs:int" />
<xs:element name="idxImpianto" msprop:Generator_UserColumnName="idxImpianto" msprop:Generator_ColumnVarNameInTable="columnidxImpianto" msprop:Generator_ColumnPropNameInRow="idxImpianto" msprop:Generator_ColumnPropNameInTable="idxImpiantoColumn" type="xs:int" minOccurs="0" />
<xs:element name="codMacchina" msprop:Generator_UserColumnName="codMacchina" msprop:Generator_ColumnVarNameInTable="columncodMacchina" msprop:Generator_ColumnPropNameInRow="codMacchina" msprop:Generator_ColumnPropNameInTable="codMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nomeMacchina" msprop:Generator_UserColumnName="nomeMacchina" msprop:Generator_ColumnVarNameInTable="columnnomeMacchina" msprop:Generator_ColumnPropNameInRow="nomeMacchina" msprop:Generator_ColumnPropNameInTable="nomeMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="modello" msprop:Generator_UserColumnName="modello" msprop:Generator_ColumnVarNameInTable="columnmodello" msprop:Generator_ColumnPropNameInRow="modello" msprop:Generator_ColumnPropNameInTable="modelloColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="matricola" msprop:Generator_UserColumnName="matricola" msprop:Generator_ColumnVarNameInTable="columnmatricola" msprop:Generator_ColumnPropNameInRow="matricola" msprop:Generator_ColumnPropNameInTable="matricolaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="anno" msprop:Generator_UserColumnName="anno" msprop:Generator_ColumnVarNameInTable="columnanno" msprop:Generator_ColumnPropNameInRow="anno" msprop:Generator_ColumnPropNameInTable="annoColumn" type="xs:int" minOccurs="0" />
<xs:element name="kgPeso" msprop:Generator_UserColumnName="kgPeso" msprop:Generator_ColumnVarNameInTable="columnkgPeso" msprop:Generator_ColumnPropNameInRow="kgPeso" msprop:Generator_ColumnPropNameInTable="kgPesoColumn" type="xs:double" minOccurs="0" />
<xs:element name="kwConsumo" msprop:Generator_UserColumnName="kwConsumo" msprop:Generator_ColumnVarNameInTable="columnkwConsumo" msprop:Generator_ColumnPropNameInRow="kwConsumo" msprop:Generator_ColumnPropNameInTable="kwConsumoColumn" type="xs:double" minOccurs="0" />
<xs:element name="funzDal" msprop:Generator_UserColumnName="funzDal" msprop:Generator_ColumnVarNameInTable="columnfunzDal" msprop:Generator_ColumnPropNameInRow="funzDal" msprop:Generator_ColumnPropNameInTable="funzDalColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="funzAl" msprop:Generator_UserColumnName="funzAl" msprop:Generator_ColumnVarNameInTable="columnfunzAl" msprop:Generator_ColumnPropNameInRow="funzAl" msprop:Generator_ColumnPropNameInTable="funzAlColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="descrImpianto" msdata:ReadOnly="true" msprop:Generator_UserColumnName="descrImpianto" msprop:Generator_ColumnPropNameInRow="descrImpianto" msprop:Generator_ColumnVarNameInTable="columndescrImpianto" msprop:Generator_ColumnPropNameInTable="descrImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="103" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selFamMacc" msprop:Generator_UserTableName="v_selFamMacc" msprop:Generator_RowDeletedName="v_selFamMaccRowDeleted" msprop:Generator_RowChangedName="v_selFamMaccRowChanged" msprop:Generator_RowClassName="v_selFamMaccRow" msprop:Generator_RowChangingName="v_selFamMaccRowChanging" msprop:Generator_RowEvArgName="v_selFamMaccRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selFamMaccRowChangeEventHandler" msprop:Generator_TableClassName="v_selFamMaccDataTable" msprop:Generator_TableVarName="tablev_selFamMacc" msprop:Generator_RowDeletingName="v_selFamMaccRowDeleting" msprop:Generator_TablePropName="v_selFamMacc">
<xs:complexType>
<xs:sequence>
<xs:element name="idxMacchina" msprop:Generator_UserColumnName="idxMacchina" msprop:Generator_ColumnVarNameInTable="columnidxMacchina" msprop:Generator_ColumnPropNameInRow="idxMacchina" msprop:Generator_ColumnPropNameInTable="idxMacchinaColumn" type="xs:int" />
<xs:element name="idxFamMacchine" msprop:Generator_UserColumnName="idxFamMacchine" msprop:Generator_ColumnVarNameInTable="columnidxFamMacchine" msprop:Generator_ColumnPropNameInRow="idxFamMacchine" msprop:Generator_ColumnPropNameInTable="idxFamMacchineColumn" type="xs:int" />
<xs:element name="famiglia" msprop:Generator_UserColumnName="famiglia" msprop:Generator_ColumnVarNameInTable="columnfamiglia" msprop:Generator_ColumnPropNameInRow="famiglia" msprop:Generator_ColumnPropNameInTable="famigliaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="macchina" msdata:ReadOnly="true" msprop:Generator_UserColumnName="macchina" msprop:Generator_ColumnVarNameInTable="columnmacchina" msprop:Generator_ColumnPropNameInRow="macchina" msprop:Generator_ColumnPropNameInTable="macchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="212" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagFamMacchine" msprop:Generator_UserTableName="AnagFamMacchine" msprop:Generator_RowDeletedName="AnagFamMacchineRowDeleted" msprop:Generator_RowChangedName="AnagFamMacchineRowChanged" msprop:Generator_RowClassName="AnagFamMacchineRow" msprop:Generator_RowChangingName="AnagFamMacchineRowChanging" msprop:Generator_RowEvArgName="AnagFamMacchineRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagFamMacchineRowChangeEventHandler" msprop:Generator_TableClassName="AnagFamMacchineDataTable" msprop:Generator_TableVarName="tableAnagFamMacchine" msprop:Generator_RowDeletingName="AnagFamMacchineRowDeleting" msprop:Generator_TablePropName="AnagFamMacchine">
<xs:complexType>
<xs:sequence>
<xs:element name="idxFamMacchine" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxFamMacchine" msprop:Generator_ColumnVarNameInTable="columnidxFamMacchine" msprop:Generator_ColumnPropNameInRow="idxFamMacchine" msprop:Generator_ColumnPropNameInTable="idxFamMacchineColumn" type="xs:int" />
<xs:element name="nomeFamMacch" msprop:Generator_UserColumnName="nomeFamMacch" msprop:Generator_ColumnVarNameInTable="columnnomeFamMacch" msprop:Generator_ColumnPropNameInRow="nomeFamMacch" msprop:Generator_ColumnPropNameInTable="nomeFamMacchColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_intervExp" msprop:Generator_UserTableName="v_intervExp" msprop:Generator_RowDeletedName="v_intervExpRowDeleted" msprop:Generator_RowChangedName="v_intervExpRowChanged" msprop:Generator_RowClassName="v_intervExpRow" msprop:Generator_RowChangingName="v_intervExpRowChanging" msprop:Generator_RowEvArgName="v_intervExpRowChangeEvent" msprop:Generator_RowEvHandlerName="v_intervExpRowChangeEventHandler" msprop:Generator_TableClassName="v_intervExpDataTable" msprop:Generator_TableVarName="tablev_intervExp" msprop:Generator_RowDeletingName="v_intervExpRowDeleting" msprop:Generator_TablePropName="v_intervExp">
<xs:complexType>
<xs:sequence>
<xs:element name="numIntMtz" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="numIntMtz" msprop:Generator_ColumnPropNameInRow="numIntMtz" msprop:Generator_ColumnVarNameInTable="columnnumIntMtz" msprop:Generator_ColumnPropNameInTable="numIntMtzColumn" type="xs:int" />
<xs:element name="richiesta" msprop:Generator_UserColumnName="richiesta" msprop:Generator_ColumnPropNameInRow="richiesta" msprop:Generator_ColumnVarNameInTable="columnrichiesta" msprop:Generator_ColumnPropNameInTable="richiestaColumn" type="xs:dateTime" />
<xs:element name="dataLav" msprop:Generator_UserColumnName="dataLav" msprop:Generator_ColumnPropNameInRow="dataLav" msprop:Generator_ColumnVarNameInTable="columndataLav" msprop:Generator_ColumnPropNameInTable="dataLavColumn" type="xs:dateTime" />
<xs:element name="turnoLav" msprop:Generator_UserColumnName="turnoLav" msprop:Generator_ColumnPropNameInRow="turnoLav" msprop:Generator_ColumnVarNameInTable="columnturnoLav" msprop:Generator_ColumnPropNameInTable="turnoLavColumn" type="xs:int" />
<xs:element name="matr" msprop:Generator_UserColumnName="matr" msprop:Generator_ColumnPropNameInRow="matr" msprop:Generator_ColumnVarNameInTable="columnmatr" msprop:Generator_ColumnPropNameInTable="matrColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="guasto" msprop:Generator_UserColumnName="guasto" msprop:Generator_ColumnPropNameInRow="guasto" msprop:Generator_ColumnVarNameInTable="columnguasto" msprop:Generator_ColumnPropNameInTable="guastoColumn" type="xs:dateTime" />
<xs:element name="idxAmbito" msprop:Generator_UserColumnName="idxAmbito" msprop:Generator_ColumnPropNameInRow="idxAmbito" msprop:Generator_ColumnVarNameInTable="columnidxAmbito" msprop:Generator_ColumnPropNameInTable="idxAmbitoColumn" type="xs:int" />
<xs:element name="idxPriorita" msprop:Generator_UserColumnName="idxPriorita" msprop:Generator_ColumnPropNameInRow="idxPriorita" msprop:Generator_ColumnVarNameInTable="columnidxPriorita" msprop:Generator_ColumnPropNameInTable="idxPrioritaColumn" type="xs:int" />
<xs:element name="isFermo" msprop:Generator_UserColumnName="isFermo" msprop:Generator_ColumnPropNameInRow="isFermo" msprop:Generator_ColumnVarNameInTable="columnisFermo" msprop:Generator_ColumnPropNameInTable="isFermoColumn" type="xs:boolean" />
<xs:element name="idxTipo" msprop:Generator_UserColumnName="idxTipo" msprop:Generator_ColumnPropNameInRow="idxTipo" msprop:Generator_ColumnVarNameInTable="columnidxTipo" msprop:Generator_ColumnPropNameInTable="idxTipoColumn" type="xs:int" />
<xs:element name="idxImpianto" msprop:Generator_UserColumnName="idxImpianto" msprop:Generator_ColumnPropNameInRow="idxImpianto" msprop:Generator_ColumnVarNameInTable="columnidxImpianto" msprop:Generator_ColumnPropNameInTable="idxImpiantoColumn" type="xs:int" />
<xs:element name="idxMacchina" msprop:Generator_UserColumnName="idxMacchina" msprop:Generator_ColumnPropNameInRow="idxMacchina" msprop:Generator_ColumnVarNameInTable="columnidxMacchina" msprop:Generator_ColumnPropNameInTable="idxMacchinaColumn" type="xs:int" />
<xs:element name="descrizione" msprop:Generator_UserColumnName="descrizione" msprop:Generator_ColumnPropNameInRow="descrizione" msprop:Generator_ColumnVarNameInTable="columndescrizione" msprop:Generator_ColumnPropNameInTable="descrizioneColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="idxStato" msprop:Generator_UserColumnName="idxStato" msprop:Generator_ColumnPropNameInRow="idxStato" msprop:Generator_ColumnVarNameInTable="columnidxStato" msprop:Generator_ColumnPropNameInTable="idxStatoColumn" type="xs:int" />
<xs:element name="presaInCarico" msprop:Generator_UserColumnName="presaInCarico" msprop:Generator_ColumnPropNameInRow="presaInCarico" msprop:Generator_ColumnVarNameInTable="columnpresaInCarico" msprop:Generator_ColumnPropNameInTable="presaInCaricoColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="inizioIntervento" msprop:Generator_UserColumnName="inizioIntervento" msprop:Generator_ColumnPropNameInRow="inizioIntervento" msprop:Generator_ColumnVarNameInTable="columninizioIntervento" msprop:Generator_ColumnPropNameInTable="inizioInterventoColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="fineIntervento" msprop:Generator_UserColumnName="fineIntervento" msprop:Generator_ColumnPropNameInRow="fineIntervento" msprop:Generator_ColumnVarNameInTable="columnfineIntervento" msprop:Generator_ColumnPropNameInTable="fineInterventoColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="descrizioneIntervento" msprop:Generator_UserColumnName="descrizioneIntervento" msprop:Generator_ColumnPropNameInRow="descrizioneIntervento" msprop:Generator_ColumnVarNameInTable="columndescrizioneIntervento" msprop:Generator_ColumnPropNameInTable="descrizioneInterventoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="isPreventivabile" msprop:Generator_UserColumnName="isPreventivabile" msprop:Generator_ColumnPropNameInRow="isPreventivabile" msprop:Generator_ColumnVarNameInTable="columnisPreventivabile" msprop:Generator_ColumnPropNameInTable="isPreventivabileColumn" type="xs:boolean" minOccurs="0" />
<xs:element name="idxCausale" msprop:Generator_UserColumnName="idxCausale" msprop:Generator_ColumnPropNameInRow="idxCausale" msprop:Generator_ColumnVarNameInTable="columnidxCausale" msprop:Generator_ColumnPropNameInTable="idxCausaleColumn" type="xs:int" minOccurs="0" />
<xs:element name="descrAmbitoGuasto" msprop:Generator_UserColumnName="descrAmbitoGuasto" msprop:Generator_ColumnPropNameInRow="descrAmbitoGuasto" msprop:Generator_ColumnVarNameInTable="columndescrAmbitoGuasto" msprop:Generator_ColumnPropNameInTable="descrAmbitoGuastoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="idxPriorita" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxPriorita" msprop:Generator_ColumnPropNameInRow="idxPriorita" msprop:Generator_ColumnVarNameInTable="columnidxPriorita" msprop:Generator_ColumnPropNameInTable="idxPrioritaColumn" type="xs:int" />
<xs:element name="descrPriorita" msprop:Generator_UserColumnName="descrPriorita" msprop:Generator_ColumnPropNameInRow="descrPriorita" msprop:Generator_ColumnVarNameInTable="columndescrPriorita" msprop:Generator_ColumnPropNameInTable="descrPrioritaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
@@ -1125,83 +1105,6 @@ FROM v_mtzProgExp</CommandText>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="descrTipo" msprop:Generator_UserColumnName="descrTipo" msprop:Generator_ColumnPropNameInRow="descrTipo" msprop:Generator_ColumnVarNameInTable="columndescrTipo" msprop:Generator_ColumnPropNameInTable="descrTipoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="codImpianto" msprop:Generator_UserColumnName="codImpianto" msprop:Generator_ColumnPropNameInRow="codImpianto" msprop:Generator_ColumnVarNameInTable="columncodImpianto" msprop:Generator_ColumnPropNameInTable="codImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nomeImpianto" msprop:Generator_UserColumnName="nomeImpianto" msprop:Generator_ColumnPropNameInRow="nomeImpianto" msprop:Generator_ColumnVarNameInTable="columnnomeImpianto" msprop:Generator_ColumnPropNameInTable="nomeImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="codMacchina" msprop:Generator_UserColumnName="codMacchina" msprop:Generator_ColumnPropNameInRow="codMacchina" msprop:Generator_ColumnVarNameInTable="columncodMacchina" msprop:Generator_ColumnPropNameInTable="codMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nomeMacchina" msprop:Generator_UserColumnName="nomeMacchina" msprop:Generator_ColumnPropNameInRow="nomeMacchina" msprop:Generator_ColumnVarNameInTable="columnnomeMacchina" msprop:Generator_ColumnPropNameInTable="nomeMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescrStato" msprop:Generator_UserColumnName="DescrStato" msprop:Generator_ColumnPropNameInRow="DescrStato" msprop:Generator_ColumnVarNameInTable="columnDescrStato" msprop:Generator_ColumnPropNameInTable="DescrStatoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="descrCausale" msprop:Generator_UserColumnName="descrCausale" msprop:Generator_ColumnPropNameInRow="descrCausale" msprop:Generator_ColumnVarNameInTable="columndescrCausale" msprop:Generator_ColumnPropNameInTable="descrCausaleColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagTipoGuasto" msprop:Generator_UserTableName="AnagTipoGuasto" msprop:Generator_RowDeletedName="AnagTipoGuastoRowDeleted" msprop:Generator_RowChangedName="AnagTipoGuastoRowChanged" msprop:Generator_RowClassName="AnagTipoGuastoRow" msprop:Generator_RowChangingName="AnagTipoGuastoRowChanging" msprop:Generator_RowEvArgName="AnagTipoGuastoRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagTipoGuastoRowChangeEventHandler" msprop:Generator_TableClassName="AnagTipoGuastoDataTable" msprop:Generator_TableVarName="tableAnagTipoGuasto" msprop:Generator_RowDeletingName="AnagTipoGuastoRowDeleting" msprop:Generator_TablePropName="AnagTipoGuasto">
<xs:complexType>
<xs:sequence>
<xs:element name="idxTipo" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxTipo" msprop:Generator_ColumnVarNameInTable="columnidxTipo" msprop:Generator_ColumnPropNameInRow="idxTipo" msprop:Generator_ColumnPropNameInTable="idxTipoColumn" type="xs:int" />
<xs:element name="descrTipo" msprop:Generator_UserColumnName="descrTipo" msprop:Generator_ColumnVarNameInTable="columndescrTipo" msprop:Generator_ColumnPropNameInRow="descrTipo" msprop:Generator_ColumnPropNameInTable="descrTipoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagStati" msprop:Generator_UserTableName="AnagStati" msprop:Generator_RowDeletedName="AnagStatiRowDeleted" msprop:Generator_RowChangedName="AnagStatiRowChanged" msprop:Generator_RowClassName="AnagStatiRow" msprop:Generator_RowChangingName="AnagStatiRowChanging" msprop:Generator_RowEvArgName="AnagStatiRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagStatiRowChangeEventHandler" msprop:Generator_TableClassName="AnagStatiDataTable" msprop:Generator_TableVarName="tableAnagStati" msprop:Generator_RowDeletingName="AnagStatiRowDeleting" msprop:Generator_TablePropName="AnagStati">
<xs:complexType>
<xs:sequence>
<xs:element name="idxStato" msprop:Generator_UserColumnName="idxStato" msprop:Generator_ColumnVarNameInTable="columnidxStato" msprop:Generator_ColumnPropNameInRow="idxStato" msprop:Generator_ColumnPropNameInTable="idxStatoColumn" type="xs:int" />
<xs:element name="DescrStato" msprop:Generator_UserColumnName="DescrStato" msprop:Generator_ColumnVarNameInTable="columnDescrStato" msprop:Generator_ColumnPropNameInRow="DescrStato" msprop:Generator_ColumnPropNameInTable="DescrStatoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="stile" msprop:Generator_UserColumnName="stile" msprop:Generator_ColumnVarNameInTable="columnstile" msprop:Generator_ColumnPropNameInRow="stile" msprop:Generator_ColumnPropNameInTable="stileColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
@@ -1212,22 +1115,360 @@ FROM v_mtzProgExp</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InterventoOpMtz" msprop:Generator_UserTableName="InterventoOpMtz" msprop:Generator_RowDeletedName="InterventoOpMtzRowDeleted" msprop:Generator_RowChangedName="InterventoOpMtzRowChanged" msprop:Generator_RowClassName="InterventoOpMtzRow" msprop:Generator_RowChangingName="InterventoOpMtzRowChanging" msprop:Generator_RowEvArgName="InterventoOpMtzRowChangeEvent" msprop:Generator_RowEvHandlerName="InterventoOpMtzRowChangeEventHandler" msprop:Generator_TableClassName="InterventoOpMtzDataTable" msprop:Generator_TableVarName="tableInterventoOpMtz" msprop:Generator_RowDeletingName="InterventoOpMtzRowDeleting" msprop:Generator_TablePropName="InterventoOpMtz">
<xs:element name="AnagImpianti" msprop:Generator_UserTableName="AnagImpianti" msprop:Generator_RowDeletedName="AnagImpiantiRowDeleted" msprop:Generator_RowChangedName="AnagImpiantiRowChanged" msprop:Generator_RowClassName="AnagImpiantiRow" msprop:Generator_RowChangingName="AnagImpiantiRowChanging" msprop:Generator_RowEvArgName="AnagImpiantiRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagImpiantiRowChangeEventHandler" msprop:Generator_TableClassName="AnagImpiantiDataTable" msprop:Generator_TableVarName="tableAnagImpianti" msprop:Generator_RowDeletingName="AnagImpiantiRowDeleting" msprop:Generator_TablePropName="AnagImpianti">
<xs:complexType>
<xs:sequence>
<xs:element name="numIntMtz" msprop:Generator_UserColumnName="numIntMtz" msprop:Generator_ColumnVarNameInTable="columnnumIntMtz" msprop:Generator_ColumnPropNameInRow="numIntMtz" msprop:Generator_ColumnPropNameInTable="numIntMtzColumn" type="xs:int" />
<xs:element name="matrOp" msprop:Generator_UserColumnName="matrOp" msprop:Generator_ColumnVarNameInTable="columnmatrOp" msprop:Generator_ColumnPropNameInRow="matrOp" msprop:Generator_ColumnPropNameInTable="matrOpColumn">
<xs:element name="idxImpianto" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxImpianto" msprop:Generator_ColumnPropNameInRow="idxImpianto" msprop:Generator_ColumnVarNameInTable="columnidxImpianto" msprop:Generator_ColumnPropNameInTable="idxImpiantoColumn" type="xs:int" />
<xs:element name="codImpianto" msprop:Generator_UserColumnName="codImpianto" msprop:Generator_ColumnPropNameInRow="codImpianto" msprop:Generator_ColumnVarNameInTable="columncodImpianto" msprop:Generator_ColumnPropNameInTable="codImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nomeImpianto" msprop:Generator_UserColumnName="nomeImpianto" msprop:Generator_ColumnPropNameInRow="nomeImpianto" msprop:Generator_ColumnVarNameInTable="columnnomeImpianto" msprop:Generator_ColumnPropNameInTable="nomeImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="tipoImpianto" msprop:Generator_UserColumnName="tipoImpianto" msprop:Generator_ColumnPropNameInRow="tipoImpianto" msprop:Generator_ColumnVarNameInTable="columntipoImpianto" msprop:Generator_ColumnPropNameInTable="tipoImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="funzDal" msprop:Generator_UserColumnName="funzDal" msprop:Generator_ColumnPropNameInRow="funzDal" msprop:Generator_ColumnVarNameInTable="columnfunzDal" msprop:Generator_ColumnPropNameInTable="funzDalColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="funzAl" msprop:Generator_UserColumnName="funzAl" msprop:Generator_ColumnPropNameInRow="funzAl" msprop:Generator_ColumnVarNameInTable="columnfunzAl" msprop:Generator_ColumnPropNameInTable="funzAlColumn" type="xs:dateTime" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_macchine" msprop:Generator_UserTableName="v_macchine" msprop:Generator_RowDeletedName="v_macchineRowDeleted" msprop:Generator_RowChangedName="v_macchineRowChanged" msprop:Generator_RowClassName="v_macchineRow" msprop:Generator_RowChangingName="v_macchineRowChanging" msprop:Generator_RowEvArgName="v_macchineRowChangeEvent" msprop:Generator_RowEvHandlerName="v_macchineRowChangeEventHandler" msprop:Generator_TableClassName="v_macchineDataTable" msprop:Generator_TableVarName="tablev_macchine" msprop:Generator_RowDeletingName="v_macchineRowDeleting" msprop:Generator_TablePropName="v_macchine">
<xs:complexType>
<xs:sequence>
<xs:element name="idxMacchina" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxMacchina" msprop:Generator_ColumnPropNameInRow="idxMacchina" msprop:Generator_ColumnVarNameInTable="columnidxMacchina" msprop:Generator_ColumnPropNameInTable="idxMacchinaColumn" type="xs:int" />
<xs:element name="idxImpianto" msprop:Generator_UserColumnName="idxImpianto" msprop:Generator_ColumnPropNameInRow="idxImpianto" msprop:Generator_ColumnVarNameInTable="columnidxImpianto" msprop:Generator_ColumnPropNameInTable="idxImpiantoColumn" type="xs:int" minOccurs="0" />
<xs:element name="codMacchina" msprop:Generator_UserColumnName="codMacchina" msprop:Generator_ColumnPropNameInRow="codMacchina" msprop:Generator_ColumnVarNameInTable="columncodMacchina" msprop:Generator_ColumnPropNameInTable="codMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nomeMacchina" msprop:Generator_UserColumnName="nomeMacchina" msprop:Generator_ColumnPropNameInRow="nomeMacchina" msprop:Generator_ColumnVarNameInTable="columnnomeMacchina" msprop:Generator_ColumnPropNameInTable="nomeMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="modello" msprop:Generator_UserColumnName="modello" msprop:Generator_ColumnPropNameInRow="modello" msprop:Generator_ColumnVarNameInTable="columnmodello" msprop:Generator_ColumnPropNameInTable="modelloColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="matricola" msprop:Generator_UserColumnName="matricola" msprop:Generator_ColumnPropNameInRow="matricola" msprop:Generator_ColumnVarNameInTable="columnmatricola" msprop:Generator_ColumnPropNameInTable="matricolaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="anno" msprop:Generator_UserColumnName="anno" msprop:Generator_ColumnPropNameInRow="anno" msprop:Generator_ColumnVarNameInTable="columnanno" msprop:Generator_ColumnPropNameInTable="annoColumn" type="xs:int" minOccurs="0" />
<xs:element name="kgPeso" msprop:Generator_UserColumnName="kgPeso" msprop:Generator_ColumnPropNameInRow="kgPeso" msprop:Generator_ColumnVarNameInTable="columnkgPeso" msprop:Generator_ColumnPropNameInTable="kgPesoColumn" type="xs:double" minOccurs="0" />
<xs:element name="kwConsumo" msprop:Generator_UserColumnName="kwConsumo" msprop:Generator_ColumnPropNameInRow="kwConsumo" msprop:Generator_ColumnVarNameInTable="columnkwConsumo" msprop:Generator_ColumnPropNameInTable="kwConsumoColumn" type="xs:double" minOccurs="0" />
<xs:element name="funzDal" msprop:Generator_UserColumnName="funzDal" msprop:Generator_ColumnPropNameInRow="funzDal" msprop:Generator_ColumnVarNameInTable="columnfunzDal" msprop:Generator_ColumnPropNameInTable="funzDalColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="funzAl" msprop:Generator_UserColumnName="funzAl" msprop:Generator_ColumnPropNameInRow="funzAl" msprop:Generator_ColumnVarNameInTable="columnfunzAl" msprop:Generator_ColumnPropNameInTable="funzAlColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="descrImpianto" msdata:ReadOnly="true" msprop:Generator_UserColumnName="descrImpianto" msprop:Generator_ColumnVarNameInTable="columndescrImpianto" msprop:Generator_ColumnPropNameInRow="descrImpianto" msprop:Generator_ColumnPropNameInTable="descrImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="103" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selFamMacc" msprop:Generator_UserTableName="v_selFamMacc" msprop:Generator_RowDeletedName="v_selFamMaccRowDeleted" msprop:Generator_RowChangedName="v_selFamMaccRowChanged" msprop:Generator_RowClassName="v_selFamMaccRow" msprop:Generator_RowChangingName="v_selFamMaccRowChanging" msprop:Generator_RowEvArgName="v_selFamMaccRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selFamMaccRowChangeEventHandler" msprop:Generator_TableClassName="v_selFamMaccDataTable" msprop:Generator_TableVarName="tablev_selFamMacc" msprop:Generator_RowDeletingName="v_selFamMaccRowDeleting" msprop:Generator_TablePropName="v_selFamMacc">
<xs:complexType>
<xs:sequence>
<xs:element name="idxMacchina" msprop:Generator_UserColumnName="idxMacchina" msprop:Generator_ColumnPropNameInRow="idxMacchina" msprop:Generator_ColumnVarNameInTable="columnidxMacchina" msprop:Generator_ColumnPropNameInTable="idxMacchinaColumn" type="xs:int" />
<xs:element name="idxFamMacchine" msprop:Generator_UserColumnName="idxFamMacchine" msprop:Generator_ColumnPropNameInRow="idxFamMacchine" msprop:Generator_ColumnVarNameInTable="columnidxFamMacchine" msprop:Generator_ColumnPropNameInTable="idxFamMacchineColumn" type="xs:int" />
<xs:element name="famiglia" msprop:Generator_UserColumnName="famiglia" msprop:Generator_ColumnPropNameInRow="famiglia" msprop:Generator_ColumnVarNameInTable="columnfamiglia" msprop:Generator_ColumnPropNameInTable="famigliaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="macchina" msdata:ReadOnly="true" msprop:Generator_UserColumnName="macchina" msprop:Generator_ColumnPropNameInRow="macchina" msprop:Generator_ColumnVarNameInTable="columnmacchina" msprop:Generator_ColumnPropNameInTable="macchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="212" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagFamMacchine" msprop:Generator_UserTableName="AnagFamMacchine" msprop:Generator_RowDeletedName="AnagFamMacchineRowDeleted" msprop:Generator_RowChangedName="AnagFamMacchineRowChanged" msprop:Generator_RowClassName="AnagFamMacchineRow" msprop:Generator_RowChangingName="AnagFamMacchineRowChanging" msprop:Generator_RowEvArgName="AnagFamMacchineRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagFamMacchineRowChangeEventHandler" msprop:Generator_TableClassName="AnagFamMacchineDataTable" msprop:Generator_TableVarName="tableAnagFamMacchine" msprop:Generator_RowDeletingName="AnagFamMacchineRowDeleting" msprop:Generator_TablePropName="AnagFamMacchine">
<xs:complexType>
<xs:sequence>
<xs:element name="idxFamMacchine" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxFamMacchine" msprop:Generator_ColumnPropNameInRow="idxFamMacchine" msprop:Generator_ColumnVarNameInTable="columnidxFamMacchine" msprop:Generator_ColumnPropNameInTable="idxFamMacchineColumn" type="xs:int" />
<xs:element name="nomeFamMacch" msprop:Generator_UserColumnName="nomeFamMacch" msprop:Generator_ColumnPropNameInRow="nomeFamMacch" msprop:Generator_ColumnVarNameInTable="columnnomeFamMacch" msprop:Generator_ColumnPropNameInTable="nomeFamMacchColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_intervExp" msprop:Generator_UserTableName="v_intervExp" msprop:Generator_RowDeletedName="v_intervExpRowDeleted" msprop:Generator_RowChangedName="v_intervExpRowChanged" msprop:Generator_RowClassName="v_intervExpRow" msprop:Generator_RowChangingName="v_intervExpRowChanging" msprop:Generator_RowEvArgName="v_intervExpRowChangeEvent" msprop:Generator_RowEvHandlerName="v_intervExpRowChangeEventHandler" msprop:Generator_TableClassName="v_intervExpDataTable" msprop:Generator_TableVarName="tablev_intervExp" msprop:Generator_RowDeletingName="v_intervExpRowDeleting" msprop:Generator_TablePropName="v_intervExp">
<xs:complexType>
<xs:sequence>
<xs:element name="numIntMtz" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="numIntMtz" msprop:Generator_ColumnVarNameInTable="columnnumIntMtz" msprop:Generator_ColumnPropNameInRow="numIntMtz" msprop:Generator_ColumnPropNameInTable="numIntMtzColumn" type="xs:int" />
<xs:element name="richiesta" msprop:Generator_UserColumnName="richiesta" msprop:Generator_ColumnVarNameInTable="columnrichiesta" msprop:Generator_ColumnPropNameInRow="richiesta" msprop:Generator_ColumnPropNameInTable="richiestaColumn" type="xs:dateTime" />
<xs:element name="dataLav" msprop:Generator_UserColumnName="dataLav" msprop:Generator_ColumnVarNameInTable="columndataLav" msprop:Generator_ColumnPropNameInRow="dataLav" msprop:Generator_ColumnPropNameInTable="dataLavColumn" type="xs:dateTime" />
<xs:element name="turnoLav" msprop:Generator_UserColumnName="turnoLav" msprop:Generator_ColumnVarNameInTable="columnturnoLav" msprop:Generator_ColumnPropNameInRow="turnoLav" msprop:Generator_ColumnPropNameInTable="turnoLavColumn" type="xs:int" />
<xs:element name="matr" msprop:Generator_UserColumnName="matr" msprop:Generator_ColumnVarNameInTable="columnmatr" msprop:Generator_ColumnPropNameInRow="matr" msprop:Generator_ColumnPropNameInTable="matrColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="durataMinuti" msprop:Generator_UserColumnName="durataMinuti" msprop:Generator_ColumnVarNameInTable="columndurataMinuti" msprop:Generator_ColumnPropNameInRow="durataMinuti" msprop:Generator_ColumnPropNameInTable="durataMinutiColumn" type="xs:int" minOccurs="0" />
<xs:element name="guasto" msprop:Generator_UserColumnName="guasto" msprop:Generator_ColumnVarNameInTable="columnguasto" msprop:Generator_ColumnPropNameInRow="guasto" msprop:Generator_ColumnPropNameInTable="guastoColumn" type="xs:dateTime" />
<xs:element name="idxAmbito" msprop:Generator_UserColumnName="idxAmbito" msprop:Generator_ColumnVarNameInTable="columnidxAmbito" msprop:Generator_ColumnPropNameInRow="idxAmbito" msprop:Generator_ColumnPropNameInTable="idxAmbitoColumn" type="xs:int" />
<xs:element name="idxPriorita" msprop:Generator_UserColumnName="idxPriorita" msprop:Generator_ColumnVarNameInTable="columnidxPriorita" msprop:Generator_ColumnPropNameInRow="idxPriorita" msprop:Generator_ColumnPropNameInTable="idxPrioritaColumn" type="xs:int" />
<xs:element name="isFermo" msprop:Generator_UserColumnName="isFermo" msprop:Generator_ColumnVarNameInTable="columnisFermo" msprop:Generator_ColumnPropNameInRow="isFermo" msprop:Generator_ColumnPropNameInTable="isFermoColumn" type="xs:boolean" />
<xs:element name="idxTipo" msprop:Generator_UserColumnName="idxTipo" msprop:Generator_ColumnVarNameInTable="columnidxTipo" msprop:Generator_ColumnPropNameInRow="idxTipo" msprop:Generator_ColumnPropNameInTable="idxTipoColumn" type="xs:int" />
<xs:element name="idxImpianto" msprop:Generator_UserColumnName="idxImpianto" msprop:Generator_ColumnVarNameInTable="columnidxImpianto" msprop:Generator_ColumnPropNameInRow="idxImpianto" msprop:Generator_ColumnPropNameInTable="idxImpiantoColumn" type="xs:int" />
<xs:element name="idxMacchina" msprop:Generator_UserColumnName="idxMacchina" msprop:Generator_ColumnVarNameInTable="columnidxMacchina" msprop:Generator_ColumnPropNameInRow="idxMacchina" msprop:Generator_ColumnPropNameInTable="idxMacchinaColumn" type="xs:int" />
<xs:element name="descrizione" msprop:Generator_UserColumnName="descrizione" msprop:Generator_ColumnVarNameInTable="columndescrizione" msprop:Generator_ColumnPropNameInRow="descrizione" msprop:Generator_ColumnPropNameInTable="descrizioneColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="idxStato" msprop:Generator_UserColumnName="idxStato" msprop:Generator_ColumnVarNameInTable="columnidxStato" msprop:Generator_ColumnPropNameInRow="idxStato" msprop:Generator_ColumnPropNameInTable="idxStatoColumn" type="xs:int" />
<xs:element name="presaInCarico" msprop:Generator_UserColumnName="presaInCarico" msprop:Generator_ColumnVarNameInTable="columnpresaInCarico" msprop:Generator_ColumnPropNameInRow="presaInCarico" msprop:Generator_ColumnPropNameInTable="presaInCaricoColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="inizioIntervento" msprop:Generator_UserColumnName="inizioIntervento" msprop:Generator_ColumnVarNameInTable="columninizioIntervento" msprop:Generator_ColumnPropNameInRow="inizioIntervento" msprop:Generator_ColumnPropNameInTable="inizioInterventoColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="fineIntervento" msprop:Generator_UserColumnName="fineIntervento" msprop:Generator_ColumnVarNameInTable="columnfineIntervento" msprop:Generator_ColumnPropNameInRow="fineIntervento" msprop:Generator_ColumnPropNameInTable="fineInterventoColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="descrizioneIntervento" msprop:Generator_UserColumnName="descrizioneIntervento" msprop:Generator_ColumnVarNameInTable="columndescrizioneIntervento" msprop:Generator_ColumnPropNameInRow="descrizioneIntervento" msprop:Generator_ColumnPropNameInTable="descrizioneInterventoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="isPreventivabile" msprop:Generator_UserColumnName="isPreventivabile" msprop:Generator_ColumnVarNameInTable="columnisPreventivabile" msprop:Generator_ColumnPropNameInRow="isPreventivabile" msprop:Generator_ColumnPropNameInTable="isPreventivabileColumn" type="xs:boolean" minOccurs="0" />
<xs:element name="idxCausale" msprop:Generator_UserColumnName="idxCausale" msprop:Generator_ColumnVarNameInTable="columnidxCausale" msprop:Generator_ColumnPropNameInRow="idxCausale" msprop:Generator_ColumnPropNameInTable="idxCausaleColumn" type="xs:int" minOccurs="0" />
<xs:element name="descrAmbitoGuasto" msprop:Generator_UserColumnName="descrAmbitoGuasto" msprop:Generator_ColumnVarNameInTable="columndescrAmbitoGuasto" msprop:Generator_ColumnPropNameInRow="descrAmbitoGuasto" msprop:Generator_ColumnPropNameInTable="descrAmbitoGuastoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="descrPriorita" msprop:Generator_UserColumnName="descrPriorita" msprop:Generator_ColumnVarNameInTable="columndescrPriorita" msprop:Generator_ColumnPropNameInRow="descrPriorita" msprop:Generator_ColumnPropNameInTable="descrPrioritaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="descrTipo" msprop:Generator_UserColumnName="descrTipo" msprop:Generator_ColumnVarNameInTable="columndescrTipo" msprop:Generator_ColumnPropNameInRow="descrTipo" msprop:Generator_ColumnPropNameInTable="descrTipoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="codImpianto" msprop:Generator_UserColumnName="codImpianto" msprop:Generator_ColumnVarNameInTable="columncodImpianto" msprop:Generator_ColumnPropNameInRow="codImpianto" msprop:Generator_ColumnPropNameInTable="codImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nomeImpianto" msprop:Generator_UserColumnName="nomeImpianto" msprop:Generator_ColumnVarNameInTable="columnnomeImpianto" msprop:Generator_ColumnPropNameInRow="nomeImpianto" msprop:Generator_ColumnPropNameInTable="nomeImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="codMacchina" msprop:Generator_UserColumnName="codMacchina" msprop:Generator_ColumnVarNameInTable="columncodMacchina" msprop:Generator_ColumnPropNameInRow="codMacchina" msprop:Generator_ColumnPropNameInTable="codMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nomeMacchina" msprop:Generator_UserColumnName="nomeMacchina" msprop:Generator_ColumnVarNameInTable="columnnomeMacchina" msprop:Generator_ColumnPropNameInRow="nomeMacchina" msprop:Generator_ColumnPropNameInTable="nomeMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescrStato" msprop:Generator_UserColumnName="DescrStato" msprop:Generator_ColumnVarNameInTable="columnDescrStato" msprop:Generator_ColumnPropNameInRow="DescrStato" msprop:Generator_ColumnPropNameInTable="DescrStatoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="descrCausale" msprop:Generator_UserColumnName="descrCausale" msprop:Generator_ColumnVarNameInTable="columndescrCausale" msprop:Generator_ColumnPropNameInRow="descrCausale" msprop:Generator_ColumnPropNameInTable="descrCausaleColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_mtzProgExp" msprop:Generator_UserTableName="v_mtzProgExp" msprop:Generator_RowDeletedName="v_mtzProgExpRowDeleted" msprop:Generator_TableClassName="v_mtzProgExpDataTable" msprop:Generator_RowChangedName="v_mtzProgExpRowChanged" msprop:Generator_RowClassName="v_mtzProgExpRow" msprop:Generator_RowChangingName="v_mtzProgExpRowChanging" msprop:Generator_RowEvArgName="v_mtzProgExpRowChangeEvent" msprop:Generator_RowEvHandlerName="v_mtzProgExpRowChangeEventHandler" msprop:Generator_TablePropName="v_mtzProgExp" msprop:Generator_TableVarName="tablev_mtzProgExp" msprop:Generator_RowDeletingName="v_mtzProgExpRowDeleting">
<xs:element name="AnagTipoGuasto" msprop:Generator_UserTableName="AnagTipoGuasto" msprop:Generator_RowDeletedName="AnagTipoGuastoRowDeleted" msprop:Generator_RowChangedName="AnagTipoGuastoRowChanged" msprop:Generator_RowClassName="AnagTipoGuastoRow" msprop:Generator_RowChangingName="AnagTipoGuastoRowChanging" msprop:Generator_RowEvArgName="AnagTipoGuastoRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagTipoGuastoRowChangeEventHandler" msprop:Generator_TableClassName="AnagTipoGuastoDataTable" msprop:Generator_TableVarName="tableAnagTipoGuasto" msprop:Generator_RowDeletingName="AnagTipoGuastoRowDeleting" msprop:Generator_TablePropName="AnagTipoGuasto">
<xs:complexType>
<xs:sequence>
<xs:element name="idxTipo" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxTipo" msprop:Generator_ColumnPropNameInRow="idxTipo" msprop:Generator_ColumnVarNameInTable="columnidxTipo" msprop:Generator_ColumnPropNameInTable="idxTipoColumn" type="xs:int" />
<xs:element name="descrTipo" msprop:Generator_UserColumnName="descrTipo" msprop:Generator_ColumnPropNameInRow="descrTipo" msprop:Generator_ColumnVarNameInTable="columndescrTipo" msprop:Generator_ColumnPropNameInTable="descrTipoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagStati" msprop:Generator_UserTableName="AnagStati" msprop:Generator_RowDeletedName="AnagStatiRowDeleted" msprop:Generator_RowChangedName="AnagStatiRowChanged" msprop:Generator_RowClassName="AnagStatiRow" msprop:Generator_RowChangingName="AnagStatiRowChanging" msprop:Generator_RowEvArgName="AnagStatiRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagStatiRowChangeEventHandler" msprop:Generator_TableClassName="AnagStatiDataTable" msprop:Generator_TableVarName="tableAnagStati" msprop:Generator_RowDeletingName="AnagStatiRowDeleting" msprop:Generator_TablePropName="AnagStati">
<xs:complexType>
<xs:sequence>
<xs:element name="idxStato" msprop:Generator_UserColumnName="idxStato" msprop:Generator_ColumnPropNameInRow="idxStato" msprop:Generator_ColumnVarNameInTable="columnidxStato" msprop:Generator_ColumnPropNameInTable="idxStatoColumn" type="xs:int" />
<xs:element name="DescrStato" msprop:Generator_UserColumnName="DescrStato" msprop:Generator_ColumnPropNameInRow="DescrStato" msprop:Generator_ColumnVarNameInTable="columnDescrStato" msprop:Generator_ColumnPropNameInTable="DescrStatoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="stile" msprop:Generator_UserColumnName="stile" msprop:Generator_ColumnPropNameInRow="stile" msprop:Generator_ColumnVarNameInTable="columnstile" msprop:Generator_ColumnPropNameInTable="stileColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InterventoOpMtz" msprop:Generator_UserTableName="InterventoOpMtz" msprop:Generator_RowDeletedName="InterventoOpMtzRowDeleted" msprop:Generator_RowChangedName="InterventoOpMtzRowChanged" msprop:Generator_RowClassName="InterventoOpMtzRow" msprop:Generator_RowChangingName="InterventoOpMtzRowChanging" msprop:Generator_RowEvArgName="InterventoOpMtzRowChangeEvent" msprop:Generator_RowEvHandlerName="InterventoOpMtzRowChangeEventHandler" msprop:Generator_TableClassName="InterventoOpMtzDataTable" msprop:Generator_TableVarName="tableInterventoOpMtz" msprop:Generator_RowDeletingName="InterventoOpMtzRowDeleting" msprop:Generator_TablePropName="InterventoOpMtz">
<xs:complexType>
<xs:sequence>
<xs:element name="numIntMtz" msprop:Generator_UserColumnName="numIntMtz" msprop:Generator_ColumnPropNameInRow="numIntMtz" msprop:Generator_ColumnVarNameInTable="columnnumIntMtz" msprop:Generator_ColumnPropNameInTable="numIntMtzColumn" type="xs:int" />
<xs:element name="matrOp" msprop:Generator_UserColumnName="matrOp" msprop:Generator_ColumnPropNameInRow="matrOp" msprop:Generator_ColumnVarNameInTable="columnmatrOp" msprop:Generator_ColumnPropNameInTable="matrOpColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="durataMinuti" msprop:Generator_UserColumnName="durataMinuti" msprop:Generator_ColumnPropNameInRow="durataMinuti" msprop:Generator_ColumnVarNameInTable="columndurataMinuti" msprop:Generator_ColumnPropNameInTable="durataMinutiColumn" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_mtzProgExp" msprop:Generator_UserTableName="v_mtzProgExp" msprop:Generator_RowDeletedName="v_mtzProgExpRowDeleted" msprop:Generator_RowChangedName="v_mtzProgExpRowChanged" msprop:Generator_RowClassName="v_mtzProgExpRow" msprop:Generator_RowChangingName="v_mtzProgExpRowChanging" msprop:Generator_RowEvArgName="v_mtzProgExpRowChangeEvent" msprop:Generator_RowEvHandlerName="v_mtzProgExpRowChangeEventHandler" msprop:Generator_TableClassName="v_mtzProgExpDataTable" msprop:Generator_TableVarName="tablev_mtzProgExp" msprop:Generator_RowDeletingName="v_mtzProgExpRowDeleting" msprop:Generator_TablePropName="v_mtzProgExp">
<xs:complexType>
<xs:sequence>
<xs:element name="idxIntPro" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxIntPro" msprop:Generator_ColumnVarNameInTable="columnidxIntPro" msprop:Generator_ColumnPropNameInRow="idxIntPro" msprop:Generator_ColumnPropNameInTable="idxIntProColumn" type="xs:int" />
<xs:element name="idxMacchina" msprop:Generator_UserColumnName="idxMacchina" msprop:Generator_ColumnVarNameInTable="columnidxMacchina" msprop:Generator_ColumnPropNameInRow="idxMacchina" msprop:Generator_ColumnPropNameInTable="idxMacchinaColumn" type="xs:int" minOccurs="0" />
<xs:element name="inizio" msprop:Generator_UserColumnName="inizio" msprop:Generator_ColumnVarNameInTable="columninizio" msprop:Generator_ColumnPropNameInRow="inizio" msprop:Generator_ColumnPropNameInTable="inizioColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="codFrequenza" msprop:Generator_UserColumnName="codFrequenza" msprop:Generator_ColumnVarNameInTable="columncodFrequenza" msprop:Generator_ColumnPropNameInRow="codFrequenza" msprop:Generator_ColumnPropNameInTable="codFrequenzaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="cadenza" msprop:Generator_UserColumnName="cadenza" msprop:Generator_ColumnVarNameInTable="columncadenza" msprop:Generator_ColumnPropNameInRow="cadenza" msprop:Generator_ColumnPropNameInTable="cadenzaColumn" type="xs:int" minOccurs="0" />
<xs:element name="descrizione" msprop:Generator_UserColumnName="descrizione" msprop:Generator_ColumnVarNameInTable="columndescrizione" msprop:Generator_ColumnPropNameInRow="descrizione" msprop:Generator_ColumnPropNameInTable="descrizioneColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="idxPriorita" msprop:Generator_UserColumnName="idxPriorita" msprop:Generator_ColumnVarNameInTable="columnidxPriorita" msprop:Generator_ColumnPropNameInRow="idxPriorita" msprop:Generator_ColumnPropNameInTable="idxPrioritaColumn" type="xs:int" minOccurs="0" />
<xs:element name="isFermo" msprop:Generator_UserColumnName="isFermo" msprop:Generator_ColumnVarNameInTable="columnisFermo" msprop:Generator_ColumnPropNameInRow="isFermo" msprop:Generator_ColumnPropNameInTable="isFermoColumn" type="xs:boolean" minOccurs="0" />
<xs:element name="idxTipo" msprop:Generator_UserColumnName="idxTipo" msprop:Generator_ColumnVarNameInTable="columnidxTipo" msprop:Generator_ColumnPropNameInRow="idxTipo" msprop:Generator_ColumnPropNameInTable="idxTipoColumn" type="xs:int" minOccurs="0" />
<xs:element name="codMacchina" msprop:Generator_UserColumnName="codMacchina" msprop:Generator_ColumnVarNameInTable="columncodMacchina" msprop:Generator_ColumnPropNameInRow="codMacchina" msprop:Generator_ColumnPropNameInTable="codMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nomeMacchina" msprop:Generator_UserColumnName="nomeMacchina" msprop:Generator_ColumnVarNameInTable="columnnomeMacchina" msprop:Generator_ColumnPropNameInRow="nomeMacchina" msprop:Generator_ColumnPropNameInTable="nomeMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="frequenza" msprop:Generator_UserColumnName="frequenza" msprop:Generator_ColumnVarNameInTable="columnfrequenza" msprop:Generator_ColumnPropNameInRow="frequenza" msprop:Generator_ColumnPropNameInTable="frequenzaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="descrPriorita" msprop:Generator_UserColumnName="descrPriorita" msprop:Generator_ColumnVarNameInTable="columndescrPriorita" msprop:Generator_ColumnPropNameInRow="descrPriorita" msprop:Generator_ColumnPropNameInTable="descrPrioritaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="descrTipo" msprop:Generator_UserColumnName="descrTipo" msprop:Generator_ColumnVarNameInTable="columndescrTipo" msprop:Generator_ColumnPropNameInRow="descrTipo" msprop:Generator_ColumnPropNameInTable="descrTipoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="MtzProgPending" msprop:Generator_UserTableName="MtzProgPending" msprop:Generator_RowDeletedName="MtzProgPendingRowDeleted" msprop:Generator_RowChangedName="MtzProgPendingRowChanged" msprop:Generator_RowClassName="MtzProgPendingRow" msprop:Generator_RowChangingName="MtzProgPendingRowChanging" msprop:Generator_RowEvArgName="MtzProgPendingRowChangeEvent" msprop:Generator_RowEvHandlerName="MtzProgPendingRowChangeEventHandler" msprop:Generator_TableClassName="MtzProgPendingDataTable" msprop:Generator_TableVarName="tableMtzProgPending" msprop:Generator_RowDeletingName="MtzProgPendingRowDeleting" msprop:Generator_TablePropName="MtzProgPending">
<xs:complexType>
<xs:sequence>
<xs:element name="idxPending" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxPending" msprop:Generator_ColumnPropNameInRow="idxPending" msprop:Generator_ColumnVarNameInTable="columnidxPending" msprop:Generator_ColumnPropNameInTable="idxPendingColumn" type="xs:int" />
<xs:element name="idxIntPro" msprop:Generator_UserColumnName="idxIntPro" msprop:Generator_ColumnPropNameInRow="idxIntPro" msprop:Generator_ColumnVarNameInTable="columnidxIntPro" msprop:Generator_ColumnPropNameInTable="idxIntProColumn" type="xs:int" />
<xs:element name="idxMacchina" msprop:Generator_UserColumnName="idxMacchina" msprop:Generator_ColumnPropNameInRow="idxMacchina" msprop:Generator_ColumnVarNameInTable="columnidxMacchina" msprop:Generator_ColumnPropNameInTable="idxMacchinaColumn" type="xs:int" minOccurs="0" />
<xs:element name="data" msprop:Generator_UserColumnName="data" msprop:Generator_ColumnPropNameInRow="data" msprop:Generator_ColumnVarNameInTable="columndata" msprop:Generator_ColumnPropNameInTable="dataColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="descrizione" msprop:Generator_UserColumnName="descrizione" msprop:Generator_ColumnPropNameInRow="descrizione" msprop:Generator_ColumnVarNameInTable="columndescrizione" msprop:Generator_ColumnPropNameInTable="descrizioneColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="idxPriorita" msprop:Generator_UserColumnName="idxPriorita" msprop:Generator_ColumnPropNameInRow="idxPriorita" msprop:Generator_ColumnVarNameInTable="columnidxPriorita" msprop:Generator_ColumnPropNameInTable="idxPrioritaColumn" type="xs:int" minOccurs="0" />
<xs:element name="isFermo" msprop:Generator_UserColumnName="isFermo" msprop:Generator_ColumnPropNameInRow="isFermo" msprop:Generator_ColumnVarNameInTable="columnisFermo" msprop:Generator_ColumnPropNameInTable="isFermoColumn" type="xs:boolean" minOccurs="0" />
<xs:element name="idxTipo" msprop:Generator_UserColumnName="idxTipo" msprop:Generator_ColumnPropNameInRow="idxTipo" msprop:Generator_ColumnVarNameInTable="columnidxTipo" msprop:Generator_ColumnPropNameInTable="idxTipoColumn" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="MtzProgrammata" msprop:Generator_UserTableName="MtzProgrammata" msprop:Generator_RowDeletedName="MtzProgrammataRowDeleted" msprop:Generator_RowChangedName="MtzProgrammataRowChanged" msprop:Generator_RowClassName="MtzProgrammataRow" msprop:Generator_RowChangingName="MtzProgrammataRowChanging" msprop:Generator_RowEvArgName="MtzProgrammataRowChangeEvent" msprop:Generator_RowEvHandlerName="MtzProgrammataRowChangeEventHandler" msprop:Generator_TableClassName="MtzProgrammataDataTable" msprop:Generator_TableVarName="tableMtzProgrammata" msprop:Generator_RowDeletingName="MtzProgrammataRowDeleting" msprop:Generator_TablePropName="MtzProgrammata">
<xs:complexType>
<xs:sequence>
<xs:element name="idxIntPro" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idxIntPro" msprop:Generator_ColumnPropNameInRow="idxIntPro" msprop:Generator_ColumnVarNameInTable="columnidxIntPro" msprop:Generator_ColumnPropNameInTable="idxIntProColumn" type="xs:int" />
@@ -1251,41 +1492,6 @@ FROM v_mtzProgExp</CommandText>
<xs:element name="idxPriorita" msprop:Generator_UserColumnName="idxPriorita" msprop:Generator_ColumnPropNameInRow="idxPriorita" msprop:Generator_ColumnVarNameInTable="columnidxPriorita" msprop:Generator_ColumnPropNameInTable="idxPrioritaColumn" type="xs:int" minOccurs="0" />
<xs:element name="isFermo" msprop:Generator_UserColumnName="isFermo" msprop:Generator_ColumnPropNameInRow="isFermo" msprop:Generator_ColumnVarNameInTable="columnisFermo" msprop:Generator_ColumnPropNameInTable="isFermoColumn" type="xs:boolean" minOccurs="0" />
<xs:element name="idxTipo" msprop:Generator_UserColumnName="idxTipo" msprop:Generator_ColumnPropNameInRow="idxTipo" msprop:Generator_ColumnVarNameInTable="columnidxTipo" msprop:Generator_ColumnPropNameInTable="idxTipoColumn" type="xs:int" minOccurs="0" />
<xs:element name="codMacchina" msprop:Generator_UserColumnName="codMacchina" msprop:Generator_ColumnPropNameInRow="codMacchina" msprop:Generator_ColumnVarNameInTable="columncodMacchina" msprop:Generator_ColumnPropNameInTable="codMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nomeMacchina" msprop:Generator_UserColumnName="nomeMacchina" msprop:Generator_ColumnPropNameInRow="nomeMacchina" msprop:Generator_ColumnVarNameInTable="columnnomeMacchina" msprop:Generator_ColumnPropNameInTable="nomeMacchinaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="frequenza" msprop:Generator_UserColumnName="frequenza" msprop:Generator_ColumnPropNameInRow="frequenza" msprop:Generator_ColumnVarNameInTable="columnfrequenza" msprop:Generator_ColumnPropNameInTable="frequenzaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="descrPriorita" msprop:Generator_UserColumnName="descrPriorita" msprop:Generator_ColumnPropNameInRow="descrPriorita" msprop:Generator_ColumnVarNameInTable="columndescrPriorita" msprop:Generator_ColumnPropNameInTable="descrPrioritaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="descrTipo" msprop:Generator_UserColumnName="descrTipo" msprop:Generator_ColumnPropNameInRow="descrTipo" msprop:Generator_ColumnVarNameInTable="columndescrTipo" msprop:Generator_ColumnPropNameInTable="descrTipoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -1341,6 +1547,14 @@ FROM v_mtzProgExp</CommandText>
<xs:selector xpath=".//mstns:v_mtzProgExp" />
<xs:field xpath="mstns:idxIntPro" />
</xs:unique>
<xs:unique name="MtzProgPending_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:MtzProgPending" />
<xs:field xpath="mstns:idxPending" />
</xs:unique>
<xs:unique name="MtzProgrammata_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:MtzProgrammata" />
<xs:field xpath="mstns:idxIntPro" />
</xs:unique>
</xs:element>
<xs:annotation>
<xs:appinfo>
@@ -1352,6 +1566,7 @@ FROM v_mtzProgExp</CommandText>
<msdata:Relationship name="FK_InterventiMtz_AnagPriorita" msdata:parent="AnagPriorita" msdata:child="v_intervExp" msdata:parentkey="idxPriorita" msdata:childkey="idxPriorita" msprop:Generator_UserRelationName="FK_InterventiMtz_AnagPriorita" msprop:Generator_RelationVarName="relationFK_InterventiMtz_AnagPriorita" msprop:Generator_UserChildTable="v_intervExp" msprop:Generator_UserParentTable="AnagPriorita" msprop:Generator_ParentPropName="AnagPrioritaRow" msprop:Generator_ChildPropName="Getv_intervExpRows" />
<msdata:Relationship name="FK_InterventiMtz_AnagTipoGuasto" msdata:parent="AnagTipoGuasto" msdata:child="v_intervExp" msdata:parentkey="idxTipo" msdata:childkey="idxTipo" msprop:Generator_UserRelationName="FK_InterventiMtz_AnagTipoGuasto" msprop:Generator_RelationVarName="relationFK_InterventiMtz_AnagTipoGuasto" msprop:Generator_UserChildTable="v_intervExp" msprop:Generator_UserParentTable="AnagTipoGuasto" msprop:Generator_ParentPropName="AnagTipoGuastoRow" msprop:Generator_ChildPropName="GetInterventiMtzRows" />
<msdata:Relationship name="v_intervExp_InterventoOpMtz" msdata:parent="v_intervExp" msdata:child="InterventoOpMtz" msdata:parentkey="numIntMtz" msdata:childkey="numIntMtz" msprop:Generator_UserRelationName="v_intervExp_InterventoOpMtz" msprop:Generator_RelationVarName="relationv_intervExp_InterventoOpMtz" msprop:Generator_UserChildTable="InterventoOpMtz" msprop:Generator_UserParentTable="v_intervExp" msprop:Generator_ParentPropName="v_intervExpRow" msprop:Generator_ChildPropName="GetInterventoOpMtzRows" />
<msdata:Relationship name="FK_MtzProgPending_MtzProgrammata" msdata:parent="MtzProgrammata" msdata:child="MtzProgPending" msdata:parentkey="idxIntPro" msdata:childkey="idxIntPro" msprop:Generator_UserRelationName="FK_MtzProgPending_MtzProgrammata" msprop:Generator_RelationVarName="relationFK_MtzProgPending_MtzProgrammata" msprop:Generator_UserChildTable="MtzProgPending" msprop:Generator_UserParentTable="MtzProgrammata" msprop:Generator_ParentPropName="MtzProgrammataRow" msprop:Generator_ChildPropName="GetMtzProgPendingRows" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+38 -24
View File
@@ -4,23 +4,25 @@
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="-47" 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="26" ViewPortY="-23" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:LogUpdateDb" ZOrder="20" X="36" Y="19" Height="122" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagAmbitoGuasto" ZOrder="19" X="322" Y="20" Height="122" Width="251" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagPriorita" ZOrder="6" X="153" Y="373" Height="190" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:AnagImpianti" ZOrder="12" X="810" Y="350" Height="207" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="126" />
<Shape ID="DesignTable:v_macchine" ZOrder="8" X="1087" Y="339" Height="343" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:v_selFamMacc" ZOrder="7" X="1067" Y="100" Height="173" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
<Shape ID="DesignTable:AnagFamMacchine" ZOrder="16" X="742" Y="29" Height="105" Width="195" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_intervExp" ZOrder="4" X="484" Y="217" Height="649" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="517" />
<Shape ID="DesignTable:AnagTipoGuasto" ZOrder="10" X="118" Y="199" Height="105" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagStati" ZOrder="5" X="813" Y="178" Height="139" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:InterventoOpMtz" ZOrder="3" X="790" Y="656" Height="173" Width="205" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:v_mtzProgExp" ZOrder="1" X="104" Y="603" Height="224" Width="176" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="177" />
<Shape ID="DesignTable:LogUpdateDb" ZOrder="23" X="36" Y="19" Height="122" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagAmbitoGuasto" ZOrder="22" X="322" Y="20" Height="122" Width="251" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagPriorita" ZOrder="9" X="153" Y="373" Height="190" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:AnagImpianti" ZOrder="15" X="810" Y="350" Height="207" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="126" />
<Shape ID="DesignTable:v_macchine" ZOrder="11" X="1087" Y="339" Height="360" Width="207" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:v_selFamMacc" ZOrder="10" X="1067" Y="100" Height="173" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
<Shape ID="DesignTable:AnagFamMacchine" ZOrder="19" X="742" Y="29" Height="105" Width="195" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_intervExp" ZOrder="7" X="484" Y="217" Height="649" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="517" />
<Shape ID="DesignTable:AnagTipoGuasto" ZOrder="13" X="118" Y="199" Height="105" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagStati" ZOrder="8" X="813" Y="178" Height="139" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:InterventoOpMtz" ZOrder="6" X="793" Y="582" Height="173" Width="205" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:v_mtzProgExp" ZOrder="4" X="104" Y="603" Height="224" Width="176" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="177" />
<Shape ID="DesignTable:MtzProgPending" ZOrder="3" X="882" Y="776" Height="224" Width="169" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="160" />
<Shape ID="DesignTable:MtzProgrammata" ZOrder="2" X="1141" Y="749" Height="241" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="177" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_AnagMacchine_AnagImpianti" ZOrder="18" LineWidth="11">
<Connector ID="DesignRelation:FK_AnagMacchine_AnagImpianti" ZOrder="21" LineWidth="11">
<RoutePoints>
<Point>
<X>1034</X>
@@ -32,7 +34,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:Macchine2FamMacchine_v_macchine" ZOrder="17" LineWidth="11">
<Connector ID="DesignRelation:Macchine2FamMacchine_v_macchine" ZOrder="20" LineWidth="11">
<RoutePoints>
<Point>
<X>1187</X>
@@ -44,7 +46,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:AnagFamMacchine_v_selFamMacc" ZOrder="15" LineWidth="11">
<Connector ID="DesignRelation:AnagFamMacchine_v_selFamMacc" ZOrder="18" LineWidth="11">
<RoutePoints>
<Point>
<X>937</X>
@@ -56,7 +58,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_InterventiMtz_AnagAmbitoGuasto" ZOrder="13" LineWidth="11">
<Connector ID="DesignRelation:FK_InterventiMtz_AnagAmbitoGuasto" ZOrder="16" LineWidth="11">
<RoutePoints>
<Point>
<X>511</X>
@@ -68,7 +70,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_InterventiMtz_AnagImpianti" ZOrder="14" LineWidth="11">
<Connector ID="DesignRelation:FK_InterventiMtz_AnagImpianti" ZOrder="17" LineWidth="11">
<RoutePoints>
<Point>
<X>810</X>
@@ -80,7 +82,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_InterventiMtz_AnagPriorita" ZOrder="11" LineWidth="11">
<Connector ID="DesignRelation:FK_InterventiMtz_AnagPriorita" ZOrder="14" LineWidth="11">
<RoutePoints>
<Point>
<X>364</X>
@@ -92,7 +94,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_InterventiMtz_AnagTipoGuasto" ZOrder="9" LineWidth="11">
<Connector ID="DesignRelation:FK_InterventiMtz_AnagTipoGuasto" ZOrder="12" LineWidth="11">
<RoutePoints>
<Point>
<X>297</X>
@@ -104,15 +106,27 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:v_intervExp_InterventoOpMtz" ZOrder="2" LineWidth="11">
<Connector ID="DesignRelation:v_intervExp_InterventoOpMtz" ZOrder="5" LineWidth="11">
<RoutePoints>
<Point>
<X>686</X>
<Y>722</Y>
<Y>648</Y>
</Point>
<Point>
<X>790</X>
<Y>722</Y>
<X>793</X>
<Y>648</Y>
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_MtzProgPending_MtzProgrammata" ZOrder="1" LineWidth="11">
<RoutePoints>
<Point>
<X>1141</X>
<Y>846</Y>
</Point>
<Point>
<X>1051</X>
<Y>846</Y>
</Point>
</RoutePoints>
</Connector>
+170
View File
@@ -0,0 +1,170 @@
using System;
using System.Collections.Generic;
using System.Web;
using SteamWare;
/// <summary>
/// Metodi di gestione della manutenzione programmata
/// </summary>
public class mtzProgr
{
#region table adapters
protected DS_applicazioneTableAdapters.MtzProgrammataTableAdapter taMtzProg;
protected DS_applicazioneTableAdapters.MtzProgPendingTableAdapter taMtzPend;
#endregion
/// <summary>
/// avvio componente
/// </summary>
protected mtzProgr()
{
taMtzPend = new DS_applicazioneTableAdapters.MtzProgPendingTableAdapter();
taMtzProg = new DS_applicazioneTableAdapters.MtzProgrammataTableAdapter();
}
/// <summary>
/// singleton accesso ai metodi di manutenzione programmata
/// </summary>
public static mtzProgr obj = new mtzProgr();
/// <summary>
/// verifica se ci siano interventi pending ed eventualmente li accoda
/// </summary>
public void processaCodaMtzPro()
{
// cerco eventuali interventi scaduti
insertPending();
// metto in coda tutte le ricorrenze non presenti...
rebuildPending();
}
/// <summary>
/// inserisce nelle richieste attuali gli interventi programmati scaduti
/// </summary>
private void insertPending()
{
int richInserted = 0;
//recupero solo gli interventi già "scaduti"
foreach (DS_applicazione.MtzProgPendingRow rigaMtz in taMtzPend.getByDataScad(DateTime.Now))
{
richInserted = insRich(rigaMtz);
// inserisco trasformandoli in richieste ...
if (richInserted != 0) // se va a buon fine
{
logger.lg.scriviLog(string.Format("Accodata la richiesta di manutenzione (programmata) num {0}", richInserted), tipoLog.INFO);
// ...e li tolgo dall'elenco pending
taMtzPend.Delete(rigaMtz.idxPending);
}
else
{
logger.lg.scriviLog(string.Format("Non è stato possibile accodare la richiesta di manutenzione programmata cod {0} relativa alla macchina {1}", rigaMtz.idxIntPro, rigaMtz.idxMacchina), tipoLog.ERROR);
}
}
}
/// <summary>
/// ricostruisce la coda degli intervneti pending
/// </summary>
private void rebuildPending()
{
int multiplo = 0;
int stimaIniz = 0;
double ggEquiv = 0;
TimeSpan distDate;
DateTime adesso = DateTime.Now;
DateTime dataProp;
foreach (DS_applicazione.MtzProgrammataRow rigaMtz in taMtzProg.getNotScheduled())
{
dataProp = rigaMtz.inizio;
// proseguo SOLO se inizio interventi <= data odierna...)
if (rigaMtz.inizio < adesso)
{
//calcolo l'intervallo timeSpan tra inizio interventi e data odierna
distDate = adesso.Subtract(rigaMtz.inizio);
// in base al tipo di intervallo faccio un calcolo grezzo del periodo trascorso...
ggEquiv = distDate.TotalDays;
switch (rigaMtz.codFrequenza)
{
case "dd":
stimaIniz = (int)Math.Floor(ggEquiv / rigaMtz.cadenza);
break;
case "ww":
stimaIniz = (int)Math.Floor(ggEquiv / (rigaMtz.cadenza * 7));
break;
case "MM":
stimaIniz = (int)Math.Floor(ggEquiv / (rigaMtz.cadenza * 30));
break;
case "yy":
stimaIniz = (int)Math.Floor(ggEquiv / (rigaMtz.cadenza * 365));
break;
}
// parto con la stima iniziale decrementata (se >0...)
if (stimaIniz == 0)
{
multiplo = 0;
}
else
{
multiplo = stimaIniz - 1;
}
// ciclo fino a quando la data indicata non è successiva all'adesso...
while (dataProp < adesso)
{
// aggiorno la data di riferimento
switch (rigaMtz.codFrequenza)
{
case "dd":
dataProp = rigaMtz.inizio.AddDays(rigaMtz.cadenza * multiplo);
break;
case "ww":
dataProp = rigaMtz.inizio.AddDays(rigaMtz.cadenza * 7 * multiplo);
break;
case "MM":
dataProp = rigaMtz.inizio.AddMonths(rigaMtz.cadenza * multiplo);
break;
case "yy":
dataProp = rigaMtz.inizio.AddYears(rigaMtz.cadenza * multiplo);
break;
}
multiplo++;
}
// salvo la data trovata...
rigaMtz.inizio = dataProp;
}
// infine inserisco intervento...
insMtzPend(rigaMtz);
}
}
/// <summary>
/// inserisce l'intervento della riga indicata tra quelli "pending"
/// </summary>
/// <param name="riga"></param>
protected void insMtzPend(DS_applicazione.MtzProgrammataRow riga)
{
mtzProgr.obj.taMtzPend.Insert(riga.idxIntPro, riga.idxMacchina, riga.inizio, riga.descrizione, riga.idxPriorita, riga.isFermo, riga.idxTipo);
}
/// <summary>
/// genera la richiesta di manutenzione dalla richeista pending associata
/// </summary>
/// <param name="riga"></param>
/// <returns></returns>
protected int insRich(DS_applicazione.MtzProgPendingRow riga)
{
int? answ = 0;
// calcolo date riferimento...
DateTime adesso = DateTime.Now;
int shift = memLayer.ML.confReadint("shiftTurno");
int durataTurno = memLayer.ML.confReadint("durataTurno");
int turno = Convert.ToInt32(Math.Ceiling((double)Convert.ToDouble(DateTime.Now.AddHours(-shift).Hour) / durataTurno));
int idxAmbito=7;//mtz programmata...
int idxImpianto = 0;
try{
idxImpianto=TA_app.obj.taMacchine.getByIdxMacchina(riga.idxMacchina)[0].idxImpianto;
}
catch(Exception e)
{
logger.lg.scriviLog(string.Format("Errore nel recuperare impianto relativo alla amcchina {0}, eccezione {1}", riga.idxMacchina,e), tipoLog.EXCEPTION);
}
// inserisco
TA_app.obj.taInterventiMtz.sp_insRichiesta(adesso, adesso.AddHours(-shift), turno, "PROG", riga.data, idxAmbito, riga.idxPriorita, riga.isFermo, riga.idxTipo, idxImpianto, riga.idxMacchina, riga.descrizione, ref answ);
return (int)answ;
}
}
+9
View File
@@ -43,6 +43,15 @@ public partial class login : System.Web.UI.Page
void Mod_login1_Login_ok(object sender, EventArgs e)
{
// verifico se devo generare degli interventi di MTZ programmata..
try
{
mtzProgr.obj.processaCodaMtzPro();
}
catch(Exception errore)
{
SteamWare.logger.lg.scriviLog(string.Format("Non sono riuscito ad accodare gli interventi di mtz preventiva pending, errore:\r\n {0}", errore), SteamWare.tipoLog.EXCEPTION);
}
Response.Redirect(_nextPage);
}
protected override void OnUnload(EventArgs e)
+4
View File
@@ -65,6 +65,8 @@
<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">
@@ -97,6 +99,8 @@
TargetControlID="imgDelete">
</cc1:ConfirmButtonExtender>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:TemplateField>
</Columns>
</asp:GridView>
@@ -232,9 +232,6 @@ public partial class mod_elencoMtzProg : ApplicationUserControl
private void checkFixOds()
{
ods.FilterExpression = "( codMacchina LIKE '%{0}%' OR nomeMacchina LIKE '%{0}%' OR descrizione LIKE '%{0}%' )";
//ods.FilterParameters.Clear();
//SessionParameter ricerca = new SessionParameter("ricerca","valoreCercato");
//ods.FilterParameters.Add(ricerca);
if (mod_filtroTipo.valoreInt != 0)
{
ods.FilterExpression += " AND (idxTipo = {1})";
+2 -2
View File
@@ -55,7 +55,7 @@ public partial class mod_insertRichiesta : System.Web.UI.UserControl
int delay = memLayer.ML.confReadint("defaultDelay");
// inserisco valori di default
txtDataOra.Text = string.Format("{0:ddd dd/MM/yyyy HH:mm}", DateTime.Now);
txtDataLav.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now.AddHours(-6));
txtDataLav.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now.AddHours(-shift));
txtTurnoLav.Text = turno.ToString();
mod_dataOra1.valore = DateTime.Now.AddMinutes(-delay);
chkImpFermo.Checked = true;
@@ -143,7 +143,7 @@ public partial class mod_insertRichiesta : System.Web.UI.UserControl
// stored inserimento!
TA_app.obj.taInterventiMtz.sp_insRichiesta(richiesta, dataLav, turno, matr, inizioGuasto, idxAmbito, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, ref numReq);
}
catch(Exception exc)
catch (Exception exc)
{
logger.lg.scriviLog("Errore inserimento nuova richiesta!", tipoLog.ERROR);
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);