From 81c4e6396b0804e5e57daac3d5b2bf1847a045c7 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 21 Sep 2017 18:31:21 +0200 Subject: [PATCH] Aggiunta bozza pagina print prenotazioni... --- ScheMe-PIC/PREN_Print.aspx | 11 +++++++ ScheMe-PIC/PREN_Print.aspx.cs | 43 ++++++++++++++++++++++++++ ScheMe-PIC/PREN_Print.aspx.designer.cs | 24 ++++++++++++++ ScheMe-PIC/ScheMe-PIC.csproj | 8 +++++ ScheMe-PIC/VPAI.aspx | 10 ------ 5 files changed, 86 insertions(+), 10 deletions(-) create mode 100644 ScheMe-PIC/PREN_Print.aspx create mode 100644 ScheMe-PIC/PREN_Print.aspx.cs create mode 100644 ScheMe-PIC/PREN_Print.aspx.designer.cs 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);