Modificata selezione report interventi e mtbf/mttr: si sceglie oltre il periodo gli stati di richiesta voluti

git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@86 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
This commit is contained in:
samuele
2009-02-10 11:29:21 +00:00
parent 7bc4eca2fd
commit 4e1074e322
8 changed files with 208 additions and 154 deletions
+138 -123
View File
@@ -257,8 +257,8 @@ WHERE (conditio = @conditio)</CommandText>
<MainSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_elencoIntervFilt" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" 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">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT numIntMtz, richiesta, codImpianto, nomeImpianto, codMacchina, nomeMacchina, descrizione, inizioIntervento, fineIntervento, descrizioneIntervento, descrCausale, minErogati, durataMtz, durataOff, guasto FROM dbo.v_elencoIntervFilt</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT * FROM dbo.v_elencoIntervFilt</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
@@ -280,18 +280,31 @@ WHERE (conditio = @conditio)</CommandText>
<Mapping SourceColumn="durataMtz" DataSetColumn="durataMtz" />
<Mapping SourceColumn="durataOff" DataSetColumn="durataOff" />
<Mapping SourceColumn="guasto" DataSetColumn="guasto" />
<Mapping SourceColumn="idxStato" DataSetColumn="idxStato" />
</Mappings>
<Sources>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_elencoIntervFilt" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByIntervDate" GetMethodModifier="Public" GetMethodName="getByIntervDate" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByIntervDate" UserSourceName="getByIntervDate">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT codImpianto, codMacchina, descrCausale, descrizione, descrizioneIntervento, durataMtz, durataOff, fineIntervento, guasto, idxStato, inizioIntervento, minErogati, nomeImpianto, nomeMacchina, numIntMtz, richiesta FROM v_elencoIntervFilt WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="inizio" ColumnName="richiesta" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@inizio" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="richiesta" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="fine" ColumnName="richiesta" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@fine" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="richiesta" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_elencoIntervFilt" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByIntervDateElStati" GetMethodModifier="Public" GetMethodName="getByIntervDateElStati" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByIntervDateElStati" UserSourceName="getByIntervDateElStati">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT numIntMtz, richiesta, codImpianto, nomeImpianto, codMacchina, nomeMacchina, descrizione, inizioIntervento, fineIntervento, descrizioneIntervento, descrCausale,
minErogati, durataMtz, durataOff, guasto
<CommandText>SELECT codImpianto, codMacchina, descrCausale, descrizione, descrizioneIntervento, durataMtz, durataOff, fineIntervento, guasto, idxStato, inizioIntervento, minErogati,
nomeImpianto, nomeMacchina, numIntMtz, richiesta
FROM v_elencoIntervFilt
WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
WHERE (richiesta BETWEEN @inizio AND @fine) AND (CHARINDEX(CAST(idxStato AS varchar), @idxStatiReq) &gt; 0)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="inizio" ColumnName="richiesta" DataSourceName="GIM.dbo.v_elencoIntervFilt" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@inizio" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="richiesta" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="fine" ColumnName="richiesta" DataSourceName="GIM.dbo.v_elencoIntervFilt" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@fine" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="richiesta" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="idxStatiReq" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@idxStatiReq" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
@@ -300,7 +313,7 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="sp_elencoIntMTBF_MTTRTableAdapter" GeneratorDataComponentClassName="sp_elencoIntMTBF_MTTRTableAdapter" Name="sp_elencoIntMTBF_MTTR" UserDataComponentName="sp_elencoIntMTBF_MTTRTableAdapter">
<MainSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.sp_elencoIntMTBF_MTTR" DbObjectType="StoredProcedure" 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="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.sp_elencoIntMTBF_MTTR" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" 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">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.sp_elencoIntMTBF_MTTR</CommandText>
@@ -308,6 +321,7 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@inizio" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@fine" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@idxStatiReq" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
@@ -335,8 +349,8 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
<xs:element name="v_selImpianti" msprop:Generator_UserTableName="v_selImpianti" msprop:Generator_RowDeletedName="v_selImpiantiRowDeleted" msprop:Generator_RowChangedName="v_selImpiantiRowChanged" msprop:Generator_RowClassName="v_selImpiantiRow" msprop:Generator_RowChangingName="v_selImpiantiRowChanging" msprop:Generator_RowEvArgName="v_selImpiantiRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selImpiantiRowChangeEventHandler" msprop:Generator_TableClassName="v_selImpiantiDataTable" msprop:Generator_TableVarName="tablev_selImpianti" msprop:Generator_RowDeletingName="v_selImpiantiRowDeleting" msprop:Generator_TablePropName="v_selImpianti">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="156" />
@@ -349,23 +363,23 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
<xs:element name="v_selMacchine" msprop:Generator_UserTableName="v_selMacchine" msprop:Generator_RowDeletedName="v_selMacchineRowDeleted" msprop:Generator_RowChangedName="v_selMacchineRowChanged" msprop:Generator_RowClassName="v_selMacchineRow" msprop:Generator_RowChangingName="v_selMacchineRowChanging" msprop:Generator_RowEvArgName="v_selMacchineRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selMacchineRowChangeEventHandler" msprop:Generator_TableClassName="v_selMacchineDataTable" msprop:Generator_TableVarName="tablev_selMacchine" msprop:Generator_RowDeletingName="v_selMacchineRowDeleting" msprop:Generator_TablePropName="v_selMacchine">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="213" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInTable="conditioColumn" type="xs:int" minOccurs="0" />
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnPropNameInTable="conditioColumn" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selPrior" msprop:Generator_UserTableName="v_selPrior" msprop:Generator_RowDeletedName="v_selPriorRowDeleted" msprop:Generator_RowChangedName="v_selPriorRowChanged" msprop:Generator_RowClassName="v_selPriorRow" msprop:Generator_RowChangingName="v_selPriorRowChanging" msprop:Generator_RowEvArgName="v_selPriorRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selPriorRowChangeEventHandler" msprop:Generator_TableClassName="v_selPriorDataTable" msprop:Generator_TableVarName="tablev_selPrior" msprop:Generator_RowDeletingName="v_selPriorRowDeleting" msprop:Generator_TablePropName="v_selPrior">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="57" />
@@ -378,8 +392,8 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
<xs:element name="v_selAmbiti" msprop:Generator_UserTableName="v_selAmbiti" msprop:Generator_RowDeletedName="v_selAmbitiRowDeleted" msprop:Generator_RowChangedName="v_selAmbitiRowChanged" msprop:Generator_RowClassName="v_selAmbitiRow" msprop:Generator_RowChangingName="v_selAmbitiRowChanging" msprop:Generator_RowEvArgName="v_selAmbitiRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selAmbitiRowChangeEventHandler" msprop:Generator_TableClassName="v_selAmbitiDataTable" msprop:Generator_TableVarName="tablev_selAmbiti" msprop:Generator_RowDeletingName="v_selAmbitiRowDeleting" msprop:Generator_TablePropName="v_selAmbiti">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
@@ -392,23 +406,23 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
<xs:element name="v_selCausaliMacchine" msprop:Generator_UserTableName="v_selCausaliMacchine" msprop:Generator_RowDeletedName="v_selCausaliMacchineRowDeleted" msprop:Generator_RowChangedName="v_selCausaliMacchineRowChanged" msprop:Generator_RowClassName="v_selCausaliMacchineRow" msprop:Generator_RowChangingName="v_selCausaliMacchineRowChanging" msprop:Generator_RowEvArgName="v_selCausaliMacchineRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selCausaliMacchineRowChangeEventHandler" msprop:Generator_TableClassName="v_selCausaliMacchineDataTable" msprop:Generator_TableVarName="tablev_selCausaliMacchine" msprop:Generator_RowDeletingName="v_selCausaliMacchineRowDeleting" msprop:Generator_TablePropName="v_selCausaliMacchine">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnPropNameInTable="conditioColumn" type="xs:int" />
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInTable="conditioColumn" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selTipoGuasto" msprop:Generator_UserTableName="v_selTipoGuasto" msprop:Generator_RowDeletedName="v_selTipoGuastoRowDeleted" msprop:Generator_RowChangedName="v_selTipoGuastoRowChanged" msprop:Generator_RowClassName="v_selTipoGuastoRow" msprop:Generator_RowChangingName="v_selTipoGuastoRowChanging" msprop:Generator_RowEvArgName="v_selTipoGuastoRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selTipoGuastoRowChangeEventHandler" msprop:Generator_TableClassName="v_selTipoGuastoDataTable" msprop:Generator_TableVarName="tablev_selTipoGuasto" msprop:Generator_RowDeletingName="v_selTipoGuastoRowDeleting" msprop:Generator_TablePropName="v_selTipoGuasto">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
@@ -419,32 +433,12 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
</xs:complexType>
</xs:element>
<xs:element name="v_selSemafori" msprop:Generator_UserTableName="v_selSemafori" msprop:Generator_RowDeletedName="v_selSemaforiRowDeleted" msprop:Generator_RowChangedName="v_selSemaforiRowChanged" msprop:Generator_RowClassName="v_selSemaforiRow" msprop:Generator_RowChangingName="v_selSemaforiRowChanging" msprop:Generator_RowEvArgName="v_selSemaforiRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selSemaforiRowChangeEventHandler" msprop:Generator_TableClassName="v_selSemaforiDataTable" msprop:Generator_TableVarName="tablev_selSemafori" msprop:Generator_RowDeletingName="v_selSemaforiRowDeleting" msprop:Generator_TablePropName="v_selSemafori">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" 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_selFreq" msprop:Generator_UserTableName="v_selFreq" msprop:Generator_RowDeletedName="v_selFreqRowDeleted" msprop:Generator_RowChangedName="v_selFreqRowChanged" msprop:Generator_RowClassName="v_selFreqRow" msprop:Generator_RowChangingName="v_selFreqRowChanging" msprop:Generator_RowEvArgName="v_selFreqRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selFreqRowChangeEventHandler" msprop:Generator_TableClassName="v_selFreqDataTable" msprop:Generator_TableVarName="tablev_selFreq" msprop:Generator_RowDeletingName="v_selFreqRowDeleting" msprop:Generator_TablePropName="v_selFreq">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
@@ -458,11 +452,31 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selFreq" msprop:Generator_UserTableName="v_selFreq" msprop:Generator_RowDeletedName="v_selFreqRowDeleted" msprop:Generator_RowChangedName="v_selFreqRowChanged" msprop:Generator_RowClassName="v_selFreqRow" msprop:Generator_RowChangingName="v_selFreqRowChanging" msprop:Generator_RowEvArgName="v_selFreqRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selFreqRowChangeEventHandler" msprop:Generator_TableClassName="v_selFreqDataTable" msprop:Generator_TableVarName="tablev_selFreq" msprop:Generator_RowDeletingName="v_selFreqRowDeleting" msprop:Generator_TablePropName="v_selFreq">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" 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_selStato" msprop:Generator_UserTableName="v_selStato" msprop:Generator_RowDeletedName="v_selStatoRowDeleted" msprop:Generator_RowChangedName="v_selStatoRowChanged" msprop:Generator_RowClassName="v_selStatoRow" msprop:Generator_RowChangingName="v_selStatoRowChanging" msprop:Generator_RowEvArgName="v_selStatoRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selStatoRowChangeEventHandler" msprop:Generator_TableClassName="v_selStatoDataTable" msprop:Generator_TableVarName="tablev_selStato" msprop:Generator_RowDeletingName="v_selStatoRowDeleting" msprop:Generator_TablePropName="v_selStato">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
@@ -475,21 +489,21 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
<xs:element name="v_selPeriodiTrad" msprop:Generator_UserTableName="v_selPeriodiTrad" msprop:Generator_RowDeletedName="v_selPeriodiTradRowDeleted" msprop:Generator_RowChangedName="v_selPeriodiTradRowChanged" msprop:Generator_RowClassName="v_selPeriodiTradRow" msprop:Generator_RowChangingName="v_selPeriodiTradRowChanging" msprop:Generator_RowEvArgName="v_selPeriodiTradRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selPeriodiTradRowChangeEventHandler" msprop:Generator_TableClassName="v_selPeriodiTradDataTable" msprop:Generator_TableVarName="tablev_selPeriodiTrad" msprop:Generator_RowDeletingName="v_selPeriodiTradRowDeleting" msprop:Generator_TablePropName="v_selPeriodiTrad">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn">
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnPropNameInTable="conditioColumn">
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInTable="conditioColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="3" />
@@ -502,6 +516,66 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
<xs:element name="v_elencoImpiantiMacchine" msprop:Generator_UserTableName="v_elencoImpiantiMacchine" msprop:Generator_RowDeletedName="v_elencoImpiantiMacchineRowDeleted" msprop:Generator_RowChangedName="v_elencoImpiantiMacchineRowChanged" msprop:Generator_RowClassName="v_elencoImpiantiMacchineRow" msprop:Generator_RowChangingName="v_elencoImpiantiMacchineRowChanging" msprop:Generator_RowEvArgName="v_elencoImpiantiMacchineRowChangeEvent" msprop:Generator_RowEvHandlerName="v_elencoImpiantiMacchineRowChangeEventHandler" msprop:Generator_TableClassName="v_elencoImpiantiMacchineDataTable" msprop:Generator_TableVarName="tablev_elencoImpiantiMacchine" msprop:Generator_RowDeletingName="v_elencoImpiantiMacchineRowDeleting" msprop:Generator_TablePropName="v_elencoImpiantiMacchine">
<xs:complexType>
<xs:sequence>
<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="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" msdata:ReadOnly="true" 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" />
<xs:element name="kwConsumo" msprop:Generator_UserColumnName="kwConsumo" msprop:Generator_ColumnPropNameInRow="kwConsumo" msprop:Generator_ColumnVarNameInTable="columnkwConsumo" msprop:Generator_ColumnPropNameInTable="kwConsumoColumn" type="xs:double" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_elencoIntervFilt" msprop:Generator_UserTableName="v_elencoIntervFilt" msprop:Generator_RowDeletedName="v_elencoIntervFiltRowDeleted" msprop:Generator_RowChangedName="v_elencoIntervFiltRowChanged" msprop:Generator_RowClassName="v_elencoIntervFiltRow" msprop:Generator_RowChangingName="v_elencoIntervFiltRowChanging" msprop:Generator_RowEvArgName="v_elencoIntervFiltRowChangeEvent" msprop:Generator_RowEvHandlerName="v_elencoIntervFiltRowChangeEventHandler" msprop:Generator_TableClassName="v_elencoIntervFiltDataTable" msprop:Generator_TableVarName="tablev_elencoIntervFilt" msprop:Generator_RowDeletingName="v_elencoIntervFiltRowDeleting" msprop:Generator_TablePropName="v_elencoIntervFilt">
<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="richiesta" msprop:Generator_UserColumnName="richiesta" msprop:Generator_ColumnVarNameInTable="columnrichiesta" msprop:Generator_ColumnPropNameInRow="richiesta" msprop:Generator_ColumnPropNameInTable="richiestaColumn" type="xs:dateTime" />
<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">
@@ -516,13 +590,6 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
</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="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">
@@ -537,117 +604,65 @@ WHERE (richiesta BETWEEN @inizio AND @fine)</CommandText>
</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" msdata:ReadOnly="true" 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" />
<xs:element name="kwConsumo" msprop:Generator_UserColumnName="kwConsumo" msprop:Generator_ColumnVarNameInTable="columnkwConsumo" msprop:Generator_ColumnPropNameInRow="kwConsumo" msprop:Generator_ColumnPropNameInTable="kwConsumoColumn" type="xs:double" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_elencoIntervFilt" msprop:Generator_UserTableName="v_elencoIntervFilt" msprop:Generator_RowDeletedName="v_elencoIntervFiltRowDeleted" msprop:Generator_TableClassName="v_elencoIntervFiltDataTable" msprop:Generator_RowChangedName="v_elencoIntervFiltRowChanged" msprop:Generator_RowClassName="v_elencoIntervFiltRow" msprop:Generator_RowChangingName="v_elencoIntervFiltRowChanging" msprop:Generator_RowEvArgName="v_elencoIntervFiltRowChangeEvent" msprop:Generator_RowEvHandlerName="v_elencoIntervFiltRowChangeEventHandler" msprop:Generator_TablePropName="v_elencoIntervFilt" msprop:Generator_TableVarName="tablev_elencoIntervFilt" msprop:Generator_RowDeletingName="v_elencoIntervFiltRowDeleting">
<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="richiesta" msprop:Generator_UserColumnName="richiesta" msprop:Generator_ColumnPropNameInRow="richiesta" msprop:Generator_ColumnVarNameInTable="columnrichiesta" msprop:Generator_ColumnPropNameInTable="richiestaColumn" type="xs:dateTime" />
<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="descrizione" msprop:Generator_UserColumnName="descrizione" msprop:Generator_ColumnPropNameInRow="descrizione" msprop:Generator_ColumnVarNameInTable="columndescrizione" msprop:Generator_ColumnPropNameInTable="descrizioneColumn">
<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="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" msdata:ReadOnly="true" msprop:Generator_UserColumnName="descrizioneIntervento" msprop:Generator_ColumnPropNameInRow="descrizioneIntervento" msprop:Generator_ColumnVarNameInTable="columndescrizioneIntervento" msprop:Generator_ColumnPropNameInTable="descrizioneInterventoColumn" 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" msdata:ReadOnly="true" 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="descrCausale" msdata:ReadOnly="true" msprop:Generator_UserColumnName="descrCausale" msprop:Generator_ColumnPropNameInRow="descrCausale" msprop:Generator_ColumnVarNameInTable="columndescrCausale" msprop:Generator_ColumnPropNameInTable="descrCausaleColumn" minOccurs="0">
<xs:element name="descrCausale" msdata:ReadOnly="true" 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:element name="minErogati" msdata:ReadOnly="true" msprop:Generator_UserColumnName="minErogati" msprop:Generator_ColumnPropNameInRow="minErogati" msprop:Generator_ColumnVarNameInTable="columnminErogati" msprop:Generator_ColumnPropNameInTable="minErogatiColumn" type="xs:int" minOccurs="0" />
<xs:element name="durataMtz" msdata:ReadOnly="true" msprop:Generator_UserColumnName="durataMtz" msprop:Generator_ColumnPropNameInRow="durataMtz" msprop:Generator_ColumnVarNameInTable="columndurataMtz" msprop:Generator_ColumnPropNameInTable="durataMtzColumn" type="xs:int" minOccurs="0" />
<xs:element name="durataOff" msdata:ReadOnly="true" msprop:Generator_UserColumnName="durataOff" msprop:Generator_ColumnPropNameInRow="durataOff" msprop:Generator_ColumnVarNameInTable="columndurataOff" msprop:Generator_ColumnPropNameInTable="durataOffColumn" type="xs:int" minOccurs="0" />
<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="minErogati" msdata:ReadOnly="true" msprop:Generator_UserColumnName="minErogati" msprop:Generator_ColumnVarNameInTable="columnminErogati" msprop:Generator_ColumnPropNameInRow="minErogati" msprop:Generator_ColumnPropNameInTable="minErogatiColumn" type="xs:int" minOccurs="0" />
<xs:element name="durataMtz" msdata:ReadOnly="true" msprop:Generator_UserColumnName="durataMtz" msprop:Generator_ColumnVarNameInTable="columndurataMtz" msprop:Generator_ColumnPropNameInRow="durataMtz" msprop:Generator_ColumnPropNameInTable="durataMtzColumn" type="xs:int" minOccurs="0" />
<xs:element name="durataOff" msdata:ReadOnly="true" msprop:Generator_UserColumnName="durataOff" msprop:Generator_ColumnVarNameInTable="columndurataOff" msprop:Generator_ColumnPropNameInRow="durataOff" msprop:Generator_ColumnPropNameInTable="durataOffColumn" 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="idxStato" msprop:Generator_UserColumnName="idxStato" msprop:Generator_ColumnPropNameInRow="idxStato" msprop:Generator_ColumnVarNameInTable="columnidxStato" msprop:Generator_ColumnPropNameInTable="idxStatoColumn" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="sp_elencoIntMTBF_MTTR" msprop:Generator_UserTableName="sp_elencoIntMTBF_MTTR" msprop:Generator_RowDeletedName="sp_elencoIntMTBF_MTTRRowDeleted" msprop:Generator_TableClassName="sp_elencoIntMTBF_MTTRDataTable" msprop:Generator_RowChangedName="sp_elencoIntMTBF_MTTRRowChanged" msprop:Generator_RowClassName="sp_elencoIntMTBF_MTTRRow" msprop:Generator_RowChangingName="sp_elencoIntMTBF_MTTRRowChanging" msprop:Generator_RowEvArgName="sp_elencoIntMTBF_MTTRRowChangeEvent" msprop:Generator_RowEvHandlerName="sp_elencoIntMTBF_MTTRRowChangeEventHandler" msprop:Generator_TablePropName="sp_elencoIntMTBF_MTTR" msprop:Generator_TableVarName="tablesp_elencoIntMTBF_MTTR" msprop:Generator_RowDeletingName="sp_elencoIntMTBF_MTTRRowDeleting">
<xs:element name="sp_elencoIntMTBF_MTTR" msprop:Generator_UserTableName="sp_elencoIntMTBF_MTTR" msprop:Generator_RowDeletedName="sp_elencoIntMTBF_MTTRRowDeleted" msprop:Generator_RowChangedName="sp_elencoIntMTBF_MTTRRowChanged" msprop:Generator_RowClassName="sp_elencoIntMTBF_MTTRRow" msprop:Generator_RowChangingName="sp_elencoIntMTBF_MTTRRowChanging" msprop:Generator_RowEvArgName="sp_elencoIntMTBF_MTTRRowChangeEvent" msprop:Generator_RowEvHandlerName="sp_elencoIntMTBF_MTTRRowChangeEventHandler" msprop:Generator_TableClassName="sp_elencoIntMTBF_MTTRDataTable" msprop:Generator_TableVarName="tablesp_elencoIntMTBF_MTTR" msprop:Generator_RowDeletingName="sp_elencoIntMTBF_MTTRRowDeleting" msprop:Generator_TablePropName="sp_elencoIntMTBF_MTTR">
<xs:complexType>
<xs:sequence>
<xs:element name="numInterventi" msdata:ReadOnly="true" msprop:Generator_UserColumnName="numInterventi" msprop:Generator_ColumnPropNameInRow="numInterventi" msprop:Generator_ColumnVarNameInTable="columnnumInterventi" msprop:Generator_ColumnPropNameInTable="numInterventiColumn" type="xs:int" minOccurs="0" />
<xs:element name="totOreMtz" msdata:ReadOnly="true" msprop:Generator_UserColumnName="totOreMtz" msprop:Generator_ColumnPropNameInRow="totOreMtz" msprop:Generator_ColumnVarNameInTable="columntotOreMtz" msprop:Generator_ColumnPropNameInTable="totOreMtzColumn" type="xs:int" minOccurs="0" />
<xs:element name="totOreOfficina" msdata:ReadOnly="true" msprop:Generator_UserColumnName="totOreOfficina" msprop:Generator_ColumnPropNameInRow="totOreOfficina" msprop:Generator_ColumnVarNameInTable="columntotOreOfficina" msprop:Generator_ColumnPropNameInTable="totOreOfficinaColumn" type="xs:int" minOccurs="0" />
<xs:element name="codImpianto" msprop:Generator_UserColumnName="codImpianto" msprop:Generator_ColumnPropNameInRow="codImpianto" msprop:Generator_ColumnVarNameInTable="columncodImpianto" msprop:Generator_ColumnPropNameInTable="codImpiantoColumn" minOccurs="0">
<xs:element name="numInterventi" msdata:ReadOnly="true" msprop:Generator_UserColumnName="numInterventi" msprop:Generator_ColumnVarNameInTable="columnnumInterventi" msprop:Generator_ColumnPropNameInRow="numInterventi" msprop:Generator_ColumnPropNameInTable="numInterventiColumn" type="xs:int" minOccurs="0" />
<xs:element name="totOreMtz" msdata:ReadOnly="true" msprop:Generator_UserColumnName="totOreMtz" msprop:Generator_ColumnVarNameInTable="columntotOreMtz" msprop:Generator_ColumnPropNameInRow="totOreMtz" msprop:Generator_ColumnPropNameInTable="totOreMtzColumn" type="xs:int" minOccurs="0" />
<xs:element name="totOreOfficina" msdata:ReadOnly="true" msprop:Generator_UserColumnName="totOreOfficina" msprop:Generator_ColumnVarNameInTable="columntotOreOfficina" msprop:Generator_ColumnPropNameInRow="totOreOfficina" msprop:Generator_ColumnPropNameInTable="totOreOfficinaColumn" type="xs:int" minOccurs="0" />
<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="codMacchina" msprop:Generator_UserColumnName="codMacchina" msprop:Generator_ColumnPropNameInRow="codMacchina" msprop:Generator_ColumnVarNameInTable="columncodMacchina" msprop:Generator_ColumnPropNameInTable="codMacchinaColumn" 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="nomeImpianto" msprop:Generator_UserColumnName="nomeImpianto" msprop:Generator_ColumnPropNameInRow="nomeImpianto" msprop:Generator_ColumnVarNameInTable="columnnomeImpianto" msprop:Generator_ColumnPropNameInTable="nomeImpiantoColumn" minOccurs="0">
<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="nomeMacchina" msprop:Generator_UserColumnName="nomeMacchina" msprop:Generator_ColumnPropNameInRow="nomeMacchina" msprop:Generator_ColumnVarNameInTable="columnnomeMacchina" msprop:Generator_ColumnPropNameInTable="nomeMacchinaColumn" minOccurs="0">
<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" />
+3 -3
View File
@@ -4,7 +4,7 @@
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="48" 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="-10" ViewPortY="43" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:v_selImpianti" ZOrder="13" X="70" Y="70" Height="122" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_selMacchine" ZOrder="12" X="360" Y="70" Height="139" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
@@ -17,8 +17,8 @@
<Shape ID="DesignTable:v_selStato" ZOrder="5" X="253" Y="330" Height="105" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_selPeriodiTrad" ZOrder="4" X="304" Y="536" Height="139" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:v_elencoImpiantiMacchine" ZOrder="3" X="853" Y="692" Height="241" Width="295" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="194" />
<Shape ID="DesignTable:v_elencoIntervFilt" ZOrder="2" X="300" Y="697" Height="343" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="279" />
<Shape ID="DesignTable:sp_elencoIntMTBF_MTTR" ZOrder="1" X="567" Y="717" Height="190" Width="238" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="143" />
<Shape ID="DesignTable:v_elencoIntervFilt" ZOrder="1" X="264" Y="697" Height="309" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:sp_elencoIntMTBF_MTTR" ZOrder="2" X="567" Y="717" Height="190" Width="230" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="143" />
</Shapes>
<Connectors />
</DiagramLayout>
+7 -7
View File
@@ -83,16 +83,16 @@ public class reportExporter
/// <param name="tipoReport">report ammessi: ElencoInterventi / MTBF_MTTR</param>
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
/// <returns>tabella dati</returns>
private DataTable caricaDati(reportRichiesto tipoReport, intervalloDate periodoAnalizzato)
private DataTable caricaDati(reportRichiesto tipoReport, intervalloDate periodoAnalizzato, string idxStatiReq)
{
DataTable tab = new DataTable();
switch (tipoReport)
{
case reportRichiesto.ElencoInterventi:
tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDate(periodoAnalizzato.inizio, periodoAnalizzato.fine);
tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDateElStati(periodoAnalizzato.inizio, periodoAnalizzato.fine, idxStatiReq);
break;
case reportRichiesto.MTBF_MTTR:
tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.GetData(periodoAnalizzato.inizio, periodoAnalizzato.fine);
tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.GetData(periodoAnalizzato.inizio, periodoAnalizzato.fine, idxStatiReq);
break;
default:
break;
@@ -140,7 +140,7 @@ public class reportExporter
string deviceInfo = "";
switch (tipoReport)
{
case reportRichiesto.RichiestaIntervento:
case reportRichiesto.RichiestaIntervento:
report.ReportPath = @".\RichiestaIntervento.rdlc";
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, parametro))); // OCCHIO!!! va messa sorgente dati CORRETTA
deviceInfo = "<DeviceInfo>" +
@@ -163,7 +163,7 @@ public class reportExporter
/// </summary>
/// <param name="tipoReport">report ammessi: ElencoInterventi / MTBF_MTTR</param>
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
public void popolaPdfStream(reportRichiesto tipoReport, intervalloDate periodoAnalizzato)
public void popolaPdfStream(reportRichiesto tipoReport, intervalloDate periodoAnalizzato, string statiRichiesti)
{
LocalReport report = new LocalReport();
string deviceInfo = "";
@@ -171,7 +171,7 @@ public class reportExporter
{
case reportRichiesto.ElencoInterventi:
report.ReportPath = @".\ReportInterventi.rdlc";
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato)));
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, statiRichiesti)));
deviceInfo = "<DeviceInfo>" +
" <OutputFormat>PDF</OutputFormat>" +
" <PageWidth>21cm</PageWidth>" +
@@ -184,7 +184,7 @@ public class reportExporter
break;
case reportRichiesto.MTBF_MTTR:
report.ReportPath = @".\Report_MTBF_MTTR.rdlc";
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato)));
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, statiRichiesti)));
deviceInfo = "<DeviceInfo>" +
" <OutputFormat>PDF</OutputFormat>" +
" <PageWidth>21cm</PageWidth>" +
+6 -6
View File
@@ -122,16 +122,16 @@ public class reportPrinter
/// <param name="tipoReport">report ammessi: ElencoInterventi / MTBF_MTTR</param>
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
/// <returns>tabella dati</returns>
private DataTable caricaDati(reportRichiesto tipoReport, intervalloDate periodoAnalizzato)
private DataTable caricaDati(reportRichiesto tipoReport, intervalloDate periodoAnalizzato, string idxStatiReq)
{
DataTable tab = new DataTable();
switch (tipoReport)
{
case reportRichiesto.ElencoInterventi:
tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDate(periodoAnalizzato.inizio, periodoAnalizzato.fine);
tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDateElStati(periodoAnalizzato.inizio, periodoAnalizzato.fine, idxStatiReq);
break;
case reportRichiesto.MTBF_MTTR:
tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.GetData(periodoAnalizzato.inizio, periodoAnalizzato.fine);
tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.GetData(periodoAnalizzato.inizio, periodoAnalizzato.fine, idxStatiReq);
break;
default:
break;
@@ -187,7 +187,7 @@ public class reportPrinter
/// <param name="tipoReport">report ammessi: ElencoInterventi / MTBF_MTTR</param>
/// <param name="printerName">nome completo stampante (rispetto al server)</param>
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
public void printReport(reportRichiesto tipoReport, string printerName, intervalloDate periodoAnalizzato)
public void printReport(reportRichiesto tipoReport, string printerName, intervalloDate periodoAnalizzato, string statiRichiesti)
{
LocalReport report = new LocalReport();
string deviceInfo = "";
@@ -195,7 +195,7 @@ public class reportPrinter
{
case reportRichiesto.ElencoInterventi:
report.ReportPath = @".\ReportInterventi.rdlc";
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato)));
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, statiRichiesti)));
deviceInfo = "<DeviceInfo>" +
" <OutputFormat>EMF</OutputFormat>" +
" <PageWidth>21cm</PageWidth>" +
@@ -208,7 +208,7 @@ public class reportPrinter
break;
case reportRichiesto.MTBF_MTTR:
report.ReportPath = @".\Report_MTBF_MTTR.rdlc";
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato)));
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, statiRichiesti)));
deviceInfo = "<DeviceInfo>" +
" <OutputFormat>EMF</OutputFormat>" +
" <PageWidth>21cm</PageWidth>" +
+3 -2
View File
@@ -16,6 +16,7 @@ public partial class ExportPdf : System.Web.UI.Page
periodo.inizio = Convert.ToDateTime(Request.QueryString["inizio"]);
periodo.fine = Convert.ToDateTime(Request.QueryString["fine"]);
reportRichiesto tipo = (reportRichiesto)Convert.ToInt32(Request.QueryString["tipo"]);
string idxStatiReq = Request.QueryString["idxStatiReq"];
// eseguo export
reportExporter re = new reportExporter();
// in base al tipo passo un metodo con idx o con parametro Intervallo analisi...
@@ -23,7 +24,7 @@ public partial class ExportPdf : System.Web.UI.Page
{
case reportRichiesto.ElencoInterventi:
reportName="elenco_interventi";
re.popolaPdfStream(tipo, periodo);
re.popolaPdfStream(tipo, periodo, idxStatiReq);
break;
case reportRichiesto.ElencoMacchine:
reportName="elenco_macchine";
@@ -31,7 +32,7 @@ public partial class ExportPdf : System.Web.UI.Page
break;
case reportRichiesto.MTBF_MTTR:
reportName = "MTBF_MTTR";
re.popolaPdfStream(tipo, periodo);
re.popolaPdfStream(tipo, periodo, idxStatiReq);
break;
case reportRichiesto.RichiestaIntervento:
reportName="richiesta";
+1 -1
View File
@@ -1,4 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_menuBottom.ascx.cs"
Inherits="mod_menuBottom" %>
<asp:Label runat="server" ID="lblApp" Text="."></asp:Label><asp:Label ID="lblrev" runat="server">84 - </asp:Label>
<asp:Label runat="server" ID="lblApp" Text="."></asp:Label><asp:Label ID="lblrev" runat="server">86 - </asp:Label>
<asp:Label runat="server" ID="lblCopyRight" Text="..."></asp:Label>
+11 -6
View File
@@ -4,9 +4,18 @@
<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc1" %>
<div style="width: 100%; background-color: #cdcdcd; clear: both;" class="bg_plus">
<div style="float: left;">
...selettore tipo interventi (tutti/completati-annullati/stato... con checkbox multiplo?!?)
<asp:Label runat="server" ID="lblMostraStati" /><br />
<asp:ListBox ID="chkStatoInt" runat="server" DataSourceID="ods"
DataTextField="DescrStato" AutoPostBack="true"
DataValueField="idxStato" OnDataBound="chkStatoInt_DataBound"
SelectionMode="Multiple"
onselectedindexchanged="chkStatoInt_SelectedIndexChanged">
</asp:ListBox>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="DS_applicazioneTableAdapters.AnagStatiTableAdapter">
</asp:ObjectDataSource>
</div>
<div style="float: right;">
<div style="float: right; width:200px">
<uc1:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" />
</div>
</div>
@@ -31,14 +40,10 @@
</tr>
<tr>
<td>
<asp:Button ID="btnInterventi_print" runat="server" Text="btnInterventi_print" Width="200px"
OnClick="btnInterventi_print_Click" Visible="false" />
<asp:HyperLink runat="server" ID="hlElencoInterventi_Pdf" ToolTip="exportPDF interventi (tradurre)"
ImageUrl="~/images/page_pdf.png" />
</td>
<td>
<asp:Button ID="btnMtbfMttr_print" runat="server" Text="btnMtbfMttr_print" Width="200px"
OnClick="btnMtbfMttr_print_Click" Visible="false" />
<asp:HyperLink runat="server" ID="hlMTBF_MTTR_Pdf" ToolTip="exportPDF MTBF MTTR (tradurre)"
ImageUrl="~/images/page_pdf.png" />
</td>
+39 -6
View File
@@ -29,25 +29,58 @@ public partial class mod_reportInterventi : System.Web.UI.UserControl
{
setDefaultValues();
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
return user_std.UtSn.Traduci(lemma.ToString());
}
private void traduciObj()
{
//
lblMostraStati.Text = traduci("lblMostraStati");
}
private void setDefaultValues()
{
// valori degli hyperlink
hlElencoInterventi_Pdf.NavigateUrl = formattaUrl(reportRichiesto.ElencoInterventi, mod_periodoAnalisi1.intervalloAnalisi);
hlMTBF_MTTR_Pdf.NavigateUrl = formattaUrl(reportRichiesto.MTBF_MTTR, mod_periodoAnalisi1.intervalloAnalisi);
// seleziona tutti gli stati possibili
}
private string formattaUrl(reportRichiesto tipo, intervalloDate periodo)
{
return String.Format("~/ExportPdf.aspx?tipo={0}&inizio={1}&fine={2}", Convert.ToInt32(tipo), periodo.inizio, periodo.fine);
string idxStatiReq = "";
// popolo la stringa degli stati richiesti da elenco selezionati...
foreach (ListItem item in chkStatoInt.Items)
{
if (item.Selected)
{
idxStatiReq += string.Format(",{0}",item.Value);
}
}
// levo eventuale "," iniziale o se vuoto metto tutti..
if (idxStatiReq == "")
{
idxStatiReq = "1,2,3,4";
}
else
{
idxStatiReq = idxStatiReq.Substring(1, idxStatiReq.Length - 1);
}
return String.Format("~/ExportPdf.aspx?tipo={0}&inizio={1}&fine={2}&idxStatiReq={3}", Convert.ToInt32(tipo), periodo.inizio, periodo.fine, idxStatiReq);
}
protected void btnInterventi_print_Click(object sender, EventArgs e)
protected void chkStatoInt_DataBound(object sender, EventArgs e)
{
reportPrinter.obj.printReport(reportRichiesto.ElencoInterventi, memLayer.ML.confReadstring("stampanteRichiesteMtz"), mod_periodoAnalisi1.intervalloAnalisi);
foreach (ListItem item in ((ListBox)sender).Items)
{
item.Selected = true;
}
}
protected void btnMtbfMttr_print_Click(object sender, EventArgs e)
protected void chkStatoInt_SelectedIndexChanged(object sender, EventArgs e)
{
reportPrinter.obj.printReport(reportRichiesto.MTBF_MTTR, memLayer.ML.confReadstring("stampanteRichiesteMtz"), mod_periodoAnalisi1.intervalloAnalisi);
setDefaultValues();
}
}