diff --git a/ScheMe-PIC/PREN_Print.aspx b/ScheMe-PIC/PREN_Print.aspx new file mode 100644 index 0000000..a64ad00 --- /dev/null +++ b/ScheMe-PIC/PREN_Print.aspx @@ -0,0 +1,11 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Bootstrap.Master" AutoEventWireup="true" CodeBehind="PREN_Print.aspx.cs" Inherits="ScheMe.PREN_Print" %> + +<%@ Register Src="~/WebUserControls/mod_Prenotazioni.ascx" TagPrefix="uc1" TagName="mod_Prenotazioni" %> + + + + + + + + diff --git a/ScheMe-PIC/PREN_Print.aspx.cs b/ScheMe-PIC/PREN_Print.aspx.cs new file mode 100644 index 0000000..cc7f27f --- /dev/null +++ b/ScheMe-PIC/PREN_Print.aspx.cs @@ -0,0 +1,43 @@ +using SteamWare; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace ScheMe +{ + public partial class PREN_Print : System.Web.UI.Page + { + protected int idxPaziente + { + get + { + return memLayer.ML.IntSessionObj("IdxPaziente"); + } + } + protected DateTime DataVisita + { + get + { + DateTime answ = DateTime.Now.Date; + try + { + answ = memLayer.ML.QSD("DataVisita"); + } + catch + { } + return answ; + } + } + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + mod_Prenotazioni.idxPaziente = idxPaziente; + mod_Prenotazioni.DataVisita = DataVisita; + } + } + } +} \ No newline at end of file diff --git a/ScheMe-PIC/PREN_Print.aspx.designer.cs b/ScheMe-PIC/PREN_Print.aspx.designer.cs new file mode 100644 index 0000000..4037941 --- /dev/null +++ b/ScheMe-PIC/PREN_Print.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace ScheMe { + + + public partial class PREN_Print { + + /// + /// Controllo mod_Prenotazioni. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::ScheMe.WebUserControls.mod_Prenotazioni mod_Prenotazioni; + } +} diff --git a/ScheMe-PIC/ScheMe-PIC.csproj b/ScheMe-PIC/ScheMe-PIC.csproj index 4dd7970..79c2bd4 100644 --- a/ScheMe-PIC/ScheMe-PIC.csproj +++ b/ScheMe-PIC/ScheMe-PIC.csproj @@ -198,6 +198,7 @@ + @@ -399,6 +400,13 @@ PREN.aspx + + PREN_Print.aspx + ASPXCodeBehind + + + PREN_Print.aspx + True diff --git a/ScheMe-PIC/VPAI.aspx b/ScheMe-PIC/VPAI.aspx index cfe1292..815f534 100644 --- a/ScheMe-PIC/VPAI.aspx +++ b/ScheMe-PIC/VPAI.aspx @@ -19,16 +19,6 @@ function PrintPanel() { var actPath = document.URL; var printWindow = window.open(actPath.replace('PAI','PAI_Print'), '_blank', 'height=400,width=800'); - //var panel = document.getElementById('divPAI'); - //var printWindow = window.open('', '', 'height=400,width=800'); - //printWindow.document.write('PAI | PDC'); - //printWindow.document.write(''); - //printWindow.document.write(''); - //printWindow.document.write(''); - //printWindow.document.write(''); - //printWindow.document.write(panel.innerHTML); - //printWindow.document.write(''); - //printWindow.document.close(); setTimeout(function () { printWindow.print(); }, 500);