update stored varie e tabelle
update metodi x creazione nuovo cartellino x MP conclusione GMW_00257.sql git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@257 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -91,12 +91,16 @@
|
||||
<add key="NumX" value="10" />
|
||||
<add key="NumY" value="5" />
|
||||
<add key="NumZ" value="1" />
|
||||
<add key="BilanciaMP" value="MP"/>
|
||||
<add key="CodImballoMP" value="I0054"/>
|
||||
<add key="CodStatoMP" value="MP"/>
|
||||
<add key="showSizeCellaInDettMag" value="false"/>
|
||||
|
||||
<!--Setup periodo controlli date-->
|
||||
<add key="defDayFrom" value="-60"/>
|
||||
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosizMP" value="56"/>
|
||||
<add key="IdxPosNewFusi" value="80"/>
|
||||
<add key="IdxPosNewWip" value="84"/>
|
||||
<add key="IdxPosNewFinito" value="84"/>
|
||||
@@ -107,6 +111,10 @@
|
||||
<add key="PageWidthCartTara" value="21cm" />
|
||||
<add key="PageHeightCartTara" value="14.8cm" />
|
||||
<add key="MarginTara" value="0.5cm" />
|
||||
<add key="printerCartMP" value="\\Vostro410\PDFCreator"/>
|
||||
<add key="PageWidthCartMP" value="21cm"/>
|
||||
<add key="PageHeightCartMP" value="14.8cm"/>
|
||||
<add key="MarginMP" value="0.5cm"/>
|
||||
<add key="printerCartCompleto" value="\\Vostro410\PDFCreator" />
|
||||
<add key="PageWidthCartCompleto" value="21cm" />
|
||||
<add key="PageHeightCartCompleto" value="14.8cm" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -35,12 +35,16 @@
|
||||
<add key="NumX" value="10"/>
|
||||
<add key="NumY" value="5"/>
|
||||
<add key="NumZ" value="1"/>
|
||||
<add key="BilanciaMP" value="MP"/>
|
||||
<add key="CodImballoMP" value="I0054"/>
|
||||
<add key="CodStatoMP" value="MP"/>
|
||||
<add key="showSizeCellaInDettMag" value="false"/>
|
||||
|
||||
<!--Setup periodo controlli date-->
|
||||
<add key="defDayFrom" value="-60"/>
|
||||
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosizMP" value="56"/>
|
||||
<add key="IdxPosNewFusi" value="80"/>
|
||||
<add key="IdxPosNewWip" value="84"/>
|
||||
<add key="IdxPosNewFinito" value="84"/>
|
||||
@@ -50,6 +54,10 @@
|
||||
<add key="PageWidthCartTara" value="21cm"/>
|
||||
<add key="PageHeightCartTara" value="14.8cm"/>
|
||||
<add key="MarginTara" value="0.5cm"/>
|
||||
<add key="printerCartMP" value="\\Vostro410\PDFCreator"/>
|
||||
<add key="PageWidthCartMP" value="21cm"/>
|
||||
<add key="PageHeightCartMP" value="14.8cm"/>
|
||||
<add key="MarginMP" value="0.5cm"/>
|
||||
<add key="printerCartCompleto" value="\\Vostro410\PDFCreator"/>
|
||||
<add key="PageWidthCartCompleto" value="21cm"/>
|
||||
<add key="PageHeightCartCompleto" value="14.8cm"/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -84,11 +84,15 @@
|
||||
<add key="NumX" value="10" />
|
||||
<add key="NumY" value="5" />
|
||||
<add key="NumZ" value="1" />
|
||||
<add key="BilanciaMP" value="MP"/>
|
||||
<add key="CodImballoMP" value="I0054"/>
|
||||
<add key="CodStatoMP" value="MP"/>
|
||||
|
||||
<!--Setup periodo controlli date-->
|
||||
<add key="defDayFrom" value="-60"/>
|
||||
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosizMP" value="56"/>
|
||||
<add key="IdxPosNewFusi" value="80"/>
|
||||
<add key="IdxPosNewWip" value="84"/>
|
||||
<add key="IdxPosNewFinito" value="84"/>
|
||||
@@ -99,6 +103,10 @@
|
||||
<add key="PageWidthCartTara" value="21cm" />
|
||||
<add key="PageHeightCartTara" value="14.8cm" />
|
||||
<add key="MarginTara" value="0.5cm" />
|
||||
<add key="printerCartMP" value="\\Vostro410\PDFCreator"/>
|
||||
<add key="PageWidthCartMP" value="21cm"/>
|
||||
<add key="PageHeightCartMP" value="14.8cm"/>
|
||||
<add key="MarginMP" value="0.5cm"/>
|
||||
<add key="printerCartCompleto" value="\\Vostro410\PDFCreator" />
|
||||
<add key="PageWidthCartCompleto" value="21cm" />
|
||||
<add key="PageHeightCartCompleto" value="14.8cm" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -34,11 +34,15 @@
|
||||
<add key="NumX" value="10"/>
|
||||
<add key="NumY" value="5"/>
|
||||
<add key="NumZ" value="1"/>
|
||||
<add key="BilanciaMP" value="MP"/>
|
||||
<add key="CodImballoMP" value="I0054"/>
|
||||
<add key="CodStatoMP" value="MP"/>
|
||||
|
||||
<!--Setup periodo controlli date-->
|
||||
<add key="defDayFrom" value="-60"/>
|
||||
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosizMP" value="56"/>
|
||||
<add key="IdxPosNewFusi" value="80"/>
|
||||
<add key="IdxPosNewWip" value="84"/>
|
||||
<add key="IdxPosNewFinito" value="84"/>
|
||||
@@ -49,6 +53,10 @@
|
||||
<add key="PageWidthCartTara" value="21cm"/>
|
||||
<add key="PageHeightCartTara" value="14.8cm"/>
|
||||
<add key="MarginTara" value="0.5cm"/>
|
||||
<add key="printerCartMP" value="\\Vostro410\PDFCreator"/>
|
||||
<add key="PageWidthCartMP" value="21cm"/>
|
||||
<add key="PageHeightCartMP" value="14.8cm"/>
|
||||
<add key="MarginMP" value="0.5cm"/>
|
||||
<add key="printerCartCompleto" value="\\Vostro410\PDFCreator"/>
|
||||
<add key="PageWidthCartCompleto" value="21cm"/>
|
||||
<add key="PageHeightCartCompleto" value="14.8cm"/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -114,8 +114,12 @@
|
||||
<add key="NumX" value="10"/>
|
||||
<add key="NumY" value="5"/>
|
||||
<add key="NumZ" value="1"/>
|
||||
<add key="BilanciaMP" value="MP"/>
|
||||
<add key="CodImballoMP" value="I0054"/>
|
||||
<add key="CodStatoMP" value="MP"/>
|
||||
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosizMP" value="56"/>
|
||||
<add key="IdxPosNewFusi" value="80"/>
|
||||
<add key="IdxPosNewWip" value="84"/>
|
||||
<add key="IdxPosNewFinito" value="84"/>
|
||||
@@ -126,6 +130,10 @@
|
||||
<add key="PageWidthCartTara" value="21cm"/>
|
||||
<add key="PageHeightCartTara" value="14.8cm"/>
|
||||
<add key="MarginTara" value="0.5cm"/>
|
||||
<add key="printerCartMP" value="\\Vostro410\PDFCreator"/>
|
||||
<add key="PageWidthCartMP" value="21cm"/>
|
||||
<add key="PageHeightCartMP" value="14.8cm"/>
|
||||
<add key="MarginMP" value="0.5cm"/>
|
||||
<add key="printerCartCompleto" value="\\Vostro410\PDFCreator"/>
|
||||
<add key="PageWidthCartCompleto" value="21cm"/>
|
||||
<add key="PageHeightCartCompleto" value="14.8cm"/>
|
||||
|
||||
@@ -33,6 +33,7 @@ namespace GMW_WS
|
||||
|
||||
protected GMW_data.Type.elenchi gestEl;
|
||||
protected int logLevel = 0;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area anagrafiche
|
||||
@@ -649,6 +650,14 @@ namespace GMW_WS
|
||||
public bool UdcCall_PrintLabel(string place, tipoCartellino cartellino, string UDC)
|
||||
{
|
||||
bool answ = false;
|
||||
//answ = doPrintLabel(cartellino, UDC, answ);
|
||||
answ = reportPrinter.obj.stampaCartellino(cartellino, UDC);
|
||||
return answ;
|
||||
}
|
||||
|
||||
#if false
|
||||
public bool doPrintLabel(tipoCartellino cartellino, string UDC, bool answ)
|
||||
{
|
||||
string printerName = "";
|
||||
string outForm = "";
|
||||
string pagWidth = "";
|
||||
@@ -690,7 +699,8 @@ namespace GMW_WS
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -32,8 +32,12 @@
|
||||
<add key="NumX" value="10"/>
|
||||
<add key="NumY" value="5"/>
|
||||
<add key="NumZ" value="1"/>
|
||||
<add key="BilanciaMP" value="MP"/>
|
||||
<add key="CodImballoMP" value="I0054"/>
|
||||
<add key="CodStatoMP" value="MP"/>
|
||||
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosizMP" value="56"/>
|
||||
<add key="IdxPosNewFusi" value="80"/>
|
||||
<add key="IdxPosNewWip" value="84"/>
|
||||
<add key="IdxPosNewFinito" value="84"/>
|
||||
@@ -44,6 +48,10 @@
|
||||
<add key="PageWidthCartTara" value="21cm"/>
|
||||
<add key="PageHeightCartTara" value="14.8cm"/>
|
||||
<add key="MarginTara" value="0.5cm"/>
|
||||
<add key="printerCartMP" value="\\Vostro410\PDFCreator"/>
|
||||
<add key="PageWidthCartMP" value="21cm"/>
|
||||
<add key="PageHeightCartMP" value="14.8cm"/>
|
||||
<add key="MarginMP" value="0.5cm"/>
|
||||
<add key="printerCartCompleto" value="\\Vostro410\PDFCreator"/>
|
||||
<add key="PageWidthCartCompleto" value="21cm"/>
|
||||
<add key="PageHeightCartCompleto" value="14.8cm"/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -345,7 +345,7 @@
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW_WS"
|
||||
"ProductCode" = "8:{311C1377-9118-4394-B6EA-337CC4C9FE21}"
|
||||
"PackageCode" = "8:{0C66E374-A699-4B54-A243-3F21C3F9FDA2}"
|
||||
"PackageCode" = "8:{67FA42C3-91ED-4360-96F5-24E546C64608}"
|
||||
"UpgradeCode" = "8:{BA470335-3D4B-4C20-8152-90A5F0F14FE0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
@@ -824,7 +824,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_C1E28C0CBEB3498E83D9B97B28568D55"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Release\\IISConsoleVB.exe"
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_B61BA0CAC3474474B971A8F12A1C93F2"
|
||||
@@ -852,7 +852,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_D67ABEB91C7F428EB3C512E4A505628A"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_B61BA0CAC3474474B971A8F12A1C93F2"
|
||||
|
||||
Binary file not shown.
Generated
+1365
File diff suppressed because it is too large
Load Diff
+785
-579
File diff suppressed because it is too large
Load Diff
@@ -4,31 +4,32 @@
|
||||
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="719" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="27" ViewPortY="1026" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="21" X="68" Y="319" Height="459" Width="250" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="294" />
|
||||
<Shape ID="DesignTable:AnagMag" ZOrder="31" X="1016" Y="417" Height="210" Width="285" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="10" X="409" Y="544" Height="265" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="29" X="412" Y="310" Height="168" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:Blocchi" ZOrder="24" X="1014" Y="652" Height="325" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="181" />
|
||||
<Shape ID="DesignTable:Celle" ZOrder="15" X="712" Y="420" Height="438" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:TipoCella" ZOrder="4" X="1006" Y="20" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="2" X="693" Y="9" Height="381" Width="210" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="23" X="90" Y="75" Height="172" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="6" X="95" Y="1131" Height="248" Width="265" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="17" X="733" Y="1102" Height="286" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:V_DettMagPart" ZOrder="1" X="1027" Y="998" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="12" X="735" Y="891" Height="172" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="7" X="83" Y="846" Height="257" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="130" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="8" X="430" Y="879" Height="400" Width="263" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:v_righeListePrelievoPosizione" ZOrder="9" X="400" Y="1301" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:v_particolariEsponenteFigura" ZOrder="18" X="1042" Y="1386" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagPosizioni" ZOrder="14" X="375" Y="103" Height="115" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:V_statoCelleCapienzaAssegnati" ZOrder="11" X="111" Y="1437" Height="229" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:V_MagazziniLogiciOverview" ZOrder="3" X="730" Y="1426" Height="267" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="22" X="68" Y="319" Height="459" Width="250" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="294" />
|
||||
<Shape ID="DesignTable:AnagMag" ZOrder="32" X="1016" Y="417" Height="210" Width="285" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="11" X="409" Y="544" Height="265" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="30" X="412" Y="310" Height="168" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:Blocchi" ZOrder="25" X="1014" Y="652" Height="325" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="181" />
|
||||
<Shape ID="DesignTable:Celle" ZOrder="16" X="712" Y="420" Height="438" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:TipoCella" ZOrder="5" X="1006" Y="20" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="3" X="693" Y="9" Height="381" Width="210" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="24" X="90" Y="75" Height="172" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="7" X="95" Y="1131" Height="248" Width="265" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="18" X="733" Y="1102" Height="286" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:V_DettMagPart" ZOrder="2" X="1027" Y="998" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="13" X="735" Y="891" Height="172" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="8" X="83" Y="846" Height="257" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="130" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="9" X="430" Y="879" Height="400" Width="263" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:v_righeListePrelievoPosizione" ZOrder="10" X="400" Y="1301" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:v_particolariEsponenteFigura" ZOrder="19" X="1042" Y="1386" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagPosizioni" ZOrder="15" X="375" Y="103" Height="115" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:V_statoCelleCapienzaAssegnati" ZOrder="12" X="111" Y="1437" Height="229" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:V_MagazziniLogiciOverview" ZOrder="4" X="730" Y="1426" Height="267" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:RapQual" ZOrder="1" X="1058" Y="1667" Height="343" Width="240" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_ElencoCartellini" ZOrder="30" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_ElencoCartellini" ZOrder="31" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>318</X>
|
||||
@@ -40,7 +41,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcStorico_ElencoCartellini" ZOrder="28" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcStorico_ElencoCartellini" ZOrder="29" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>318</X>
|
||||
@@ -52,7 +53,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Blocchi_AnagMag" ZOrder="27" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Blocchi_AnagMag" ZOrder="28" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1118</X>
|
||||
@@ -64,7 +65,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_Celle" ZOrder="16" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_Celle" ZOrder="17" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>712</X>
|
||||
@@ -76,7 +77,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Celle_Blocchi1" ZOrder="26" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Celle_Blocchi1" ZOrder="27" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1014</X>
|
||||
@@ -88,7 +89,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TipoCella_AnagMag" ZOrder="25" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TipoCella_AnagMag" ZOrder="26" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1107</X>
|
||||
@@ -100,7 +101,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoCartellini" ZOrder="22" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoCartellini" ZOrder="23" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>197</X>
|
||||
@@ -112,7 +113,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoListePrelievo11" ZOrder="20" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoListePrelievo11" ZOrder="21" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>430</X>
|
||||
@@ -124,7 +125,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo11" ZOrder="19" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo11" ZOrder="20" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>735</X>
|
||||
@@ -136,7 +137,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagPosizioni" ZOrder="13" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagPosizioni" ZOrder="14" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>392</X>
|
||||
@@ -152,7 +153,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Celle_TipoCella" ZOrder="5" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Celle_TipoCella" ZOrder="6" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1006</X>
|
||||
|
||||
@@ -160,6 +160,7 @@
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="SqlScripts\GMW_00258.sql" />
|
||||
<None Include="SqlScripts\GMW_00257.sql" />
|
||||
<None Include="SqlScripts\GMW_00255.sql" />
|
||||
<None Include="SqlScripts\GMW_00250.sql" />
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace GMW_data
|
||||
public DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter taVParticolariOverwiew;
|
||||
public DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter taPartExpFig;
|
||||
public DS_magazzinoTableAdapters.V_statoCelleCapienzaAssegnatiTableAdapter taStatoCelle;
|
||||
public DS_magazzinoTableAdapters.RapQualTableAdapter taRapQual;
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -57,6 +58,7 @@ namespace GMW_data
|
||||
taVParticolariOverwiew = new GMW_data.DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter();
|
||||
taPartExpFig = new GMW_data.DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter();
|
||||
taStatoCelle = new GMW_data.DS_magazzinoTableAdapters.V_statoCelleCapienzaAssegnatiTableAdapter();
|
||||
taRapQual = new GMW_data.DS_magazzinoTableAdapters.RapQualTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
@@ -82,6 +84,7 @@ namespace GMW_data
|
||||
taVParticolariOverwiew.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPartExpFig.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taStatoCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taRapQual.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -1036,6 +1039,75 @@ namespace GMW_data
|
||||
|
||||
#endregion
|
||||
|
||||
#region area rapporti qualità
|
||||
|
||||
/// <summary>
|
||||
/// Crea gli UDC da associare ai cartellini dei rapporti qualità deliberati, li associa e se richiesto lancia stampa
|
||||
/// </summary>
|
||||
/// <param name="numRapQual">identificativo rapp qualità</param>
|
||||
/// <param name="doPrint">true/false se stampare</param>
|
||||
/// <param name="CodOperatore">codice operatore</param>
|
||||
/// <returns></returns>
|
||||
public bool creaUdcDaRappQualita(int numRapQual, bool doPrint, string CodOperatore)
|
||||
{
|
||||
bool answ = false;
|
||||
// ottengo elenco righe dei cartellini del rapp qualità indicato SENZA righe UDC
|
||||
DS_magazzino.RapQualDataTable tabRapQual = taRapQual.getByNumRapQual(numRapQual);
|
||||
// per prima cosa verifico che ci sia il rapporto di qualità in esame e che abbia righe da associare ad UDC
|
||||
if (tabRapQual.Rows.Count > 0)
|
||||
{
|
||||
string UDC = "";
|
||||
foreach (DS_magazzino.RapQualRow rqRow in tabRapQual)
|
||||
{
|
||||
answ = true;
|
||||
|
||||
// per ogni riga creo un UDC
|
||||
DS_Applicazione.ElencoCartelliniDataTable tabCartellini = DataProxy.obj.taCartellini.stp_insNewFull(memLayer.ML.confReadString("CodCS"), memLayer.ML.confReadString("BilanciaMP"), string.Format("{0:yy}", DateTime.Now), rqRow.CodFor, rqRow.CodLega, "", "", "", "", DateTime.Now, 0, memLayer.ML.confReadString("CodImballoMP"), CodOperatore, 0, memLayer.ML.confReadInt("IdxPosizMP"), "M", "UDC_MP", rqRow.Qta, Convert.ToDouble(rqRow.Qta), 1, memLayer.ML.confReadString("CodStatoMP"), ""); // UDC_MP HARD CODED!!!
|
||||
//DS_Applicazione.ElencoCartelliniDataTable tabCartellini = DataProxy.obj.taCartellini.stp_insNew(memLayer.ML.confReadString("CodCS"), memLayer.ML.confReadString("BilanciaMP"), string.Format("{0:yy}", DateTime.Now), 0, memLayer.ML.confReadString("CodImballoMP"), "M", CodOperatore, "UDC_MP"); // UDC_MP HARD CODED!!!
|
||||
|
||||
try
|
||||
{
|
||||
UDC = tabCartellini[0].UDC;
|
||||
// lo associo!
|
||||
taRapQual.stp_associaUDC(rqRow.ProgUDC, UDC);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito a creare associazioen UDC / rapp qual: UDC creato: {0}, progRappQual: {1}, eccezione: {2}", UDC, rqRow.ProgUDC, e), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
|
||||
// se devo stampare lancio stampa...
|
||||
if (doPrint)
|
||||
{
|
||||
stampaUdcDaRappQualita(numRapQual);
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua la (ri)stampa di TUTTI gli UDC dato un rapporto di qualità
|
||||
/// </summary>
|
||||
/// <param name="numRapQual">identificativo rapp qualità</param>
|
||||
/// <returns></returns>
|
||||
public bool stampaUdcDaRappQualita(int numRapQual)
|
||||
{
|
||||
bool answ = false;
|
||||
// ottengo elenco righe dei cartellini del rapp qualità indicato SENZA righe UDC
|
||||
DS_magazzino.RapQualDataTable tabRapQual = taRapQual.getByNumRapQual(numRapQual);
|
||||
// per prima cosa verifico che ci sia il rapporto di qualità in esame e che abbia righe da associare ad UDC
|
||||
if (tabRapQual.Rows.Count > 0)
|
||||
{
|
||||
answ = true;
|
||||
foreach (DS_magazzino.RapQualRow rqRow in tabRapQual)
|
||||
{
|
||||
answ = reportPrinter.obj.stampaCartellino(tipoCartellino.MP, rqRow.UDC);
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -3,28 +3,689 @@
|
||||
create schema RawData authorization db_accessadmin
|
||||
go
|
||||
|
||||
-- lascio in schema As400 i dati attuali, creo tab nuove RAW
|
||||
create table RawData.XOGIX00F(
|
||||
XRPQLN numeric(6,0) not null constraint DF_XOGIX00F_XRPQLN default (0),
|
||||
XRPQLD numeric(8,0) not null constraint DF_XOGIX00F_XRPQLD default (0),
|
||||
XNRETI char(10) not null constraint DF_XOGIX00F_XNRETI default (''),
|
||||
XCDFOR char(6) not null constraint DF_XOGIX00F_XCDFOR default (''),
|
||||
XCDTER char(6) not null constraint DF_XOGIX00F_XCDTER default (''),
|
||||
XCDPAR char(15) not null constraint DF_XOGIX00F_XCDPAR default (''),
|
||||
XDTPRO numeric(8,0) not null constraint DF_XOGIX00F_XDTPRO default (0),
|
||||
XTRPRO char(5) not null constraint DF_XOGIX00F_XTRPRO default (''),
|
||||
XQTPRO numeric(5,0) not null constraint DF_XOGIX00F_XQTPRO default (0),
|
||||
XDESMT char(3) not null constraint DF_XOGIX00F_XDESMT default (''),
|
||||
XMATSC char(1) not null constraint DF_XOGIX00F_XMATSC default (''),
|
||||
XBENQL char(1) not null
|
||||
)
|
||||
go
|
||||
|
||||
ALTER SCHEMA RawData TRANSFER As400.t_XOGIX00F
|
||||
|
||||
|
||||
|
||||
|
||||
-- travaso dati da tab As400 a RawData
|
||||
INSERT INTO RawData.XOGIX00F
|
||||
SELECT *
|
||||
FROM As400.t_XOGIX00F
|
||||
GO
|
||||
|
||||
ALTER SCHEMA RawData TRANSFER As400.t_CQNOC98L
|
||||
GO
|
||||
-- aggiungo tab rilpro
|
||||
|
||||
ALTER SCHEMA RawData TRANSFER As400.t_MWMV200F
|
||||
GO
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
ALTER SCHEMA RawData TRANSFER As400.t_MOMA200F
|
||||
GO
|
||||
begin transaction
|
||||
go
|
||||
|
||||
ALTER SCHEMA RawData TRANSFER As400.t_PACKL00F
|
||||
GO
|
||||
create table RilPro.RapQual(
|
||||
nRapQual numeric(6,0) not null,
|
||||
DataRapQual numeric(8,0) not null,
|
||||
ProgUDC nvarchar(10) not null constraint PK_RapQual primary key,
|
||||
CodFor nvarchar(6) not null,
|
||||
DestTerz nvarchar(6) not null,
|
||||
CodLega nvarchar(15) not null,
|
||||
DataPrelFus numeric(8,0) not null,
|
||||
TurnoPrelFus nvarchar(5) not null,
|
||||
Qta numeric(5,0) not null,
|
||||
DestLega nvarchar(3) not null,
|
||||
LegaScaric nvarchar(1) not null,
|
||||
BenesQual nvarchar(1) not null,
|
||||
UDC nvarchar(13)
|
||||
)
|
||||
go
|
||||
|
||||
create index i_numRap on RilPro.RapQual(nRapQual)
|
||||
go
|
||||
|
||||
create index i_dataRap on RilPro.RapQual(DataRapQual)
|
||||
go
|
||||
|
||||
create index i_numDataRap on RilPro.RapQual(nRapQual,DataRapQual)
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
-- aggiungo stored di travaso!
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
create schema BatchQueue authorization db_accessadmin
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_batch_RapQual_S01
|
||||
*
|
||||
* Esegue lo step 1 (caricamento dati RAW da AS400) per la tab dei rapporti di qualità
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.09.23
|
||||
*
|
||||
****************************************/
|
||||
create PROCEDURE BatchQueue.stp_batch_RapQual_S01
|
||||
(
|
||||
@minNumRapQual INT
|
||||
)
|
||||
AS
|
||||
-- BOZZA DA COMPLETARE A CURA MAZZUCCONI!!!
|
||||
|
||||
DECLARE @SQL AS NVARCHAR(1000)
|
||||
|
||||
-- svuoto tab raw attuale
|
||||
/*
|
||||
DELETE FROM RawData.XOGIX00F
|
||||
*/
|
||||
|
||||
|
||||
-- aggiungo tabelle dati tradotti equivalenti (mancanti)
|
||||
-- INSERISCO DA AS400
|
||||
/*
|
||||
INSERT INTO RawData.XOGIX00F
|
||||
(
|
||||
SET @SQL =
|
||||
N'SELECT
|
||||
XRPQLN
|
||||
,XRPQLD
|
||||
,XNRETI
|
||||
,XCDFOR
|
||||
,XCDTER
|
||||
,XCDPAR
|
||||
,XDTPRO
|
||||
,XTRPRO
|
||||
,XQTPRO
|
||||
,XDESMT
|
||||
,XMATSC
|
||||
,XBENQL
|
||||
FROM OPENQUERY( P65220DC, ''SELECT * FROM MAZZT_DTV3.XOGIX00F WHERE XRPQLN >= '
|
||||
SET @SQL = @SQL + @minNumRapQual + ''' )'
|
||||
|
||||
EXEC sp_executesql @SQL
|
||||
)
|
||||
*/
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_batch_RapQual_S01
|
||||
*
|
||||
* Esegue lo step 2 (travaso dati RAW in RilPro) per la tab dei rapporti di qualità
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.09.23
|
||||
*
|
||||
****************************************/
|
||||
create PROCEDURE BatchQueue.stp_batch_RapQual_S02
|
||||
AS
|
||||
-- eseguo UPSERT x tutti i dati disponibili in tab Raw...
|
||||
|
||||
-- se il dato esiste faccio UPDATE!!!
|
||||
UPDATE RilPro.RapQual
|
||||
SET CodFor = u.XCDFOR,
|
||||
DestTerz = u.XCDTER,
|
||||
CodLega = u.XCDPAR,
|
||||
DataPrelFus = u.XDTPRO,
|
||||
TurnoPrelFus= u.XTRPRO,
|
||||
Qta = u.XQTPRO,
|
||||
DestLega = u.XDESMT,
|
||||
LegaScaric = u.XMATSC,
|
||||
BenesQual = u.XBENQL
|
||||
FROM RilPro.RapQual rq
|
||||
INNER JOIN RawData.XOGIX00F u ON u.XNRETI = rq.ProgUDC; -- AND u.XRPQLN = rq.nRapQual AND u.XRPQLD = rq.DataRapQual; -- se XNRETI è univoco ...
|
||||
|
||||
|
||||
-- creo tab temporanea x i dati inesistenti..
|
||||
WITH cteInsert AS
|
||||
(SELECT x.*
|
||||
FROM RawData.XOGIX00F x LEFT OUTER JOIN RilPro.RapQual rq
|
||||
ON x.XNRETI = rq.ProgUDC -- AND u.XRPQLN = rq.nRapQual AND u.XRPQLD = rq.DataRapQual; -- se XNRETI è univoco ...
|
||||
WHERE rq.ProgUDC IS NULL )
|
||||
|
||||
-- se il dato non c'è faccio INSERT!!!
|
||||
INSERT INTO RilPro.RapQual(nRapQual, DataRapQual, ProgUDC, CodFor, DestTerz, CodLega, DataPrelFus, TurnoPrelFus, Qta, DestLega, LegaScaric, BenesQual)
|
||||
SELECT XRPQLN AS nRapQual,
|
||||
XRPQLD AS DataRapQual,
|
||||
XNRETI AS ProgUDC,
|
||||
XCDFOR AS CodFor,
|
||||
XCDTER AS DestTerz,
|
||||
XCDPAR AS CodLega,
|
||||
XDTPRO AS DataPrelFus,
|
||||
XTRPRO AS TurnoPrelFus,
|
||||
XQTPRO AS Qta,
|
||||
XDESMT AS DestLega,
|
||||
XMATSC AS LegaScaric,
|
||||
XBENQL AS BenesQual
|
||||
FROM cteInsert
|
||||
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
- nuove functions
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* function componiUdc
|
||||
*
|
||||
* compone il cod UDC a partire da
|
||||
* - CodCS (codice company sito, 2 char)
|
||||
* - Flusso (codice flusso-bilancia 2 char)
|
||||
* - @Anno (anno, 2 char)
|
||||
* - @numUdc (progr annuale, 2 char)
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.09.23
|
||||
*
|
||||
****************************************/
|
||||
create FUNCTION componiUdc
|
||||
(
|
||||
@CodCS NVARCHAR(2),
|
||||
@Flusso NVARCHAR(2),
|
||||
@Anno NVARCHAR(2),
|
||||
@numUdc INT
|
||||
)
|
||||
RETURNS NVARCHAR(13)
|
||||
AS
|
||||
BEGIN
|
||||
|
||||
DECLARE @answ AS NVARCHAR(50)
|
||||
|
||||
SET @answ = 'U' + @CodCS + @Flusso + @Anno + dbo.f_padLeft(CAST(@numUdc AS VARCHAR(6)), 6, '0')
|
||||
|
||||
RETURN @answ
|
||||
END
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* function getUdcComp
|
||||
*
|
||||
* effettua la "compattazione" dell'UDC, andando a prendere un sottoinsieme dei dati iniziali (UAAxxxx dove AA = anno...)
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.09.23
|
||||
*
|
||||
****************************************/
|
||||
create FUNCTION getUdcComp
|
||||
(
|
||||
@fullUDC NVARCHAR(50),
|
||||
@maxLen INTEGER
|
||||
)
|
||||
RETURNS NVARCHAR(20)
|
||||
AS
|
||||
BEGIN
|
||||
-- calcolo lunghezza originale
|
||||
DECLARE @fullLen AS INT
|
||||
SET @fullLen = LEN(@fullUDC)
|
||||
|
||||
-- dichiaro stringa out (max 20 char)
|
||||
DECLARE @answ NVARCHAR(20)
|
||||
|
||||
-- recupero parte finale (ultimi @maxLen caratteri...)
|
||||
|
||||
|
||||
-- compongo codice
|
||||
SET @answ = 'U' + RIGHT(LEFT(@fullUDC, 7), 2) + RIGHT(@fullUDC,@maxLen-3) -- tolgo 3 char: U + anno...
|
||||
|
||||
RETURN @answ
|
||||
END
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- altre stored
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_rappQualAssociaUdc
|
||||
*
|
||||
* Associa l'UDC (creato) ad un rapp qualità di AS esistente SOLO SE UDC è NULL
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.09.23
|
||||
*
|
||||
****************************************/
|
||||
create PROCEDURE stp_rappQualAssociaUdc
|
||||
(
|
||||
@ProgUDC NVARCHAR(10),
|
||||
@UDC NVARCHAR(13)
|
||||
)
|
||||
AS
|
||||
UPDATE RilPro.RapQual
|
||||
SET UDC = @UDC
|
||||
WHERE (ProgUDC = @ProgUDC) AND (UDC IS NULL)
|
||||
|
||||
-- restituisce la riga aggiornata
|
||||
SELECT *
|
||||
FROM RilPro.RapQual
|
||||
WHERE ProgUDC = @ProgUDC
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_rappQualGetByNumRapQual
|
||||
*
|
||||
* Ottiene l'elenco dei record di rapp qualità di AS dato il numero del rapporto di qualità che NON HANNO UDC
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.09.23
|
||||
*
|
||||
****************************************/
|
||||
create PROCEDURE stp_rappQualGetByNumRapQual
|
||||
(
|
||||
@nRapQual INT
|
||||
)
|
||||
AS
|
||||
-- restituisce le righe richieste
|
||||
SELECT *
|
||||
FROM RilPro.RapQual
|
||||
WHERE (nRapQual = @nRapQual) AND (UDC IS NULL)
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
-- update stored
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_UDC_insNew
|
||||
*
|
||||
* crea un nuovo record nella TabStatoOdpUdc e restituisce il codice UDC appena creato
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.04.28
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE stp_UDC_insNew
|
||||
(
|
||||
@CodCS VARCHAR(2),
|
||||
@Flusso VARCHAR(2),
|
||||
@Anno VARCHAR(2),
|
||||
@Tara FLOAT,
|
||||
@CodImballo AS VARCHAR(50),
|
||||
@CodTipoDichiaraz CHAR(1),
|
||||
@CodOperatore AS VARCHAR(50),
|
||||
@CodEvento VARCHAR(10)
|
||||
)
|
||||
AS
|
||||
|
||||
-- DECLARE iniziali
|
||||
DECLARE @UDC AS VARCHAR(20)
|
||||
DECLARE @numFlu AS INT
|
||||
DECLARE @numUdc AS INT
|
||||
DECLARE @nextUdc AS INT
|
||||
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- Flusso
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- controllo se esiste il flusso (bilancia)...
|
||||
SET @numFlu = (
|
||||
SELECT count(*)
|
||||
FROM AnagBilance
|
||||
WHERE CodBilancia = @Flusso
|
||||
)
|
||||
-- ...sennò lo creo...
|
||||
IF(@numFlu = 0)
|
||||
BEGIN
|
||||
-- se c'è inserisco in tab
|
||||
INSERT INTO AnagBilance(CodBilancia, DescrImpianto, CodCS)
|
||||
VALUES (@Flusso, @Flusso, @CodCS)
|
||||
END
|
||||
------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- UDC
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- controllo se ci sia già un UDC per company / flusso anno
|
||||
BEGIN TRAN
|
||||
-- cerco nella tab contatori UDC l'ultimo valido
|
||||
SET @numUdc = (
|
||||
SELECT count(*)
|
||||
FROM ContatoriUdc
|
||||
WHERE CodCS = @CodCS
|
||||
AND Flusso = @Flusso
|
||||
AND Anno = @Anno
|
||||
)
|
||||
-- controllo se record c'è...
|
||||
IF(@numUdc > 0)
|
||||
BEGIN
|
||||
-- se c'è incremento di 1 in tab
|
||||
UPDATE ContatoriUdc
|
||||
SET LastIdx = LastIdx + 1
|
||||
WHERE CodCS = @CodCS
|
||||
AND Flusso = @Flusso
|
||||
AND Anno = @Anno
|
||||
END
|
||||
ELSE
|
||||
BEGIN
|
||||
-- lo creo!
|
||||
INSERT INTO ContatoriUdc(CodCS, Flusso, Anno, LastIdx)
|
||||
VALUES (@CodCS, @Flusso, @Anno, 1)
|
||||
END
|
||||
-- aggiorno numero UDC
|
||||
SET @numUdc = (
|
||||
SELECT LastIdx
|
||||
FROM ContatoriUdc
|
||||
WHERE CodCS = @CodCS
|
||||
AND Flusso = @Flusso
|
||||
AND Anno = @Anno
|
||||
)
|
||||
COMMIT TRAN
|
||||
------------------------------------------------------------------------------------------------------
|
||||
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- Ciclo principale x inserimento nuovo record
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- ottengo il nuovo codice UDC completo
|
||||
--SET @UDC = 'U' + @CodCS + @Flusso + @Anno + dbo.f_padLeft(CAST(@numUdc AS VARCHAR(6)), 6, '0')
|
||||
SET @UDC = dbo.componiUdc(@CodCS, @Flusso, @Anno, @numUdc)
|
||||
|
||||
-- inserisco un nuovo record
|
||||
INSERT INTO ElencoCartellini(CodCS, UDC, Tara, IdxPosizione, Qta, CodImballo, CreateDate, ModDate)
|
||||
VALUES (@CodCS, @UDC, @Tara, 0, 0, @CodImballo, GETDATE(), GETDATE())
|
||||
------------------------------------------------------------------------------------------------------
|
||||
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- restituisco la tab dati con l'udc appena inserito
|
||||
------------------------------------------------------------------------------------------------------
|
||||
SELECT *
|
||||
FROM ElencoCartellini
|
||||
WHERE UDC = @UDC
|
||||
------------------------------------------------------------------------------------------------------
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_UDC_insNewFull
|
||||
*
|
||||
* crea un nuovo record nella TabStatoOdpUdc FULL (con pesi, qta...) e restituisce il codice UDC appena creato
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.04.28
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE stp_UDC_insNewFull
|
||||
(
|
||||
@CodCS VARCHAR(2),
|
||||
@Flusso VARCHAR(2),
|
||||
@Anno VARCHAR(2),
|
||||
@CodCliente VARCHAR(6),
|
||||
@Particolare VARCHAR(15),
|
||||
@CodImpianto AS VARCHAR(50),
|
||||
@CodStampo VARCHAR(8),
|
||||
@Esponente VARCHAR(6),
|
||||
@Figura VARCHAR(4),
|
||||
@DataFus DATETIME,
|
||||
@TurnoFus INT,
|
||||
@CodImballo VARCHAR(15),
|
||||
@CodSoggetto VARCHAR(17),
|
||||
@Tara FLOAT,
|
||||
@IdxPosizione INT,
|
||||
@CodTipoDichiaraz CHAR(1),
|
||||
@CodEvento VARCHAR(10),
|
||||
@Qta DECIMAL(10,2),
|
||||
@PesoTot FLOAT,
|
||||
@PesoCad FLOAT,
|
||||
@CodStato VARCHAR(50),
|
||||
@UDC_parent VARCHAR(20)
|
||||
)
|
||||
AS
|
||||
|
||||
-- DECLARE iniziali
|
||||
DECLARE @UDC AS VARCHAR(20)
|
||||
DECLARE @RagSociale AS VARCHAR(35)
|
||||
DECLARE @DescParticolare AS VARCHAR(30)
|
||||
DECLARE @DescImpianto AS VARCHAR(50)
|
||||
DECLARE @DisegnoGrezzo AS VARCHAR(30)
|
||||
DECLARE @NumCont AS INT
|
||||
DECLARE @numFlu AS INT
|
||||
DECLARE @numUdc AS INT
|
||||
DECLARE @nextUdc AS INT
|
||||
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- Caricamento Dati da anagrafica
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- cerco la ragione sociale...
|
||||
SET @RagSociale = (
|
||||
SELECT ISNULL(RagSociale, 'ND') AS RagSociale
|
||||
FROM RilPro.AnagClienti
|
||||
WHERE (CodCliente = @CodCliente)
|
||||
)
|
||||
|
||||
-- Cerco descrizione del particolare...
|
||||
SET @DescParticolare = (
|
||||
SELECT ISNULL(DescParticolare, 'ND') AS DescParticolare
|
||||
FROM RilPro.AnagParticolari
|
||||
WHERE (Particolare = @Particolare)
|
||||
)
|
||||
|
||||
-- cerco codice disegno grezzo
|
||||
SET @DisegnoGrezzo = (
|
||||
SELECT ISNULL(DisegnoGrezzo, 'ND') AS DescParticolare
|
||||
FROM RilPro.AnagParticolari
|
||||
WHERE (Particolare = @Particolare)
|
||||
)
|
||||
|
||||
-- cerco descrizione Impianto
|
||||
SET @DescImpianto = (
|
||||
SELECT ISNULL(DescImpianto, 'ND') AS DescImpianto
|
||||
FROM AnagImpianti
|
||||
WHERE (CodImpianto = @CodImpianto)
|
||||
)
|
||||
|
||||
|
||||
|
||||
-- Calcolo contatore intero successivo x il contenitore...
|
||||
SET @NumCont = (
|
||||
SELECT ISNULL(MAX(NumCont), 0) + 1 AS NumCont
|
||||
FROM ElencoCartellini
|
||||
WHERE (Particolare = @Particolare)
|
||||
AND (DataFus = @DataFus)
|
||||
AND (TurnoFus = @TurnoFus)
|
||||
AND (CodImpianto = @CodImpianto)
|
||||
AND (CodStampo = @CodStampo)
|
||||
AND (Figura = @Figura)
|
||||
)
|
||||
|
||||
|
||||
------------------------------------------------------------------------------------------------------
|
||||
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- Flusso
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- controllo se esiste il flusso (bilancia)...
|
||||
SET @numFlu = (
|
||||
SELECT count(*)
|
||||
FROM AnagBilance
|
||||
WHERE CodBilancia = @Flusso
|
||||
)
|
||||
-- ...sennò lo creo...
|
||||
IF(@numFlu = 0)
|
||||
BEGIN
|
||||
-- se c'è inserisco in tab
|
||||
INSERT INTO AnagBilance(CodBilancia, DescrImpianto, CodCS)
|
||||
VALUES (@Flusso, @Flusso, @CodCS)
|
||||
END
|
||||
------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- UDC
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- controllo se ci sia già un UDC per company / flusso anno
|
||||
BEGIN TRAN
|
||||
-- cerco nella tab contatori UDC l'ultimo valido
|
||||
SET @numUdc = (
|
||||
SELECT count(*)
|
||||
FROM ContatoriUdc
|
||||
WHERE CodCS = @CodCS
|
||||
AND Flusso = @Flusso
|
||||
AND Anno = @Anno
|
||||
)
|
||||
-- controllo se record c'è...
|
||||
IF(@numUdc > 0)
|
||||
BEGIN
|
||||
-- se c'è incremento di 1 in tab
|
||||
UPDATE ContatoriUdc
|
||||
SET LastIdx = LastIdx + 1
|
||||
WHERE CodCS = @CodCS
|
||||
AND Flusso = @Flusso
|
||||
AND Anno = @Anno
|
||||
END
|
||||
ELSE
|
||||
BEGIN
|
||||
-- lo creo!
|
||||
INSERT INTO ContatoriUdc(CodCS, Flusso, Anno, LastIdx)
|
||||
VALUES (@CodCS, @Flusso, @Anno, 1)
|
||||
END
|
||||
-- aggiorno numero UDC
|
||||
SET @numUdc = (
|
||||
SELECT LastIdx
|
||||
FROM ContatoriUdc
|
||||
WHERE CodCS = @CodCS
|
||||
AND Flusso = @Flusso
|
||||
AND Anno = @Anno
|
||||
)
|
||||
COMMIT TRAN
|
||||
------------------------------------------------------------------------------------------------------
|
||||
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- Ciclo principale x inserimento nuovo record
|
||||
------------------------------------------------------------------------------------------------------
|
||||
BEGIN TRAN
|
||||
-- ottengo il nuovo codice UDC completo
|
||||
--SET @UDC = 'U' + @CodCS + @Flusso + @Anno + dbo.f_padLeft(CAST(@numUdc AS VARCHAR(6)), 6, '0')
|
||||
SET @UDC = dbo.componiUdc(@CodCS, @Flusso, @Anno, @numUdc)
|
||||
|
||||
|
||||
-- inserisco un nuovo record
|
||||
INSERT INTO ElencoCartellini(UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate)
|
||||
VALUES (@UDC, @CodCS, @CodCliente, @RagSociale, @Particolare, @DescParticolare, @DisegnoGrezzo, @Esponente, @CodImpianto, @DescImpianto, @CodStampo, @Figura, @DataFus, @TurnoFus, @CodImballo, @CodSoggetto, @NumCont, @Tara, @Qta, @CodStato, @IdxPosizione, @PesoTot, @PesoCad, GETDATE(), GETDATE())
|
||||
|
||||
-- inserisco relazione aprent-child tra UDC vecchio (tara) e nuovo (pesa)
|
||||
INSERT INTO RelazUDC(UDC_parent, UDC_child)
|
||||
VALUES (@UDC_parent, @UDC)
|
||||
COMMIT TRAN
|
||||
------------------------------------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- Salvataggio dati evento in tab StoricoEventi
|
||||
------------------------------------------------------------------------------------------------------
|
||||
INSERT INTO StoricoEventi(DataEv, CodEvento, CodOperatore, CodTipoDichiaraz, CodCS, UDC, Qta, PesoTot, PesoCad, Particolare, CodStato, CodStampo, Figura, FiguraIncisa)
|
||||
VALUES (GETDATE(), @CodEvento, @CodOperatore, @CodTipoDichiaraz, @CodCS, @UDC, @Qta, @PesoTot, @PesoCad, @Particolare, @CodStato, @CodStampo, @Figura, @FiguraIncisa)
|
||||
------------------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
------------------------------------------------------------------------------------------------------
|
||||
-- restituisco la tab dati con l'udc appena inserito
|
||||
------------------------------------------------------------------------------------------------------
|
||||
SELECT *
|
||||
FROM ElencoCartellini
|
||||
WHERE UDC = @UDC
|
||||
------------------------------------------------------------------------------------------------------
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
-- aggiungo stato MP
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
INSERT INTO dbo.AnagStatiProdotto
|
||||
VALUES (N'MP', N'Materia Prima')
|
||||
go
|
||||
|
||||
commit transaction
|
||||
go
|
||||
|
||||
|
||||
|
||||
-- aggiunta indici e chiavi...
|
||||
|
||||
|
||||
-- registro versione...
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -20,6 +20,7 @@ public class reportPrinter
|
||||
#region area codice da non modificare
|
||||
|
||||
private int m_currentPageIndex;
|
||||
protected int logLevel = 0;
|
||||
private IList<Stream> m_streams;
|
||||
/// <summary>
|
||||
/// ciclo da fornire al renderizzatore dei report, per salvare 1 immagine da ogni pagina del report
|
||||
@@ -234,12 +235,73 @@ public class reportPrinter
|
||||
Dispose();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua la stampa del cartellino indicato
|
||||
/// </summary>
|
||||
/// <param name="cartellino"></param>
|
||||
/// <param name="UDC"></param>
|
||||
/// <param name="answ"></param>
|
||||
/// <returns></returns>
|
||||
public bool stampaCartellino(tipoCartellino cartellino, string UDC)
|
||||
{
|
||||
bool answ = false;
|
||||
string printerName = "";
|
||||
string outForm = "";
|
||||
string pagWidth = "";
|
||||
string pagHeigth = "";
|
||||
string margin = "";
|
||||
reportRichiesto report = reportRichiesto.CartellinoPesa;
|
||||
switch (cartellino)
|
||||
{
|
||||
case tipoCartellino.MP:
|
||||
printerName = memLayer.ML.confReadString("printerCartMP");
|
||||
outForm = "EMF";
|
||||
pagWidth = memLayer.ML.confReadString("PageWidthCartMP");
|
||||
pagHeigth = memLayer.ML.confReadString("PageHeightCartMP");
|
||||
margin = memLayer.ML.confReadString("MarginMP");
|
||||
report = reportRichiesto.CartellinoMP;
|
||||
break;
|
||||
case tipoCartellino.soloTara:
|
||||
printerName = memLayer.ML.confReadString("printerCartTara");
|
||||
outForm = "EMF";
|
||||
pagWidth = memLayer.ML.confReadString("PageWidthCartTara");
|
||||
pagHeigth = memLayer.ML.confReadString("PageHeightCartTara");
|
||||
margin = memLayer.ML.confReadString("MarginTara");
|
||||
report = reportRichiesto.CartellinoTara;
|
||||
break;
|
||||
case tipoCartellino.completo:
|
||||
printerName = memLayer.ML.confReadString("printerCartCompleto");
|
||||
outForm = "EMF";
|
||||
pagWidth = memLayer.ML.confReadString("PageWidthCartCompleto");
|
||||
pagHeigth = memLayer.ML.confReadString("PageHeightCartCompleto");
|
||||
margin = memLayer.ML.confReadString("MarginCompleto");
|
||||
report = reportRichiesto.CartellinoPesa;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
devInfoParam deviceInfo = new devInfoParam(outForm, pagHeigth, pagWidth, margin, margin, margin, margin);
|
||||
try
|
||||
{
|
||||
if (logLevel > 5) logger.lg.scriviLog(String.Format("Sto per inviare un report alla stampante {0}", printerName), tipoLog.INFO);
|
||||
reportPrinter.obj.printReport(report, printerName, UDC, deviceInfo);
|
||||
if (logLevel > 5) logger.lg.scriviLog(String.Format("inviato comando print alla stampante {0}", printerName), tipoLog.INFO);
|
||||
answ = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(String.Format("Errore in fase di creazione e stampa report: stampante {0}, errore riscontrato {1}", printerName, e), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// oggetto protected
|
||||
/// </summary>
|
||||
/// <param name="args"></param>
|
||||
protected reportPrinter()
|
||||
{
|
||||
logLevel = memLayer.ML.confReadInt("_logLevel");
|
||||
}
|
||||
/// <summary>
|
||||
/// singleton pubblico
|
||||
@@ -253,6 +315,7 @@ public class reportPrinter
|
||||
/// </summary>
|
||||
public enum reportRichiesto
|
||||
{
|
||||
CartellinoMP,
|
||||
CartellinoPesa,
|
||||
//CartellinoProduzione,
|
||||
CartellinoTara
|
||||
|
||||
@@ -83,6 +83,7 @@ namespace GMW_data
|
||||
}
|
||||
public enum tipoCartellino
|
||||
{
|
||||
MP,
|
||||
soloTara,
|
||||
completo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user