Inserito nuovo report x stampa doc offerta by Gian su IIS02 e WinLab

This commit is contained in:
Samuele E. Locatelli
2015-03-09 13:16:44 +01:00
parent 77531e45ce
commit 3e7cb2b7cb
19 changed files with 11707 additions and 52 deletions
+1 -37
View File
@@ -18,43 +18,7 @@ namespace C2P
if (!Page.IsPostBack)
{
// imposto iframe! con tutti i possibili valori di URL
repView.Src = string.Format(@"{0}/ReportViewer.aspx?ticket={1}&lingua={2}&QuoteType={3}&CodQuote={4}&QuoteRev={5}", memLayer.ML.confReadString("reportsUrl"), Request.QueryString["ticket"], user_std.UtSn.lingua, Request.QueryString["QuoteType"], Request.QueryString["CodQuote"], Request.QueryString["QuoteRev"]);
#if false
if (memLayer.ML.confReadBool("ReportRemoteRender"))
{
ReportOffers.ProcessingMode = ProcessingMode.Remote;
ReportOffers.ServerReport.ReportServerUrl = new Uri(@"http://10.74.82.217/ReportServer_SQL2008R2");
ReportOffers.ServerReport.ReportPath = @"/Test/ReportOffers";
ReportOffers.ServerReport.DisplayName = "Offers";
}
else
{
ReportOffers.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
LocalReport localReport = ReportOffers.LocalReport;
// 0) recupero la richiesta di stampa: numero ticket!
int ticket = 0;
try
{
ticket = Convert.ToInt32(Request.QueryString["ticket"]);
}
catch
{ }
// 1) impostazione file report
localReport.ReportPath = @".\Reports\ReportOffers.rdlc";
// 2) caricamento tab dati
DataTable tabVoc = new DataTable();
DataTable tabQuote = new DataTable();
tabVoc = (DataTable)SteamWare.selDataVoc.mgr.getVocabolarioByLemma(SteamWare.user_std.UtSn.lingua, "C2P_prt1"); // HARD CODED lemma x report!!!
tabQuote = (DataTable)DtProxy.man.taQFQ.repOffersByTicket(ticket);
// 3) inserimento dataset nel report
localReport.DataSources.Add(new ReportDataSource("dsVocabolario", tabVoc));
localReport.DataSources.Add(new ReportDataSource("dsQuoteFull_Q_Data", tabQuote));
}
#endif
repView.Src = string.Format(@"{0}/ReportViewer.aspx?ticket={1}&lingua={2}&QuoteType={3}&CodQuote={4}&QuoteRev={5}&TypeDoc={6}", memLayer.ML.confReadString("reportsUrl"), Request.QueryString["ticket"], user_std.UtSn.lingua, Request.QueryString["QuoteType"], Request.QueryString["CodQuote"], Request.QueryString["QuoteRev"], Request.QueryString["TypeDoc"]);
}
}
}
+7 -8
View File
@@ -110,16 +110,9 @@
</div>
<div class="col-sm-2 col-sm-offset-1" style="padding: 0px 4px;">
<asp:LinkButton runat="server" Width="100%" ID="lbPrint" CssClass="btn btn-info" OnClick="lbPrint_Click"><i class="fa fa-print"></i> <%:traduci("Print") %></asp:LinkButton>
<%--<asp:RadioButtonList runat="server" ID="rblTipoReport" RepeatDirection="Horizontal" RepeatLayout="Flow" class="btn-group btn-group-justified" role="group" >
<asp:ListItem Text="Analisys" Value="1" Selected="True" class="btn btn-default btn-xs"></asp:ListItem>
<asp:ListItem Text="Offer" Value="2" class="btn btn-default btn-xs"></asp:ListItem>
</asp:RadioButtonList>--%>
</div>
<div class="col-sm-1" style="padding: 0px 4px;">
<asp:DropDownList runat="server" ID="ddlTypeDoc">
<asp:ListItem Value="0" Text="--Select--"></asp:ListItem>
<asp:ListItem Value="1" Text="Detailed"></asp:ListItem>
<asp:ListItem Value="2" Text="Offer Doc"></asp:ListItem>
<asp:DropDownList runat="server" ID="ddlTypeDoc" CssClass="btn btn-default dropdown-toggle" Font-Size="X-Small" DataSourceID="odsTipoDoc" DataTextField="label" datal="value" DataValueField="value">
</asp:DropDownList>
</div>
</div>
@@ -225,6 +218,12 @@
<asp:SessionParameter SessionField="searchVal" Name="search" Type="String" DefaultValue="*" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="odsTipoDoc" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByTableField" TypeName="C2P_Data.DS_UtilityTableAdapters.v_selListValTableAdapter">
<SelectParameters>
<asp:Parameter DefaultValue="*" Name="TableName" Type="String" />
<asp:Parameter DefaultValue="TipoDoc" Name="FieldName" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>
<div runat="server" id="numRes" class="row">
@@ -489,7 +489,7 @@ namespace C2P.WebUserControls
}
}
// rimando a pagina di stampa reports...
Response.Redirect(string.Format("RepOffers?ticket={0}&QuoteType={1}&CodQuote=0&QuoteRev=0", ticket, QuoteType));
Response.Redirect(string.Format("RepOffers?ticket={0}&QuoteType={1}&CodQuote=0&QuoteRev=0&TypeDoc={2}", ticket, QuoteType, ddlTypeDoc.SelectedValue));
}
}
/// <summary>
+9
View File
@@ -183,6 +183,15 @@ namespace C2P.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsQuotes;
/// <summary>
/// odsTipoDoc 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 odsTipoDoc;
/// <summary>
/// numRes control.
/// </summary>
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
+7
View File
@@ -117,16 +117,20 @@
<Content Include="Reports\IIS02\ReportOffers_S.rdl" />
<Content Include="Reports\WinLab\ReportOffers_Q.rdl" />
<Content Include="Reports\WinLab\ReportOffers_S.rdl" />
<EmbeddedResource Include="Reports\deploy\OffertDOC.rdlc" />
<EmbeddedResource Include="Reports\deploy\ReportOffers_Q.rdlc" />
<EmbeddedResource Include="Reports\deploy\ReportOffers_S.rdlc" />
<Content Include="Reports\deploy\StdCostList.rdlc">
<SubType>Designer</SubType>
</Content>
<EmbeddedResource Include="Reports\IIS02\OffertDOC.rdlc" />
<EmbeddedResource Include="Reports\IIS02\ReportOffers_Q.rdlc" />
<EmbeddedResource Include="Reports\IIS02\ReportOffers_S.rdlc" />
<Content Include="Reports\IIS02\StdCostList.rdlc">
<SubType>Designer</SubType>
</Content>
<Content Include="Reports\OffertDOC.rdlc" />
<EmbeddedResource Include="Reports\WinLab\OffertDOC.rdlc" />
<EmbeddedResource Include="Reports\WinLab\ReportOffers_Q.rdlc" />
<EmbeddedResource Include="Reports\WinLab\ReportOffers_S.rdlc" />
<Content Include="Reports\IIS02\StdCostList.rdl" />
@@ -134,6 +138,9 @@
<Content Include="Reports\deploy\ReportOffers_Q.rdl" />
<Content Include="Reports\deploy\ReportOffers_S.rdl" />
<Content Include="Reports\deploy\StdCostList.rdl" />
<Content Include="Reports\deploy\OffertDOC.rdl" />
<Content Include="Reports\IIS02\OffertDOC.rdl" />
<Content Include="Reports\WinLab\OffertDOC.rdl" />
<None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</None>
+23 -2
View File
@@ -36,6 +36,7 @@ namespace C2P_Report
int CodQuote = 0;
int QuoteRev = 0;
string chiave = "";
string TypeDoc = "";
try
{
ticket = Convert.ToInt32(Request.QueryString["ticket"]);
@@ -70,8 +71,28 @@ namespace C2P_Report
}
if (lingua == "" || lingua == null) lingua = "EN";
// 1) impostazione file report
localReport.ReportPath = string.Format(@".\Reports\ReportOffers_{0}.rdlc", QuoteType);
try
{
TypeDoc = Request.QueryString["TypeDoc"];
}
catch
{
lingua = "ReportOff";
}
// 1) impostazione file report da TypeDoc:
if (TypeDoc == "ReportOff")
{
localReport.ReportPath = string.Format(@".\Reports\ReportOffers_{0}.rdlc", QuoteType);
}
else if (TypeDoc == "OffertDOC")
{
localReport.ReportPath = string.Format(@".\Reports\OffertDOC.rdlc");
}
else // fallback
{
localReport.ReportPath = string.Format(@".\Reports\ReportOffers_{0}.rdlc", QuoteType);
}
// 2) caricamento tab dati
DataTable tabVoc = new DataTable();
DataTable tabVocQState = new DataTable();
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
+2 -2
View File
@@ -5,7 +5,7 @@
using System.Reflection;
[assembly: AssemblyVersion("2.3.162.453")]
[assembly: AssemblyFileVersion("2.3.162.453")]
[assembly: AssemblyVersion("2.3.164.463")]
[assembly: AssemblyFileVersion("2.3.164.463")]
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-2015")]
[assembly: AssemblyCompany("Steamware")]
+2 -2
View File
@@ -6,8 +6,8 @@
using System.Reflection;
[assembly: AssemblyVersion("2.3.162.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("2.3.162.<#= this.RevisionNumber #>")]
[assembly: AssemblyVersion("2.3.164.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("2.3.164.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+