diff --git a/WebSites/WebGIM/RichiestaIntervento.rdlc b/WebSites/WebGIM/RichiestaIntervento.rdlc
new file mode 100644
index 0000000..94e8e87
--- /dev/null
+++ b/WebSites/WebGIM/RichiestaIntervento.rdlc
@@ -0,0 +1,38 @@
+
+
+ 29.7cm
+ true
+ 21cm
+ 0.25cm
+ true
+ 2.5cm
+ 2.5cm
+ 2.5cm
+ b5e89ed2-7fe4-4194-aa0d-b37d91344e81
+ 21cm
+ 16cm
+
+ 1cm
+
+
+ textbox1
+ 0.5cm
+ 5.74074cm
+
+ true
+ 3.75cm
+ 2.24868cm
+ Testing
+
+
+ 5cm
+
+ en-US
+ 2.5cm
+ 29.7cm
+
\ No newline at end of file
diff --git a/WebSites/WebGIM/Web.config b/WebSites/WebGIM/Web.config
index 8dd386c..80f2ac7 100644
--- a/WebSites/WebGIM/Web.config
+++ b/WebSites/WebGIM/Web.config
@@ -1,57 +1,57 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WebSites/WebGIM/mod_elencoRichieste.ascx b/WebSites/WebGIM/mod_elencoRichieste.ascx
index 6f2de1d..8041cec 100644
--- a/WebSites/WebGIM/mod_elencoRichieste.ascx
+++ b/WebSites/WebGIM/mod_elencoRichieste.ascx
@@ -28,6 +28,9 @@
+
@@ -70,12 +73,10 @@
-
-
-
-
+
diff --git a/WebSites/WebGIM/mod_elencoRichieste.ascx.cs b/WebSites/WebGIM/mod_elencoRichieste.ascx.cs
index aac458c..81c5a63 100644
--- a/WebSites/WebGIM/mod_elencoRichieste.ascx.cs
+++ b/WebSites/WebGIM/mod_elencoRichieste.ascx.cs
@@ -293,5 +293,34 @@ public partial class mod_elencoRichieste : ApplicationUserControl
}
return answ;
}
+
+ ///
+ /// stampa la scheda selezionata come PDF
+ ///
+ ///
+ ///
+ protected void btnPrintScheda_Click(object sender, ImageClickEventArgs e)
+ {
+#if false
+ ImageButton imgBtn = (ImageButton)sender;
+ // esporto pdf!
+ reportPrinter.obj.printReport(reportRichiesto.Barcode, memLayer.ML.confReadstring("printerBarcode"), imgBtn.CommandArgument);
+#endif
+ }
+ ///
+ /// prende in carico e stampa la scheda selezionata
+ ///
+ ///
+ ///
+ protected void btnPrendeInCarico_Click(object sender, ImageClickEventArgs e)
+ {
+ // prende in carico la scheda...
+#if false
+ ImageButton imgBtn = (ImageButton)sender;
+ // stampo!
+ reportPrinter.obj.printReport(reportRichiesto.Barcode, memLayer.ML.confReadstring("printerBarcode"), imgBtn.CommandArgument);
+#endif
+ }
+
#endregion
}
diff --git a/WebSites/WebGIM/test.aspx b/WebSites/WebGIM/test.aspx
index 4290a5a..95ba70c 100644
--- a/WebSites/WebGIM/test.aspx
+++ b/WebSites/WebGIM/test.aspx
@@ -1,15 +1,16 @@
-<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxSimple.master" AutoEventWireup="true"
- CodeFile="test.aspx.cs" Inherits="test" %>
+<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
-
- <%--
- Pagina di test con gestione creazione DB
-
-
-
-
-
-
--%>
-
+
+
+
+
+
+
+
+
+
+
diff --git a/WebSites/WebGIM/test.aspx.cs b/WebSites/WebGIM/test.aspx.cs
index f741d57..09c359b 100644
--- a/WebSites/WebGIM/test.aspx.cs
+++ b/WebSites/WebGIM/test.aspx.cs
@@ -3,25 +3,17 @@ using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
-using System.Configuration;
-using SteamWare;
public partial class test : System.Web.UI.Page
{
- //protected void Page_Load(object sender, EventArgs e)
- //{
- // lblResult.Text = "";
- //}
- //protected void btnResetDbProd_Click(object sender, EventArgs e)
- //{
- // //dbUpdateManager dum = new SteamWare.dbUpdateManager(memLayer.ML.confReadstring("AppConnectionString"), "sql", "{0}_{1:0000}.sql");
- // //dum.updateDbToRev("GIM", 0, 2, 600);
- // //lblResult.Text = "Fatto!";
- //}
- //protected void btnResetDbTest_Click(object sender, EventArgs e)
- //{
- // dbUpdateManager dum = new SteamWare.dbUpdateManager(memLayer.ML.confReadstring("TestAppConnectionString"), "sql", "{0}_{1:0000}.sql");
- // dum.updateDbToRev("GIM", 0, 2, 600);
- // lblResult.Text = "Fatto!";
- //}
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ reportExporter re = new reportExporter();
+ re.popolaPdfStream(reportRichiesto.RichiestaIntervento, "1");
+ Response.Clear();
+ Response.ContentType = re.mimeType;
+ Response.AddHeader("content-disposition", "attachment; filename=WebGIM." + re.fileNameExtension);
+ Response.BinaryWrite(re.renderedBytes);
+ Response.End();
+ }
}