Aggiunta bozza pagina print prenotazioni...
This commit is contained in:
@@ -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" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="NoAjaxContent" runat="server">
|
||||
<uc1:mod_Prenotazioni runat="server" ID="mod_Prenotazioni" />
|
||||
</asp:Content>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+24
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ScheMe {
|
||||
|
||||
|
||||
public partial class PREN_Print {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_Prenotazioni.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::ScheMe.WebUserControls.mod_Prenotazioni mod_Prenotazioni;
|
||||
}
|
||||
}
|
||||
@@ -198,6 +198,7 @@
|
||||
<Content Include="fonts\OpenSans_Cond_300.woff2" />
|
||||
<None Include="Scripts\jquery-3.1.1.intellisense.js" />
|
||||
<Content Include="PREN.aspx" />
|
||||
<Content Include="PREN_Print.aspx" />
|
||||
<Content Include="Scripts\jquery-3.1.1.js" />
|
||||
<Content Include="Scripts\jquery-3.1.1.min.js" />
|
||||
<Content Include="Scripts\jquery-3.1.1.slim.js" />
|
||||
@@ -399,6 +400,13 @@
|
||||
<Compile Include="PREN.aspx.designer.cs">
|
||||
<DependentUpon>PREN.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PREN_Print.aspx.cs">
|
||||
<DependentUpon>PREN_Print.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PREN_Print.aspx.designer.cs">
|
||||
<DependentUpon>PREN_Print.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
|
||||
@@ -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('<html><head><title>PAI | PDC</title>');
|
||||
//printWindow.document.write('<link href="~/Content/themes/base/jquery" rel="stylesheet" />');
|
||||
//printWindow.document.write('<link href="~/Content/bootstrap/css" rel="stylesheet" />');
|
||||
//printWindow.document.write('<link href="~/Content/css" rel="stylesheet" />');
|
||||
//printWindow.document.write('</head><body >');
|
||||
//printWindow.document.write(panel.innerHTML);
|
||||
//printWindow.document.write('</body></html>');
|
||||
//printWindow.document.close();
|
||||
setTimeout(function () {
|
||||
printWindow.print();
|
||||
}, 500);
|
||||
|
||||
Reference in New Issue
Block a user