Merge branch 'develop'
This commit is contained in:
@@ -33,14 +33,14 @@ Global
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.SP_prod|Any CPU.ActiveCfg = SP_prod|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.SP_prod|Any CPU.Build.0 = SP_prod|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.SP_test|Any CPU.ActiveCfg = SP_test|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.SP_test|Any CPU.Build.0 = SP_test|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_prod|Any CPU.ActiveCfg = TK_prod|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_prod|Any CPU.Build.0 = TK_prod|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_test|Any CPU.ActiveCfg = TK_test|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_test|Any CPU.Build.0 = TK_test|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.SP_prod|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.SP_prod|Any CPU.Build.0 = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.SP_test|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.SP_test|Any CPU.Build.0 = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_prod|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_prod|Any CPU.Build.0 = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_test|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_test|Any CPU.Build.0 = Release|Any CPU
|
||||
{47143721-A018-4BDA-B544-EC3E10BC87A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{47143721-A018-4BDA-B544-EC3E10BC87A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{47143721-A018-4BDA-B544-EC3E10BC87A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
||||
Binary file not shown.
@@ -1286,6 +1286,7 @@
|
||||
<Content Include="packages.config" />
|
||||
<Content Include="PDF\PlaceHolder.file" />
|
||||
<Content Include="temp\PlaceHolder.file" />
|
||||
<None Include="Docs\DM_Dettaglio campi etichetta odette Tekal.doc" />
|
||||
<None Include="images\Thumbs.db" />
|
||||
<None Include="setupTgt.bat" />
|
||||
<Content Include="images\resetBozza.png" />
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3,11 +3,7 @@
|
||||
<DataSources>
|
||||
<DataSource Name="GMWConnectionString">
|
||||
<rd:DataSourceID>945313fa-66e9-456e-b1dd-514d7a9e9842</rd:DataSourceID>
|
||||
<ConnectionProperties>
|
||||
<DataProvider>SQL</DataProvider>
|
||||
<ConnectString>Data Source=SRV65;Initial Catalog=SP_GMW</ConnectString>
|
||||
<IntegratedSecurity>true</IntegratedSecurity>
|
||||
</ConnectionProperties>
|
||||
<DataSourceReference>GMW_Test</DataSourceReference>
|
||||
</DataSource>
|
||||
</DataSources>
|
||||
<InteractiveHeight>14.8cm</InteractiveHeight>
|
||||
@@ -17,7 +13,7 @@
|
||||
<DataType>String</DataType>
|
||||
<DefaultValue>
|
||||
<Values>
|
||||
<Value>UMAB210000007</Value>
|
||||
<Value>UTKFI13000658</Value>
|
||||
</Values>
|
||||
</DefaultValue>
|
||||
<Prompt>UDC</Prompt>
|
||||
@@ -408,10 +404,45 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<DataField>Campo16_5</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="StatoOk">
|
||||
<DataField>StatoOk</DataField>
|
||||
<rd:TypeName>System.Boolean</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodCS">
|
||||
<DataField>CodCS</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodMag">
|
||||
<DataField>CodMag</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="GrpBolla">
|
||||
<DataField>GrpBolla</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="DataBolla">
|
||||
<DataField>DataBolla</DataField>
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="NumBolla">
|
||||
<DataField>NumBolla</DataField>
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Particolare">
|
||||
<DataField>Particolare</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodLista">
|
||||
<DataField>CodLista</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
</Fields>
|
||||
<Query>
|
||||
<DataSourceName>GMWConnectionString</DataSourceName>
|
||||
<CommandText>SELECT
|
||||
<CommandText>Execute stp_ODETTE_getByUDC @UDC
|
||||
|
||||
/*
|
||||
SELECT
|
||||
'U000000001' AS CampoUDC
|
||||
|
||||
,'Receiver' AS Campo1_1
|
||||
@@ -516,7 +547,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
,'Campo16_4' AS Campo16_4
|
||||
,'Campo16_5' AS Campo16_5
|
||||
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
SELECT
|
||||
@@ -839,6 +870,11 @@ SELECT
|
||||
-- FROM Test
|
||||
|
||||
*/</CommandText>
|
||||
<QueryParameters>
|
||||
<QueryParameter Name="@UDC">
|
||||
<Value>=Parameters!UDC.Value</Value>
|
||||
</QueryParameter>
|
||||
</QueryParameters>
|
||||
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
|
||||
</Query>
|
||||
</DataSet>
|
||||
@@ -859,6 +895,39 @@ SELECT
|
||||
<ReportItems>
|
||||
<Rectangle Name="rectangle0">
|
||||
<ReportItems>
|
||||
<Line Name="line15">
|
||||
<Top>11cm</Top>
|
||||
<Width>0cm</Width>
|
||||
<Style>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<BorderWidth>
|
||||
<Default>0.5pt</Default>
|
||||
</BorderWidth>
|
||||
</Style>
|
||||
<ZIndex>51</ZIndex>
|
||||
<Left>15.8cm</Left>
|
||||
</Line>
|
||||
<Textbox Name="textbox28">
|
||||
<rd:DefaultName>textbox28</rd:DefaultName>
|
||||
<Top>11.2cm</Top>
|
||||
<Width>3cm</Width>
|
||||
<Style>
|
||||
<FontSize>32pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>1pt</PaddingLeft>
|
||||
<PaddingRight>1pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>50</ZIndex>
|
||||
<Left>15.9cm</Left>
|
||||
<Height>1.5cm</Height>
|
||||
<Value>=IIF( UCase(Fields!Campo16_5.Value)="S" , "AQP", "" )</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox27">
|
||||
<Top>11.5cm</Top>
|
||||
<Width>5.8cm</Width>
|
||||
@@ -999,7 +1068,7 @@ SELECT
|
||||
<Textbox Name="Campo16_2">
|
||||
<rd:DefaultName>Campo16_2</rd:DefaultName>
|
||||
<Top>11.4cm</Top>
|
||||
<Width>9.3cm</Width>
|
||||
<Width>6.2cm</Width>
|
||||
<Style>
|
||||
<FontSize>16pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
@@ -1077,7 +1146,7 @@ SELECT
|
||||
</Textbox>
|
||||
<Textbox Name="textbox22">
|
||||
<Top>11cm</Top>
|
||||
<Width>9.4cm</Width>
|
||||
<Width>6.2cm</Width>
|
||||
<Style>
|
||||
<FontSize>6pt</FontSize>
|
||||
<PaddingLeft>0.5pt</PaddingLeft>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3,11 +3,7 @@
|
||||
<DataSources>
|
||||
<DataSource Name="GMWConnectionString">
|
||||
<rd:DataSourceID>945313fa-66e9-456e-b1dd-514d7a9e9842</rd:DataSourceID>
|
||||
<ConnectionProperties>
|
||||
<DataProvider>SQL</DataProvider>
|
||||
<ConnectString>Data Source=SRV65;Initial Catalog=SP_GMW</ConnectString>
|
||||
<IntegratedSecurity>true</IntegratedSecurity>
|
||||
</ConnectionProperties>
|
||||
<DataSourceReference>GMW_Test</DataSourceReference>
|
||||
</DataSource>
|
||||
</DataSources>
|
||||
<InteractiveHeight>14.8cm</InteractiveHeight>
|
||||
@@ -17,7 +13,7 @@
|
||||
<DataType>String</DataType>
|
||||
<DefaultValue>
|
||||
<Values>
|
||||
<Value>UMAB210000007</Value>
|
||||
<Value>UTKFI13000658</Value>
|
||||
</Values>
|
||||
</DefaultValue>
|
||||
<Prompt>UDC</Prompt>
|
||||
@@ -408,10 +404,45 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<DataField>Campo16_5</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="StatoOk">
|
||||
<DataField>StatoOk</DataField>
|
||||
<rd:TypeName>System.Boolean</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodCS">
|
||||
<DataField>CodCS</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodMag">
|
||||
<DataField>CodMag</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="GrpBolla">
|
||||
<DataField>GrpBolla</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="DataBolla">
|
||||
<DataField>DataBolla</DataField>
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="NumBolla">
|
||||
<DataField>NumBolla</DataField>
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Particolare">
|
||||
<DataField>Particolare</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodLista">
|
||||
<DataField>CodLista</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
</Fields>
|
||||
<Query>
|
||||
<DataSourceName>GMWConnectionString</DataSourceName>
|
||||
<CommandText>SELECT
|
||||
<CommandText>Execute stp_ODETTE_getByUDC @UDC
|
||||
|
||||
/*
|
||||
SELECT
|
||||
'U000000001' AS CampoUDC
|
||||
|
||||
,'Receiver' AS Campo1_1
|
||||
@@ -516,7 +547,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
,'Campo16_4' AS Campo16_4
|
||||
,'Campo16_5' AS Campo16_5
|
||||
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
SELECT
|
||||
@@ -839,6 +870,11 @@ SELECT
|
||||
-- FROM Test
|
||||
|
||||
*/</CommandText>
|
||||
<QueryParameters>
|
||||
<QueryParameter Name="@UDC">
|
||||
<Value>=Parameters!UDC.Value</Value>
|
||||
</QueryParameter>
|
||||
</QueryParameters>
|
||||
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
|
||||
</Query>
|
||||
</DataSet>
|
||||
@@ -859,6 +895,39 @@ SELECT
|
||||
<ReportItems>
|
||||
<Rectangle Name="rectangle0">
|
||||
<ReportItems>
|
||||
<Line Name="line15">
|
||||
<Top>11cm</Top>
|
||||
<Width>0cm</Width>
|
||||
<Style>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<BorderWidth>
|
||||
<Default>0.5pt</Default>
|
||||
</BorderWidth>
|
||||
</Style>
|
||||
<ZIndex>51</ZIndex>
|
||||
<Left>15.8cm</Left>
|
||||
</Line>
|
||||
<Textbox Name="textbox28">
|
||||
<rd:DefaultName>textbox28</rd:DefaultName>
|
||||
<Top>11.2cm</Top>
|
||||
<Width>3cm</Width>
|
||||
<Style>
|
||||
<FontSize>32pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>1pt</PaddingLeft>
|
||||
<PaddingRight>1pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>50</ZIndex>
|
||||
<Left>15.9cm</Left>
|
||||
<Height>1.5cm</Height>
|
||||
<Value>=IIF( UCase(Fields!Campo16_5.Value)="S" , "AQP", "" )</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox27">
|
||||
<Top>11.5cm</Top>
|
||||
<Width>5.8cm</Width>
|
||||
@@ -999,7 +1068,7 @@ SELECT
|
||||
<Textbox Name="Campo16_2">
|
||||
<rd:DefaultName>Campo16_2</rd:DefaultName>
|
||||
<Top>11.4cm</Top>
|
||||
<Width>9.3cm</Width>
|
||||
<Width>6.2cm</Width>
|
||||
<Style>
|
||||
<FontSize>16pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
@@ -1077,7 +1146,7 @@ SELECT
|
||||
</Textbox>
|
||||
<Textbox Name="textbox22">
|
||||
<Top>11cm</Top>
|
||||
<Width>9.4cm</Width>
|
||||
<Width>6.2cm</Width>
|
||||
<Style>
|
||||
<FontSize>6pt</FontSize>
|
||||
<PaddingLeft>0.5pt</PaddingLeft>
|
||||
|
||||
+4
-3
@@ -598,7 +598,7 @@
|
||||
background-repeat: repeat-x;
|
||||
background-position: 0% 0%;
|
||||
background-attachment: scroll;
|
||||
background-image: url(images/orangeGrad32.png);
|
||||
background-image: url(images/bluGrad32.png);
|
||||
}
|
||||
.ShadowText
|
||||
{
|
||||
@@ -690,7 +690,7 @@
|
||||
}
|
||||
.barraTitolo
|
||||
{
|
||||
background-color: #FF904C;
|
||||
background-color: #4C90FF;
|
||||
vertical-align: middle;
|
||||
height: 20pt;
|
||||
text-align: center;
|
||||
@@ -1023,6 +1023,7 @@ A:hover
|
||||
|
||||
|
||||
|
||||
|
||||
.fontPiccolo
|
||||
{
|
||||
font-size: 8pt;
|
||||
@@ -1033,7 +1034,7 @@ A:hover
|
||||
}
|
||||
.fontGrande
|
||||
{
|
||||
font-size: 14pt;
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
.divCenter
|
||||
|
||||
+58
-57
@@ -3,7 +3,7 @@
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an atrribute "name" that has a value of "MyDB".
|
||||
@@ -14,63 +14,64 @@
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<appSettings>
|
||||
<appSettings>
|
||||
|
||||
<!--Setup applicazione-->
|
||||
<add key="_titoloPagina" value="GMW - Fonderie Mazzucconi S.p.A, portale Gestione Magazzino Web" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="SiteName" value="San Possidonio" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="urlWebServer" value="http://SRV-PRODSP01/GMW/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
<add key="CodImballoLiquidi" value="IF10" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="CodImballoLiquidiDaSpedire" value="IF18" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoLiquidi" value="100" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoLiquidiDaSpedire" value="60" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="CodImballoAnime" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoAnime" value="0" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup urls stampa reports-->
|
||||
<add key="reportingServerAddress" value="SRV65:8282" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="reportDir" value="POSSIDONIO/MAGAZZINO" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="reportName" value="Lista_di_Prelievo" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosNewFusi" value="7" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewWip" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewRienTerz" value="30" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewFinito" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneOdette" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattamenti" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneLiquidi" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup stampa cartellini-->
|
||||
<add key="printerCartCompleto" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartAnime" value="\\SRV-PRODSP01\MPC2500-Copy"/>
|
||||
<add key="printerCartFiniti" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartFusi" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartLiquidiF10" value="\\WS-0551\HP1320-Liquidi" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartLiquidiF18" value="\\WS-0551\HP1320-Liquidi" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartMP" value="\\WS-0551\HP1320-MP" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartOdette" value="\\SRV-PRODSP01\SP4100NL-Odette" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartTara" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartWip" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!-- setup odette -->
|
||||
<add key="indStabFrom" value="via Don Minzoni,14 I-41039 S.Possidonio MO" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup installazione-->
|
||||
<add key="CodCS" value="SP" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_adminEmail" value="giancarlo@steamware.net" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_smtpCli" value="SRV64" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="GMWConnectionString" value="Data Source=SRV65;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="SP_produzioneConnectionString" value="Data Source=SRV65;Initial Catalog=ProduzionePossidonio;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SRV65;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SRV65;Initial Catalog=SP_Anagrafica;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SRV65;Initial Catalog=SP_Vocabolario;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=SRV65;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
|
||||
<!--Setup applicazione-->
|
||||
<add key="_titoloPagina" value="GMW - Fonderie Mazzucconi S.p.A, portale Gestione Magazzino Web" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="SiteName" value="San Possidonio" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="urlWebServer" value="http://SRV-PRODSP01/GMW/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
<add key="CodImballoLiquidi" value="IF10" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="CodImballoLiquidiDaSpedire" value="IF18" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoLiquidi" value="100" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoLiquidiDaSpedire" value="60" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="CodImballoAnime" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoAnime" value="0" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup urls stampa reports-->
|
||||
<add key="reportingServerAddress" value="SRV65:8282" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="reportDir" value="POSSIDONIO/MAGAZZINO" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="reportName" value="Lista_di_Prelievo" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosNewFusi" value="7" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewWip" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewRienTerz" value="30" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewFinito" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneOdette" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattamenti" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneLiquidi" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup stampa cartellini-->
|
||||
<add key="printerCartCompleto" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartAnime" value="\\SRV-PRODSP01\MPC2500-Copy"/>
|
||||
<add key="printerCartFiniti" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartFusi" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartLiquidiF10" value="\\WS-0551\HP1320-Liquidi" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartLiquidiF18" value="\\WS-0551\HP1320-Liquidi" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartMP" value="\\WS-0551\HP1320-MP" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartOdette" value="\\SRV-PRODSP01\SP4100NL-Odette" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartTara" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartWip" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!-- setup odette -->
|
||||
<add key="raggMagOdette" value="SP" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="indStabFrom" value="via Don Minzoni,14 I-41039 S.Possidonio MO" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup installazione-->
|
||||
<add key="CodCS" value="SP" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_adminEmail" value="giancarlo@steamware.net" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_smtpCli" value="SRV64" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="GMWConnectionString" value="Data Source=SRV65;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="SP_produzioneConnectionString" value="Data Source=SRV65;Initial Catalog=ProduzionePossidonio;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SRV65;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SRV65;Initial Catalog=SP_Anagrafica;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SRV65;Initial Catalog=SP_Vocabolario;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=SRV65;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
|
||||
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
@@ -81,5 +82,5 @@
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</system.web>
|
||||
</configuration>
|
||||
+59
-58
@@ -3,7 +3,7 @@
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an atrribute "name" that has a value of "MyDB".
|
||||
@@ -14,62 +14,63 @@
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
</connectionStrings>
|
||||
-->
|
||||
<appSettings>
|
||||
<!--Setup applicazione-->
|
||||
<add key="_titoloPagina" value="GMW - Fonderie Mazzucconi S.p.A, portale Gestione Magazzino Web" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="titleApp" value="GMW_titleAppTEST" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="SiteName" value="San Possidonio" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="urlWebServer" value="http://SRV-PRODSP01/GMW/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
<add key="CodImballoLiquidi" value="IF10" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="CodImballoLiquidiDaSpedire" value="IF18" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoLiquidi" value="100" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoLiquidiDaSpedire" value="60" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="CodImballoAnime" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoAnime" value="0" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup urls stampa reports-->
|
||||
<add key="reportingServerAddress" value="SRV65:8282" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="reportDir" value="POSSIDONIO/MAGAZZINO" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="reportName" value="Lista_di_Prelievo_Test" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosNewFusi" value="7" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewWip" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewRienTerz" value="30" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewFinito" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneOdette" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattamenti" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneLiquidi" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup stampa cartellini-->
|
||||
<add key="printerCartCompleto" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartAnime" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartFiniti" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartFusi" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartLiquidiF10" value="\\SRV-PRODSP01\HP1320-Liquidi" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartLiquidiF18" value="\\SRV-PRODSP01\HP1320-Liquidi" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartMP" value="\\SRV-PRODSP01\HP1320-MP" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartOdette" value="\\SRV-PRODSP01\SP4100NL-Odette" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartTara" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartWip" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!-- setup odette -->
|
||||
<add key="indStabFrom" value="via Don Minzoni,14 I-41039 S.Possidonio MO" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup installazione-->
|
||||
<add key="CodCS" value="SP" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_adminEmail" value="giancarlo@steamware.net" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_smtpCli" value="SRV64" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="GMWConnectionString" value="Data Source=SRV65;Initial Catalog=SP_GMWTest;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="SP_produzioneConnectionString" value="Data Source=SRV65;Initial Catalog=ProduzionePossidonioTest;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SRV65;Initial Catalog=SP_GMWTest;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SRV65;Initial Catalog=SP_Anagrafica;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SRV65;Initial Catalog=SP_Vocabolario;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=SRV65;Initial Catalog=SP_GMWTest;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
<appSettings>
|
||||
<!--Setup applicazione-->
|
||||
<add key="_titoloPagina" value="GMW - Fonderie Mazzucconi S.p.A, portale Gestione Magazzino Web" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="titleApp" value="GMW_titleAppTEST" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="SiteName" value="San Possidonio" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="urlWebServer" value="http://SRV-PRODSP01/GMW/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
<add key="CodImballoLiquidi" value="IF10" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="CodImballoLiquidiDaSpedire" value="IF18" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoLiquidi" value="100" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoLiquidiDaSpedire" value="60" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="CodImballoAnime" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="QtaImballoAnime" value="0" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup urls stampa reports-->
|
||||
<add key="reportingServerAddress" value="SRV65:8282" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="reportDir" value="POSSIDONIO/MAGAZZINO" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="reportName" value="Lista_di_Prelievo_Test" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosNewFusi" value="7" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewWip" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewRienTerz" value="30" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosNewFinito" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneOdette" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattamenti" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneLiquidi" value="4" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup stampa cartellini-->
|
||||
<add key="printerCartCompleto" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartAnime" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartFiniti" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartFusi" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartLiquidiF10" value="\\SRV-PRODSP01\HP1320-Liquidi" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartLiquidiF18" value="\\SRV-PRODSP01\HP1320-Liquidi" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartMP" value="\\SRV-PRODSP01\HP1320-MP" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartOdette" value="\\SRV-PRODSP01\SP4100NL-Odette" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartTara" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartWip" value="\\SRV-PRODSP01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!-- setup odette -->
|
||||
<add key="raggMagOdette" value="SP" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="indStabFrom" value="via Don Minzoni,14 I-41039 S.Possidonio MO" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup installazione-->
|
||||
<add key="CodCS" value="SP" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_adminEmail" value="giancarlo@steamware.net" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_smtpCli" value="SRV64" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="GMWConnectionString" value="Data Source=SRV65;Initial Catalog=SP_GMWTest;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="SP_produzioneConnectionString" value="Data Source=SRV65;Initial Catalog=ProduzionePossidonioTest;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SRV65;Initial Catalog=SP_GMWTest;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SRV65;Initial Catalog=SP_Anagrafica;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SRV65;Initial Catalog=SP_Vocabolario;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=SRV65;Initial Catalog=SP_GMWTest;Persist Security Info=True;User ID=connGMW;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
@@ -80,5 +81,5 @@
|
||||
<error statusCode="500" redirect="InternalError.htm" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</system.web>
|
||||
</configuration>
|
||||
@@ -56,6 +56,7 @@
|
||||
<add key="printerCartWip" value="\\SRV-DEV01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="PageHeightCartMP" value="14.8cm" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!-- setup odette -->
|
||||
<add key="raggMagOdette" value="TE" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="indStabFrom" value="Via Po,55 I-66020 San Giovanni Teatino CH" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup installazione-->
|
||||
<add key="CodCS" value="TK" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
|
||||
@@ -57,7 +57,8 @@
|
||||
<add key="printerCartWip" value="\\SRV-DEV01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="PageHeightCartMP" value="14.8cm" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!-- setup odette -->
|
||||
<add key="indStabFrom" value="Via Po,55 I-66020 San Giovanni Teatino CH" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="raggMagOdette" value="TE" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="indStabFrom" value="TEKAL S.P.A. S.Giovanni Teatino CHIETI" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup installazione-->
|
||||
<add key="CodCS" value="TK" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_adminEmail" value="giancarlo@steamware.net" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
|
||||
+4
-3
@@ -61,7 +61,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="Tekal" />
|
||||
<add key="mainRev" value="2.2" />
|
||||
<add key="minRev" value="535" />
|
||||
<add key="minRev" value="550" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2013" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
@@ -219,6 +219,7 @@
|
||||
<add key="cmdEsci" value="CMDESCI" />
|
||||
<add key="cmdFast" value="CMDFAST" />
|
||||
<!-- setup odette -->
|
||||
<add key="raggMagOdette" value="TK"/>
|
||||
<add key="qtaOdette" value="18" />
|
||||
<add key="indStabFrom" value="Via Po,55 I-66020 San Giovanni Teatino CH" />
|
||||
<!--setup gestione stampa postazione cartellini-->
|
||||
@@ -277,10 +278,10 @@
|
||||
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<!--<dependentAssembly>
|
||||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
|
||||
</dependentAssembly>
|
||||
</dependentAssembly>-->
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.serviceModel>
|
||||
|
||||
@@ -17,7 +17,10 @@ namespace GMW.WebUserControls
|
||||
lblDataBolla.Text = "Data Bolla";
|
||||
lblNumBolla.Text = "Num Bolla";
|
||||
lblWarning.Text = "";
|
||||
txtRaggMag.Text = memLayer.ML.StringSessionObj("CodCS");
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
txtRaggMag.Text = memLayer.ML.confReadString("raggMagOdette");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_manSAO.ascx.cs"
|
||||
Inherits="GMW.WebUserControls.mod_manSAO" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_manSAO.ascx.cs" Inherits="GMW.WebUserControls.mod_manSAO" %>
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %>
|
||||
@@ -11,10 +10,10 @@
|
||||
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" />
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroPostazione" runat="server" changeSelEnabled="true" changeCheckEnabled="true"
|
||||
isChecked="false" changeCheckVisible="true" comboWidth="160" filterChekText="filtraPostazione" />
|
||||
<asp:ObjectDataSource ID="odsPostazione" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByDateRange" TypeName="GMW_data.DS_UtilityTableAdapters.v_selPostazioniTableAdapter">
|
||||
<uc1:mod_filtro ID="filtroPostazione" runat="server" changeSelEnabled="true" changeCheckEnabled="true" isChecked="false"
|
||||
changeCheckVisible="true" comboWidth="160" filterChekText="filtraPostazione" />
|
||||
<asp:ObjectDataSource ID="odsPostazione" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDateRange"
|
||||
TypeName="GMW_data.DS_UtilityTableAdapters.v_selPostazioniTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="DataOraFrom" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="DataOraTo" SessionField="_fine" Type="DateTime" />
|
||||
@@ -22,10 +21,10 @@
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroSoggetto" runat="server" changeSelEnabled="true" changeCheckEnabled="true"
|
||||
isChecked="false" changeCheckVisible="true" comboWidth="120" filterChekText="filtraSoggetto" />
|
||||
<asp:ObjectDataSource ID="odsSoggetto" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByDateRange" TypeName="GMW_data.DS_UtilityTableAdapters.v_selSoggettiTableAdapter">
|
||||
<uc1:mod_filtro ID="filtroSoggetto" runat="server" changeSelEnabled="true" changeCheckEnabled="true" isChecked="false" changeCheckVisible="true"
|
||||
comboWidth="120" filterChekText="filtraSoggetto" />
|
||||
<asp:ObjectDataSource ID="odsSoggetto" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDateRange"
|
||||
TypeName="GMW_data.DS_UtilityTableAdapters.v_selSoggettiTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="DataOraFrom" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="DataOraTo" SessionField="_fine" Type="DateTime" />
|
||||
@@ -38,17 +37,16 @@
|
||||
</div>
|
||||
<div class="filtro_2" style="white-space: nowrap; height: 28px; padding: 2px; font-size: 8pt;">
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroAzioni" runat="server" changeSelEnabled="true" changeCheckEnabled="true"
|
||||
isChecked="false" changeCheckVisible="true" comboWidth="130" filterChekText="filtraAzioniUdc" />
|
||||
<asp:ObjectDataSource ID="odsAzioni" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="GMW_data.DS_UtilityTableAdapters.v_selAzioniUtTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
<uc1:mod_filtro ID="filtroAzioni" runat="server" changeSelEnabled="true" changeCheckEnabled="true" isChecked="false" changeCheckVisible="true"
|
||||
comboWidth="130" filterChekText="filtraAzioniUdc" />
|
||||
<asp:ObjectDataSource ID="odsAzioni" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
|
||||
TypeName="GMW_data.DS_UtilityTableAdapters.v_selAzioniUtTableAdapter"></asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroParticolare" runat="server" changeSelEnabled="true" changeCheckEnabled="true"
|
||||
isChecked="false" changeCheckVisible="true" comboWidth="140" filterChekText="filtraParticSAO" />
|
||||
<asp:ObjectDataSource ID="odsPartic" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByDateRange" TypeName="GMW_data.DS_UtilityTableAdapters.v_selPartic_SAOTableAdapter">
|
||||
<uc1:mod_filtro ID="filtroParticolare" runat="server" changeSelEnabled="true" changeCheckEnabled="true" isChecked="false"
|
||||
changeCheckVisible="true" comboWidth="140" filterChekText="filtraParticSAO" />
|
||||
<asp:ObjectDataSource ID="odsPartic" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDateRange"
|
||||
TypeName="GMW_data.DS_UtilityTableAdapters.v_selPartic_SAOTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="DataOraFrom" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="DataOraTo" SessionField="_fine" Type="DateTime" />
|
||||
@@ -56,36 +54,34 @@
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroUDC" runat="server" changeSelEnabled="true" changeCheckEnabled="true"
|
||||
isChecked="false" changeCheckVisible="true" comboWidth="100" filterChekText="filtraUdcSAO" />
|
||||
<asp:ObjectDataSource ID="odsUDC" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByDateRange" TypeName="GMW_data.DS_UtilityTableAdapters.v_selUDC_SAOTableAdapter">
|
||||
<asp:CheckBox runat="server" ID="chkFiltraUdcSAO" AutoPostBack="true" OnCheckedChanged="chkFiltraUdcSAO_CheckedChanged" />
|
||||
<asp:TextBox runat="server" ID="txtUdcSAO" AutoPostBack="true" OnTextChanged="txtUdcSAO_TextChanged" />
|
||||
<%-- <uc1:mod_filtro ID="filtroUDC" runat="server" changeSelEnabled="true" changeCheckEnabled="true" isChecked="false" changeCheckVisible="true"
|
||||
comboWidth="100" filterChekText="filtraUdcSAO" />
|
||||
<asp:ObjectDataSource ID="odsUDC" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDateRange"
|
||||
TypeName="GMW_data.DS_UtilityTableAdapters.v_selUDC_SAOTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="DataOraFrom" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="DataOraTo" SessionField="_fine" Type="DateTime" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</asp:ObjectDataSource>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filtro_3" style="white-space: nowrap; padding: 2px;">
|
||||
<asp:Panel runat="server" ID="pnlRowNum" CssClass="divDx">
|
||||
<asp:Label runat="server" ID="lblNumRighe" Text="righe per pagina" />:
|
||||
<asp:TextBox ID="txtNumRighe" runat="server" AutoPostBack="True" OnTextChanged="txtNumRighe_TextChanged"
|
||||
Width="3em" />
|
||||
<asp:TextBox ID="txtNumRighe" runat="server" AutoPostBack="True" OnTextChanged="txtNumRighe_TextChanged" Width="3em" />
|
||||
</asp:Panel>
|
||||
<div style="text-align: center; margin: auto;">
|
||||
<asp:Button runat="server" ID="btnStampa" Width="120px" Text="(ri)stampa" OnClick="btnStampa_Click"
|
||||
Visible="false" />
|
||||
<asp:Button runat="server" ID="btnElimina" Width="120px" Text="elimina" Visible="false"
|
||||
OnClick="btnElimina_Click" />
|
||||
<asp:Button runat="server" ID="btnStampa" Width="120px" Text="(ri)stampa" OnClick="btnStampa_Click" Visible="false" />
|
||||
<asp:Button runat="server" ID="btnElimina" Width="120px" Text="elimina" Visible="false" OnClick="btnElimina_Click" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 100%;">
|
||||
<div class="divSx" style="font-size: x-small;">
|
||||
<asp:GridView ID="grView" runat="server" EnableModelValidation="True" Width="100%"
|
||||
AllowPaging="True" DataSourceID="odsSAO" PageSize="10" AutoGenerateColumns="False"
|
||||
DataKeyNames="idxEvento" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<asp:GridView ID="grView" runat="server" EnableModelValidation="True" Width="100%" AllowPaging="True" DataSourceID="odsSAO"
|
||||
PageSize="10" AutoGenerateColumns="False" DataKeyNames="idxEvento" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
@@ -103,8 +99,7 @@
|
||||
<asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" Visible="true" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip="Seleziona" ImageUrl="~/images/view_m.png" />
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip="Seleziona" ImageUrl="~/images/view_m.png" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Data Ora" SortExpression="DataOra">
|
||||
@@ -114,8 +109,7 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Postazione" SortExpression="codPostazione">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPostazione" runat="server" Text='<%# Eval("codPostazione") %>'
|
||||
ToolTip='<%# Eval("clientIP") %>' />
|
||||
<asp:Label ID="lblPostazione" runat="server" Text='<%# Eval("codPostazione") %>' ToolTip='<%# Eval("clientIP") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodSoggetto" SortExpression="CodSoggetto">
|
||||
@@ -145,8 +139,8 @@
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsSAO" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getBySearch" TypeName="GMW_data.DS_magazzinoTableAdapters.StoricoAzioniOperatoreTableAdapter">
|
||||
<asp:ObjectDataSource ID="odsSAO" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getBySearch"
|
||||
TypeName="GMW_data.DS_magazzinoTableAdapters.StoricoAzioniOperatoreTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="DataOraFrom" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="DataOraTo" SessionField="_fine" Type="DateTime" />
|
||||
|
||||
@@ -253,18 +253,17 @@ namespace GMW.WebUserControls
|
||||
filtroSoggetto.ods = odsSoggetto;
|
||||
filtroAzioni.ods = odsAzioni;
|
||||
filtroParticolare.ods = odsPartic;
|
||||
filtroUDC.ods = odsUDC;
|
||||
// disattivo filtri a primo caricamento
|
||||
filtroAzioni.isChecked = false;
|
||||
filtroPostazione.isChecked = false;
|
||||
filtroSoggetto.isChecked = false;
|
||||
filtroParticolare.isChecked = false;
|
||||
filtroUDC.isChecked = false;
|
||||
// forzo a empty postazione corrente/filtro
|
||||
postazione_name = "*";
|
||||
// altri parametri
|
||||
idxEvento = -1;
|
||||
numRigheGrView = 20;
|
||||
updateFiltroUdc();
|
||||
aggiornaControlliDataGL();
|
||||
}
|
||||
setBtnState();
|
||||
@@ -272,7 +271,6 @@ namespace GMW.WebUserControls
|
||||
filtroSoggetto.eh_selValore += new EventHandler(filtroSoggetto_eh_selValore);
|
||||
filtroAzioni.eh_selValore += new EventHandler(filtroAzioni_eh_selValore);
|
||||
filtroParticolare.eh_selValore += new EventHandler(filtroParticolare_eh_selValore);
|
||||
filtroUDC.eh_selValore += new EventHandler(filtroUDC_eh_selValore);
|
||||
mod_periodoAnalisi1.eh_doUpdate += new EventHandler(mod_periodoAnalisi1_eh_doUpdate);
|
||||
traduciObj();
|
||||
}
|
||||
@@ -522,17 +520,51 @@ namespace GMW.WebUserControls
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// evento scelta UDC
|
||||
/// update UDC filtrato
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void filtroUDC_eh_selValore(object sender, EventArgs e)
|
||||
protected void txtUdcSAO_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateFiltroUdcSAO(txtUdcSAO.Text.Trim());
|
||||
}
|
||||
/// <summary>
|
||||
/// verifico filtro x UDC
|
||||
/// </summary>
|
||||
/// <param name="UDC"></param>
|
||||
private void updateFiltroUdcSAO(string _udc)
|
||||
{
|
||||
resetSelezione();
|
||||
UdcSAO = filtroUDC.valore;
|
||||
UdcSAO = _udc;
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se deve cambiare filtro x UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void chkFiltraUdcSAO_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateFiltroUdc();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistema filtro UDC
|
||||
/// </summary>
|
||||
private void updateFiltroUdc()
|
||||
{
|
||||
txtUdcSAO.Visible = chkFiltraUdcSAO.Checked;
|
||||
if (chkFiltraUdcSAO.Checked)
|
||||
{
|
||||
updateFiltroUdcSAO(txtUdcSAO.Text.Trim());
|
||||
chkFiltraUdcSAO.Text = traduci("mostraSoloSelez");
|
||||
}
|
||||
else
|
||||
{
|
||||
updateFiltroUdcSAO("*");
|
||||
chkFiltraUdcSAO.Text = traduci("filtraUdcSAO");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// evento scelta particolare
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -575,5 +607,7 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -103,22 +103,22 @@ namespace GMW.WebUserControls {
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsPartic;
|
||||
|
||||
/// <summary>
|
||||
/// filtroUDC control.
|
||||
/// chkFiltraUdcSAO control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_filtro filtroUDC;
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkFiltraUdcSAO;
|
||||
|
||||
/// <summary>
|
||||
/// odsUDC control.
|
||||
/// txtUdcSAO control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsUDC;
|
||||
protected global::System.Web.UI.WebControls.TextBox txtUdcSAO;
|
||||
|
||||
/// <summary>
|
||||
/// pnlRowNum control.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -58,7 +58,7 @@
|
||||
<add key="appName" value="GMW_Term" />
|
||||
<add key="SiteName" value="Tekal" />
|
||||
<add key="mainRev" value="2.2" />
|
||||
<add key="minRev" value="532" />
|
||||
<add key="minRev" value="550" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2013" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Generated
+466
-148
File diff suppressed because it is too large
Load Diff
+211
-150
File diff suppressed because it is too large
Load Diff
@@ -423,6 +423,9 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="SqlScripts\V1.2\GMW_410_TEKAL\Sincroniz da TK_GMWTest a TK_GMW NON USARE.txt" />
|
||||
<None Include="SqlScripts\V2.2_TK\GMW_00550.sql" />
|
||||
<Content Include="SqlScripts\V2.2_TK\GMW_00540_pre_Install.sql" />
|
||||
<None Include="SqlScripts\V2.2_TK\GMW_00540.sql" />
|
||||
<None Include="SqlScripts\V2.2_TK\GMW_00533.sql" />
|
||||
<None Include="SqlScripts\V2.2_TK\GMW_00531.sql" />
|
||||
<None Include="SqlScripts\V2.2_TK\GMW_00530.sql" />
|
||||
|
||||
+70
-12
@@ -118,6 +118,8 @@ namespace GMW_data
|
||||
/// <returns></returns>
|
||||
protected bool caricaDatiBollaEtichettaOdette(string UDC, string RaggMag, string GrpBolla, decimal numBolla, decimal dataBolla, string particolare)
|
||||
{
|
||||
// versione vecchia: ora faccio tutto con stored!
|
||||
#if false
|
||||
bool answ = false;
|
||||
string ragSocCli = "";
|
||||
string indirCli = "";
|
||||
@@ -139,9 +141,12 @@ namespace GMW_data
|
||||
string codNaelP1 = "";
|
||||
string codNaelP2 = "";
|
||||
string codNaelP3 = "";
|
||||
string codAQP = "";
|
||||
// in primis recupero la riga di dati da AS400...
|
||||
int trovati = 0;
|
||||
DS_Odette.BORI202JDataTable tabAs400 = new DS_Odette.BORI202JDataTable();
|
||||
DS_magazzino.ElencoCartelliniRow rigaUdc = null;
|
||||
decimal qtaUdc = 1;
|
||||
try
|
||||
{
|
||||
tabAs400 = taBORI.getByKeyFull(RaggMag, GrpBolla, numBolla, dataBolla, particolare);
|
||||
@@ -151,11 +156,22 @@ namespace GMW_data
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non trovati dati per {0}-{1}-{2}-{3}-{4}", RaggMag, GrpBolla, numBolla, dataBolla, particolare), tipoLog.EXCEPTION);
|
||||
}
|
||||
// carico dati udc
|
||||
try
|
||||
{
|
||||
rigaUdc = MagClass.magazzino.taCartellini.getByUdc(UDC)[0];
|
||||
qtaUdc = rigaUdc.Qta;
|
||||
}
|
||||
catch
|
||||
{
|
||||
qtaUdc = 1;
|
||||
logger.lg.scriviLog(string.Format("Non trovati dati per UDC {0} (qta)", UDC), tipoLog.EXCEPTION);
|
||||
}
|
||||
if (trovati >= 1)
|
||||
{
|
||||
DS_Odette.BORI202JRow rigaAs = tabAs400[0];
|
||||
// in base al valore di CDINB definisco i campi...
|
||||
if (rigaAs.CDINB != "")
|
||||
if (rigaAs.CDINB.Trim() != "")
|
||||
{
|
||||
// campo1
|
||||
try
|
||||
@@ -240,8 +256,18 @@ namespace GMW_data
|
||||
// campo5
|
||||
try
|
||||
{
|
||||
peso = Math.Round(rigaAs.EPLAVO * memLayer.ML.confReadInt("qtaOdette"), 2);
|
||||
pesoNetto = peso.ToString();
|
||||
// se EPLAVO = 0 --> si mette EPLNETT
|
||||
if (rigaAs.EPLAVO <= 0)
|
||||
{
|
||||
peso = rigaAs.EPNETT;
|
||||
}
|
||||
else
|
||||
{
|
||||
// modifica 2013.05.03
|
||||
//peso = Math.Round(rigaAs.EPLAVO * memLayer.ML.confReadInt("qtaOdette"), 2);
|
||||
peso = rigaAs.EPLAVO;
|
||||
}
|
||||
pesoNetto = Math.Round(peso * qtaUdc, 2).ToString();
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -295,7 +321,9 @@ namespace GMW_data
|
||||
// campo 11_2
|
||||
try
|
||||
{
|
||||
codImb = rigaAs.RCARTC.Trim();
|
||||
// modifica 2013.05.02
|
||||
codImb = rigaAs.FCDI01.Trim();
|
||||
//codImb = rigaAs.RCARTC.Trim();
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -304,21 +332,40 @@ namespace GMW_data
|
||||
// campo14
|
||||
try
|
||||
{
|
||||
codNaelP1 = rigaAs.ECDNAE.Trim();
|
||||
codNaelP2 = rigaAs.ECDNA1.Trim();
|
||||
codNaelP3 = rigaAs.EESPMD.Trim();
|
||||
codNael = string.Format("ZI:{0} {1} AI:{2}", codNaelP1, codNaelP2, codNaelP3);
|
||||
// controlla se debba configurare come BMW da accodamento dati o leggendo in nuova tabella...
|
||||
if (rigaAs.CRAGCL.Trim() == "13" || rigaAs.TELND.Substring(18, 2) == "13")
|
||||
{
|
||||
codNaelP1 = rigaAs.ECDNAE.Trim();
|
||||
codNaelP2 = rigaAs.ECDNA1.Trim();
|
||||
codNaelP3 = rigaAs.EESPMD.Trim();
|
||||
codNael = string.Format("ZI:{0} {1} AI:{2}", codNaelP1, codNaelP2, codNaelP3);
|
||||
}
|
||||
else
|
||||
{
|
||||
// leggo record...
|
||||
codNael = rigaAs.OCDODM;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo14 (014)", tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
// campo16_5
|
||||
try
|
||||
{
|
||||
// sistema codAQP
|
||||
codAQP = rigaAs.ECLAQP;
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo16 (016)", tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
if (trovati >= 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
taOdette.updateValAs400(UDC, ragSocCli, indirCli, capCittCli, destinatario, "", "", pesoNetto, pesoLordo, numColli, disPart, descPart, codPart, codImb, codMaz, codNael);
|
||||
taOdette.updateValAs400(UDC, ragSocCli, indirCli, capCittCli, destinatario, "", "", pesoNetto, pesoLordo, numColli, disPart, descPart, codPart, codImb, codMaz, codNael, codAQP);
|
||||
answ = true;
|
||||
}
|
||||
catch
|
||||
@@ -326,6 +373,17 @@ namespace GMW_data
|
||||
answ = false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
taOdette.caricaDatiBollaEtichettaOdette(memLayer.ML.confReadString("CodCS"), UDC, numBolla.ToString(), dataBolla.ToString(), RaggMag, GrpBolla, particolare);
|
||||
answ = true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
answ = false;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -459,8 +517,8 @@ namespace GMW_data
|
||||
// in primis comunque verifico che la bolla ci sia altrimenti non procedo (anche se avrebbe già dovuto controllare...)
|
||||
if (checkCodBolla(RaggMag, GrpBolla, numBolla, dataBolla, particolare) && totUdc > 0)
|
||||
{
|
||||
// controllo se il totale colli corrisponde al totale etichette..
|
||||
if (totColliBolla(RaggMag, GrpBolla, numBolla, dataBolla, particolare) == totUdc)
|
||||
// controllo se il totale colli corrisponde al totale UDC..
|
||||
if (totColliBolla(RaggMag, GrpBolla, numBolla, dataBolla, particolare) == totUdc || true) // controllo disattivato 2013.03.22 perché i colli riga sono i colli totali bolla
|
||||
{
|
||||
// controllo se il totale pezzi corrisponde al totale qta...
|
||||
if (totPezziBolla(RaggMag, GrpBolla, numBolla, dataBolla, particolare) == totPz)
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
set xact_abort on;
|
||||
go
|
||||
|
||||
begin transaction;
|
||||
go
|
||||
|
||||
set ANSI_NULLS on;
|
||||
go
|
||||
|
||||
/*****************************************
|
||||
* STORED stp_ODETTE_updateVal
|
||||
*
|
||||
* effettua aggiornamento valori etichetta Odette
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2011.04.28
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE stp_ODETTE_updateVal
|
||||
(
|
||||
@UDC NVARCHAR(50),
|
||||
@ragSocCli NVARCHAR(50),
|
||||
@indirCli NVARCHAR(50),
|
||||
@capCittCli NVARCHAR(50),
|
||||
@ragSocDest NVARCHAR(50),
|
||||
@indirDest NVARCHAR(50),
|
||||
@capCittDest NVARCHAR(50),
|
||||
@pesoNetto NVARCHAR(50),
|
||||
@pesoLordo NVARCHAR(50),
|
||||
@numColli NVARCHAR(50),
|
||||
@disPart NVARCHAR(50),
|
||||
@descPart NVARCHAR(50),
|
||||
@codPart NVARCHAR(50),
|
||||
@codImb NVARCHAR(50),
|
||||
@codMaz NVARCHAR(50),
|
||||
@codNael NVARCHAR(50),
|
||||
@codAQP NVARCHAR(50)
|
||||
)
|
||||
AS
|
||||
|
||||
-- COMMIT TRAN
|
||||
|
||||
|
||||
-- update valori (sovrascrivo...)
|
||||
UPDATE Odette
|
||||
SET Campo1_2 = @ragSocCli,
|
||||
Campo1_3 = @indirCli,
|
||||
Campo1_4 = @capCittCli,
|
||||
Campo2_2 = @ragSocDest,
|
||||
Campo2_3 = @indirDest,
|
||||
Campo2_4 = @capCittDest,
|
||||
Campo5_2 = @pesoNetto,
|
||||
Campo6_2 = @pesoLordo,
|
||||
-- Campo7_2 = @numColli,
|
||||
Campo7_2 = 1, -- imposto n. colli del cartellino odette fisso = 1
|
||||
Campo8_2 = @disPart,
|
||||
Campo8_3 = @disPart,
|
||||
Campo10_2 = @descPart,
|
||||
Campo11_1_2 = @codPart,
|
||||
Campo11_1_3 = @codPart,
|
||||
Campo11_2_2 = @codImb,
|
||||
Campo11_2_3 = @codImb,
|
||||
Campo12_2 = @codMaz,
|
||||
Campo12_3 = @codMaz,
|
||||
Campo14_2 = @codNael,
|
||||
Campo16_5 = ISNULL(@codAQP,'')
|
||||
|
||||
WHERE CampoUDC = @UDC
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit;
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(540, GETDATE())
|
||||
GO
|
||||
SELECT TOP 5 * FROM LogUpdateDb ORDER BY Versione DESC
|
||||
GO
|
||||
@@ -0,0 +1,459 @@
|
||||
SET NUMERIC_ROUNDABORT OFF
|
||||
GO
|
||||
SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT, QUOTED_IDENTIFIER, ANSI_NULLS ON
|
||||
GO
|
||||
IF EXISTS (SELECT * FROM tempdb..sysobjects WHERE id=OBJECT_ID('tempdb..#tmpErrors')) DROP TABLE #tmpErrors
|
||||
GO
|
||||
CREATE TABLE #tmpErrors (Error int)
|
||||
GO
|
||||
SET XACT_ABORT ON
|
||||
GO
|
||||
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
|
||||
GO
|
||||
BEGIN TRANSACTION
|
||||
GO
|
||||
PRINT N'Dropping constraints from [RawData].[BORI202J]'
|
||||
GO
|
||||
ALTER TABLE [RawData].[BORI202J] DROP CONSTRAINT [PK_BORI202J]
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
PRINT N'Rebuilding [RawData].[BORI202J]'
|
||||
GO
|
||||
CREATE TABLE [RawData].[tmp_rg_xx_BORI202J]
|
||||
(
|
||||
[CDMFS] [nvarchar] (2) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[GRBOS] [nvarchar] (1) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[DTBOS] [numeric] (8, 0) NOT NULL,
|
||||
[NRBOS] [numeric] (6, 0) NOT NULL,
|
||||
[CDARS] [nvarchar] (15) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[NRRGS] [numeric] (5, 0) NOT NULL,
|
||||
[CDINB] [nvarchar] (6) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[RA1ND] [nvarchar] (35) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[RA2ND] [nvarchar] (35) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[CAPND] [nvarchar] (9) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[CITND] [nvarchar] (25) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[RASCL] [nvarchar] (35) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[INDCL] [nvarchar] (35) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[CAPCL] [nvarchar] (9) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[LOCCL] [nvarchar] (25) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[PROCL] [nvarchar] (2) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[INEND] [nvarchar] (50) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[CRAGCL] [nvarchar] (4) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[TELND] [nvarchar] (20) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[CCDMOL] [nvarchar] (15) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[CCDPTR] [nvarchar] (15) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[EPLAVO] [numeric] (7, 3) NOT NULL,
|
||||
[NRC1B] [numeric] (5, 0) NOT NULL,
|
||||
[ECMM01] [nvarchar] (30) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[DEPAR] [nvarchar] (30) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[RCARTC] [nvarchar] (30) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[PERND] [nvarchar] (20) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[CCDET1] [nvarchar] (15) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[ECDNAE] [nvarchar] (6) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[ECDNA1] [nvarchar] (1) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[EESPMD] [nvarchar] (6) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[PELDB] [numeric] (7, 2) NOT NULL,
|
||||
[QTCNS] [numeric] (9, 2) NOT NULL,
|
||||
[ECLAQP] [nchar] (1) COLLATE Latin1_General_CI_AS NOT NULL DEFAULT '',
|
||||
[EPNETT] [numeric] (7, 3) NOT NULL DEFAULT 0,
|
||||
[FCDI01] [nvarchar] (35) COLLATE Latin1_General_CI_AS NOT NULL DEFAULT '',
|
||||
[OCDODM] [varchar] (15) COLLATE Latin1_General_CI_AS NOT NULL DEFAULT ''
|
||||
)
|
||||
|
||||
-- Add a new column to the table BORI202J
|
||||
ALTER TABLE RawData.BORI202J
|
||||
ADD ECLAQP NCHAR(1) NOT NULL DEFAULT ''
|
||||
,EPNETT NUMERIC(7,3) NOT NULL DEFAULT 0
|
||||
,FCDI01 NVARCHAR(35) NOT NULL DEFAULT ''
|
||||
,OCDODM VARCHAR(15) NOT NULL DEFAULT ''
|
||||
GO
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
INSERT INTO [RawData].[tmp_rg_xx_BORI202J]([CDMFS], [GRBOS], [DTBOS], [NRBOS], [CDARS], [NRRGS], [CDINB], [RA1ND], [RA2ND], [CAPND], [CITND], [RASCL], [INDCL], [CAPCL], [LOCCL], [PROCL], [INEND], [CRAGCL], [TELND], [CCDMOL], [CCDPTR], [EPLAVO], [NRC1B], [ECMM01], [DEPAR], [RCARTC], [PERND], [CCDET1], [ECDNAE], [ECDNA1], [EESPMD], [PELDB], [QTCNS]) SELECT [CDMFS], [GRBOS], [DTBOS], [NRBOS], [CDARS], [NRRGS], [CDINB], [RA1ND], [RA2ND], [CAPND], [CITND], [RASCL], [INDCL], [CAPCL], [LOCCL], [PROCL], [INEND], [CRAGCL], [TELND], [CCDMOL], [CCDPTR], [EPLAVO], [NRC1B], [ECMM01], [DEPAR], [RCARTC], [PERND], [CCDET1], [ECDNAE], [ECDNA1], [EESPMD], [PELDB], [QTCNS] FROM [RawData].[BORI202J]
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
DROP TABLE [RawData].[BORI202J]
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
EXEC sp_rename N'[RawData].[tmp_rg_xx_BORI202J]', N'BORI202J'
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
PRINT N'Creating primary key [PK_BORI202J] on [RawData].[BORI202J]'
|
||||
GO
|
||||
ALTER TABLE [RawData].[BORI202J] ADD CONSTRAINT [PK_BORI202J] PRIMARY KEY CLUSTERED ([CDMFS], [GRBOS], [DTBOS], [NRBOS], [CDARS], [NRRGS])
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
PRINT N'Altering [dbo].[f_getLikedAS400]'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
-- =============================================
|
||||
-- Author: Gcarlo
|
||||
-- Create date:
|
||||
-- Description: In base al database corrente passato ritorno il corretto linked Server AS400
|
||||
-- =============================================
|
||||
ALTER FUNCTION [dbo].[f_getLikedAS400]
|
||||
(
|
||||
@CurrentDB nVarchar(128) -- Database Corrente
|
||||
)
|
||||
RETURNS nvarchar(50)
|
||||
AS
|
||||
BEGIN
|
||||
-- Declare the return variable here
|
||||
DECLARE @As400File nvarchar(50);
|
||||
|
||||
-- Valorizzo il corretto Linked Server in base al database passato
|
||||
SET @As400File =
|
||||
CASE
|
||||
-- LINKED SERVER AS400 S.POSSIDONIO
|
||||
WHEN ( LEFT(@CurrentDB,3) = 'SP_' ) THEN 'AS400POSS' -- S.POSSIDONIO
|
||||
-- LINKED SERVER AS400 TEKAL
|
||||
WHEN ( LEFT(@CurrentDB,3) = 'TK_' ) THEN 'AS400TEKAL' -- TEKAL
|
||||
|
||||
ELSE ''
|
||||
END
|
||||
|
||||
-- Return the result of the function
|
||||
RETURN @As400File
|
||||
|
||||
END
|
||||
|
||||
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
PRINT N'Altering [dbo].[f_getLibreriaAS400]'
|
||||
GO
|
||||
|
||||
|
||||
-- =============================================
|
||||
-- Author: Gcarlo
|
||||
-- Create date:
|
||||
-- Description: In base al database corrente passato ritorno la corretta libreria di AS400
|
||||
-- che deve essere utilizzata
|
||||
-- =============================================
|
||||
ALTER FUNCTION [dbo].[f_getLibreriaAS400]
|
||||
(
|
||||
@CurrentDB nVarchar(128)
|
||||
,@Function nVarchar(50)
|
||||
)
|
||||
RETURNS nvarchar(100)
|
||||
AS
|
||||
BEGIN
|
||||
-- FORSE MEGLIO USARE IL NOME DELLA STORED CHE LA RICHIAMA CON ... nella stored che la richiama
|
||||
-- DECLARE @StoredName AS NVARCHAR(256);
|
||||
-- SET @StoredName = OBJECT_SCHEMA_NAME(@@PROCID) + '.' + OBJECT_NAME(@@PROCID)
|
||||
-- Declare the return variable here
|
||||
DECLARE @As400File nvarchar(100)
|
||||
|
||||
-- Valorizzo la corretta libreria in base al database passato
|
||||
SET @As400File =
|
||||
CASE
|
||||
-- impostazione tramite stored che richiama la function
|
||||
WHEN @Function = 'dbo.stp_BORI_caricaDatiBolla' THEN -- carica dati bolla
|
||||
CASE
|
||||
-- S.POSSIDONIO
|
||||
WHEN ( @CurrentDB = 'SP_GMW' ) THEN '??.BORI202J'
|
||||
WHEN ( @CurrentDB = 'SP_GMWTest' ) THEN '??.BORI202J' -- TEST SP
|
||||
-- TEKAL
|
||||
WHEN ( @CurrentDB = 'TK_GMW' ) THEN 'TEKA_AZI.BORI202J'
|
||||
WHEN ( @CurrentDB = 'TK_GMWTest' ) THEN 'TEKA_AZI.BORI202J' -- TEST TEKAL
|
||||
WHEN ( @CurrentDB = 'TK_GMWTestCopy' ) THEN 'TEKA_AZI.BORI202J' -- TEST TEKAL
|
||||
ELSE 'DB_NON_TROVATO'
|
||||
END
|
||||
|
||||
WHEN @Function = 'BatchQueue.stp_batch_RapQual_S01' THEN -- legge rapporti qualita
|
||||
CASE
|
||||
-- S.POSSIDONIO
|
||||
WHEN ( @CurrentDB = 'SP_GMW' ) THEN ''
|
||||
WHEN ( @CurrentDB = 'SP_GMWTest' ) THEN '' -- TEST SP
|
||||
-- TEKAL
|
||||
WHEN ( @CurrentDB = 'TK_GMW' ) THEN 'TEKA_DATV3.XOGIX00F'
|
||||
WHEN ( @CurrentDB = 'TK_GMWTest' ) THEN 'TEKA_DATV3.XOGIX00F' -- TEST TEKAL
|
||||
WHEN ( @CurrentDB = 'TK_GMWTestCopy' ) THEN 'TEKA_DATV3.XOGIX00F' -- TEST TEKAL
|
||||
ELSE 'DB_NON_TROVATO'
|
||||
END
|
||||
|
||||
WHEN @Function = 'XOGIX' THEN -- Materia Prima - Rapporti Qualità
|
||||
CASE
|
||||
-- S.POSSIDONIO
|
||||
WHEN ( @CurrentDB = 'SP_GMW' ) THEN 'POSN_DATV3.XOGIX00F'
|
||||
WHEN ( @CurrentDB = 'SP_GMWTest' ) THEN 'MAZZT_DTV3.XOGIX00F' -- TEST SP
|
||||
-- TEKAL
|
||||
WHEN ( @CurrentDB = 'TK_GMW' ) THEN 'TEKA_DATV3.XOGIX00F'
|
||||
WHEN ( @CurrentDB = 'TK_GMWTest' ) THEN 'MAZZT_DTV3.XOGIX00F' -- TEST TEKAL
|
||||
ELSE 'DB_NON_TROVATO'
|
||||
END
|
||||
|
||||
WHEN @Function = 'REGMOVMAG' THEN -- Registrazione Movimenti Magazzino
|
||||
CASE
|
||||
-- S.POSSIDONIO
|
||||
WHEN ( @CurrentDB = 'SP_GMW' ) THEN 'POSN_DATV3...'
|
||||
WHEN ( @CurrentDB = 'SP_GMWTest' ) THEN 'MAZZT_DTV3.MWMV230F' -- TEST SP
|
||||
-- TEKAL
|
||||
WHEN ( @CurrentDB = 'TK_GMW' ) THEN 'TEKA_DATV3.MWMV260F'
|
||||
WHEN ( @CurrentDB = 'TK_GMWTest' ) THEN 'MAZZT_DTV3.MWMV230F' -- TEST TEKAL
|
||||
ELSE 'DB_NON_TROVATO'
|
||||
END
|
||||
|
||||
ELSE 'FUNZ_NON_TROVATA'
|
||||
END
|
||||
|
||||
-- Return the result of the function
|
||||
RETURN @As400File
|
||||
|
||||
END
|
||||
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
PRINT N'Creating [RawData].[ANODM00F]'
|
||||
GO
|
||||
CREATE TABLE [RawData].[ANODM00F]
|
||||
(
|
||||
[OATV08] [nchar] (1) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[OCDPAR] [nvarchar] (15) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[OCDODM] [nvarchar] (15) COLLATE Latin1_General_CI_AS NOT NULL,
|
||||
[ODTVAL] [numeric] (8, 0) NOT NULL
|
||||
)
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
PRINT N'Creating primary key [PK_ANODM00F] on [RawData].[ANODM00F]'
|
||||
GO
|
||||
ALTER TABLE [RawData].[ANODM00F] ADD CONSTRAINT [PK_ANODM00F] PRIMARY KEY CLUSTERED ([OCDPAR], [ODTVAL])
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
PRINT N'Altering [dbo].[stp_BORI_caricaDatiBolla]'
|
||||
GO
|
||||
|
||||
/*****************************************
|
||||
* STORED stp_BORI_caricaDatiBolla
|
||||
*
|
||||
* richiama la stored di caricamento da AS400 x la bolla indicata
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2011.04.28
|
||||
*
|
||||
****************************************/
|
||||
ALTER PROCEDURE [dbo].[stp_BORI_caricaDatiBolla]
|
||||
(
|
||||
@RaggrMagazz NVARCHAR(2) ,
|
||||
@GruppoBolle NVARCHAR(1) ,
|
||||
@NumeroBolla NVARCHAR(6) ,
|
||||
@DataBolla NVARCHAR(8) ,
|
||||
@Particolare NVARCHAR(15)
|
||||
)
|
||||
AS
|
||||
|
||||
SET NOCOUNT ON;
|
||||
|
||||
--DECLARE @RaggrMagazz AS NVARCHAR(2) = N'TK'
|
||||
--DECLARE @GruppoBolle AS NVARCHAR(1) = N'0'
|
||||
--DECLARE @NumeroBolla AS NVARCHAR(6) = N'678'
|
||||
--DECLARE @DataBolla AS NVARCHAR(8) = N'20110421'
|
||||
--DECLARE @Particolare AS NVARCHAR(15) = N'P00528536146'
|
||||
|
||||
-- ATTENZIONE!!! i parametri non devono essere nulli altrimenti la stringa ritornata è nulla
|
||||
|
||||
-- Prima cancello i dati della se già presenti bolla poi li carico
|
||||
DELETE RawData.BORI202J
|
||||
WHERE CDMFS = @RaggrMagazz
|
||||
AND GRBOS = @GruppoBolle
|
||||
AND NRBOS = @NumeroBolla
|
||||
AND DTBOS = @DataBolla
|
||||
AND CDARS = @Particolare
|
||||
|
||||
DECLARE @SQL AS NVARCHAR(4000);
|
||||
DECLARE @SqlOK AS INT;
|
||||
DECLARE @As400File AS NVARCHAR(50) = ''; -- Libreria e File AS400
|
||||
DECLARE @As400Linked AS NVARCHAR(50) = ''; -- Linked Server AS400
|
||||
|
||||
SET @SqlOK = 0;
|
||||
|
||||
/*
|
||||
Prima estraggo i dati della bolla dal file in AS400 in una tabella temporanea
|
||||
Poi va letta la tabella temporanea per creare i dati per la stampa Odette
|
||||
NON VA BENE, SE ESEGUONO IN DUE LA STAMPA PUO ANDARE IN CONFLITTO
|
||||
*/
|
||||
|
||||
--IF OBJECT_ID(N'tempdb..##TabTemp') IS NOT NULL -- ##TabTemp Tabella temporanea globale altrimenti non riesco ad usarla
|
||||
-- DROP TABLE ##TabTemp;
|
||||
-- SET @SQL = 'SELECT * INTO ##TabTemp FROM OPENQUERY(AS400TEKAL,
|
||||
|
||||
-- In base al nome del DB allora setto Linked Server e file di AS400
|
||||
SET @As400Linked = ( SELECT dbo.f_getLikedAS400(DB_NAME()) );
|
||||
-- SET @As400File = ( SELECT dbo.f_getLibreriaAS400 ( DB_NAME() , OBJECT_SCHEMA_NAME(@@PROCID) + '.' + OBJECT_NAME(@@PROCID) ) )
|
||||
SET @As400File = ( SELECT dbo.f_getLibreriaAS400 ( DB_NAME(), 'dbo.stp_BORI_caricaDatiBolla' ) );
|
||||
|
||||
BEGIN TRY
|
||||
|
||||
SET @SQL = 'INSERT INTO RawData.BORI202J SELECT * FROM OPENQUERY(' -- OPENQUERY(AS400TEKAL,'SELECT ...
|
||||
SET @SQL = @SQL + @As400Linked + ',
|
||||
''SELECT
|
||||
CDMFS
|
||||
,GRBOS
|
||||
,DTBOS
|
||||
,NRBOS
|
||||
,CDARS
|
||||
,NRRGS
|
||||
,CDINB
|
||||
,RA1ND
|
||||
,RA2ND
|
||||
,CAPND
|
||||
,CITND
|
||||
,RASCL
|
||||
,INDCL
|
||||
,CAPCL
|
||||
,LOCCL
|
||||
,PROCL
|
||||
,INEND
|
||||
,CRAGCL
|
||||
,TELND
|
||||
,CCDMOL
|
||||
,CCDPTR
|
||||
,EPLAVO
|
||||
,NRC1B
|
||||
,ECMM01
|
||||
,DEPAR
|
||||
,RCARTC
|
||||
,PERND
|
||||
,CCDET1
|
||||
,ECDNAE
|
||||
,ECDNA1
|
||||
,EESPMD
|
||||
,PELDB
|
||||
,QTCNS
|
||||
,ECLAQP
|
||||
,EPNETT
|
||||
,FCDI01
|
||||
,'''''''' AS OCDODM
|
||||
FROM ' + @As400File
|
||||
|
||||
SET @SQL = @SQL + ' WHERE ATV08 <> ''''A''''' -- escludo bolle annullate
|
||||
|
||||
-- commemntare le righe successive per estrarre tutto
|
||||
-- Parametri di selezione della bolla
|
||||
SET @SQL = @SQL + ' AND CDMFS = ''''' + @RaggrMagazz + ''''' '
|
||||
SET @SQL = @SQL + ' AND GRBOS = ''''' + @GruppoBolle + ''''' '
|
||||
SET @SQL = @SQL + ' AND NRBOS = ' + @NumeroBolla + ' '
|
||||
SET @SQL = @SQL + ' AND DTBOS = ' + @DataBolla + ' '
|
||||
SET @SQL = @SQL + ' AND CDARS = ''''' + @Particolare + ''''' '
|
||||
|
||||
SET @SQL = @SQL + ''' )';
|
||||
|
||||
EXEC sp_executesql @SQL
|
||||
|
||||
END TRY
|
||||
BEGIN CATCH
|
||||
-- PRINT ERROR_NUMBER()
|
||||
SET @SqlOK = ERROR_NUMBER();
|
||||
|
||||
-- Uso RAISERROR mandare in errore la procedura e x per tornare le info
|
||||
-- sull'errore originale che ha portato l'esecuzione nel blocco CATCH
|
||||
--DECLARE @ErrorMessage NVARCHAR(4000);
|
||||
--DECLARE @ErrorSeverity INT;
|
||||
--DECLARE @ErrorState INT;
|
||||
--SELECT @ErrorMessage = ERROR_MESSAGE(),@ErrorSeverity = ERROR_SEVERITY(),@ErrorState = ERROR_STATE();
|
||||
--RAISERROR (@ErrorMessage,@ErrorSeverity,@ErrorState); -- Se non uso RAISERROR la procedura non mi da errore es. se schedulata
|
||||
END CATCH
|
||||
|
||||
-- Memorizzo il comando per verifica T-SQL e l'esito del comando se 0 è OK
|
||||
INSERT INTO RawData.AS400_Comandi
|
||||
SELECT GETDATE(), 'stp_BORI_caricaDatiBolla', @SQL, @SqlOK;
|
||||
|
||||
/* NEW 2013/05/01
|
||||
Aggiorno il change index in base alla data validità e data bolla
|
||||
leggo dalla tabella RawData.ANODM00F aggiornata da import AS400 ( potrei aggiornarla anche qui )
|
||||
*/
|
||||
IF @SqlOK = 0 -- se import Bolle è OK
|
||||
BEGIN
|
||||
;WITH cte AS
|
||||
(
|
||||
SELECT OCDPAR,
|
||||
OCDODM,
|
||||
ODTVAL,
|
||||
ISNULL(( SELECT MIN(ODTVAL)
|
||||
FROM RawData.ANODM00F AS T2
|
||||
WHERE T2.OCDPAR = v.OCDPAR AND T2.ODTVAL > v.ODTVAL )
|
||||
,'20993112') AS ODTVALEND
|
||||
FROM RawData.ANODM00F AS v
|
||||
)
|
||||
UPDATE b
|
||||
SET OCDODM = c.OCDODM
|
||||
FROM RawData.BORI202J AS b
|
||||
INNER JOIN cte AS c
|
||||
ON b.CDARS = c.OCDPAR AND b.DTBOS >= c.ODTVAL AND b.DTBOS < c.ODTVALEND
|
||||
WHERE CDMFS = @RaggrMagazz -- aggiorno solo la bolla corretta
|
||||
AND GRBOS = @GruppoBolle
|
||||
AND NRBOS = @NumeroBolla
|
||||
AND DTBOS = @DataBolla
|
||||
AND CDARS = @Particolare
|
||||
|
||||
/* query di test
|
||||
;WITH cte AS
|
||||
(
|
||||
SELECT OCDPAR,
|
||||
OCDODM,
|
||||
ODTVAL,
|
||||
ISNULL(( SELECT MIN(ODTVAL) FROM RawData.ANODM00F AS T2
|
||||
WHERE T2.OCDPAR = v.OCDPAR AND T2.ODTVAL > v.ODTVAL )
|
||||
,'20993112') AS ODTVALEND
|
||||
FROM RawData.ANODM00F AS v
|
||||
)
|
||||
SELECT b.*, c.OCDODM FROM RawData.BORI202J AS b
|
||||
LEFT JOIN cte AS c
|
||||
ON b.CDARS = c.OCDPAR AND b.DTBOS >= c.ODTVAL AND b.DTBOS < c.ODTVALEND
|
||||
*/
|
||||
END
|
||||
|
||||
-- Carico i dati della Temp table nel file di appoggio
|
||||
-- INSERT INTO RawData.BORI202J
|
||||
-- SELECT * FROM ##TabTemp
|
||||
|
||||
|
||||
RETURN
|
||||
|
||||
GO
|
||||
IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END
|
||||
GO
|
||||
IF EXISTS (SELECT * FROM #tmpErrors) ROLLBACK TRANSACTION
|
||||
GO
|
||||
IF @@TRANCOUNT>0 BEGIN
|
||||
PRINT 'The database update succeeded'
|
||||
COMMIT TRANSACTION
|
||||
END
|
||||
ELSE PRINT 'The database update failed'
|
||||
GO
|
||||
DROP TABLE #tmpErrors
|
||||
GO
|
||||
@@ -0,0 +1,329 @@
|
||||
set ANSI_NULLS on;
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* FUNCTION f_calcDestOdette
|
||||
*
|
||||
* Compongo il primo campo delle odette ( campo_2 ) x il destinatario/molo
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 14/05/2013
|
||||
*
|
||||
****************************************/
|
||||
create FUNCTION f_odetteCalcDest (@INEND VARCHAR(50) , @CCDMOL VARCHAR(50), @CCDPTR VARCHAR(50), @CDINB VARCHAR(50),
|
||||
@CRAGCL VARCHAR(50) , @TELND VARCHAR(50)
|
||||
)
|
||||
RETURNS NVARCHAR(50) AS
|
||||
BEGIN
|
||||
|
||||
DECLARE @answ NVARCHAR(50) = ''
|
||||
DECLARE @destP1A NVARCHAR(50) = ''
|
||||
DECLARE @destP2A NVARCHAR(50) = ''
|
||||
DECLARE @destP1 NVARCHAR(50) = ''
|
||||
DECLARE @destP2 NVARCHAR(50) = ''
|
||||
DECLARE @destP3 NVARCHAR(50) = ''
|
||||
|
||||
-- Se il campo INEND è vuoto devo prendere sempre gli altri campi CCDMOL e CCDPTR
|
||||
SET @destP1A = CASE WHEN (SUBSTRING(@INEND,1,30)) = '' THEN (@CCDMOL) ELSE dbo.f_trim(SUBSTRING(@INEND,16,15)) END
|
||||
SET @destP2A = CASE WHEN (SUBSTRING(@INEND,1,30)) = '' THEN (@CCDPTR) ELSE dbo.f_trim(SUBSTRING(@INEND,1,15)) END
|
||||
|
||||
SET @destP1 = CASE WHEN (@CDINB) <> '' THEN @destP1A ELSE (@CCDMOL) END
|
||||
SET @destP2 = CASE WHEN (@CDINB) <> '' THEN @destP2A ELSE (@CCDPTR) END
|
||||
|
||||
-- solo se BMW metto /S
|
||||
SET @destP3 = CASE WHEN @CRAGCL = '13' OR ( @CDINB <> '' AND SUBSTRING(@TELND,19,2) = '13') THEN '/S' ELSE '' END
|
||||
|
||||
IF @destP1 + @destP2 <> ''
|
||||
SET @answ = @destP1 + '/' + @destP2 + @destP3
|
||||
ELSE
|
||||
SET @answ = ''
|
||||
|
||||
RETURN @answ
|
||||
|
||||
END
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* FUNCTION f_odetteCalcNAEL
|
||||
*
|
||||
* Compongo il primo campo delle odette campo 14 ( Change Index ) o codice NAEL + esponente di modifica particolare )
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 14/05/2013
|
||||
*
|
||||
****************************************/
|
||||
create FUNCTION f_odetteCalcNAEL (@CRAGCL VARCHAR(50) , @TELND VARCHAR(50), @ECDNAE VARCHAR(50),@ECDNA1 VARCHAR(50)
|
||||
,@EESPMD VARCHAR(50), @OCDODM VARCHAR(50)
|
||||
)
|
||||
RETURNS NVARCHAR(50) AS
|
||||
BEGIN
|
||||
|
||||
DECLARE @answ NVARCHAR(50) = ''
|
||||
DECLARE @codNaelP1 NVARCHAR(50) = ''
|
||||
DECLARE @codNaelP2 NVARCHAR(50) = ''
|
||||
DECLARE @codNaelP3 NVARCHAR(50) = ''
|
||||
|
||||
-- Se il cliente è BMW calcolo campi x NAEL
|
||||
SET @codNaelP1 = CASE WHEN dbo.f_trim(@CRAGCL) = '13' OR dbo.f_trim(SUBSTRING(@TELND,19,2)) = '13' THEN dbo.f_trim(@ECDNAE) ELSE '' END
|
||||
SET @codNaelP2 = CASE WHEN dbo.f_trim(@CRAGCL) = '13' OR dbo.f_trim(SUBSTRING(@TELND,19,2)) = '13' THEN dbo.f_trim(@ECDNA1) ELSE '' END
|
||||
SET @codNaelP3 = CASE WHEN dbo.f_trim(@CRAGCL) = '13' OR dbo.f_trim(SUBSTRING(@TELND,19,2)) = '13' THEN dbo.f_trim(@EESPMD) ELSE '' END
|
||||
|
||||
|
||||
SET @answ = CASE WHEN dbo.f_trim(@CRAGCL) = '13' OR dbo.f_trim(SUBSTRING(@TELND,19,2)) = '13'
|
||||
THEN 'ZI:'+ @codNaelP1 + ' ' + @codNaelP2 + ' AI:'+ @codNaelP3
|
||||
ELSE @OCDODM -- se non BMW
|
||||
END
|
||||
|
||||
RETURN @answ
|
||||
|
||||
END
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on;
|
||||
go
|
||||
|
||||
begin transaction;
|
||||
go
|
||||
|
||||
set ANSI_NULLS on;
|
||||
go
|
||||
|
||||
/*****************************************
|
||||
* STORED stp_ODETTE_updateVal
|
||||
*
|
||||
* effettua aggiornamento valori etichetta Odette
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2011.04.28
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE stp_ODETTE_updateVal
|
||||
(
|
||||
@UDC NVARCHAR(50),
|
||||
@ragSocCli NVARCHAR(50),
|
||||
@indirCli NVARCHAR(50),
|
||||
@capCittCli NVARCHAR(50),
|
||||
@ragSocDest NVARCHAR(50),
|
||||
@indirDest NVARCHAR(50),
|
||||
@capCittDest NVARCHAR(50),
|
||||
@pesoNetto NVARCHAR(50),
|
||||
@pesoLordo NVARCHAR(50),
|
||||
@numColli NVARCHAR(50),
|
||||
@disPart NVARCHAR(50),
|
||||
@descPart NVARCHAR(50),
|
||||
@codPart NVARCHAR(50),
|
||||
@codImb NVARCHAR(50),
|
||||
@codMaz NVARCHAR(50),
|
||||
@codNael NVARCHAR(50),
|
||||
@codAQP NVARCHAR(50)
|
||||
)
|
||||
AS
|
||||
|
||||
-- COMMIT TRAN
|
||||
|
||||
|
||||
-- update valori (sovrascrivo...)
|
||||
UPDATE Odette
|
||||
SET Campo1_2 = @ragSocCli,
|
||||
Campo1_3 = @indirCli,
|
||||
Campo1_4 = @capCittCli,
|
||||
Campo2_2 = @ragSocDest,
|
||||
Campo2_3 = @indirDest,
|
||||
Campo2_4 = @capCittDest,
|
||||
Campo5_2 = @pesoNetto,
|
||||
Campo6_2 = @pesoLordo,
|
||||
Campo7_2 = @numColli,
|
||||
Campo8_2 = @disPart,
|
||||
Campo8_3 = @disPart,
|
||||
Campo10_2 = @descPart,
|
||||
Campo11_1_2 = @codPart,
|
||||
Campo11_1_3 = @codPart,
|
||||
Campo11_2_2 = @codImb,
|
||||
Campo11_2_3 = @codImb,
|
||||
Campo12_2 = @codMaz,
|
||||
Campo12_3 = @codMaz,
|
||||
Campo14_2 = @codNael,
|
||||
Campo16_5 = ISNULL(@codAQP,'')
|
||||
|
||||
WHERE CampoUDC = @UDC
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit;
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on;
|
||||
go
|
||||
|
||||
begin transaction;
|
||||
go
|
||||
|
||||
set ANSI_NULLS on;
|
||||
go
|
||||
|
||||
/*****************************************
|
||||
* STORED stp_ODETTE_caricaDatiBollaEtichettaOdette
|
||||
*
|
||||
* carica i dati x odette dai valori delel tab lette da as400 (rimpiazza procedura c#)
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2011.04.28
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE stp_ODETTE_caricaDatiBollaEtichettaOdette
|
||||
(
|
||||
@CodCS NVARCHAR(2),
|
||||
@UDC NVARCHAR(50),
|
||||
@numBolla NVARCHAR(6),
|
||||
@dataBolla NVARCHAR(8),
|
||||
@CodMag NVARCHAR(2),
|
||||
@GrpBolla NVARCHAR(1),
|
||||
@Particolare NVARCHAR(15)
|
||||
)
|
||||
|
||||
AS
|
||||
|
||||
SET NOCOUNT ON
|
||||
/* Dichiarazione variabili iniziale */
|
||||
|
||||
DECLARE @ragSocCli NVARCHAR(50) = ''
|
||||
DECLARE @indirCli NVARCHAR(50) = ''
|
||||
DECLARE @capCittCli NVARCHAR(50) = ''
|
||||
DECLARE @destinatario NVARCHAR(50) = ''
|
||||
DECLARE @ragSocDest NVARCHAR(50) = ''
|
||||
DECLARE @indirDest NVARCHAR(50) = ''
|
||||
DECLARE @capCittDest NVARCHAR(50) = ''
|
||||
DECLARE @peso NUMERIC(7,3) = 0
|
||||
DECLARE @pesoNetto NVARCHAR(50) = ''
|
||||
DECLARE @pesoLordo NVARCHAR(50) = ''
|
||||
DECLARE @numColli NVARCHAR(50) = ''
|
||||
DECLARE @disPart NVARCHAR(50) = ''
|
||||
DECLARE @descPart NVARCHAR(50) = ''
|
||||
DECLARE @codPart NVARCHAR(50) = ''
|
||||
DECLARE @codImb NVARCHAR(50) = ''
|
||||
DECLARE @codMaz NVARCHAR(50) = ''
|
||||
DECLARE @codNael NVARCHAR(50) = ''
|
||||
DECLARE @codNaelP1 NVARCHAR(50) = ''
|
||||
DECLARE @codNaelP2 NVARCHAR(50) = ''
|
||||
DECLARE @codNaelP3 NVARCHAR(50) = ''
|
||||
DECLARE @codAQP NVARCHAR(50) = ''
|
||||
|
||||
-- altre variabili accessorie
|
||||
DECLARE @trovati INT = 0
|
||||
DECLARE @qtaUdc INT = 1
|
||||
|
||||
-- in primis recupero la riga di dati da AS400...
|
||||
SELECT @trovati = COUNT(*)
|
||||
FROM RawData.BORI202J
|
||||
WHERE CDMFS = @CodMag
|
||||
AND GRBOS = @GrpBolla
|
||||
AND NRBOS = @numBolla
|
||||
AND DTBOS = @DataBolla
|
||||
AND CDARS = @Particolare
|
||||
|
||||
-- carico i dati dell'UDC
|
||||
SELECT @qtaUdc = Qta
|
||||
FROM ElencoCartellini
|
||||
WHERE UDC = @UDC
|
||||
|
||||
-- proseguo solo se ho trovato la bolla!
|
||||
IF(@trovati > 0)
|
||||
BEGIN
|
||||
|
||||
SELECT TOP 1
|
||||
-- campo 1 indirizzo destinazione cliente ( Receiver )
|
||||
@ragSocCli = CASE WHEN dbo.f_trim(CDINB) <> '' AND @CodCS <> 'TK' THEN dbo.f_trim(RA1ND) ELSE dbo.f_trim(RASCL) END
|
||||
,@indirCli = CASE WHEN dbo.f_trim(CDINB) <> '' AND @CodCS <> 'TK' THEN dbo.f_trim(RA2ND) ELSE dbo.f_trim(INDCL) END
|
||||
,@capCittCli = CASE WHEN dbo.f_trim(CDINB) <> '' AND @CodCS <> 'TK' THEN dbo.f_trim(CAPND) + ' ' + dbo.f_trim(CITND)
|
||||
ELSE dbo.f_trim(CAPCL) + ' ' + dbo.f_trim(LOCCL) + ' ' +dbo.f_trim(PROCL) END
|
||||
|
||||
-- campo 2 punto di rifornimento / molo / uso ( Destination )
|
||||
-- ATTENZIONE NON POSSO TESTARE QUI LE VARIABILI MA SOLO ASSEGNARLE!!! NEL CASE LE VALUTA SEMPRE VUOTE
|
||||
,@destinatario = dbo.f_odetteCalcDest( dbo.f_trim(INEND), dbo.f_trim(CCDMOL), dbo.f_trim(CCDPTR), dbo.f_trim(CDINB),
|
||||
dbo.f_trim(CRAGCL), dbo.f_trim(TELND) )
|
||||
|
||||
-- Leggo i dati che mi servono dopo nel caso il destinatario sia vuoto ( VEDI DOPO SELECT )
|
||||
,@ragSocDest = dbo.f_trim(RA1ND)
|
||||
,@indirDest = dbo.f_trim(RA2ND)
|
||||
,@capCittDest = dbo.f_trim(CAPND) + ' ' + dbo.f_trim(CITND)
|
||||
|
||||
-- campo 5_2 peso netto ( Net Weight )
|
||||
,@peso = CASE WHEN ISNULL(EPLAVO,0) <= 0 THEN EPNETT ELSE EPLAVO END
|
||||
,@pesoNetto = CONVERT(NVARCHAR(50), CONVERT(INT , FLOOR( @peso * @qtaUdc ) ) )
|
||||
|
||||
-- campo 6_2 peso lordo (Gross Weight)
|
||||
,@pesoLordo = CONVERT(NVARCHAR(50), CONVERT(INT, FLOOR( PELDB / NRC1B ) ) )
|
||||
|
||||
-- campo 7 numero colli (Nr. Boxes)
|
||||
,@numColli = CONVERT(NVARCHAR(50), 1) -- imposto n. colli del cartellino odette fisso = 1
|
||||
-- ,@numColli = CONVERT(NVARCHAR(50), NRC1B)
|
||||
|
||||
-- campo 8 disegno particolare ( Part Number )
|
||||
,@disPart = dbo.f_trim(ECMM01)
|
||||
|
||||
-- campo 10 Descrizione particolare ( Description )
|
||||
,@descPart = dbo.f_trim(DEPAR)
|
||||
|
||||
-- campo 11_1 Codice particolare (non stampato)
|
||||
,@codPart = dbo.f_trim(CDARS)
|
||||
-- campo 11_2 Codice imballo per il cliente ( Logistics Reference )
|
||||
,@codImb = dbo.f_trim(FCDI01)
|
||||
|
||||
-- campo 12 Codice Mazzucconi/Tekal/Possidonio per il cliente ( Supplier )
|
||||
,@codMaz = CASE WHEN dbo.f_trim(CRAGCL) = '13' OR dbo.f_trim(SUBSTRING(TELND,19,2)) = '13' THEN
|
||||
CASE WHEN dbo.f_trim(CDINB) <> '' AND dbo.f_trim(PERND) <> '' THEN dbo.f_trim(PERND)
|
||||
WHEN dbo.f_trim(CDINB) = '' AND dbo.f_trim(CCDET1) <> '' THEN dbo.f_trim(CCDET1)
|
||||
ELSE dbo.f_trim(CCFOE1) END
|
||||
ELSE dbo.f_trim(CCFOE1) END
|
||||
|
||||
-- campo 14 codice NAEL + esponente di modifica particolare ( Change Index )
|
||||
,@codNael = dbo.f_odetteCalcNAEL ( dbo.f_trim(CRAGCL),dbo.f_trim(TELND),dbo.f_trim(ECDNAE),dbo.f_trim(ECDNA1),
|
||||
dbo.f_trim(EESPMD),dbo.f_trim(OCDODM) )
|
||||
|
||||
--,@codNaelP1 = CASE WHEN dbo.f_trim(CRAGCL) = '13' OR dbo.f_trim(SUBSTRING(TELND,19,2)) = '13' THEN dbo.f_trim(ECDNAE) ELSE '' END
|
||||
--,@codNaelP2 = CASE WHEN dbo.f_trim(CRAGCL) = '13' OR dbo.f_trim(SUBSTRING(TELND,19,2)) = '13' THEN dbo.f_trim(ECDNA1) ELSE '' END
|
||||
--,@codNaelP3 = CASE WHEN dbo.f_trim(CRAGCL) = '13' OR dbo.f_trim(SUBSTRING(TELND,19,2)) = '13' THEN dbo.f_trim(EESPMD) ELSE '' END
|
||||
--,@codNael = CASE WHEN dbo.f_trim(CRAGCL) = '13' OR dbo.f_trim(SUBSTRING(TELND,19,2)) = '13' THEN 'ZI:'+ @codNaelP1 + ' ' + @codNaelP2 + ' AI:'+ @codNaelP3 ELSE OCDODM END
|
||||
|
||||
-- campo 16_5 AQP ( controllo qualità )
|
||||
,@codAQP = dbo.f_trim(ECLAQP)
|
||||
|
||||
FROM RawData.BORI202J
|
||||
WHERE CDMFS = @CodMag
|
||||
AND GRBOS = @GrpBolla
|
||||
AND NRBOS = @numBolla
|
||||
AND DTBOS = @DataBolla
|
||||
AND CDARS = @Particolare
|
||||
|
||||
-- Se nella destinazione non trovo nulla utilizzo i dati in RA1ND RA2ND CAPND CITND ( simile indirizzo cliente )
|
||||
IF @destinatario = ''
|
||||
SET @destinatario = @ragSocDest
|
||||
ELSE
|
||||
BEGIN -- vuoto i campi necessari solo se destinatario NON è vuoto ( in questo caso compilo solo prima riga )
|
||||
SET @indirDest = ''
|
||||
SET @capCittDest = ''
|
||||
END
|
||||
|
||||
-- SELECT @UDC, @ragSocCli, @indirCli, @capCittCli, @destinatario, @indirDest, @capCittDest, @pesoNetto, @pesoLordo, @numColli, @disPart, @descPart, @codPart, @codImb, @codMaz, @codNael, @codAQP
|
||||
EXEC stp_ODETTE_updateVal @UDC, @ragSocCli, @indirCli, @capCittCli, @destinatario, @indirDest, @capCittDest, @pesoNetto, @pesoLordo, @numColli, @disPart, @descPart, @codPart, @codImb, @codMaz, @codNael, @codAQP
|
||||
|
||||
END
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit;
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(550, GETDATE())
|
||||
GO
|
||||
SELECT TOP 5 * FROM LogUpdateDb ORDER BY Versione DESC
|
||||
GO
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="GMW_data.Properties.Settings.SP_produzioneConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_produzione;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
|
||||
Binary file not shown.
@@ -163,6 +163,21 @@
|
||||
classe gestione auth
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.authProxy.initTA">
|
||||
<summary>
|
||||
init dei table adapters
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.authProxy.setupConnectionStringBase">
|
||||
<summary>
|
||||
effettua setup dei connection strings da web.config delal singola applicazione
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:SteamWare.authProxy.AP">
|
||||
<summary>
|
||||
Singleton accesso a authProxy
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.authProxy.tryAuthByCookie(System.String)">
|
||||
<summary>
|
||||
Tenta autologin con autoriconoscimento Dominio/username by cookie
|
||||
@@ -170,7 +185,18 @@
|
||||
<param name="cookieName"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.authProxy.createNewCookie(System.String,System.String,System.String,System.String,System.String,System.String,System.DateTime)">
|
||||
<member name="M:SteamWare.authProxy.getSecret(System.String,System.String,System.Int32,System.String,System.DateTime)">
|
||||
<summary>
|
||||
formatta il secret code
|
||||
</summary>
|
||||
<param name="Dominio"></param>
|
||||
<param name="UsrName"></param>
|
||||
<param name="matrOpr"></param>
|
||||
<param name="DeviceName"></param>
|
||||
<param name="adesso"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.authProxy.createNewCookie(System.String,System.String,System.Int32,System.String,System.String,System.String,System.String,System.DateTime)">
|
||||
<summary>
|
||||
crea un nuovo record device e salva un nuovo cookie su db x il dispositivo e l'utente richiesti
|
||||
</summary>
|
||||
@@ -2215,6 +2241,13 @@
|
||||
inizializza la gestione utente...
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.user_std.rigaUtenteDaMatricola(System.String)">
|
||||
<summary>
|
||||
restituisce riga utente data la matricola...
|
||||
</summary>
|
||||
<param name="matricola">matricola</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.user_std.Traduci(System.String)">
|
||||
<summary>
|
||||
traduce il lemma nella lingua dell'user corrente
|
||||
@@ -2538,6 +2571,39 @@
|
||||
è un boolean che indica se in session ci siano user/dominio e quindi utente autenticato in rpecedenza...
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:SteamWare.licenseMan">
|
||||
<summary>
|
||||
gestione licenze applicativi
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.licenseMan.getLicenseNum(System.String,System.String)">
|
||||
<summary>
|
||||
numero di licenze attive per cliente/applicativo
|
||||
</summary>
|
||||
<param name="cliente"></param>
|
||||
<param name="applicativo"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.licenseMan.getAuthKey(System.String,System.String,System.Int32,System.DateTime)">
|
||||
<summary>
|
||||
Fornisce chiave MD5 x un cliente/applicativo/expiryDate
|
||||
</summary>
|
||||
<param name="cliente"></param>
|
||||
<param name="applicativo"></param>
|
||||
<param name="licenze"></param>
|
||||
<param name="expiryDate"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.licenseMan.expiryDateByAuthKey(System.String,System.String,System.Int32,System.String)">
|
||||
<summary>
|
||||
restituisce data decodificata da authKey + applicazione + cliente...
|
||||
</summary>
|
||||
<param name="cliente"></param>
|
||||
<param name="applicativo"></param>
|
||||
<param name="licenze"></param>
|
||||
<param name="expiryDate"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:SteamWare.logger">
|
||||
<summary>
|
||||
classe gesione log files applicazioni
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4,7 +4,7 @@
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="GMW_data.Properties.Settings.SP_produzioneConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_produzione;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+2447
-2358
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="GMW_data.Properties.Settings.SP_produzioneConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_produzione;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user