- Fix cancellabilità macchine/impianti condizionata a interventi già registrati

- Fix comportamento ricerca impianti con dettaglio mostrato se gli impianti non lo sono (ricerca in child...)

git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@37 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
This commit is contained in:
samuele
2009-01-23 11:06:43 +00:00
parent cdfd39e97f
commit 4450b4dcd2
4 changed files with 270 additions and 221 deletions
+218 -187
View File
@@ -577,6 +577,37 @@ WHERE (numIntMtz = @numIntMtz)</CommandText>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_intervExp" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByIdxImpianto" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="getByIdxImpianto" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByIdxImpianto" UserSourceName="getByIdxImpianto">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT numIntMtz, richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, descrAmbitoGuasto, idxPriorita, descrPriorita, isFermo, idxTipo, descrTipo, idxImpianto,
codImpianto, nomeImpianto, idxMacchina, codMacchina, nomeMacchina, descrizione, idxStato, DescrStato, presaInCarico, inizioIntervento, fineIntervento,
descrizioneIntervento, isPreventivabile, idxCausale, descrCausale
FROM v_intervExp
where idxImpianto=@idxImpianto
ORDER BY numIntMtz DESC
</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="idxImpianto" ColumnName="idxImpianto" DataSourceName="GIM.dbo.v_intervExp" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxImpianto" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxImpianto" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_intervExp" 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 numIntMtz, richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, descrAmbitoGuasto, idxPriorita, descrPriorita, isFermo, idxTipo, descrTipo, idxImpianto,
codImpianto, nomeImpianto, idxMacchina, codMacchina, nomeMacchina, descrizione, idxStato, DescrStato, presaInCarico, inizioIntervento, fineIntervento,
descrizioneIntervento, isPreventivabile, idxCausale, descrCausale
FROM v_intervExp
WHERE idxMacchina=@idxMacchina
ORDER BY numIntMtz DESC</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="idxMacchina" ColumnName="idxMacchina" DataSourceName="GIM.dbo.v_intervExp" 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_insRichiesta" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_insRichiesta" Modifier="Public" Name="sp_insRichiesta" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="sp_insRichiesta">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -726,16 +757,16 @@ where idxStato=@idxStato</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_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: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: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_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: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:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
@@ -748,15 +779,15 @@ where idxStato=@idxStato</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_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: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_ColumnVarNameInTable="columnstile" msprop:Generator_ColumnPropNameInRow="stile" msprop:Generator_ColumnPropNameInTable="stileColumn" minOccurs="0">
<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" />
@@ -769,179 +800,7 @@ where idxStato=@idxStato</CommandText>
<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_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="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="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">
@@ -956,6 +815,23 @@ where idxStato=@idxStato</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="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">
@@ -970,14 +846,169 @@ where idxStato=@idxStato</CommandText>
</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: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="descrCausale" msprop:Generator_UserColumnName="descrCausale" msprop:Generator_ColumnVarNameInTable="columndescrCausale" msprop:Generator_ColumnPropNameInRow="descrCausale" msprop:Generator_ColumnPropNameInTable="descrCausaleColumn" minOccurs="0">
<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="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: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" />
@@ -990,8 +1021,8 @@ where idxStato=@idxStato</CommandText>
<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: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" />
@@ -1004,15 +1035,15 @@ where idxStato=@idxStato</CommandText>
<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: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_ColumnPropNameInRow="stile" msprop:Generator_ColumnVarNameInTable="columnstile" msprop:Generator_ColumnPropNameInTable="stileColumn" minOccurs="0">
<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">
<xs:maxLength value="50" />
+2 -2
View File
@@ -13,7 +13,7 @@
<Shape ID="DesignTable:v_macchine" ZOrder="5" X="1087" Y="339" Height="343" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:v_selFamMacc" ZOrder="4" X="1067" Y="100" Height="173" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
<Shape ID="DesignTable:AnagFamMacchine" ZOrder="13" X="742" Y="29" Height="105" Width="195" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_intervExp" ZOrder="1" X="484" Y="217" Height="615" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="517" />
<Shape ID="DesignTable:v_intervExp" ZOrder="1" X="484" Y="217" Height="632" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="517" />
<Shape ID="DesignTable:AnagTipoGuasto" ZOrder="7" X="118" Y="199" Height="105" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagStati" ZOrder="2" X="813" Y="178" Height="139" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
</Shapes>
@@ -73,7 +73,7 @@
<Y>429</Y>
</Point>
<Point>
<X>711</X>
<X>686</X>
<Y>429</Y>
</Point>
</RoutePoints>
+42 -30
View File
@@ -147,35 +147,7 @@ public partial class mod_impianti : ApplicationUserControl
base.aggiornaControlliDataGL();
grView.PageSize = _righeDataGridMed;
}
/// <summary>
/// traduce gli header delle colonne
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_DataBound(object sender, EventArgs e)
{
if (grView.Rows.Count > 0)
{
LinkButton lb;
// aggiorno gli headers
foreach (TableCell cella in grView.HeaderRow.Cells)
{
try
{
lb = (LinkButton)cella.Controls[0];
lb.Text = traduci(lb.Text);
}
catch
{ }
}
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
}
else
{
lblNumRec.Text = "";
}
}
/// <summary>
/// gestione evento richeista nuovo valore (mostra footer, ...)
/// </summary>
@@ -283,7 +255,14 @@ public partial class mod_impianti : ApplicationUserControl
/// <returns></returns>
protected bool objIsNotRelated(object idxObj)
{
return false;// taMacchine.getByIdxFase(idxObj.ToString()).Rows.Count == 0;
bool answ = false;
try
{
answ = (TA_app.obj.taInterventiMtz.getByIdxImpianto(Convert.ToInt32(idxObj)).Rows.Count == 0);
}
catch
{ }
return answ;
}
/// <summary>
/// elenco colonne del datagrid
@@ -410,6 +389,39 @@ public partial class mod_impianti : ApplicationUserControl
if (idx > 1 && numMacchineImpianto < 1) answ = true;
return answ;
}
/// <summary>
/// traduce gli header delle colonne
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_DataBound(object sender, EventArgs e)
{
if (grView.Rows.Count > 0)
{
LinkButton lb;
// aggiorno gli headers
foreach (TableCell cella in grView.HeaderRow.Cells)
{
try
{
lb = (LinkButton)cella.Controls[0];
lb.Text = traduci(lb.Text);
}
catch
{ }
}
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
}
else
{
lblNumRec.Text = "";
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
}
}
#endregion
}
+8 -2
View File
@@ -305,8 +305,14 @@ public partial class mod_macchine : ApplicationUserControl
/// <returns></returns>
protected bool objIsNotRelated(object idxObj)
{
// !!!FARE!!!
return true;// taMacchine.getByIdxFase(idxObj.ToString()).Rows.Count == 0;
bool answ = false;
try
{
answ = (TA_app.obj.taInterventiMtz.getByIdxMacchina(Convert.ToInt32(idxObj)).Rows.Count == 0);
}
catch
{ }
return answ;
}
/// <summary>
/// elenco colonne del datagrid