diff --git a/ScheMe-PIC/Content/Style.css b/ScheMe-PIC/Content/Style.css index e694521..9df938d 100644 --- a/ScheMe-PIC/Content/Style.css +++ b/ScheMe-PIC/Content/Style.css @@ -187,8 +187,7 @@ background-color: #EFF3FB; } .editRowStyle { - background-color: #C1CCF1; - Color: #3366FF; + background-color: #2461BF; } .selectedRowStyle { background-color: #C1CCF1; diff --git a/ScheMe-PIC/Content/Style.min.css b/ScheMe-PIC/Content/Style.min.css index 16eef71..36a4f42 100644 --- a/ScheMe-PIC/Content/Style.min.css +++ b/ScheMe-PIC/Content/Style.min.css @@ -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}} \ No newline at end of file +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}} \ No newline at end of file diff --git a/ScheMe-PIC/ScheMe-PIC.csproj b/ScheMe-PIC/ScheMe-PIC.csproj index 2114055..751407f 100644 --- a/ScheMe-PIC/ScheMe-PIC.csproj +++ b/ScheMe-PIC/ScheMe-PIC.csproj @@ -214,6 +214,7 @@ + @@ -448,6 +449,13 @@ VPAI.aspx + + VPAI_Print.aspx + ASPXCodeBehind + + + VPAI_Print.aspx + VPP.aspx ASPXCodeBehind diff --git a/ScheMe-PIC/VPAI.aspx b/ScheMe-PIC/VPAI.aspx index e08d5f5..f9d5faf 100644 --- a/ScheMe-PIC/VPAI.aspx +++ b/ScheMe-PIC/VPAI.aspx @@ -6,6 +6,7 @@ +

Attenzione!

@@ -14,6 +15,26 @@
+
@@ -107,9 +131,9 @@ NUOVO
-
+
- +
diff --git a/ScheMe-PIC/VPAI_Print.aspx b/ScheMe-PIC/VPAI_Print.aspx new file mode 100644 index 0000000..b4f0fb5 --- /dev/null +++ b/ScheMe-PIC/VPAI_Print.aspx @@ -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" %> + + + + + + +

<%: pazienteSel %>

+

<%: SteamWare.memLayer.ML.QSD("DataVisita") %>

+ +
diff --git a/ScheMe-PIC/VPAI_Print.aspx.cs b/ScheMe-PIC/VPAI_Print.aspx.cs new file mode 100644 index 0000000..2168351 --- /dev/null +++ b/ScheMe-PIC/VPAI_Print.aspx.cs @@ -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"); + } + + /// + /// stringa del paziente selezionato + /// + public string pazienteSel + { + get + { + string answ = "-"; + if (memLayer.ML.isInSessionObject("Paziente")) + { + answ = memLayer.ML.StringSessionObj("Paziente"); + } + return answ; + } + } + + } +} \ No newline at end of file diff --git a/ScheMe-PIC/VPAI_Print.aspx.designer.cs b/ScheMe-PIC/VPAI_Print.aspx.designer.cs new file mode 100644 index 0000000..5ea5a4f --- /dev/null +++ b/ScheMe-PIC/VPAI_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 VPAI_Print { + + /// + /// Controllo mod_PrestPAI. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::ScheMe.WebUserControls.mod_PrestPAI mod_PrestPAI; + } +} diff --git a/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx b/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx index 40266da..50c3fda 100644 --- a/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx +++ b/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx @@ -103,6 +103,8 @@ + + diff --git a/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx.cs b/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx.cs index 971319d..2870e91 100644 --- a/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx.cs +++ b/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx.cs @@ -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)); } /// /// Aggiorna il controllo e indica come in editing il primo record... diff --git a/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx.designer.cs b/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx.designer.cs index 10329b5..20ba42d 100644 --- a/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx.designer.cs +++ b/ScheMe-PIC/WebUserControls/mod_PrestPAI.ascx.designer.cs @@ -21,6 +21,24 @@ namespace ScheMe.WebUserControls { /// protected global::System.Web.UI.WebControls.GridView grView; + /// + /// Controllo hfIdxPaziente. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfIdxPaziente; + + /// + /// Controllo hfDataVisita. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfDataVisita; + /// /// Controllo ods. ///