diff --git a/NKC_WF/Content/SheetColor.css b/NKC_WF/Content/SheetColor.css index e6351c9..e607c85 100644 --- a/NKC_WF/Content/SheetColor.css +++ b/NKC_WF/Content/SheetColor.css @@ -7,25 +7,11 @@ #IT000002 { fill: green; } -#IT000003 { - fill: yellow; - stroke: blue; - /* Safari 4.0 - 8.0 */ - -webkit-animation-name: blueFlash; - -webkit-animation-duration: 0.5s; - -webkit-animation-timing-function: linear; - -webkit-animation-delay: 0s; - -webkit-animation-iteration-count: infinite; - -webkit-animation-direction: alternate; - /* Standard syntax */ - animation-name: blueFlash; - animation-duration: 0.5s; - animation-timing-function: linear; - animation-delay: 0s; - animation-iteration-count: infinite; - animation-direction: alternate; - stroke-width: 2px !important; -} +/*#IT000003 { + fill: orange; + .flashStroke; + .strokeThick; +}*/ #IT000004 { fill: #FF6969; /*.flashStroke; @@ -34,6 +20,19 @@ #IT000005 { fill: #0033FF; } +/*#IT000006 { + fill: orange; +}*/ +#IT000007 { + fill: #AACCFF; +} +#IT000008 { + fill: #2288FF; +} +.tableSvg { + background: url(../Images/test.svg) no-repeat top left; + background-size: contain; +} .fVerde { fill: green; } diff --git a/NKC_WF/Content/SheetColor.less b/NKC_WF/Content/SheetColor.less index e5e586b..8a2c150 100644 --- a/NKC_WF/Content/SheetColor.less +++ b/NKC_WF/Content/SheetColor.less @@ -10,11 +10,11 @@ fill: green; } -#IT000003 { - fill: yellow; +/*#IT000003 { + fill: orange; .flashStroke; .strokeThick; -} +}*/ #IT000004 { fill: #FF6969; @@ -27,6 +27,22 @@ fill: #0033FF; } +/*#IT000006 { + fill: orange; +}*/ +#IT000007 { + fill: #AACCFF; +} +#IT000008 { + fill: #2288FF; +} + +.tableSvg { + background: url(../Images/test.svg) no-repeat top left; + background-size: contain; +} + + .fVerde { fill: green; diff --git a/NKC_WF/Content/SheetColor.min.css b/NKC_WF/Content/SheetColor.min.css index e6e980a..8494bee 100644 --- a/NKC_WF/Content/SheetColor.min.css +++ b/NKC_WF/Content/SheetColor.min.css @@ -1 +1 @@ -rect{transform:rotate(90deg);}#IT000001{fill:#fa5;}#IT000002{fill:green;}#IT000003{fill:yellow;stroke:blue;-webkit-animation-name:blueFlash;-webkit-animation-duration:.5s;-webkit-animation-timing-function:linear;-webkit-animation-delay:0s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-name:blueFlash;animation-duration:.5s;animation-timing-function:linear;animation-delay:0s;animation-iteration-count:infinite;animation-direction:alternate;stroke-width:2px !important;}#IT000004{fill:#ff6969;}#IT000005{fill:#03f;}.fVerde{fill:green;}.fBlu{fill:blue;}.strokeThick{stroke-width:2px !important;}.flashStroke{stroke:blue;-webkit-animation-name:blueFlash;-webkit-animation-duration:.5s;-webkit-animation-timing-function:linear;-webkit-animation-delay:0s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-name:blueFlash;animation-duration:.5s;animation-timing-function:linear;animation-delay:0s;animation-iteration-count:infinite;animation-direction:alternate;}@-webkit-keyframes blueFlash{0%{stroke:#c4dbff;}25%{stroke:#9dc4ff;}50%{stroke:#5ca5ff;}75%{stroke:#1b82ff;}100%{stroke:#005ccc;}} \ No newline at end of file +rect{transform:rotate(90deg);}#IT000001{fill:#fa5;}#IT000002{fill:green;}#IT000004{fill:#ff6969;}#IT000005{fill:#03f;}#IT000007{fill:#acf;}#IT000008{fill:#28f;}.tableSvg{background:url(../Images/test.svg) no-repeat top left;background-size:contain;}.fVerde{fill:green;}.fBlu{fill:blue;}.strokeThick{stroke-width:2px !important;}.flashStroke{stroke:blue;-webkit-animation-name:blueFlash;-webkit-animation-duration:.5s;-webkit-animation-timing-function:linear;-webkit-animation-delay:0s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-name:blueFlash;animation-duration:.5s;animation-timing-function:linear;animation-delay:0s;animation-iteration-count:infinite;animation-direction:alternate;}@-webkit-keyframes blueFlash{0%{stroke:#c4dbff;}25%{stroke:#9dc4ff;}50%{stroke:#5ca5ff;}75%{stroke:#1b82ff;}100%{stroke:#005ccc;}} \ No newline at end of file diff --git a/NKC_WF/Images/test.svg b/NKC_WF/Images/test.svg index 71dff25..ed10a30 100644 --- a/NKC_WF/Images/test.svg +++ b/NKC_WF/Images/test.svg @@ -31,14 +31,14 @@ /> + /> + d="m 81.642856,31.660713 2.267858,37.041667 43.845236,4.535714 42.33333,-6.047618 9.07143,-34.017857 -65.76785,-12.095238 z" /> - diff --git a/NKC_WF/MachineUnload.aspx b/NKC_WF/MachineUnload.aspx index 2ac2602..5c9b72d 100644 --- a/NKC_WF/MachineUnload.aspx +++ b/NKC_WF/MachineUnload.aspx @@ -1,18 +1,48 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MachineUnload.aspx.cs" Inherits="NKC_WF.MachineUnload" %> -<%-- -
- - - -
- - - - --%> -
- - + + + + + + + + +<%-- +
+
+ --%> + + + +
+
+
+ + + +
+
+
+ + + <%-- + --%> +
+
+ <%-- + + + --%> +
+
+
+
diff --git a/NKC_WF/MachineUnload.aspx.cs b/NKC_WF/MachineUnload.aspx.cs index fd7bfa4..290b704 100644 --- a/NKC_WF/MachineUnload.aspx.cs +++ b/NKC_WF/MachineUnload.aspx.cs @@ -1,15 +1,18 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; +using System.IO; namespace NKC_WF { public partial class MachineUnload : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) + { + string filename = Server.MapPath("~/Images/test.svg"); + string answ = File.ReadAllText(filename); + svgTable.InnerHtml = answ; + } + + protected void timReloadCss_Tick(object sender, EventArgs e) { } diff --git a/NKC_WF/MachineUnload.aspx.designer.cs b/NKC_WF/MachineUnload.aspx.designer.cs index ae6c4c4..6333f7b 100644 --- a/NKC_WF/MachineUnload.aspx.designer.cs +++ b/NKC_WF/MachineUnload.aspx.designer.cs @@ -11,5 +11,41 @@ namespace NKC_WF { public partial class MachineUnload { + + /// + /// Controllo uplTavola. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.UpdatePanel uplTavola; + + /// + /// Controllo timReloadCss. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.Timer timReloadCss; + + /// + /// Controllo upnlDrawings. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.UpdatePanel upnlDrawings; + + /// + /// Controllo svgTable. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl svgTable; } } diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index ac9381d..d4c1041 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -173,6 +173,7 @@ SheetColor.css + @@ -339,6 +340,13 @@ DevUtils.aspx + + getDynCss.aspx + ASPXCodeBehind + + + getDynCss.aspx + Global.asax diff --git a/NKC_WF/getDynCss.aspx b/NKC_WF/getDynCss.aspx new file mode 100644 index 0000000..c43b901 --- /dev/null +++ b/NKC_WF/getDynCss.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="getDynCss.aspx.cs" Inherits="NKC_WF.getDynCss" %> + + + + + + + + + +
+
+
+
+ + diff --git a/NKC_WF/getDynCss.aspx.cs b/NKC_WF/getDynCss.aspx.cs new file mode 100644 index 0000000..d2a1bea --- /dev/null +++ b/NKC_WF/getDynCss.aspx.cs @@ -0,0 +1,34 @@ +using System; +using System.IO; + +namespace NKC_WF +{ + public partial class getDynCss : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + // retitusico un CSS continuamente aggiornato... + Response.Clear(); + string filename = Server.MapPath("~/Content/SheetColor.css"); + string answ = File.ReadAllText(filename); + // rendo dinamico in base al secondo pari/dispari il mio #IT00006 + int secondi = DateTime.Now.Second; + if (secondi % 2 == 0) + { + answ += "#IT000006 {fill: orange;}"; + answ += "#IT000003 {fill: orange; .flashStroke; .strokeThick;}"; + + } + else + { + answ += "#IT000006 {fill: blue;}"; + answ += "#IT000003 {fill: blue; .flashStroke; .strokeThick;}"; + } + + Response.ContentType = "text/css"; + Response.Write(answ); + Response.Flush(); + Response.End(); + } + } +} \ No newline at end of file diff --git a/NKC_WF/getDynCss.aspx.designer.cs b/NKC_WF/getDynCss.aspx.designer.cs new file mode 100644 index 0000000..d4081af --- /dev/null +++ b/NKC_WF/getDynCss.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 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 NKC_WF +{ + + + public partial class getDynCss + { + + /// + /// Controllo form1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +}