OK Stampa PAI...

This commit is contained in:
Samuele E. Locatelli
2017-09-21 10:34:39 +02:00
parent e12ea2ad79
commit 008dd7eed7
10 changed files with 169 additions and 17 deletions
+1 -2
View File
@@ -187,8 +187,7 @@
background-color: #EFF3FB;
}
.editRowStyle {
background-color: #C1CCF1;
Color: #3366FF;
background-color: #2461BF;
}
.selectedRowStyle {
background-color: #C1CCF1;
+1 -1
View File
@@ -1 +1 @@
body{font-family:'Open Sans',sans-serif}.uppercase{text-transform:uppercase}.bigBtn{min-height:2.2em;font-size:1.2em}.nowrap{white-space:nowrap}.smaller{font-size:.7em}.smallest{font-size:.6em}.condRow{line-height:1em}.fontCond{font-family:'Open Sans Condensed',sans-serif}.padLR1{padding:0 1em}.fullWidth>.navbar-nav{display:table;width:100%;margin:0}.fullWidth>.navbar-nav>li{float:none;display:table-cell;text-align:center}.VVF-CL-01{color:#060;background-color:#fff}.VVF-CL-02{color:#ff3;background-color:#22f}.VVF-CL-03{color:#ff3;background-color:#181}.VVF-CL-04{color:#000;background-color:#6f1}.VVF-CL-05{color:#ff3;background-color:#ea2}.VVF-CL-06{color:#ff1;background-color:#e62}.VVF-CL-07{color:#ff1;background-color:#ff0c0c}.VVF-CL-08{color:#ff1;background-color:#ff0cac}.headerRow{background-color:#eee;color:#000}.text-center{text-align:center;margin:auto}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right}.flLeft{float:left}.errore{color:#f00}.headLine{background-color:#38c;color:#fff}.hBlock{background-color:#d7d7d7;color:#000}.hBlockDrk{background-color:#585858;color:#fff}.fBlock{background-color:#f2f2f2;color:#000}.btn.btn-square{border-radius:0}.btn-circle{width:2.2em;height:2.2em;text-align:center;padding:.3em 0;font-size:1em;line-height:1.6;border-radius:1em}.btn-circle.btn-lg{width:3.5em;height:3.5em;padding:.6em 1em;font-size:1.5em;line-height:1.5;border-radius:1.8em}.btn-circle.btn-xl{width:5em;height:5em;padding:.6em 1em;font-size:2em;line-height:1.5;border-radius:3em}.btn-selected,.navbar-nav>li>.btn-selected{background-color:#38c;font-weight:600;color:#fff}.btn-selected:hover,.navbar-nav>li .btn-selected:hover{background-color:#d1ddf1;font-weight:600;color:#333}.btn-unselected,.navbar-nav>li .btn-unselected{background-color:#efefef;font-weight:600;color:#333}.btn-unselected:hover,.navbar-nav>li>.btn-unselected:hover{background-color:#333;font-weight:600;color:#efefef}.RowStyle{background-color:#eff3fb;text-align:left}.rowStyle{background-color:#eff3fb}.editRowStyle{background-color:#c1ccf1;Color:#36f}.selectedRowStyle{background-color:#c1ccf1;font-weight:bold;Color:#36f}.alternatingRowStyle{background-color:#fff}.footerRowStyle{background-color:#5d7b9d;font-weight:bold;color:#fff}.headerRowStyle{background-color:#5d7b9d;font-weight:bold;color:#fff}.headerRowStyle a{color:#fff}.spacedRow{line-height:3em}.baseRow{background-color:#eff3fb}.altRow{background-color:#fff}.editRow{background-color:#2461bf}.selectedRow{background-color:#d1ddf1;font-weight:600;color:#333}.headerHighlight{font-weight:600;color:#38c;font-size:1.2em}.footerRow{background-color:#38c;font-weight:600;color:#fff}.pagerRow{background-color:#2461bf;color:#fff;text-align:center;margin:auto}.stortAscCellStyle{background-color:#f5f7fb}.stortAscHeadStyle{background-color:#6d95e1}.stortDescCellStyle{background-color:#e9ebef}.stortDescHeadStyle{background-color:#4870be}.GridPager{background-color:#ff7c50}.GridPager a,.GridPager span{display:block;height:2em;width:2em;text-align:center;vertical-align:baseline;text-decoration:none;background-color:#2461bf}.GridPager a{background-color:#f5f5f5;color:#969696}.GridPager span{background-color:#f2dca1;color:#000;font-weight:bold}.imgNoPad{margin-top:-3px;margin-bottom:-7px}@media all and (min-width:768px){#textWrapper{font-size:1em}#headData{margin-top:0}.bottomnav{min-height:5em}}@media all and (min-width:1024px){#textWrapper{font-size:1.2em}#headData{margin-top:0}}@media all and (min-width:1440px){#textWrapper{font-size:1.4em}#headData{margin-top:0}}@media all and (min-width:1600px){#textWrapper{font-size:1.6em}#headData{margin-top:0}}@media all and (min-width:1900px){#textWrapper{font-size:1.8em}#headData{margin-top:0}}@media all and (min-width:2200px){#textWrapper{font-size:2em}#headData{margin-top:0}}@media all and (max-width:767px){#textWrapper{font-size:.8em}#headData{margin-top:6px}.bottomnav{min-height:6em}}@media all and (max-width:480px){#textWrapper{font-size:.7em}#headData{margin-top:14px}.bottomnav{min-height:7em}}@media all and (max-width:320px){#textWrapper{font-size:.6em}#headData{margin-top:18px}.bottomnav{min-height:8em}}
body{font-family:'Open Sans',sans-serif}.uppercase{text-transform:uppercase}.bigBtn{min-height:2.2em;font-size:1.2em}.nowrap{white-space:nowrap}.smaller{font-size:.7em}.smallest{font-size:.6em}.condRow{line-height:1em}.fontCond{font-family:'Open Sans Condensed',sans-serif}.padLR1{padding:0 1em}.fullWidth>.navbar-nav{display:table;width:100%;margin:0}.fullWidth>.navbar-nav>li{float:none;display:table-cell;text-align:center}.VVF-CL-01{color:#060;background-color:#fff}.VVF-CL-02{color:#ff3;background-color:#22f}.VVF-CL-03{color:#ff3;background-color:#181}.VVF-CL-04{color:#000;background-color:#6f1}.VVF-CL-05{color:#ff3;background-color:#ea2}.VVF-CL-06{color:#ff1;background-color:#e62}.VVF-CL-07{color:#ff1;background-color:#ff0c0c}.VVF-CL-08{color:#ff1;background-color:#ff0cac}.headerRow{background-color:#eee;color:#000}.text-center{text-align:center;margin:auto}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right}.flLeft{float:left}.errore{color:#f00}.headLine{background-color:#38c;color:#fff}.hBlock{background-color:#d7d7d7;color:#000}.hBlockDrk{background-color:#585858;color:#fff}.fBlock{background-color:#f2f2f2;color:#000}.btn.btn-square{border-radius:0}.btn-circle{width:2.2em;height:2.2em;text-align:center;padding:.3em 0;font-size:1em;line-height:1.6;border-radius:1em}.btn-circle.btn-lg{width:3.5em;height:3.5em;padding:.6em 1em;font-size:1.5em;line-height:1.5;border-radius:1.8em}.btn-circle.btn-xl{width:5em;height:5em;padding:.6em 1em;font-size:2em;line-height:1.5;border-radius:3em}.btn-selected,.navbar-nav>li>.btn-selected{background-color:#38c;font-weight:600;color:#fff}.btn-selected:hover,.navbar-nav>li .btn-selected:hover{background-color:#d1ddf1;font-weight:600;color:#333}.btn-unselected,.navbar-nav>li .btn-unselected{background-color:#efefef;font-weight:600;color:#333}.btn-unselected:hover,.navbar-nav>li>.btn-unselected:hover{background-color:#333;font-weight:600;color:#efefef}.RowStyle{background-color:#eff3fb;text-align:left}.rowStyle{background-color:#eff3fb}.editRowStyle{background-color:#2461bf}.selectedRowStyle{background-color:#c1ccf1;font-weight:bold;Color:#36f}.alternatingRowStyle{background-color:#fff}.footerRowStyle{background-color:#5d7b9d;font-weight:bold;color:#fff}.headerRowStyle{background-color:#5d7b9d;font-weight:bold;color:#fff}.headerRowStyle a{color:#fff}.spacedRow{line-height:3em}.baseRow{background-color:#eff3fb}.altRow{background-color:#fff}.editRow{background-color:#2461bf}.selectedRow{background-color:#d1ddf1;font-weight:600;color:#333}.headerHighlight{font-weight:600;color:#38c;font-size:1.2em}.footerRow{background-color:#38c;font-weight:600;color:#fff}.pagerRow{background-color:#2461bf;color:#fff;text-align:center;margin:auto}.stortAscCellStyle{background-color:#f5f7fb}.stortAscHeadStyle{background-color:#6d95e1}.stortDescCellStyle{background-color:#e9ebef}.stortDescHeadStyle{background-color:#4870be}.GridPager{background-color:#ff7c50}.GridPager a,.GridPager span{display:block;height:2em;width:2em;text-align:center;vertical-align:baseline;text-decoration:none;background-color:#2461bf}.GridPager a{background-color:#f5f5f5;color:#969696}.GridPager span{background-color:#f2dca1;color:#000;font-weight:bold}.imgNoPad{margin-top:-3px;margin-bottom:-7px}@media all and (min-width:768px){#textWrapper{font-size:1em}#headData{margin-top:0}.bottomnav{min-height:5em}}@media all and (min-width:1024px){#textWrapper{font-size:1.2em}#headData{margin-top:0}}@media all and (min-width:1440px){#textWrapper{font-size:1.4em}#headData{margin-top:0}}@media all and (min-width:1600px){#textWrapper{font-size:1.6em}#headData{margin-top:0}}@media all and (min-width:1900px){#textWrapper{font-size:1.8em}#headData{margin-top:0}}@media all and (min-width:2200px){#textWrapper{font-size:2em}#headData{margin-top:0}}@media all and (max-width:767px){#textWrapper{font-size:.8em}#headData{margin-top:6px}.bottomnav{min-height:6em}}@media all and (max-width:480px){#textWrapper{font-size:.7em}#headData{margin-top:14px}.bottomnav{min-height:7em}}@media all and (max-width:320px){#textWrapper{font-size:.6em}#headData{margin-top:18px}.bottomnav{min-height:8em}}
+8
View File
@@ -214,6 +214,7 @@
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
<Content Include="Services\WS_data.asmx" />
<Content Include="VPAI.aspx" />
<Content Include="VPAI_Print.aspx" />
<Content Include="VPP.aspx" />
<Content Include="VVMD.aspx" />
<Content Include="WebUserControls\mod_autocomplete.ascx" />
@@ -448,6 +449,13 @@
<Compile Include="VPAI.aspx.designer.cs">
<DependentUpon>VPAI.aspx</DependentUpon>
</Compile>
<Compile Include="VPAI_Print.aspx.cs">
<DependentUpon>VPAI_Print.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VPAI_Print.aspx.designer.cs">
<DependentUpon>VPAI_Print.aspx</DependentUpon>
</Compile>
<Compile Include="VPP.aspx.cs">
<DependentUpon>VPP.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+26 -2
View File
@@ -6,6 +6,7 @@
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:FormView ID="frmView" runat="server" DataSourceID="ods" RenderOuterTable="False" OnModeChanged="frmView_ModeChanged" OnModeChanging="frmView_ModeChanging" OnItemCreated="frmView_ItemCreated" OnItemUpdating="frmView_ItemUpdating" OnItemInserting="frmView_ItemInserting">
<EmptyDataTemplate>
<h3>Attenzione!</h3>
@@ -14,6 +15,26 @@
<ItemTemplate>
<div class="row">
<div class="col-xs-12 col-sm-3">
<script type="text/javascript">
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);
return false;
}
</script>
<ul class="list-group">
<li class="list-group-item hBlock">
<button class="btn btn-default btn-sm" type="button" data-toggle="collapse" data-target="#collapsePat" aria-expanded="false" aria-controls="collapsePat">
@@ -86,6 +107,9 @@
<li class="list-group-item">
<asp:LinkButton runat="server" CssClass="btn btn-primary form-control" ID="lbtCreaProgramma"><i class="fa fa-clock-o"></i> Genera calendario</asp:LinkButton>
</li>
<li class="list-group-item">
<asp:LinkButton ID="btnPrint" CssClass="btn btn-warning form-control" runat="server" Text="Print" OnClientClick="return PrintPanel();" ><i class="fa fa-print"></i> STAMPA</asp:LinkButton>
</li>
</ul>
</div>
<div class="col-xs-12 col-sm-9">
@@ -107,9 +131,9 @@
<asp:LinkButton runat="server" CssClass="btn btn-primary form-control" ID="lbtAddFree" OnClick="lbtAddFree_Click"><i class="fa fa-plus"></i> NUOVO</asp:LinkButton>
</div>
</div>
<div class="row" style="padding-top: 0.5em;">
<div id="divPAI" class="row" style="padding-top: 0.5em;">
<div class="col-xs-12">
<uc1:mod_PrestPAI runat="server" ID="mod_PrestPAI" />
<uc1:mod_PrestPAI runat="server" ID="mod_PrestPAI" idxPaziente='<%# Eval("IdxPaziente") %>' DataVisita='<%# Eval("DataVisita") %>' />
</div>
</div>
</div>
+13
View File
@@ -0,0 +1,13 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Bootstrap.Master" AutoEventWireup="true" CodeBehind="VPAI_Print.aspx.cs" Inherits="ScheMe.VPAI_Print" %>
<%@ Register Src="~/WebUserControls/mod_PrestPAI.ascx" TagPrefix="uc1" TagName="mod_PrestPAI" %>
<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">
<h1><%: pazienteSel %></h1>
<h3><%: SteamWare.memLayer.ML.QSD("DataVisita") %></h3>
<uc1:mod_PrestPAI runat="server" ID="mod_PrestPAI" />
</asp:Content>
+36
View File
@@ -0,0 +1,36 @@
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 VPAI_Print : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
mod_PrestPAI.idxPaziente = memLayer.ML.IntSessionObj("IdxPaziente");
mod_PrestPAI.DataVisita = memLayer.ML.QSD("DataVisita");
}
/// <summary>
/// stringa del paziente selezionato
/// </summary>
public string pazienteSel
{
get
{
string answ = "-";
if (memLayer.ML.isInSessionObject("Paziente"))
{
answ = memLayer.ML.StringSessionObj("Paziente");
}
return answ;
}
}
}
}
+24
View File
@@ -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 VPAI_Print {
/// <summary>
/// Controllo mod_PrestPAI.
/// </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_PrestPAI mod_PrestPAI;
}
}
@@ -103,6 +103,8 @@
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:HiddenField runat="server" ID="hfIdxPaziente" />
<asp:HiddenField runat="server" ID="hfDataVisita" />
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByPaziente" TypeName="ScheMe_Data.DS_ApplicazioneTableAdapters.VisPAI_PrestTableAdapter" OnDeleted="ods_Deleted" UpdateMethod="UpdateQuery" DeleteMethod="DeleteQuery" OnUpdated="ods_Updated" OnUpdating="ods_Updating">
<DeleteParameters>
<asp:SessionParameter Name="Original_IdxPaziente" SessionField="IdxPaziente" Type="Int32" DefaultValue="0" />
+40 -12
View File
@@ -17,26 +17,53 @@ namespace ScheMe.WebUserControls
{
return string.Format("/{0}/WS_data.asmx/{1}", memLayer.ML.confReadString("serviceUrl"), method);
}
protected int idxPaziente
//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;
// }
//}
public int idxPaziente
{
get
{
return memLayer.ML.IntSessionObj("IdxPaziente");
int answ = 0;
Int32.TryParse(hfIdxPaziente.Value, out answ);
return answ;
}
set
{
hfIdxPaziente.Value = value.ToString();
}
}
protected DateTime DataVisita
{
public DateTime DataVisita {
get
{
DateTime answ = DateTime.Now.Date;
try
{
answ = memLayer.ML.QSD("DataVisita");
}
catch
{ }
DateTime answ;
DateTime.TryParse(hfIdxPaziente.Value, out answ);
return answ;
}
set
{
hfDataVisita.Value = value.ToString();
}
}
protected void Page_Load(object sender, EventArgs e)
@@ -68,7 +95,8 @@ namespace ScheMe.WebUserControls
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
{
Response.Redirect(string.Format("{0}?cmd=sel&DataVisita={1:yyyy-MM-dd}", user_std.pagCorrente, DataVisita));
raiseEvent(ucEvType.ReqUpdateParent);
//Response.Redirect(string.Format("{0}?cmd=sel&DataVisita={1:yyyy-MM-dd}", user_std.pagCorrente, DataVisita));
}
/// <summary>
/// Aggiorna il controllo e indica come in editing il primo record...
+18
View File
@@ -21,6 +21,24 @@ namespace ScheMe.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo hfIdxPaziente.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfIdxPaziente;
/// <summary>
/// Controllo hfDataVisita.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfDataVisita;
/// <summary>
/// Controllo ods.
/// </summary>