modifica DB (tab + stored ) e nuova gestione stored x ins richiesta (x poter salvare num idxMtzPrg da usare x controllo finale interventi mtz...)
This commit is contained in:
@@ -658,10 +658,10 @@ ORDER BY numIntMtz DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Settings)" DbObjectName="GIM.dbo.sp_insRichiesta" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_insRichiesta" Modifier="Public" Name="sp_insRichiesta" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="sp_insRichiesta">
|
||||
<DbSource ConnectionRef="GIMConnectionString (Settings)" DbObjectName="GIM.dbo.stp_IntMtz_insRichiesta" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insRichiesta" Modifier="Public" Name="insRichiesta" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="insRichiesta">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.sp_insRichiesta</CommandText>
|
||||
<CommandText>dbo.stp_IntMtz_insRichiesta</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@richiesta" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -678,6 +678,7 @@ ORDER BY numIntMtz DESC</CommandText>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@descrizione" Precision="0" ProviderType="VarChar" Scale="0" Size="2500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxCausale" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@scheduled" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxIntPro" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="InputOutput" ParameterName="@numIntMtz" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
|
||||
@@ -6,53 +6,61 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-20" ViewPortY="-54" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:LogUpdateDb" ZOrder="41" X="36" Y="15" Height="134" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagAmbitoGuasto" ZOrder="40" X="475" Y="7" Height="134" Width="251" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagPriorita" ZOrder="12" X="239" Y="375" Height="190" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:AnagImpianti" ZOrder="34" X="810" Y="341" Height="221" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:v_macchine" ZOrder="13" X="1116" Y="309" Height="374" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:v_selFamMacc" ZOrder="32" X="1084" Y="88" Height="190" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
|
||||
<Shape ID="DesignTable:AnagFamMacchine" ZOrder="22" X="1080" Y="-44" Height="105" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:v_intervExp" ZOrder="3" X="526" Y="217" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagTipoGuasto" ZOrder="11" X="237" Y="187" Height="111" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="31" X="813" Y="178" Height="139" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:InterventoOpMtz" ZOrder="16" X="793" Y="582" Height="173" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:MtzProgPending" ZOrder="1" X="766" Y="772" Height="365" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="237" />
|
||||
<Shape ID="DesignTable:MtzProgrammata" ZOrder="15" X="1141" Y="749" Height="306" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="198" />
|
||||
<Shape ID="DesignTable:CalendFesteFerie" ZOrder="14" X="76" Y="939" Height="134" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:OreAperturaSett" ZOrder="21" X="399" Y="876" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:FiltroImpianti" ZOrder="25" X="1399" Y="644" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:FiltroMacchine" ZOrder="26" X="1410" Y="168" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:FiltroStati" ZOrder="24" X="764" Y="7" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:AnagCausali" ZOrder="20" X="1433" Y="-40" Height="156" Width="192" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
|
||||
<Shape ID="DesignTable:AnagrOperMtz" ZOrder="18" X="531" Y="669" Height="134" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_mtzProgExp" ZOrder="5" X="6" Y="313" Height="343" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ImpiegoRisorse" ZOrder="6" X="248" Y="580" Height="286" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:AnagTipoRisorsa" ZOrder="7" X="-10" Y="713" Height="210" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:v_allData" ZOrder="2" X="697" Y="1220" Height="305" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ElencoIntervExt" ZOrder="4" X="164" Y="1167" Height="305" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:LogUpdateDb" ZOrder="41" X="36" Y="15" Height="158" Width="266" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:AnagAmbitoGuasto" ZOrder="40" X="475" Y="7" Height="158" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:AnagPriorita" ZOrder="12" X="239" Y="375" Height="250" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:AnagImpianti" ZOrder="34" X="810" Y="341" Height="273" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
|
||||
<Shape ID="DesignTable:v_macchine" ZOrder="13" X="1116" Y="309" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:v_selFamMacc" ZOrder="32" X="1084" Y="88" Height="250" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:AnagFamMacchine" ZOrder="22" X="1080" Y="-44" Height="135" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:v_intervExp" ZOrder="1" X="526" Y="217" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:AnagTipoGuasto" ZOrder="11" X="237" Y="187" Height="135" Width="286" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="31" X="813" Y="178" Height="181" Width="236" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:InterventoOpMtz" ZOrder="16" X="793" Y="582" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:MtzProgPending" ZOrder="2" X="766" Y="772" Height="365" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="237" />
|
||||
<Shape ID="DesignTable:MtzProgrammata" ZOrder="15" X="1141" Y="749" Height="388" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="260" />
|
||||
<Shape ID="DesignTable:CalendFesteFerie" ZOrder="14" X="76" Y="939" Height="158" Width="287" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:OreAperturaSett" ZOrder="21" X="399" Y="876" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:FiltroImpianti" ZOrder="25" X="1399" Y="644" Height="158" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:FiltroMacchine" ZOrder="26" X="1410" Y="168" Height="158" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:FiltroStati" ZOrder="24" X="764" Y="7" Height="158" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:AnagCausali" ZOrder="20" X="1433" Y="-40" Height="204" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:AnagrOperMtz" ZOrder="18" X="531" Y="669" Height="158" Width="273" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:v_mtzProgExp" ZOrder="5" X="6" Y="313" Height="411" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:ImpiegoRisorse" ZOrder="6" X="248" Y="580" Height="342" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="191" />
|
||||
<Shape ID="DesignTable:AnagTipoRisorsa" ZOrder="7" X="-10" Y="713" Height="250" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:v_allData" ZOrder="3" X="697" Y="1220" Height="365" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:ElencoIntervExt" ZOrder="4" X="164" Y="1167" Height="365" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_AnagMacchine_AnagImpianti" ZOrder="39" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1029</X>
|
||||
<Y>415</Y>
|
||||
<X>1110</X>
|
||||
<Y>477</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1116</X>
|
||||
<Y>415</Y>
|
||||
<Y>477</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:Macchine2FamMacchine_v_macchine" ZOrder="38" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1233</X>
|
||||
<Y>278</Y>
|
||||
<X>1376</X>
|
||||
<Y>88</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1233</X>
|
||||
<X>1376</X>
|
||||
<Y>58</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1392</X>
|
||||
<Y>58</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1392</X>
|
||||
<Y>309</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
@@ -60,12 +68,20 @@
|
||||
<Connector ID="DesignRelation:AnagFamMacchine_v_selFamMacc" ZOrder="37" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1221</X>
|
||||
<Y>61</Y>
|
||||
<X>1380</X>
|
||||
<Y>80</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1221</X>
|
||||
<Y>88</Y>
|
||||
<X>1414</X>
|
||||
<Y>80</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1414</X>
|
||||
<Y>96</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1384</X>
|
||||
<Y>96</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
@@ -73,7 +89,7 @@
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>679</X>
|
||||
<Y>141</Y>
|
||||
<Y>165</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>679</X>
|
||||
@@ -85,39 +101,43 @@
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>843</X>
|
||||
<Y>562</Y>
|
||||
<Y>341</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>843</X>
|
||||
<Y>579</Y>
|
||||
<Y>324</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>826</X>
|
||||
<Y>579</Y>
|
||||
<Y>324</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_InterventiMtz_AnagPriorita" ZOrder="9" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>448</X>
|
||||
<Y>417</Y>
|
||||
<X>509</X>
|
||||
<Y>375</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>509</X>
|
||||
<Y>358</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>526</X>
|
||||
<Y>417</Y>
|
||||
<Y>358</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_InterventiMtz_AnagTipoGuasto" ZOrder="33" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>472</X>
|
||||
<Y>250</Y>
|
||||
<X>523</X>
|
||||
<Y>269</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>526</X>
|
||||
<Y>250</Y>
|
||||
<Y>269</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
@@ -125,15 +145,15 @@
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>631</X>
|
||||
<Y>598</Y>
|
||||
<Y>674</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>631</X>
|
||||
<Y>637</Y>
|
||||
<Y>682</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>793</X>
|
||||
<Y>637</Y>
|
||||
<Y>682</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
@@ -153,7 +173,7 @@
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1017</X>
|
||||
<Y>562</Y>
|
||||
<Y>614</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1017</X>
|
||||
@@ -168,7 +188,7 @@
|
||||
<Connector ID="DesignRelation:v_macchine_FiltroMacchine" ZOrder="27" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1362</X>
|
||||
<X>1416</X>
|
||||
<Y>445</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
@@ -177,7 +197,7 @@
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1445</X>
|
||||
<Y>290</Y>
|
||||
<Y>326</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
@@ -189,14 +209,14 @@
|
||||
</Point>
|
||||
<Point>
|
||||
<X>922</X>
|
||||
<Y>129</Y>
|
||||
<Y>165</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagCausali_AnagFamMacchine" ZOrder="19" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1328</X>
|
||||
<X>1380</X>
|
||||
<Y>-9</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
@@ -208,12 +228,16 @@
|
||||
<Connector ID="DesignRelation:FK_InterventoOpMtz_AnagrOperMtz" ZOrder="17" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>754</X>
|
||||
<Y>714</Y>
|
||||
<X>776</X>
|
||||
<Y>669</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>776</X>
|
||||
<Y>652</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>793</X>
|
||||
<Y>714</Y>
|
||||
<Y>652</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
@@ -237,15 +261,15 @@
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>569</X>
|
||||
<Y>598</Y>
|
||||
<Y>674</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>569</X>
|
||||
<Y>644</Y>
|
||||
<Y>682</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>473</X>
|
||||
<Y>644</Y>
|
||||
<X>548</X>
|
||||
<Y>682</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
|
||||
+30
-7
@@ -18619,7 +18619,7 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters {
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[7].Connection = this.Connection;
|
||||
this._commandCollection[7].CommandText = "dbo.sp_insRichiesta";
|
||||
this._commandCollection[7].CommandText = "dbo.stp_IntMtz_insRichiesta";
|
||||
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@richiesta", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -18636,6 +18636,7 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters {
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrizione", global::System.Data.SqlDbType.VarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCausale", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@scheduled", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxIntPro", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numIntMtz", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[8].Connection = this.Connection;
|
||||
@@ -18855,7 +18856,23 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual object sp_insRichiesta(global::System.Nullable<global::System.DateTime> richiesta, global::System.Nullable<global::System.DateTime> dataLav, global::System.Nullable<int> turnoLav, string matr, global::System.Nullable<global::System.DateTime> guasto, global::System.Nullable<int> idxAmbito, global::System.Nullable<int> idxPriorita, global::System.Nullable<bool> isFermo, global::System.Nullable<int> idxTipo, global::System.Nullable<int> idxImpianto, global::System.Nullable<int> idxMacchina, string descrizione, global::System.Nullable<int> idxCausale, global::System.Nullable<bool> scheduled, ref global::System.Nullable<int> numIntMtz) {
|
||||
public virtual object insRichiesta(
|
||||
global::System.Nullable<global::System.DateTime> richiesta,
|
||||
global::System.Nullable<global::System.DateTime> dataLav,
|
||||
global::System.Nullable<int> turnoLav,
|
||||
string matr,
|
||||
global::System.Nullable<global::System.DateTime> guasto,
|
||||
global::System.Nullable<int> idxAmbito,
|
||||
global::System.Nullable<int> idxPriorita,
|
||||
global::System.Nullable<bool> isFermo,
|
||||
global::System.Nullable<int> idxTipo,
|
||||
global::System.Nullable<int> idxImpianto,
|
||||
global::System.Nullable<int> idxMacchina,
|
||||
string descrizione,
|
||||
global::System.Nullable<int> idxCausale,
|
||||
global::System.Nullable<bool> scheduled,
|
||||
global::System.Nullable<int> idxIntPro,
|
||||
ref global::System.Nullable<int> numIntMtz) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
|
||||
if ((richiesta.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((System.DateTime)(richiesta.Value));
|
||||
@@ -18941,12 +18958,18 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters {
|
||||
else {
|
||||
command.Parameters[14].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((numIntMtz.HasValue == true)) {
|
||||
command.Parameters[15].Value = ((int)(numIntMtz.Value));
|
||||
if ((idxIntPro.HasValue == true)) {
|
||||
command.Parameters[15].Value = ((int)(idxIntPro.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[15].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((numIntMtz.HasValue == true)) {
|
||||
command.Parameters[16].Value = ((int)(numIntMtz.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[16].Value = global::System.DBNull.Value;
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
@@ -18961,12 +18984,12 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
if (((command.Parameters[15].Value == null)
|
||||
|| (command.Parameters[15].Value.GetType() == typeof(global::System.DBNull)))) {
|
||||
if (((command.Parameters[16].Value == null)
|
||||
|| (command.Parameters[16].Value.GetType() == typeof(global::System.DBNull)))) {
|
||||
numIntMtz = new global::System.Nullable<int>();
|
||||
}
|
||||
else {
|
||||
numIntMtz = new global::System.Nullable<int>(((int)(command.Parameters[15].Value)));
|
||||
numIntMtz = new global::System.Nullable<int>(((int)(command.Parameters[16].Value)));
|
||||
}
|
||||
if (((returnValue == null)
|
||||
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
|
||||
|
||||
@@ -130,7 +130,7 @@ public class mtzProgr
|
||||
int stimaIniz = 0;
|
||||
double ggEquiv = 0;
|
||||
TimeSpan distDate;
|
||||
DateTime adesso = DateTime.Now;
|
||||
DateTime adesso = DateTime.Today;
|
||||
DateTime dataProp;
|
||||
foreach (GIM_dataLayer.DS_applicazione.MtzProgrammataRow rigaMtz in taMtzProg.getNotScheduled())
|
||||
{
|
||||
@@ -226,7 +226,7 @@ public class mtzProgr
|
||||
logger.lg.scriviLog(string.Format("Errore nel recuperare impianto relativo alla macchina {0}, eccezione {1}", riga.idxMacchina, e), tipoLog.EXCEPTION);
|
||||
}
|
||||
// inserisco
|
||||
TA_app.obj.taInterventiMtz.sp_insRichiesta(adesso, adesso.AddHours(-shift + 1), turno, "PROG", riga.data, idxAmbito, riga.idxPriorita, riga.isFermo, riga.idxTipo, idxImpianto, riga.idxMacchina, riga.descrizione, riga.idxCausale, true, ref answ);
|
||||
TA_app.obj.taInterventiMtz.insRichiesta(adesso, adesso.AddHours(-shift + 1), turno, "PROG", riga.data, idxAmbito, riga.idxPriorita, riga.isFermo, riga.idxTipo, idxImpianto, riga.idxMacchina, riga.descrizione, riga.idxCausale, true, riga.idxIntPro, ref answ);
|
||||
return (int)answ;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
--------------------------------
|
||||
--- NUOVE
|
||||
--------------------------------
|
||||
- verifica a chiusura degli interventi di manutenzione preventiva/programmata SE la data di chiusura sia molto diversa da quella programmata (tipicamente +/- 1 unità di pianificazione: se è a settimane 1 settimana, se mesi 1 mese...) --> in questo caso CHIEDE SE SI VOGLIANO SPOSTARE prossime scadenze (se ho anticipato 1 mese --> ripianifica a pari scadenza anticipando allo stesso modo, se ho posticipato 2 mesi idem, ripianifica spostando 2 mesi)
|
||||
- verifica a chiusura degli interventi di manutenzione preventiva/programmata SE la data di chiusura sia molto diversa da quella programmata (tipicamente +/- 1 unità di pianificazione: se è a settimane 1 settimana, se mesi 1 mese...) --> in questo caso CHIEDE SE SI VOGLIANO SPOSTARE prossime scadenze (se ho anticipato 1 mese --> ripianifica a pari scadenza anticipando allo stesso modo, se ho posticipato 2 mesi idem, ripianifica spostando 2 mesi) -> per farlo verifica TRA data chiusura e data programmata
|
||||
|
||||
- possibilità (SOLO x le manutenzioni programmate) di chiudere con un "riprogrammata", ovvero
|
||||
* se ho un intervento tipicamente di "verifica e sostituzione"
|
||||
* ho preso in carico, e fatta verifica (e quindi viene programmato prossimo intervento secondo solita scadenza)
|
||||
|
||||
@@ -135,13 +135,6 @@ namespace GIM_site
|
||||
//2017.04.21
|
||||
// nuovo metodo
|
||||
TA_app.obj.taInterventiMtz.stp_insRichiestaRicambi(richiesta, turno, matr, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxCausale, false, ref numReq);
|
||||
// vecchio metodo
|
||||
#if false
|
||||
// stored inserimento!
|
||||
TA_app.obj.taInterventiMtz.sp_insRichiesta(richiesta, dataLav, turno, matr, inizioGuasto, idxAmbito, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxCausale, false, ref numReq);
|
||||
// porto intervento a CHIUSO...
|
||||
TA_app.obj.taInterventiMtz.updateStato(numReq, 3);
|
||||
#endif
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
@@ -4,195 +4,195 @@ using System.Web.UI;
|
||||
|
||||
public partial class mod_insertRichiesta : System.Web.UI.UserControl
|
||||
{
|
||||
#region eventi
|
||||
#region eventi
|
||||
|
||||
public event EventHandler eh_newReq;
|
||||
public event EventHandler eh_done;
|
||||
public event EventHandler eh_newReq;
|
||||
public event EventHandler eh_done;
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
protected bool _causVis = false;
|
||||
/// <summary>
|
||||
/// determina la visibilità del panel causali
|
||||
/// </summary>
|
||||
public bool causaliVisibili
|
||||
protected bool _causVis = false;
|
||||
/// <summary>
|
||||
/// determina la visibilità del panel causali
|
||||
/// </summary>
|
||||
public bool causaliVisibili
|
||||
{
|
||||
get
|
||||
{
|
||||
get
|
||||
{
|
||||
return _causVis;
|
||||
}
|
||||
set
|
||||
{
|
||||
_causVis = value;
|
||||
}
|
||||
return _causVis;
|
||||
}
|
||||
/// <summary>
|
||||
/// avvio controllo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
set
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
traduciObj();
|
||||
setFixedVal();
|
||||
fixVisibPnl();
|
||||
}
|
||||
_causVis = value;
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta i valori calcolati e fissi...
|
||||
/// </summary>
|
||||
private void setFixedVal()
|
||||
}
|
||||
/// <summary>
|
||||
/// avvio controllo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// recupero valori di riferimento
|
||||
int shift = memLayer.ML.confReadInt("shiftTurno");
|
||||
int durataTurno = memLayer.ML.confReadInt("durataTurno");
|
||||
int turno = Convert.ToInt32(Math.Ceiling((double)Convert.ToDouble(DateTime.Now.AddHours(-shift + 1).Hour) / durataTurno));
|
||||
int delay = memLayer.ML.confReadInt("defaultDelay");
|
||||
// inserisco valori di default
|
||||
//txtDataOra.Text = string.Format("{0:dd/MM/yyyy HH:mm}", DateTime.Now);
|
||||
//txtDataLav.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now.AddHours(-shift + 1));
|
||||
txtDataOra.Text = DateTime.Now.ToString(memLayer.ML.CRS("ddMMyyyyHHmm"));
|
||||
txtDataLav.Text = DateTime.Now.AddHours(-shift + 1).ToString(memLayer.ML.CRS("ddMMyyyy"));
|
||||
txtTurnoLav.Text = turno.ToString();
|
||||
mod_dataOra1.valore = DateTime.Now.AddMinutes(-delay);
|
||||
chkImpFermo.Checked = false;
|
||||
traduciObj();
|
||||
setFixedVal();
|
||||
fixVisibPnl();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistema la visibilità dei controlli
|
||||
/// </summary>
|
||||
private void fixVisibPnl()
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta i valori calcolati e fissi...
|
||||
/// </summary>
|
||||
private void setFixedVal()
|
||||
{
|
||||
// recupero valori di riferimento
|
||||
int shift = memLayer.ML.confReadInt("shiftTurno");
|
||||
int durataTurno = memLayer.ML.confReadInt("durataTurno");
|
||||
int turno = Convert.ToInt32(Math.Ceiling((double)Convert.ToDouble(DateTime.Now.AddHours(-shift + 1).Hour) / durataTurno));
|
||||
int delay = memLayer.ML.confReadInt("defaultDelay");
|
||||
// inserisco valori di default
|
||||
//txtDataOra.Text = string.Format("{0:dd/MM/yyyy HH:mm}", DateTime.Now);
|
||||
//txtDataLav.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now.AddHours(-shift + 1));
|
||||
txtDataOra.Text = DateTime.Now.ToString(memLayer.ML.CRS("ddMMyyyyHHmm"));
|
||||
txtDataLav.Text = DateTime.Now.AddHours(-shift + 1).ToString(memLayer.ML.CRS("ddMMyyyy"));
|
||||
txtTurnoLav.Text = turno.ToString();
|
||||
mod_dataOra1.valore = DateTime.Now.AddMinutes(-delay);
|
||||
chkImpFermo.Checked = false;
|
||||
}
|
||||
/// <summary>
|
||||
/// sistema la visibilità dei controlli
|
||||
/// </summary>
|
||||
private void fixVisibPnl()
|
||||
{
|
||||
divCausali.Visible = _causVis;
|
||||
}
|
||||
/// <summary>
|
||||
/// traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// sistema le labels
|
||||
/// </summary>
|
||||
private void traduciObj()
|
||||
{
|
||||
lblTitolo.Text = traduci("lblInsRichiestaMtz");
|
||||
lblDataOra.Text = traduci("lblDataOraRich");
|
||||
lblDataLav.Text = traduci("lblDataLav");
|
||||
lblTurnoLav.Text = traduci("lblTurnoLav");
|
||||
btnSend.Text = traduci("btnInviaRichiesta");
|
||||
lblImpianto.Text = traduci("lblImpianto");
|
||||
lblMacchina.Text = traduci("lblMacchina");
|
||||
lblDescrGuasto.Text = traduci("lblDescrGuasto");
|
||||
lblDettagliGuasto.Text = traduci("lblDettagliGuasto");
|
||||
lblMatr.Text = traduci("lblMatr");
|
||||
lblPrior.Text = traduci("lblPrior");
|
||||
lblFermaDalleData.Text = traduci("lblFermaDalle");
|
||||
lblAmbito.Text = traduci("lblAmbito");
|
||||
lblTipoGuasto.Text = traduci("lblTipoGuasto");
|
||||
chkImpFermo.Text = traduci("chkImpFermo");
|
||||
// setup stringhe rimando link
|
||||
lnkbInsertNewReq.Text = traduci("lnkbInsertNewReq");
|
||||
lnkGoToReqList.Text = traduci("lnkGoToReqList");
|
||||
lblEsitoInserimento.Text = traduci("lblEsitoInserimento");
|
||||
// setup stringhe validazione
|
||||
valSummary.HeaderText = traduci("errori");
|
||||
rfvReparto.ErrorMessage = string.Format("{0}: {1}", traduci("campoRichiesto"), traduci("reparto"));
|
||||
rfvMacchina.ErrorMessage = string.Format("{0}: {1}", traduci("campoRichiesto"), traduci("macchina"));
|
||||
rfvMatr.ErrorMessage = string.Format("{0}: {1}", traduci("campoRichiesto"), traduci("matricola"));
|
||||
rfvCausali.ErrorMessage = string.Format("{0}: {1}", traduci("campoRichiesto"), traduci("causali"));
|
||||
rfvDescrizione.ErrorMessage = string.Format("{0}: {1}", traduci("campoRichiesto"), traduci("descrizione"));
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna elenco macchine selezionato impianto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void listImpianti_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// aggiorno altro selettore...
|
||||
listMacchine.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// salva ed invia richeista
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSend_Click(object sender, EventArgs e)
|
||||
{
|
||||
// salvare valori...
|
||||
int? numReq = 0;
|
||||
try
|
||||
{
|
||||
divCausali.Visible = _causVis;
|
||||
}
|
||||
/// <summary>
|
||||
/// traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// sistema le labels
|
||||
/// </summary>
|
||||
private void traduciObj()
|
||||
{
|
||||
lblTitolo.Text = traduci("lblInsRichiestaMtz");
|
||||
lblDataOra.Text = traduci("lblDataOraRich");
|
||||
lblDataLav.Text = traduci("lblDataLav");
|
||||
lblTurnoLav.Text = traduci("lblTurnoLav");
|
||||
btnSend.Text = traduci("btnInviaRichiesta");
|
||||
lblImpianto.Text = traduci("lblImpianto");
|
||||
lblMacchina.Text = traduci("lblMacchina");
|
||||
lblDescrGuasto.Text = traduci("lblDescrGuasto");
|
||||
lblDettagliGuasto.Text = traduci("lblDettagliGuasto");
|
||||
lblMatr.Text = traduci("lblMatr");
|
||||
lblPrior.Text = traduci("lblPrior");
|
||||
lblFermaDalleData.Text = traduci("lblFermaDalle");
|
||||
lblAmbito.Text = traduci("lblAmbito");
|
||||
lblTipoGuasto.Text = traduci("lblTipoGuasto");
|
||||
chkImpFermo.Text = traduci("chkImpFermo");
|
||||
// setup stringhe rimando link
|
||||
lnkbInsertNewReq.Text = traduci("lnkbInsertNewReq");
|
||||
lnkGoToReqList.Text = traduci("lnkGoToReqList");
|
||||
lblEsitoInserimento.Text = traduci("lblEsitoInserimento");
|
||||
// setup stringhe validazione
|
||||
valSummary.HeaderText = traduci("errori");
|
||||
rfvReparto.ErrorMessage = string.Format("{0}: {1}", traduci("campoRichiesto"), traduci("reparto"));
|
||||
rfvMacchina.ErrorMessage = string.Format("{0}: {1}", traduci("campoRichiesto"), traduci("macchina"));
|
||||
rfvMatr.ErrorMessage = string.Format("{0}: {1}", traduci("campoRichiesto"), traduci("matricola"));
|
||||
rfvCausali.ErrorMessage = string.Format("{0}: {1}", traduci("campoRichiesto"), traduci("causali"));
|
||||
rfvDescrizione.ErrorMessage = string.Format("{0}: {1}", traduci("campoRichiesto"), traduci("descrizione"));
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna elenco macchine selezionato impianto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void listImpianti_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// aggiorno altro selettore...
|
||||
listMacchine.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// salva ed invia richeista
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSend_Click(object sender, EventArgs e)
|
||||
{
|
||||
// salvare valori...
|
||||
int? numReq = 0;
|
||||
try
|
||||
{
|
||||
// sistemo i valori
|
||||
// 2015.02.16 fix datetime!!!
|
||||
//DateTime richiesta = Convert.ToDateTime(txtDataOra.Text.Trim());
|
||||
//DateTime dataLav = Convert.ToDateTime(txtDataLav.Text.Trim());
|
||||
// sistemo i valori
|
||||
// 2015.02.16 fix datetime!!!
|
||||
//DateTime richiesta = Convert.ToDateTime(txtDataOra.Text.Trim());
|
||||
//DateTime dataLav = Convert.ToDateTime(txtDataLav.Text.Trim());
|
||||
|
||||
DateTime richiesta = WebGimUtils.convDate(txtDataOra.Text.Trim(), memLayer.ML.CRS("ddMMyyyy"), memLayer.ML.CRS("culture"), true);
|
||||
DateTime dataLav = WebGimUtils.convDate(txtDataLav.Text.Trim(), memLayer.ML.CRS("ddMMyyyy"), memLayer.ML.CRS("culture"));
|
||||
|
||||
DateTime inizioGuasto = mod_dataOra1.valore;
|
||||
if (memLayer.ML.confReadInt("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("richiesta: {0} -> {1}", txtDataOra.Text, richiesta));
|
||||
logger.lg.scriviLog(string.Format("dataLav: {0} -> {1}", txtDataLav.Text, dataLav));
|
||||
logger.lg.scriviLog(string.Format("inizioGuasto: {0}", mod_dataOra1.valore));
|
||||
}
|
||||
int turno = Convert.ToInt32(txtTurnoLav.Text);
|
||||
string matr = txtMatr.Text.Trim();
|
||||
int idxAmbito = Convert.ToInt32(ddlAmbito.SelectedValue);
|
||||
int idxPrior = Convert.ToInt32(ddlPrior.SelectedValue);
|
||||
bool isFermo = chkImpFermo.Checked;
|
||||
int idxTipo = Convert.ToInt32(ddlTipo.SelectedValue);
|
||||
int idxImpianto = Convert.ToInt32(listImpianti.SelectedValue);
|
||||
int idxMacchina = Convert.ToInt32(listMacchine.SelectedValue);
|
||||
string descrizione = txtDescrizione.Text.Trim();
|
||||
int idxCausale = 1;
|
||||
// cerco se ci sia un altro valore selezionato...
|
||||
try
|
||||
{
|
||||
idxCausale = Convert.ToInt32(listCausali.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (memLayer.ML.confReadInt("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("sp_insRichiesta, valori: {0} | {1} | {2} | {3} | {4} | {5} | {6} | {7} | {8} | {9} | {10} | {11} | {12} | {13}", richiesta, dataLav, turno, matr, inizioGuasto, idxAmbito, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxCausale, false));
|
||||
}
|
||||
// stored inserimento!
|
||||
TA_app.obj.taInterventiMtz.sp_insRichiesta(richiesta, dataLav, turno, matr, inizioGuasto, idxAmbito, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxCausale, false, ref numReq);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog("Errore inserimento nuova richiesta!", tipoLog.ERROR);
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
//poi mostrare pnl richiesta con "ticket" generato + link x vedere elenco oppure nuova...
|
||||
pnlMain_InsRichiesta.Visible = false;
|
||||
pnlMain_ShowTicket.Visible = true;
|
||||
lblNumRichInserted.Text = string.Format("{0} <b>{1}</b>", traduci("newReqInserted"), (int)numReq);
|
||||
if (eh_done != null)
|
||||
{
|
||||
eh_done(this, new EventArgs());
|
||||
}
|
||||
DateTime richiesta = WebGimUtils.convDate(txtDataOra.Text.Trim(), memLayer.ML.CRS("ddMMyyyy"), memLayer.ML.CRS("culture"), true);
|
||||
DateTime dataLav = WebGimUtils.convDate(txtDataLav.Text.Trim(), memLayer.ML.CRS("ddMMyyyy"), memLayer.ML.CRS("culture"));
|
||||
|
||||
DateTime inizioGuasto = mod_dataOra1.valore;
|
||||
if (memLayer.ML.confReadInt("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("richiesta: {0} -> {1}", txtDataOra.Text, richiesta));
|
||||
logger.lg.scriviLog(string.Format("dataLav: {0} -> {1}", txtDataLav.Text, dataLav));
|
||||
logger.lg.scriviLog(string.Format("inizioGuasto: {0}", mod_dataOra1.valore));
|
||||
}
|
||||
int turno = Convert.ToInt32(txtTurnoLav.Text);
|
||||
string matr = txtMatr.Text.Trim();
|
||||
int idxAmbito = Convert.ToInt32(ddlAmbito.SelectedValue);
|
||||
int idxPrior = Convert.ToInt32(ddlPrior.SelectedValue);
|
||||
bool isFermo = chkImpFermo.Checked;
|
||||
int idxTipo = Convert.ToInt32(ddlTipo.SelectedValue);
|
||||
int idxImpianto = Convert.ToInt32(listImpianti.SelectedValue);
|
||||
int idxMacchina = Convert.ToInt32(listMacchine.SelectedValue);
|
||||
string descrizione = txtDescrizione.Text.Trim();
|
||||
int idxCausale = 1;
|
||||
// cerco se ci sia un altro valore selezionato...
|
||||
try
|
||||
{
|
||||
idxCausale = Convert.ToInt32(listCausali.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (memLayer.ML.confReadInt("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("stp_IntMtz_insRichiesta, valori: {0} | {1} | {2} | {3} | {4} | {5} | {6} | {7} | {8} | {9} | {10} | {11} | {12} | {13} | {14}", richiesta, dataLav, turno, matr, inizioGuasto, idxAmbito, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxCausale, false, 0));
|
||||
}
|
||||
// stored inserimento!
|
||||
TA_app.obj.taInterventiMtz.insRichiesta(richiesta, dataLav, turno, matr, inizioGuasto, idxAmbito, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxCausale, false, 0, ref numReq);
|
||||
}
|
||||
/// <summary>
|
||||
/// inverte visibilità pannelli
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lnkbtnInsertNewReq_Click(object sender, EventArgs e)
|
||||
catch (Exception exc)
|
||||
{
|
||||
pnlMain_InsRichiesta.Visible = true;
|
||||
pnlMain_ShowTicket.Visible = false;
|
||||
if (eh_newReq != null)
|
||||
{
|
||||
eh_newReq(this, new EventArgs());
|
||||
}
|
||||
logger.lg.scriviLog("Errore inserimento nuova richiesta!", tipoLog.ERROR);
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
//poi mostrare pnl richiesta con "ticket" generato + link x vedere elenco oppure nuova...
|
||||
pnlMain_InsRichiesta.Visible = false;
|
||||
pnlMain_ShowTicket.Visible = true;
|
||||
lblNumRichInserted.Text = string.Format("{0} <b>{1}</b>", traduci("newReqInserted"), (int)numReq);
|
||||
if (eh_done != null)
|
||||
{
|
||||
eh_done(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inverte visibilità pannelli
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lnkbtnInsertNewReq_Click(object sender, EventArgs e)
|
||||
{
|
||||
pnlMain_InsRichiesta.Visible = true;
|
||||
pnlMain_ShowTicket.Visible = false;
|
||||
if (eh_newReq != null)
|
||||
{
|
||||
eh_newReq(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user