Corretto svn...
git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@30 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:LogUpdateDb" ZOrder="17" X="36" Y="19" Height="122" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:AnagAmbitoGuasto" ZOrder="16" X="322" Y="20" Height="122" Width="251" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:AnagPriorita" ZOrder="2" X="153" Y="373" Height="190" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:AnagImpianti" ZOrder="9" X="810" Y="350" Height="207" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="126" />
|
||||
<Shape ID="DesignTable:v_macchine" ZOrder="4" X="1087" Y="339" Height="343" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:v_selFamMacc" ZOrder="3" 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="7" X="484" Y="217" Height="615" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="517" />
|
||||
<Shape ID="DesignTable:AnagTipoGuasto" ZOrder="6" X="118" Y="199" Height="105" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="1" X="813" Y="178" Height="139" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_AnagMacchine_AnagImpianti" ZOrder="15" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1034</X>
|
||||
<Y>445</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1087</X>
|
||||
<Y>445</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:Macchine2FamMacchine_v_macchine" ZOrder="14" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1187</X>
|
||||
<Y>273</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1187</X>
|
||||
<Y>339</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:AnagFamMacchine_v_selFamMacc" ZOrder="12" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>937</X>
|
||||
<Y>117</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1067</X>
|
||||
<Y>117</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_InterventiMtz_AnagAmbitoGuasto" ZOrder="10" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>511</X>
|
||||
<Y>142</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>511</X>
|
||||
<Y>217</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_InterventiMtz_AnagImpianti" ZOrder="11" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>810</X>
|
||||
<Y>429</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>711</X>
|
||||
<Y>429</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_InterventiMtz_AnagPriorita" ZOrder="8" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>364</X>
|
||||
<Y>437</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>484</X>
|
||||
<Y>437</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_InterventiMtz_AnagTipoGuasto" ZOrder="5" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>297</X>
|
||||
<Y>260</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>484</X>
|
||||
<Y>260</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
</Connectors>
|
||||
</DiagramLayout>
|
||||
@@ -0,0 +1,309 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="DS_utility" targetNamespace="http://tempuri.org/DS_utility.xsd" xmlns:mstns="http://tempuri.org/DS_utility.xsd" xmlns="http://tempuri.org/DS_utility.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="GIMConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="GIMConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.GIMConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selImpiantiTableAdapter" GeneratorDataComponentClassName="v_selImpiantiTableAdapter" Name="v_selImpianti" UserDataComponentName="v_selImpiantiTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selImpianti" 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="true">
|
||||
<CommandText>SELECT value, label FROM dbo.v_selImpianti
|
||||
order by label</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selImpianti" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getImpiantiValidi" GetMethodModifier="Public" GetMethodName="getImpiantiValidi" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getImpiantiValidi" UserSourceName="getImpiantiValidi">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT label, value FROM v_selImpianti WHERE (value > 1) ORDER BY label</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selMacchineTableAdapter" GeneratorDataComponentClassName="v_selMacchineTableAdapter" Name="v_selMacchine" UserDataComponentName="v_selMacchineTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selMacchine" 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="true">
|
||||
<CommandText>SELECT * FROM dbo.v_selMacchine</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
<Mapping SourceColumn="conditio" DataSetColumn="conditio" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selMacchine" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByConditio" GetMethodModifier="Public" GetMethodName="getByConditio" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByConditio" UserSourceName="getByConditio">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT * FROM dbo.v_selMacchine
|
||||
where conditio=@conditio</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="conditio" ColumnName="conditio" DataSourceName="GIM.dbo.v_selMacchine" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@conditio" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="conditio" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selPriorTableAdapter" GeneratorDataComponentClassName="v_selPriorTableAdapter" Name="v_selPrior" UserDataComponentName="v_selPriorTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selPrior" 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 value, label FROM dbo.v_selPrior</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selAmbitiTableAdapter" GeneratorDataComponentClassName="v_selAmbitiTableAdapter" Name="v_selAmbiti" UserDataComponentName="v_selAmbitiTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selAmbiti" 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 value, label
|
||||
FROM v_selAmbiti
|
||||
ORDER BY label</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selCausaliMacchineTableAdapter" GeneratorDataComponentClassName="v_selCausaliMacchineTableAdapter" Name="v_selCausaliMacchine" UserDataComponentName="v_selCausaliMacchineTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selCausaliMacchine" 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 value, label, conditio FROM dbo.v_selCausaliMacchine</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
<Mapping SourceColumn="conditio" DataSetColumn="conditio" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selCausaliMacchine" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByConditio" GetMethodModifier="Public" GetMethodName="getByConditio" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByConditio" UserSourceName="getByConditio">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT value, label, conditio
|
||||
FROM v_selCausaliMacchine
|
||||
WHERE (conditio = @conditio)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="conditio" ColumnName="conditio" DataSourceName="GIM.dbo.v_selCausaliMacchine" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@conditio" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="conditio" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selTipoGuastoTableAdapter" GeneratorDataComponentClassName="v_selTipoGuastoTableAdapter" Name="v_selTipoGuasto" UserDataComponentName="v_selTipoGuastoTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selTipoGuasto" 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 value, label FROM dbo.v_selTipoGuasto</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selSemaforiTableAdapter" GeneratorDataComponentClassName="v_selSemaforiTableAdapter" Name="v_selSemafori" UserDataComponentName="v_selSemaforiTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selSemafori" 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 value, label FROM dbo.v_selSemafori</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DS_utility" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="DS_utility" msprop:Generator_DataSetName="DS_utility">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<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:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="156" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<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: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: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:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="57" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<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: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_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: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: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: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_selSemafori" msprop:Generator_UserTableName="v_selSemafori" msprop:Generator_RowDeletedName="v_selSemaforiRowDeleted" msprop:Generator_TableClassName="v_selSemaforiDataTable" 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_TablePropName="v_selSemafori" msprop:Generator_TableVarName="tablev_selSemafori" msprop:Generator_RowDeletingName="v_selSemaforiRowDeleting">
|
||||
<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:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:v_selImpianti" />
|
||||
<xs:field xpath="mstns:value" />
|
||||
</xs:unique>
|
||||
<xs:unique name="v_selMacchine_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:v_selMacchine" />
|
||||
<xs:field xpath="mstns:value" />
|
||||
</xs:unique>
|
||||
<xs:unique name="v_selPrior_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:v_selPrior" />
|
||||
<xs:field xpath="mstns:value" />
|
||||
</xs:unique>
|
||||
<xs:unique name="v_selAmbiti_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:v_selAmbiti" />
|
||||
<xs:field xpath="mstns:value" />
|
||||
</xs:unique>
|
||||
<xs:unique name="v_selTipoGuasto_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:v_selTipoGuasto" />
|
||||
<xs:field xpath="mstns:value" />
|
||||
</xs:unique>
|
||||
<xs:unique name="v_selSemafori_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:v_selSemafori" />
|
||||
<xs:field xpath="mstns:value" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
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="0" ViewPortY="0" 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="7" X="70" Y="70" Height="122" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:v_selMacchine" ZOrder="6" X="360" Y="70" Height="139" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:v_selPrior" ZOrder="5" X="686" Y="79" Height="105" Width="199" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:v_selAmbiti" ZOrder="4" X="944" Y="83" Height="105" Width="208" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:v_selCausaliMacchine" ZOrder="3" X="957" Y="269" Height="139" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:v_selTipoGuasto" ZOrder="2" X="1014" Y="466" Height="105" Width="152" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:v_selSemafori" ZOrder="1" X="666" Y="249" Height="105" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
@@ -0,0 +1,156 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using SteamWare;
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for TA_app
|
||||
/// </summary>
|
||||
public class TA_app
|
||||
{
|
||||
#region table adapters
|
||||
|
||||
public DS_applicazioneTableAdapters.LogUpdateDbTableAdapter taLogUpdate;
|
||||
public DS_applicazioneTableAdapters.AnagImpiantiTableAdapter taImpianti;
|
||||
public DS_applicazioneTableAdapters.v_macchineTableAdapter taMacchine;
|
||||
public DS_utilityTableAdapters.v_selImpiantiTableAdapter taSelImpianti;
|
||||
public DS_utilityTableAdapters.v_selMacchineTableAdapter taSelMacchine;
|
||||
public DS_applicazioneTableAdapters.v_selFamMaccTableAdapter taMacc2Fam;
|
||||
public DS_applicazioneTableAdapters.v_intervExpTableAdapter taInterventiMtz;
|
||||
public DS_applicazioneTableAdapters.AnagStatiTableAdapter taStati;
|
||||
public DS_applicazioneTableAdapters.AnagPrioritaTableAdapter taPrior;
|
||||
|
||||
#endregion
|
||||
|
||||
protected TA_app()
|
||||
{
|
||||
// avvio table adapters
|
||||
if (taLogUpdate == null)
|
||||
{
|
||||
taLogUpdate = new DS_applicazioneTableAdapters.LogUpdateDbTableAdapter();
|
||||
}
|
||||
if (taImpianti == null)
|
||||
{
|
||||
taImpianti = new DS_applicazioneTableAdapters.AnagImpiantiTableAdapter();
|
||||
}
|
||||
if (taMacchine == null)
|
||||
{
|
||||
taMacchine = new DS_applicazioneTableAdapters.v_macchineTableAdapter();
|
||||
}
|
||||
if (taSelImpianti == null)
|
||||
{
|
||||
taSelImpianti = new DS_utilityTableAdapters.v_selImpiantiTableAdapter();
|
||||
}
|
||||
if (taSelMacchine == null)
|
||||
{
|
||||
taSelMacchine = new DS_utilityTableAdapters.v_selMacchineTableAdapter();
|
||||
}
|
||||
if (taMacc2Fam == null)
|
||||
{
|
||||
taMacc2Fam = new DS_applicazioneTableAdapters.v_selFamMaccTableAdapter();
|
||||
}
|
||||
if (taInterventiMtz == null)
|
||||
{
|
||||
taInterventiMtz = new DS_applicazioneTableAdapters.v_intervExpTableAdapter();
|
||||
}
|
||||
if (taStati == null)
|
||||
{
|
||||
taStati = new DS_applicazioneTableAdapters.AnagStatiTableAdapter();
|
||||
}
|
||||
if (taPrior == null)
|
||||
{
|
||||
taPrior = new DS_applicazioneTableAdapters.AnagPrioritaTableAdapter();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Singleton
|
||||
/// </summary>
|
||||
public static TA_app obj = new TA_app();
|
||||
/// <summary>
|
||||
/// restituisce versione corrente del db applicativo
|
||||
/// </summary>
|
||||
public int appDB_act
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = -1;
|
||||
try
|
||||
{
|
||||
answ = (int)taLogUpdate.getDbVers();
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore recupero versione DB applicativo GIM!", tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce versione corrente del db vocabolario
|
||||
/// </summary>
|
||||
public int vocDB_act
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = -1;
|
||||
try
|
||||
{
|
||||
answ = (int)DataWrap.DW.taLogVoc.getDbVers();
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore recupero versione DB Vocabolario!", tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce versione corrente del db anagrafica
|
||||
/// </summary>
|
||||
public int anaDB_act
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = -1;
|
||||
try
|
||||
{
|
||||
answ = answ = (int)DataWrap.DW.taLogAna.getDbVers();
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore recupero versione DB Anagrafica!", tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce versione richiesta per il db applicativo
|
||||
/// </summary>
|
||||
public int appDB_req
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadint("dbAppVers");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce versione richiesta per il db vocabolario
|
||||
/// </summary>
|
||||
public int vocDB_req
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadint("dbVocabVers");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce versione richiesta per il db anagrafica
|
||||
/// </summary>
|
||||
public int anaDB_req
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadint("dbAuthVers");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for enumerazioni
|
||||
/// </summary>
|
||||
public class enumerazioni
|
||||
{
|
||||
public enumerazioni()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
}
|
||||
public enum tipoSelettore
|
||||
{
|
||||
cdc,
|
||||
impianti,
|
||||
macchine,
|
||||
utentiAll,
|
||||
utentiCdc
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Drawing.Printing;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Reporting.WinForms;
|
||||
using System.Configuration;
|
||||
using SteamWare;
|
||||
|
||||
/// <summary>
|
||||
/// Classe che restituisce uno stream ed i dati accessori per reinviare un report in pdf
|
||||
/// </summary>
|
||||
public class reportExporter
|
||||
{
|
||||
/// <summary>
|
||||
/// mimeType del report
|
||||
/// </summary>
|
||||
public string mimeType;
|
||||
/// <summary>
|
||||
/// encoding dei dati
|
||||
/// </summary>
|
||||
public string encoding;
|
||||
/// <summary>
|
||||
/// nome estensione
|
||||
/// </summary>
|
||||
public string fileNameExtension;
|
||||
/// <summary>
|
||||
/// steam di bytes del report
|
||||
/// </summary>
|
||||
public byte[] renderedBytes;
|
||||
/// <summary>
|
||||
/// metodo protected
|
||||
/// </summary>
|
||||
public reportExporter()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="idxObj"></param>
|
||||
/// <returns></returns>
|
||||
private DataTable caricaDati(reportRichiesto tipoReport, string idxObj)
|
||||
{
|
||||
DataTable tab = new DataTable();
|
||||
switch (tipoReport)
|
||||
{
|
||||
case reportRichiesto.RichiestaIntervento:
|
||||
tab = (DataTable)TA_app.obj.taInterventiMtz.getByIdx(Convert.ToInt32(idxObj));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return tab;
|
||||
}
|
||||
/// <summary>
|
||||
/// renderizza il report in pdf
|
||||
/// </summary>
|
||||
/// <param name="tipoReport"></param>
|
||||
/// <param name="parametro"></param>
|
||||
/// <returns></returns>
|
||||
public void popolaPdfStream(reportRichiesto tipoReport, string parametro)
|
||||
{
|
||||
LocalReport report = new LocalReport();
|
||||
string deviceInfo = "";
|
||||
switch (tipoReport)
|
||||
{
|
||||
case reportRichiesto.RichiestaIntervento:
|
||||
report.ReportPath = @".\RichiestaIntervento.rdlc";
|
||||
report.DataSources.Add(new ReportDataSource("WebGIM", caricaDati(tipoReport, parametro))); // OCCHIO!!! va messa sorgente dati CORRETTA
|
||||
deviceInfo = "<DeviceInfo>" +
|
||||
" <OutputFormat>PDF</OutputFormat>" +
|
||||
" <PageWidth>21cm</PageWidth>" +
|
||||
" <PageHeight>29.7cm</PageHeight>" +
|
||||
" <MarginTop>0.2cm</MarginTop>" +
|
||||
" <MarginLeft>0.2cm</MarginLeft>" +
|
||||
" <MarginRight>0.2cm</MarginRight>" +
|
||||
" <MarginBottom>0.2cm</MarginBottom>" +
|
||||
"</DeviceInfo>";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
#if false
|
||||
// setting parametro...
|
||||
ReportParameter[] idxObj = { new ReportParameter("numIntMtz", parametro) };
|
||||
report.SetParameters(idxObj);
|
||||
#endif
|
||||
// export in PDF
|
||||
string reportType = "PDF";
|
||||
Warning[] warnings;
|
||||
string[] streams;
|
||||
renderedBytes = report.Render(
|
||||
reportType,
|
||||
deviceInfo,
|
||||
out mimeType,
|
||||
out encoding,
|
||||
out fileNameExtension,
|
||||
out streams,
|
||||
out warnings);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Drawing.Printing;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Reporting.WinForms;
|
||||
using System.Configuration;
|
||||
using SteamWare;
|
||||
|
||||
/// <summary>
|
||||
/// Classe che si occupa di stampare report da reportViewer via printer remota
|
||||
/// </summary>
|
||||
public class reportPrinter
|
||||
{
|
||||
|
||||
#region area codice da non modificare
|
||||
|
||||
private int m_currentPageIndex;
|
||||
private IList<Stream> m_streams;
|
||||
/// <summary>
|
||||
/// ciclo da fornire al renderizzatore dei report, per salvare 1 immagine da ogni pagina del report
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="fileNameExtension"></param>
|
||||
/// <param name="encoding"></param>
|
||||
/// <param name="mimeType"></param>
|
||||
/// <param name="willSeek"></param>
|
||||
/// <returns></returns>
|
||||
private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
|
||||
{
|
||||
Stream stream = new FileStream(SteamWare.SteamwareStrings.getFilePath(@".\temp\" + name + "." + fileNameExtension), FileMode.Create);
|
||||
m_streams.Add(stream);
|
||||
return stream;
|
||||
}
|
||||
/// <summary>
|
||||
/// Handler per PrintPageEvents
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="ev"></param>
|
||||
private void PrintPage(object sender, PrintPageEventArgs ev)
|
||||
{
|
||||
Metafile pageImage = new Metafile(m_streams[m_currentPageIndex]);
|
||||
ev.Graphics.DrawImage(pageImage, ev.PageBounds);
|
||||
m_currentPageIndex++;
|
||||
ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
|
||||
}
|
||||
/// <summary>
|
||||
/// funzione di stampa...
|
||||
/// </summary>
|
||||
private void Print(string printerName)
|
||||
{
|
||||
//const string printerName = "Microsoft Office Document Image Writer";
|
||||
//const string printerName = "Brother HL-2170W series";
|
||||
if (m_streams == null || m_streams.Count == 0)
|
||||
return;
|
||||
PrintDocument printDoc = new PrintDocument();
|
||||
printDoc.PrinterSettings.PrinterName = printerName;
|
||||
if (!printDoc.PrinterSettings.IsValid)
|
||||
{
|
||||
logger.lg.scriviLog(String.Format("Can't find printer \"{0}\".", printerName), tipoLog.ERROR);
|
||||
return;
|
||||
}
|
||||
printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
|
||||
printDoc.Print();
|
||||
}
|
||||
/// <summary>
|
||||
/// Export del report come EMF (Enhanced Metafile) file.
|
||||
/// </summary>
|
||||
/// <param name="report"></param>
|
||||
private void Export(LocalReport report, string deviceInfo)
|
||||
{
|
||||
Warning[] warnings;
|
||||
m_streams = new List<Stream>();
|
||||
report.Render("Image", deviceInfo, CreateStream, out warnings);
|
||||
foreach (Stream stream in m_streams) stream.Position = 0;
|
||||
}
|
||||
/// <summary>
|
||||
/// dispone l'applicazione e rilascia le risorse
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
if (m_streams != null)
|
||||
{
|
||||
foreach (Stream stream in m_streams)
|
||||
stream.Close();
|
||||
m_streams = null;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area codice da modificare
|
||||
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="idxObj"></param>
|
||||
/// <returns></returns>
|
||||
private DataTable caricaDati(reportRichiesto tipoReport, string idxObj)
|
||||
{
|
||||
DataTable tab = new DataTable();
|
||||
switch (tipoReport)
|
||||
{
|
||||
#if false
|
||||
case reportRichiesto.Barcode:
|
||||
tab = (DataTable)XPS.obj.taDdt.GetData(idxObj);
|
||||
break;
|
||||
case reportRichiesto.SchedaIdentificazione:
|
||||
tab = (DataTable)XPS.obj.taSchedaIdent.GetData(idxObj);
|
||||
break;
|
||||
#endif
|
||||
case reportRichiesto.RichiestaIntervento:
|
||||
tab = (DataTable)TA_app.obj.taInterventiMtz.getByIdx(Convert.ToInt32(idxObj));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return tab;
|
||||
}
|
||||
/// <summary>
|
||||
/// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante
|
||||
/// </summary>
|
||||
/// <param name="idxObjRich"></param>
|
||||
/// <param name="printerName"></param>
|
||||
public void printReport(reportRichiesto tipoReport, string printerName, string parametro)
|
||||
{
|
||||
LocalReport report = new LocalReport();
|
||||
string deviceInfo = "";
|
||||
switch (tipoReport)
|
||||
{
|
||||
case reportRichiesto.RichiestaIntervento:
|
||||
report.ReportPath = @".\RichiestaIntervento.rdlc";
|
||||
report.DataSources.Add(new ReportDataSource("WebGIM", caricaDati(tipoReport, parametro)));
|
||||
deviceInfo = "<DeviceInfo>" +
|
||||
" <OutputFormat>EMF</OutputFormat>" +
|
||||
" <PageWidth>21cm</PageWidth>" +
|
||||
" <PageHeight>29.7cm</PageHeight>" +
|
||||
" <MarginTop>0.2cm</MarginTop>" +
|
||||
" <MarginLeft>0.2cm</MarginLeft>" +
|
||||
" <MarginRight>0.2cm</MarginRight>" +
|
||||
" <MarginBottom>0.2cm</MarginBottom>" +
|
||||
"</DeviceInfo>";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
// setting parametro...
|
||||
ReportParameter[] idxObj = { new ReportParameter("numIntMtz", parametro) };
|
||||
report.SetParameters(idxObj);
|
||||
// export in EMF
|
||||
Export(report, deviceInfo);
|
||||
m_currentPageIndex = 0;
|
||||
// stampo
|
||||
Print(printerName);
|
||||
// do dispose?
|
||||
Dispose();
|
||||
}
|
||||
/// <summary>
|
||||
/// oggetto protected
|
||||
/// </summary>
|
||||
/// <param name="args"></param>
|
||||
protected reportPrinter()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// singleton pubblico
|
||||
/// </summary>
|
||||
public static reportPrinter obj = new reportPrinter();
|
||||
|
||||
#endregion
|
||||
}
|
||||
/// <summary>
|
||||
/// tipologia di report ammessi alla stampa...
|
||||
/// </summary>
|
||||
public enum reportRichiesto
|
||||
{
|
||||
//ElencoInterventi,
|
||||
//MTBF_MTTR,
|
||||
RichiestaIntervento
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using SteamWare;
|
||||
|
||||
/// <summary>
|
||||
/// Classe gestione metodi di accesso ai dati embeddati
|
||||
/// </summary>
|
||||
public class selData : selettori
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// classe accesso tabelle selettori
|
||||
/// </summary>
|
||||
public selData()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// elenco impianti come view value/label
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DS_utility.v_selImpiantiDataTable getSelImpianti()
|
||||
{
|
||||
return TA_app.obj.taSelImpianti.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco macchine come view value/label
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DS_utility.v_selMacchineDataTable getSelMacchine()
|
||||
{
|
||||
return TA_app.obj.taSelMacchine.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella vocabolario
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public SteamWare.DataLayer_generic.VocabolarioDataTable getVocabolario()
|
||||
{
|
||||
return SteamWare.DataWrap.DW.taVocabolario.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella lingue
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public SteamWare.DataLayer_generic.LingueDataTable getLingue()
|
||||
{
|
||||
return SteamWare.DataWrap.DW.taLingue.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// faccio update del lemma indicato...
|
||||
/// </summary>
|
||||
/// <param name="Traduzione"></param>
|
||||
/// <param name="Original_Lingua"></param>
|
||||
/// <param name="Original_Lemma"></param>
|
||||
public void updateLemmaVoc(string Traduzione, string Original_Lingua, string Original_Lemma)
|
||||
{
|
||||
SteamWare.DataWrap.DW.taVocabolario.UpdateQuery(Traduzione, Original_Lingua, Original_Lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// cancella il lemma indicato
|
||||
/// </summary>
|
||||
/// <param name="Original_Lingua"></param>
|
||||
/// <param name="Original_Lemma"></param>
|
||||
public void deleteLemmaVoc(string Original_Lingua, string Original_Lemma)
|
||||
{
|
||||
SteamWare.DataWrap.DW.taVocabolario.DeleteQuery(Original_Lingua, Original_Lemma);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>SteamWare</name>
|
||||
</assembly>
|
||||
<members>
|
||||
</members>
|
||||
</doc>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 339 B |
|
After Width: | Height: | Size: 268 B |
|
After Width: | Height: | Size: 207 B |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 264 B |
|
After Width: | Height: | Size: 205 B |
|
After Width: | Height: | Size: 261 B |
|
After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 593 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 313 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 797 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 815 B |
|
After Width: | Height: | Size: 115 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 76 B |
|
After Width: | Height: | Size: 115 B |
|
After Width: | Height: | Size: 866 B |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 716 B |
|
After Width: | Height: | Size: 124 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 97 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 518 B |
|
After Width: | Height: | Size: 675 B |
|
After Width: | Height: | Size: 655 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 600 B |
|
After Width: | Height: | Size: 655 B |
|
After Width: | Height: | Size: 812 B |
|
After Width: | Height: | Size: 804 B |
|
After Width: | Height: | Size: 389 B |
|
After Width: | Height: | Size: 576 B |
|
After Width: | Height: | Size: 414 B |
|
After Width: | Height: | Size: 434 B |
|
After Width: | Height: | Size: 394 B |
|
After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 399 B |
|
After Width: | Height: | Size: 576 B |
|
After Width: | Height: | Size: 224 B |
|
After Width: | Height: | Size: 173 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 107 B |
|
After Width: | Height: | Size: 133 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 4.6 KiB |