Inserito report e lo stampa (in pdf x ora)
configurata stampante via web.config udpate installer git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@16 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -95,13 +95,9 @@ Global
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Deploy|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Deploy|Any CPU.Build.0 = Debug|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer_Offline|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer_Offline|Any CPU.Build.0 = Release|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer_test|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer_test|Any CPU.Build.0 = Release|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer|Any CPU.Build.0 = Release|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{ADACC5A9-F45C-4659-9026-73E1E82517EF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
|
||||
+5
-1
@@ -101,7 +101,11 @@
|
||||
<Content Include="mazzConnectionStrings.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Reports\CartellinoTara.rdl" />
|
||||
<EmbeddedResource Include="Reports\CartellinoTara.rdlc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="logs\" />
|
||||
<Folder Include="temp\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" Condition="" />
|
||||
|
||||
@@ -0,0 +1,258 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
|
||||
<DataSources>
|
||||
<DataSource Name="GMWConnectionString">
|
||||
<rd:DataSourceID>d9194145-aa70-4a36-8b7a-c929936f98f7</rd:DataSourceID>
|
||||
<ConnectionProperties>
|
||||
<DataProvider>
|
||||
</DataProvider>
|
||||
<ConnectString>
|
||||
</ConnectString>
|
||||
</ConnectionProperties>
|
||||
</DataSource>
|
||||
</DataSources>
|
||||
<InteractiveHeight>14.8cm</InteractiveHeight>
|
||||
<rd:DrawGrid>true</rd:DrawGrid>
|
||||
<InteractiveWidth>21cm</InteractiveWidth>
|
||||
<rd:GridSpacing>0.25cm</rd:GridSpacing>
|
||||
<rd:SnapToGrid>true</rd:SnapToGrid>
|
||||
<RightMargin>0.5cm</RightMargin>
|
||||
<LeftMargin>0.5cm</LeftMargin>
|
||||
<BottomMargin>0.5cm</BottomMargin>
|
||||
<rd:ReportID>3255cde9-74a1-4005-8008-232d8355d769</rd:ReportID>
|
||||
<PageWidth>21cm</PageWidth>
|
||||
<DataSets>
|
||||
<DataSet Name="GMWDataSet_stp_getStatoByUdc">
|
||||
<Fields>
|
||||
<Field Name="CodCompany">
|
||||
<DataField>CodCompany</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="ODP">
|
||||
<DataField>ODP</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="UDC">
|
||||
<DataField>UDC</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Tara">
|
||||
<DataField>Tara</DataField>
|
||||
<rd:TypeName>System.Double</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="IdxStato">
|
||||
<DataField>IdxStato</DataField>
|
||||
<rd:TypeName>System.Int32</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Qta">
|
||||
<DataField>Qta</DataField>
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodImballo">
|
||||
<DataField>CodImballo</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CreateDate">
|
||||
<DataField>CreateDate</DataField>
|
||||
<rd:TypeName>System.DateTime</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="ModDate">
|
||||
<DataField>ModDate</DataField>
|
||||
<rd:TypeName>System.DateTime</rd:TypeName>
|
||||
</Field>
|
||||
</Fields>
|
||||
<Query>
|
||||
<DataSourceName>GMWConnectionString</DataSourceName>
|
||||
<CommandText>dbo.stp_getStatoByUdc</CommandText>
|
||||
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
|
||||
</Query>
|
||||
<rd:DataSetInfo>
|
||||
<rd:DataSetName>GMWDataSet</rd:DataSetName>
|
||||
<rd:TableName>stp_getStatoByUdc</rd:TableName>
|
||||
<rd:TableAdapterName>
|
||||
</rd:TableAdapterName>
|
||||
<rd:TableAdapterFillMethod>
|
||||
</rd:TableAdapterFillMethod>
|
||||
<rd:TableAdapterGetDataMethod>GetData</rd:TableAdapterGetDataMethod>
|
||||
</rd:DataSetInfo>
|
||||
</DataSet>
|
||||
</DataSets>
|
||||
<Code />
|
||||
<Width>20cm</Width>
|
||||
<Body>
|
||||
<ColumnSpacing>1cm</ColumnSpacing>
|
||||
<ReportItems>
|
||||
<Textbox Name="textbox1">
|
||||
<rd:DefaultName>textbox1</rd:DefaultName>
|
||||
<Width>12.69841cm</Width>
|
||||
<Style>
|
||||
<Color>SteelBlue</Color>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>20pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>1</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Height>0.91429cm</Height>
|
||||
<Value>CartellinoTara</Value>
|
||||
</Textbox>
|
||||
<Table Name="table1">
|
||||
<DataSetName>GMWDataSet_stp_getStatoByUdc</DataSetName>
|
||||
<Top>4cm</Top>
|
||||
<TableGroups>
|
||||
<TableGroup>
|
||||
<Grouping Name="table1_UDC">
|
||||
<GroupExpressions>
|
||||
<GroupExpression>=Fields!UDC.Value</GroupExpression>
|
||||
</GroupExpressions>
|
||||
</Grouping>
|
||||
<Sorting>
|
||||
<SortBy>
|
||||
<SortExpression>=Fields!UDC.Value</SortExpression>
|
||||
<Direction>Ascending</Direction>
|
||||
</SortBy>
|
||||
</Sorting>
|
||||
<Header>
|
||||
<TableRows>
|
||||
<TableRow>
|
||||
<TableCells>
|
||||
<TableCell>
|
||||
<ColSpan>3</ColSpan>
|
||||
<ReportItems>
|
||||
<Textbox Name="UDC">
|
||||
<rd:DefaultName>UDC</rd:DefaultName>
|
||||
<Style>
|
||||
<BackgroundColor>White</BackgroundColor>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Free 3 of 9 Extended</FontFamily>
|
||||
<FontSize>60pt</FontSize>
|
||||
<TextAlign>Left</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>="*" & Fields!UDC.Value & "*"</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
</TableCells>
|
||||
<Height>3.50781cm</Height>
|
||||
</TableRow>
|
||||
</TableRows>
|
||||
</Header>
|
||||
</TableGroup>
|
||||
</TableGroups>
|
||||
<Width>19cm</Width>
|
||||
<Details>
|
||||
<TableRows>
|
||||
<TableRow>
|
||||
<TableCells>
|
||||
<TableCell>
|
||||
<ReportItems>
|
||||
<Textbox Name="textbox4">
|
||||
<rd:DefaultName>textbox4</rd:DefaultName>
|
||||
<Style>
|
||||
<BackgroundColor>White</BackgroundColor>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>18pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<TextAlign>Right</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>Tara</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<ReportItems>
|
||||
<Textbox Name="Tara">
|
||||
<rd:DefaultName>Tara</rd:DefaultName>
|
||||
<Style>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>18pt</FontSize>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>=Fields!Tara.Value & " Kg"</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<ReportItems>
|
||||
<Textbox Name="CreateDate">
|
||||
<rd:DefaultName>CreateDate</rd:DefaultName>
|
||||
<Style>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>18pt</FontSize>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>=Fields!CreateDate.Value</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
</TableCells>
|
||||
<Height>3.50781cm</Height>
|
||||
</TableRow>
|
||||
</TableRows>
|
||||
</Details>
|
||||
<TableColumns>
|
||||
<TableColumn>
|
||||
<Width>6.31847cm</Width>
|
||||
</TableColumn>
|
||||
<TableColumn>
|
||||
<Width>6.36305cm</Width>
|
||||
</TableColumn>
|
||||
<TableColumn>
|
||||
<Width>6.31848cm</Width>
|
||||
</TableColumn>
|
||||
</TableColumns>
|
||||
<Height>7.01562cm</Height>
|
||||
<Left>0.5cm</Left>
|
||||
</Table>
|
||||
</ReportItems>
|
||||
<Height>13.5cm</Height>
|
||||
</Body>
|
||||
<Language>it-IT</Language>
|
||||
<TopMargin>0.5cm</TopMargin>
|
||||
<PageHeight>14.8cm</PageHeight>
|
||||
</Report>
|
||||
@@ -5,13 +5,14 @@ using System.Web.Services;
|
||||
using System.Data;
|
||||
using GMW_data;
|
||||
using GMW;
|
||||
using SteamWare;
|
||||
|
||||
namespace GMW.WS
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for bilance
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.0.9.14")]
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.1.0.14")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
public class bilance : System.Web.Services.WebService
|
||||
@@ -215,9 +216,18 @@ namespace GMW.WS
|
||||
[WebMethod(Description = "Effettua la stampa richiesta per l'UDC indicato")]
|
||||
public bool UdcPrintLabel(string place, tipoCartellino cartellino, string UDC)
|
||||
{
|
||||
bool answ = true;
|
||||
// qui dovrei lanciare la stampa a seconda del tipo cartellino...
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
|
||||
reportPrinter.obj.printReport(reportRichiesto.CartellinoTara, memLayer.ML.confReadString("printerCartTara"), UDC);
|
||||
//reportPrinter.obj.printReport(reportRichiesto.CartellinoTara, "PDFCreator", UDC);
|
||||
answ = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(e.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,6 +77,10 @@
|
||||
</scripting>
|
||||
</system.web.extensions>
|
||||
<appSettings>
|
||||
<add key="printerCartTara" value="PDFCreator"/>
|
||||
<add key="_logDir" value="./logs/"/>
|
||||
<add key="_logLevel" value="5"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost\sql2008;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,7 @@
|
||||
<appSettings>
|
||||
<add key="printerCartTara" value="PDFCreator"/>
|
||||
<add key="_logDir" value="./logs/"/>
|
||||
<add key="_logLevel" value="5"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"/>
|
||||
</appSettings>
|
||||
@@ -9,3 +9,5 @@ C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.xml
|
||||
C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.pdb
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.cache
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.compiled
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -8,3 +8,5 @@ c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\ResolveAssemblyReference.cache
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\GMW.dll
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\GMW.pdb
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\RdlCompile.cache
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\RdlCompile.compiled
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -12,6 +12,7 @@
|
||||
</DataSource>
|
||||
</DataSources>
|
||||
<InteractiveHeight>14.8cm</InteractiveHeight>
|
||||
<Description>demo report x cartellino tara</Description>
|
||||
<rd:DrawGrid>true</rd:DrawGrid>
|
||||
<InteractiveWidth>21cm</InteractiveWidth>
|
||||
<rd:GridSpacing>0.25cm</rd:GridSpacing>
|
||||
@@ -77,6 +78,7 @@
|
||||
</rd:DataSetInfo>
|
||||
</DataSet>
|
||||
</DataSets>
|
||||
<Author>Samuele E. Locatelli</Author>
|
||||
<Code />
|
||||
<Width>20cm</Width>
|
||||
<Body>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -31,10 +31,13 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
@@ -61,6 +64,8 @@
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="reportExporter.cs" />
|
||||
<Compile Include="reportPrinter.cs" />
|
||||
<Compile Include="utils.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,195 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Data;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Drawing.Printing;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Reporting.WinForms;
|
||||
using System.Configuration;
|
||||
using SteamWare;
|
||||
|
||||
/// <summary>
|
||||
/// Classe che restituisce uno stream ed i dati accessori per reinviare un report in pdf
|
||||
/// </summary>
|
||||
public class reportExporter
|
||||
{
|
||||
/// <summary>
|
||||
/// mimeType del report
|
||||
/// </summary>
|
||||
public string mimeType;
|
||||
/// <summary>
|
||||
/// encoding dei dati
|
||||
/// </summary>
|
||||
public string encoding;
|
||||
/// <summary>
|
||||
/// nome estensione
|
||||
/// </summary>
|
||||
public string fileNameExtension;
|
||||
/// <summary>
|
||||
/// steam di bytes del report
|
||||
/// </summary>
|
||||
public byte[] renderedBytes;
|
||||
/// <summary>
|
||||
/// metodo protected
|
||||
/// </summary>
|
||||
public reportExporter()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">tipo di report richiesto</param>
|
||||
/// <param name="UDC">cod UDC</param>
|
||||
/// <returns>tabella dati</returns>
|
||||
private DataTable caricaDati(reportRichiesto tipoReport, string UDC)
|
||||
{
|
||||
DataTable tab = new DataTable();
|
||||
switch (tipoReport)
|
||||
{
|
||||
//case reportRichiesto.CartellinoPesa:
|
||||
// tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.getByUdc(UDC);
|
||||
// break;
|
||||
case reportRichiesto.CartellinoTara:
|
||||
tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.getByUdc(UDC);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return tab;
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: SR_torrOp</param>
|
||||
/// <param name="idxCiclo">cod idxCiclo</param>
|
||||
/// <param name="numFase">numFase</param>
|
||||
/// <param name="numOp">numOp</param>
|
||||
/// <returns>tabella dati</returns>
|
||||
private DataTable caricaDati(reportRichiesto tipoReport, int idxCiclo, int numFase, int numOp)
|
||||
{
|
||||
DataTable tab = new DataTable();
|
||||
switch (tipoReport)
|
||||
{
|
||||
case reportRichiesto.SR_torrOp:
|
||||
tab = (DataTable)TA_app.obj.taRepTorrFAO.GetData(idxCiclo, numFase, numOp);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return tab;
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// renderizza il report in pdf
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: RichiestaIntervento</param>
|
||||
/// <param name="UDC">cod UDC</param>
|
||||
/// <returns></returns>
|
||||
public void popolaPdfStream(reportRichiesto tipoReport, string UDC)
|
||||
{
|
||||
LocalReport report = new LocalReport();
|
||||
string deviceInfo = "";
|
||||
ReportParameter[] _UDC = { new ReportParameter("UDC", UDC) };
|
||||
switch (tipoReport)
|
||||
{
|
||||
//case reportRichiesto.CartellinoPesa:
|
||||
// report.ReportPath = @".\Reports\FAO.rdlc";
|
||||
// report.DataSources.Add(new ReportDataSource("DataSet1", caricaDati(tipoReport, idxCiclo))); // OCCHIO!!! va messa sorgente dati CORRETTA
|
||||
// deviceInfo = "<DeviceInfo>" +
|
||||
// " <OutputFormat>PDF</OutputFormat>" +
|
||||
// " <PageWidth>21cm</PageWidth>" +
|
||||
// " <PageHeight>29.7cm</PageHeight>" +
|
||||
// " <MarginTop>0.2cm</MarginTop>" +
|
||||
// " <MarginLeft>0.2cm</MarginLeft>" +
|
||||
// " <MarginRight>0.2cm</MarginRight>" +
|
||||
// " <MarginBottom>0.2cm</MarginBottom>" +
|
||||
// "</DeviceInfo>";
|
||||
// report.SetParameters(_idxCiclo);
|
||||
// // aggancio evento al report per gestire il caricamento dei subreports...
|
||||
// report.SubreportProcessing += new SubreportProcessingEventHandler(report_SubreportProcessing);
|
||||
// break;
|
||||
case reportRichiesto.CartellinoTara:
|
||||
report.ReportPath = @".\Reports\CartellinoTara.rdlc";
|
||||
report.DataSources.Add(new ReportDataSource("GMWDataSet_stp_getStatoByUdc", caricaDati(tipoReport, UDC))); // OCCHIO!!! va messa sorgente dati CORRETTA
|
||||
deviceInfo = "<DeviceInfo>" +
|
||||
" <OutputFormat>PDF</OutputFormat>" +
|
||||
" <PageWidth>21cm</PageWidth>" +
|
||||
" <PageHeight>14.8cm</PageHeight>" +
|
||||
" <MarginTop>0.5cm</MarginTop>" +
|
||||
" <MarginLeft>0.5cm</MarginLeft>" +
|
||||
" <MarginRight>0.5cm</MarginRight>" +
|
||||
" <MarginBottom>0.5cm</MarginBottom>" +
|
||||
"</DeviceInfo>";
|
||||
report.SetParameters(_UDC);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
createPdfStream(report, deviceInfo);
|
||||
}
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
/// gestione evento render subreport...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void report_SubreportProcessing(object sender, SubreportProcessingEventArgs e)
|
||||
{
|
||||
// devo aggiungere i 2 dataset - (torretta e note utente) SOLO per il ciclo corrente, ed aggiungo altri aprametri (SE disponibili...)
|
||||
|
||||
// salvo idxCiclo...
|
||||
int _idxCiclo = 0;
|
||||
try
|
||||
{
|
||||
_idxCiclo = Convert.ToInt32(e.Parameters["idxCiclo"].Values[0]);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// salvo numFase...
|
||||
int _numFase = 0;
|
||||
try
|
||||
{
|
||||
_numFase = Convert.ToInt32(e.Parameters["numFase"].Values[0]);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// salvo numOp...
|
||||
int _numOp = 0;
|
||||
try
|
||||
{
|
||||
_numOp = Convert.ToInt32(e.Parameters["numOp"].Values[0]);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
e.DataSources.Add(new ReportDataSource("FasiOp", caricaDati(reportRichiesto.SR_torrOp, _idxCiclo, _numFase, _numOp)));
|
||||
e.DataSources.Add(new ReportDataSource("FasiOP", caricaDati(reportRichiesto.SR_noteUt, _idxCiclo)));
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// crea il vero e proprio stream pdf
|
||||
/// </summary>
|
||||
/// <param name="report"></param>
|
||||
/// <param name="deviceInfo"></param>
|
||||
private void createPdfStream(LocalReport report, string deviceInfo)
|
||||
{
|
||||
// export in PDF
|
||||
string reportType = "PDF";
|
||||
Warning[] warnings;
|
||||
string[] streams;
|
||||
renderedBytes = report.Render(
|
||||
reportType,
|
||||
deviceInfo,
|
||||
out mimeType,
|
||||
out encoding,
|
||||
out fileNameExtension,
|
||||
out streams,
|
||||
out warnings);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,273 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Data;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Drawing.Printing;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Reporting.WinForms;
|
||||
using System.Configuration;
|
||||
using SteamWare;
|
||||
|
||||
/// <summary>
|
||||
/// Classe che si occupa di stampare report da reportViewer via printer remota
|
||||
/// </summary>
|
||||
public class reportPrinter
|
||||
{
|
||||
#region area codice da non modificare
|
||||
|
||||
private int m_currentPageIndex;
|
||||
private IList<Stream> m_streams;
|
||||
/// <summary>
|
||||
/// ciclo da fornire al renderizzatore dei report, per salvare 1 immagine da ogni pagina del report
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="fileNameExtension"></param>
|
||||
/// <param name="encoding"></param>
|
||||
/// <param name="mimeType"></param>
|
||||
/// <param name="willSeek"></param>
|
||||
/// <returns></returns>
|
||||
private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
|
||||
{
|
||||
Stream stream = new FileStream(SteamWare.SteamwareStrings.getFilePath(@"~\temp\" + name + "." + fileNameExtension), FileMode.Create);
|
||||
m_streams.Add(stream);
|
||||
return stream;
|
||||
}
|
||||
/// <summary>
|
||||
/// Handler per PrintPageEvents
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="ev"></param>
|
||||
private void PrintPage(object sender, PrintPageEventArgs ev)
|
||||
{
|
||||
Metafile pageImage = new Metafile(m_streams[m_currentPageIndex]);
|
||||
ev.Graphics.DrawImage(pageImage, ev.PageBounds);
|
||||
m_currentPageIndex++;
|
||||
ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
|
||||
}
|
||||
/// <summary>
|
||||
/// funzione di stampa...
|
||||
/// </summary>
|
||||
private void Print(string printerName)
|
||||
{
|
||||
//const string printerName = "Microsoft Office Document Image Writer";
|
||||
//const string printerName = "Brother HL-2170W series";
|
||||
if (m_streams == null || m_streams.Count == 0)
|
||||
return;
|
||||
PrintDocument printDoc = new PrintDocument();
|
||||
printDoc.PrinterSettings.PrinterName = printerName;
|
||||
if (!printDoc.PrinterSettings.IsValid)
|
||||
{
|
||||
logger.lg.scriviLog(String.Format("Can't find printer \"{0}\".", printerName), tipoLog.ERROR);
|
||||
return;
|
||||
}
|
||||
printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
|
||||
printDoc.Print();
|
||||
}
|
||||
/// <summary>
|
||||
/// Export del report come EMF (Enhanced Metafile) file.
|
||||
/// </summary>
|
||||
/// <param name="report"></param>
|
||||
private void Export(LocalReport report, string deviceInfo)
|
||||
{
|
||||
Warning[] warnings;
|
||||
m_streams = new List<Stream>();
|
||||
report.Render("Image", deviceInfo, CreateStream, out warnings);
|
||||
foreach (Stream stream in m_streams) stream.Position = 0;
|
||||
}
|
||||
/// <summary>
|
||||
/// dispone l'applicazione e rilascia le risorse
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
if (m_streams != null)
|
||||
{
|
||||
foreach (Stream stream in m_streams)
|
||||
stream.Close();
|
||||
m_streams = null;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area codice da modificare
|
||||
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoMacchine / RichiestaIntervento</param>
|
||||
/// <param name="UDC">cod UDC</param>
|
||||
/// <returns>tabella dati</returns>
|
||||
private DataTable caricaDati(reportRichiesto tipoReport, string UDC)
|
||||
{
|
||||
DataTable tab = new DataTable();
|
||||
switch (tipoReport)
|
||||
{
|
||||
//case reportRichiesto.CartellinoPesa:
|
||||
// tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.getByUdc(UDC);
|
||||
// break;
|
||||
case reportRichiesto.CartellinoTara:
|
||||
tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.getByUdc(UDC);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return tab;
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoInterventi / MTBF_MTTR</param>
|
||||
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
|
||||
/// <returns>tabella dati</returns>
|
||||
private DataTable caricaDati(reportRichiesto tipoReport, intervalloDate periodoAnalizzato, string username)
|
||||
{
|
||||
DataTable tab = new DataTable();
|
||||
switch (tipoReport)
|
||||
{
|
||||
case reportRichiesto.ElencoInterventi:
|
||||
tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDateUsernameFilt(periodoAnalizzato.inizio, periodoAnalizzato.fine, username);
|
||||
break;
|
||||
case reportRichiesto.MTBF_MTTR:
|
||||
tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.GetData(periodoAnalizzato.inizio, periodoAnalizzato.fine, username);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return tab;
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoMacchine / RichiestaIntervento</param>
|
||||
/// <param name="printerName">nome completo stampante (rispetto al server)</param>
|
||||
/// <param name="UDC">cod UDC</param>
|
||||
public void printReport(reportRichiesto tipoReport, string printerName, string UDC)
|
||||
{
|
||||
LocalReport report = new LocalReport();
|
||||
string deviceInfo = "";
|
||||
switch (tipoReport)
|
||||
{
|
||||
//case reportRichiesto.CartellinoPesa:
|
||||
// report.ReportPath = @".\MacchineReparti.rdlc";
|
||||
// report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, parametro)));
|
||||
// deviceInfo = "<DeviceInfo>" +
|
||||
// " <OutputFormat>EMF</OutputFormat>" +
|
||||
// " <PageWidth>29.7cm</PageWidth>" +
|
||||
// " <PageHeight>21cm</PageHeight>" +
|
||||
// " <MarginTop>0.2cm</MarginTop>" +
|
||||
// " <MarginLeft>0.2cm</MarginLeft>" +
|
||||
// " <MarginRight>0.2cm</MarginRight>" +
|
||||
// " <MarginBottom>0.2cm</MarginBottom>" +
|
||||
// "</DeviceInfo>";
|
||||
// break;
|
||||
case reportRichiesto.CartellinoTara:
|
||||
report.ReportPath = @".\Reports\CartellinoTara.rdlc";
|
||||
report.DataSources.Add(new ReportDataSource("GMWDataSet_stp_getStatoByUdc", caricaDati(tipoReport, UDC)));
|
||||
deviceInfo = "<DeviceInfo>" +
|
||||
" <OutputFormat>EMF</OutputFormat>" +
|
||||
" <PageWidth>21cm</PageWidth>" +
|
||||
" <PageHeight>14.8cm</PageHeight>" +
|
||||
" <MarginTop>0.5cm</MarginTop>" +
|
||||
" <MarginLeft>0.5cm</MarginLeft>" +
|
||||
" <MarginRight>0.5cm</MarginRight>" +
|
||||
" <MarginBottom>0.5cm</MarginBottom>" +
|
||||
"</DeviceInfo>";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
doEmfPrint(printerName, report, deviceInfo);
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoInterventi / MTBF_MTTR</param>
|
||||
/// <param name="printerName">nome completo stampante (rispetto al server)</param>
|
||||
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
|
||||
public void printReport(reportRichiesto tipoReport, string printerName, intervalloDate periodoAnalizzato, string username)
|
||||
{
|
||||
LocalReport report = new LocalReport();
|
||||
string deviceInfo = "";
|
||||
switch (tipoReport)
|
||||
{
|
||||
case reportRichiesto.ElencoInterventi:
|
||||
report.ReportPath = @".\ReportInterventi.rdlc";
|
||||
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, username)));
|
||||
deviceInfo = "<DeviceInfo>" +
|
||||
" <OutputFormat>EMF</OutputFormat>" +
|
||||
" <PageWidth>21cm</PageWidth>" +
|
||||
" <PageHeight>29.7cm</PageHeight>" +
|
||||
" <MarginTop>0.2cm</MarginTop>" +
|
||||
" <MarginLeft>0.2cm</MarginLeft>" +
|
||||
" <MarginRight>0.2cm</MarginRight>" +
|
||||
" <MarginBottom>0.2cm</MarginBottom>" +
|
||||
"</DeviceInfo>";
|
||||
break;
|
||||
case reportRichiesto.MTBF_MTTR:
|
||||
report.ReportPath = @".\Report_MTBF_MTTR.rdlc";
|
||||
report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, username)));
|
||||
deviceInfo = "<DeviceInfo>" +
|
||||
" <OutputFormat>EMF</OutputFormat>" +
|
||||
" <PageWidth>21cm</PageWidth>" +
|
||||
" <PageHeight>29.7cm</PageHeight>" +
|
||||
" <MarginTop>0.2cm</MarginTop>" +
|
||||
" <MarginLeft>0.2cm</MarginLeft>" +
|
||||
" <MarginRight>0.2cm</MarginRight>" +
|
||||
" <MarginBottom>0.2cm</MarginBottom>" +
|
||||
"</DeviceInfo>";
|
||||
// calcolo le ore totali equivalenti...
|
||||
ReportParameter[] OreTotali = { new ReportParameter("OreTotali", WebGimUtils.obj.oreEquivalenti(periodoAnalizzato).ToString()) };
|
||||
report.SetParameters(OreTotali);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
doEmfPrint(printerName, report, deviceInfo);
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// esegue print vero e proprio
|
||||
/// </summary>
|
||||
/// <param name="printerName"></param>
|
||||
/// <param name="report"></param>
|
||||
/// <param name="deviceInfo"></param>
|
||||
private void doEmfPrint(string printerName, LocalReport report, string deviceInfo)
|
||||
{
|
||||
// export in EMF
|
||||
Export(report, deviceInfo);
|
||||
m_currentPageIndex = 0;
|
||||
// stampo
|
||||
Print(printerName);
|
||||
// do dispose?
|
||||
Dispose();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// oggetto protected
|
||||
/// </summary>
|
||||
/// <param name="args"></param>
|
||||
protected reportPrinter()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// singleton pubblico
|
||||
/// </summary>
|
||||
public static reportPrinter obj = new reportPrinter();
|
||||
|
||||
#endregion
|
||||
}
|
||||
/// <summary>
|
||||
/// tipologia di report ammessi alla stampa...
|
||||
/// </summary>
|
||||
public enum reportRichiesto
|
||||
{
|
||||
//CartellinoPesa,
|
||||
//CartellinoProduzione,
|
||||
CartellinoTara
|
||||
}
|
||||
@@ -101,7 +101,11 @@
|
||||
<Content Include="mazzConnectionStrings.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Reports\CartellinoTara.rdl" />
|
||||
<EmbeddedResource Include="Reports\CartellinoTara.rdlc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="logs\" />
|
||||
<Folder Include="temp\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" Condition="" />
|
||||
|
||||
@@ -0,0 +1,258 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
|
||||
<DataSources>
|
||||
<DataSource Name="GMWConnectionString">
|
||||
<rd:DataSourceID>d9194145-aa70-4a36-8b7a-c929936f98f7</rd:DataSourceID>
|
||||
<ConnectionProperties>
|
||||
<DataProvider>
|
||||
</DataProvider>
|
||||
<ConnectString>
|
||||
</ConnectString>
|
||||
</ConnectionProperties>
|
||||
</DataSource>
|
||||
</DataSources>
|
||||
<InteractiveHeight>14.8cm</InteractiveHeight>
|
||||
<rd:DrawGrid>true</rd:DrawGrid>
|
||||
<InteractiveWidth>21cm</InteractiveWidth>
|
||||
<rd:GridSpacing>0.25cm</rd:GridSpacing>
|
||||
<rd:SnapToGrid>true</rd:SnapToGrid>
|
||||
<RightMargin>0.5cm</RightMargin>
|
||||
<LeftMargin>0.5cm</LeftMargin>
|
||||
<BottomMargin>0.5cm</BottomMargin>
|
||||
<rd:ReportID>3255cde9-74a1-4005-8008-232d8355d769</rd:ReportID>
|
||||
<PageWidth>21cm</PageWidth>
|
||||
<DataSets>
|
||||
<DataSet Name="GMWDataSet_stp_getStatoByUdc">
|
||||
<Fields>
|
||||
<Field Name="CodCompany">
|
||||
<DataField>CodCompany</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="ODP">
|
||||
<DataField>ODP</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="UDC">
|
||||
<DataField>UDC</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Tara">
|
||||
<DataField>Tara</DataField>
|
||||
<rd:TypeName>System.Double</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="IdxStato">
|
||||
<DataField>IdxStato</DataField>
|
||||
<rd:TypeName>System.Int32</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Qta">
|
||||
<DataField>Qta</DataField>
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodImballo">
|
||||
<DataField>CodImballo</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CreateDate">
|
||||
<DataField>CreateDate</DataField>
|
||||
<rd:TypeName>System.DateTime</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="ModDate">
|
||||
<DataField>ModDate</DataField>
|
||||
<rd:TypeName>System.DateTime</rd:TypeName>
|
||||
</Field>
|
||||
</Fields>
|
||||
<Query>
|
||||
<DataSourceName>GMWConnectionString</DataSourceName>
|
||||
<CommandText>dbo.stp_getStatoByUdc</CommandText>
|
||||
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
|
||||
</Query>
|
||||
<rd:DataSetInfo>
|
||||
<rd:DataSetName>GMWDataSet</rd:DataSetName>
|
||||
<rd:TableName>stp_getStatoByUdc</rd:TableName>
|
||||
<rd:TableAdapterName>
|
||||
</rd:TableAdapterName>
|
||||
<rd:TableAdapterFillMethod>
|
||||
</rd:TableAdapterFillMethod>
|
||||
<rd:TableAdapterGetDataMethod>GetData</rd:TableAdapterGetDataMethod>
|
||||
</rd:DataSetInfo>
|
||||
</DataSet>
|
||||
</DataSets>
|
||||
<Code />
|
||||
<Width>20cm</Width>
|
||||
<Body>
|
||||
<ColumnSpacing>1cm</ColumnSpacing>
|
||||
<ReportItems>
|
||||
<Textbox Name="textbox1">
|
||||
<rd:DefaultName>textbox1</rd:DefaultName>
|
||||
<Width>12.69841cm</Width>
|
||||
<Style>
|
||||
<Color>SteelBlue</Color>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>20pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>1</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Height>0.91429cm</Height>
|
||||
<Value>CartellinoTara</Value>
|
||||
</Textbox>
|
||||
<Table Name="table1">
|
||||
<DataSetName>GMWDataSet_stp_getStatoByUdc</DataSetName>
|
||||
<Top>4cm</Top>
|
||||
<TableGroups>
|
||||
<TableGroup>
|
||||
<Grouping Name="table1_UDC">
|
||||
<GroupExpressions>
|
||||
<GroupExpression>=Fields!UDC.Value</GroupExpression>
|
||||
</GroupExpressions>
|
||||
</Grouping>
|
||||
<Sorting>
|
||||
<SortBy>
|
||||
<SortExpression>=Fields!UDC.Value</SortExpression>
|
||||
<Direction>Ascending</Direction>
|
||||
</SortBy>
|
||||
</Sorting>
|
||||
<Header>
|
||||
<TableRows>
|
||||
<TableRow>
|
||||
<TableCells>
|
||||
<TableCell>
|
||||
<ColSpan>3</ColSpan>
|
||||
<ReportItems>
|
||||
<Textbox Name="UDC">
|
||||
<rd:DefaultName>UDC</rd:DefaultName>
|
||||
<Style>
|
||||
<BackgroundColor>White</BackgroundColor>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Free 3 of 9 Extended</FontFamily>
|
||||
<FontSize>60pt</FontSize>
|
||||
<TextAlign>Left</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>="*" & Fields!UDC.Value & "*"</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
</TableCells>
|
||||
<Height>3.50781cm</Height>
|
||||
</TableRow>
|
||||
</TableRows>
|
||||
</Header>
|
||||
</TableGroup>
|
||||
</TableGroups>
|
||||
<Width>19cm</Width>
|
||||
<Details>
|
||||
<TableRows>
|
||||
<TableRow>
|
||||
<TableCells>
|
||||
<TableCell>
|
||||
<ReportItems>
|
||||
<Textbox Name="textbox4">
|
||||
<rd:DefaultName>textbox4</rd:DefaultName>
|
||||
<Style>
|
||||
<BackgroundColor>White</BackgroundColor>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>18pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<TextAlign>Right</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>Tara</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<ReportItems>
|
||||
<Textbox Name="Tara">
|
||||
<rd:DefaultName>Tara</rd:DefaultName>
|
||||
<Style>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>18pt</FontSize>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>=Fields!Tara.Value & " Kg"</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<ReportItems>
|
||||
<Textbox Name="CreateDate">
|
||||
<rd:DefaultName>CreateDate</rd:DefaultName>
|
||||
<Style>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>18pt</FontSize>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>=Fields!CreateDate.Value</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
</TableCells>
|
||||
<Height>3.50781cm</Height>
|
||||
</TableRow>
|
||||
</TableRows>
|
||||
</Details>
|
||||
<TableColumns>
|
||||
<TableColumn>
|
||||
<Width>6.31847cm</Width>
|
||||
</TableColumn>
|
||||
<TableColumn>
|
||||
<Width>6.36305cm</Width>
|
||||
</TableColumn>
|
||||
<TableColumn>
|
||||
<Width>6.31848cm</Width>
|
||||
</TableColumn>
|
||||
</TableColumns>
|
||||
<Height>7.01562cm</Height>
|
||||
<Left>0.5cm</Left>
|
||||
</Table>
|
||||
</ReportItems>
|
||||
<Height>13.5cm</Height>
|
||||
</Body>
|
||||
<Language>it-IT</Language>
|
||||
<TopMargin>0.5cm</TopMargin>
|
||||
<PageHeight>14.8cm</PageHeight>
|
||||
</Report>
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,7 @@
|
||||
<appSettings>
|
||||
<add key="printerCartTara" value="PDFCreator"/>
|
||||
<add key="_logDir" value="./logs/"/>
|
||||
<add key="_logLevel" value="5"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"/>
|
||||
</appSettings>
|
||||
@@ -9,3 +9,5 @@ C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.xml
|
||||
C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.pdb
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.cache
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.compiled
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -8,3 +8,5 @@ c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\ResolveAssemblyReference.cache
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\GMW.dll
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\GMW.pdb
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\RdlCompile.cache
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\RdlCompile.compiled
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -48,6 +48,10 @@
|
||||
</httpModules>
|
||||
</system.web>
|
||||
<appSettings>
|
||||
<add key="printerCartTara" value="PDFCreator" />
|
||||
<add key="_logDir" value="./logs/" />
|
||||
<add key="_logLevel" value="5" />
|
||||
<add key="_logMaxMb" value="30" />
|
||||
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
@@ -101,7 +101,11 @@
|
||||
<Content Include="mazzConnectionStrings.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Reports\CartellinoTara.rdl" />
|
||||
<EmbeddedResource Include="Reports\CartellinoTara.rdlc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="logs\" />
|
||||
<Folder Include="temp\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" Condition="" />
|
||||
|
||||
@@ -0,0 +1,258 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
|
||||
<DataSources>
|
||||
<DataSource Name="GMWConnectionString">
|
||||
<rd:DataSourceID>d9194145-aa70-4a36-8b7a-c929936f98f7</rd:DataSourceID>
|
||||
<ConnectionProperties>
|
||||
<DataProvider>
|
||||
</DataProvider>
|
||||
<ConnectString>
|
||||
</ConnectString>
|
||||
</ConnectionProperties>
|
||||
</DataSource>
|
||||
</DataSources>
|
||||
<InteractiveHeight>14.8cm</InteractiveHeight>
|
||||
<rd:DrawGrid>true</rd:DrawGrid>
|
||||
<InteractiveWidth>21cm</InteractiveWidth>
|
||||
<rd:GridSpacing>0.25cm</rd:GridSpacing>
|
||||
<rd:SnapToGrid>true</rd:SnapToGrid>
|
||||
<RightMargin>0.5cm</RightMargin>
|
||||
<LeftMargin>0.5cm</LeftMargin>
|
||||
<BottomMargin>0.5cm</BottomMargin>
|
||||
<rd:ReportID>3255cde9-74a1-4005-8008-232d8355d769</rd:ReportID>
|
||||
<PageWidth>21cm</PageWidth>
|
||||
<DataSets>
|
||||
<DataSet Name="GMWDataSet_stp_getStatoByUdc">
|
||||
<Fields>
|
||||
<Field Name="CodCompany">
|
||||
<DataField>CodCompany</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="ODP">
|
||||
<DataField>ODP</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="UDC">
|
||||
<DataField>UDC</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Tara">
|
||||
<DataField>Tara</DataField>
|
||||
<rd:TypeName>System.Double</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="IdxStato">
|
||||
<DataField>IdxStato</DataField>
|
||||
<rd:TypeName>System.Int32</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Qta">
|
||||
<DataField>Qta</DataField>
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodImballo">
|
||||
<DataField>CodImballo</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CreateDate">
|
||||
<DataField>CreateDate</DataField>
|
||||
<rd:TypeName>System.DateTime</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="ModDate">
|
||||
<DataField>ModDate</DataField>
|
||||
<rd:TypeName>System.DateTime</rd:TypeName>
|
||||
</Field>
|
||||
</Fields>
|
||||
<Query>
|
||||
<DataSourceName>GMWConnectionString</DataSourceName>
|
||||
<CommandText>dbo.stp_getStatoByUdc</CommandText>
|
||||
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
|
||||
</Query>
|
||||
<rd:DataSetInfo>
|
||||
<rd:DataSetName>GMWDataSet</rd:DataSetName>
|
||||
<rd:TableName>stp_getStatoByUdc</rd:TableName>
|
||||
<rd:TableAdapterName>
|
||||
</rd:TableAdapterName>
|
||||
<rd:TableAdapterFillMethod>
|
||||
</rd:TableAdapterFillMethod>
|
||||
<rd:TableAdapterGetDataMethod>GetData</rd:TableAdapterGetDataMethod>
|
||||
</rd:DataSetInfo>
|
||||
</DataSet>
|
||||
</DataSets>
|
||||
<Code />
|
||||
<Width>20cm</Width>
|
||||
<Body>
|
||||
<ColumnSpacing>1cm</ColumnSpacing>
|
||||
<ReportItems>
|
||||
<Textbox Name="textbox1">
|
||||
<rd:DefaultName>textbox1</rd:DefaultName>
|
||||
<Width>12.69841cm</Width>
|
||||
<Style>
|
||||
<Color>SteelBlue</Color>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>20pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>1</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Height>0.91429cm</Height>
|
||||
<Value>CartellinoTara</Value>
|
||||
</Textbox>
|
||||
<Table Name="table1">
|
||||
<DataSetName>GMWDataSet_stp_getStatoByUdc</DataSetName>
|
||||
<Top>4cm</Top>
|
||||
<TableGroups>
|
||||
<TableGroup>
|
||||
<Grouping Name="table1_UDC">
|
||||
<GroupExpressions>
|
||||
<GroupExpression>=Fields!UDC.Value</GroupExpression>
|
||||
</GroupExpressions>
|
||||
</Grouping>
|
||||
<Sorting>
|
||||
<SortBy>
|
||||
<SortExpression>=Fields!UDC.Value</SortExpression>
|
||||
<Direction>Ascending</Direction>
|
||||
</SortBy>
|
||||
</Sorting>
|
||||
<Header>
|
||||
<TableRows>
|
||||
<TableRow>
|
||||
<TableCells>
|
||||
<TableCell>
|
||||
<ColSpan>3</ColSpan>
|
||||
<ReportItems>
|
||||
<Textbox Name="UDC">
|
||||
<rd:DefaultName>UDC</rd:DefaultName>
|
||||
<Style>
|
||||
<BackgroundColor>White</BackgroundColor>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Free 3 of 9 Extended</FontFamily>
|
||||
<FontSize>60pt</FontSize>
|
||||
<TextAlign>Left</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>="*" & Fields!UDC.Value & "*"</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
</TableCells>
|
||||
<Height>3.50781cm</Height>
|
||||
</TableRow>
|
||||
</TableRows>
|
||||
</Header>
|
||||
</TableGroup>
|
||||
</TableGroups>
|
||||
<Width>19cm</Width>
|
||||
<Details>
|
||||
<TableRows>
|
||||
<TableRow>
|
||||
<TableCells>
|
||||
<TableCell>
|
||||
<ReportItems>
|
||||
<Textbox Name="textbox4">
|
||||
<rd:DefaultName>textbox4</rd:DefaultName>
|
||||
<Style>
|
||||
<BackgroundColor>White</BackgroundColor>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>18pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<TextAlign>Right</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>Tara</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<ReportItems>
|
||||
<Textbox Name="Tara">
|
||||
<rd:DefaultName>Tara</rd:DefaultName>
|
||||
<Style>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>18pt</FontSize>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>=Fields!Tara.Value & " Kg"</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<ReportItems>
|
||||
<Textbox Name="CreateDate">
|
||||
<rd:DefaultName>CreateDate</rd:DefaultName>
|
||||
<Style>
|
||||
<BorderColor>
|
||||
<Default>LightGrey</Default>
|
||||
</BorderColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>18pt</FontSize>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>=Fields!CreateDate.Value</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
</TableCell>
|
||||
</TableCells>
|
||||
<Height>3.50781cm</Height>
|
||||
</TableRow>
|
||||
</TableRows>
|
||||
</Details>
|
||||
<TableColumns>
|
||||
<TableColumn>
|
||||
<Width>6.31847cm</Width>
|
||||
</TableColumn>
|
||||
<TableColumn>
|
||||
<Width>6.36305cm</Width>
|
||||
</TableColumn>
|
||||
<TableColumn>
|
||||
<Width>6.31848cm</Width>
|
||||
</TableColumn>
|
||||
</TableColumns>
|
||||
<Height>7.01562cm</Height>
|
||||
<Left>0.5cm</Left>
|
||||
</Table>
|
||||
</ReportItems>
|
||||
<Height>13.5cm</Height>
|
||||
</Body>
|
||||
<Language>it-IT</Language>
|
||||
<TopMargin>0.5cm</TopMargin>
|
||||
<PageHeight>14.8cm</PageHeight>
|
||||
</Report>
|
||||
@@ -5,13 +5,14 @@ using System.Web.Services;
|
||||
using System.Data;
|
||||
using GMW_data;
|
||||
using GMW;
|
||||
using SteamWare;
|
||||
|
||||
namespace GMW.WS
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for bilance
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.0.9.14")]
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.1.0.14")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
public class bilance : System.Web.Services.WebService
|
||||
@@ -215,9 +216,18 @@ namespace GMW.WS
|
||||
[WebMethod(Description = "Effettua la stampa richiesta per l'UDC indicato")]
|
||||
public bool UdcPrintLabel(string place, tipoCartellino cartellino, string UDC)
|
||||
{
|
||||
bool answ = true;
|
||||
// qui dovrei lanciare la stampa a seconda del tipo cartellino...
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
|
||||
reportPrinter.obj.printReport(reportRichiesto.CartellinoTara, memLayer.ML.confReadString("printerCartTara"), UDC);
|
||||
//reportPrinter.obj.printReport(reportRichiesto.CartellinoTara, "PDFCreator", UDC);
|
||||
answ = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(e.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,6 +77,10 @@
|
||||
</scripting>
|
||||
</system.web.extensions>
|
||||
<appSettings>
|
||||
<add key="printerCartTara" value="PDFCreator"/>
|
||||
<add key="_logDir" value="./logs/"/>
|
||||
<add key="_logLevel" value="5"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost\sql2008;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,7 @@
|
||||
<appSettings>
|
||||
<add key="printerCartTara" value="PDFCreator"/>
|
||||
<add key="_logDir" value="./logs/"/>
|
||||
<add key="_logLevel" value="5"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"/>
|
||||
</appSettings>
|
||||
@@ -9,3 +9,5 @@ C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.xml
|
||||
C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.pdb
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.cache
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.compiled
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -8,3 +8,5 @@ c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\ResolveAssemblyReference.cache
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\GMW.dll
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\GMW.pdb
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\RdlCompile.cache
|
||||
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Release\RdlCompile.compiled
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -349,14 +349,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW"
|
||||
"ProductCode" = "8:{50716703-421B-4F09-AAAA-8823C33A7104}"
|
||||
"PackageCode" = "8:{62673DA0-52C6-4712-9954-994F0B103E0B}"
|
||||
"ProductCode" = "8:{911BD0AB-494A-4D74-8E34-D68B6D7EAD1C}"
|
||||
"PackageCode" = "8:{66F10CFD-0859-43DE-8FB8-A8CE37AC80C3}"
|
||||
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:0.9.14"
|
||||
"ProductVersion" = "8:1.0.14"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user