diff --git a/GPW/A1/Default.aspx b/GPW/A1/Default.aspx new file mode 100644 index 0000000..f238aa5 --- /dev/null +++ b/GPW/A1/Default.aspx @@ -0,0 +1,19 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GPW.AdminArea.Default" %> + + + + + + + + +
+
+

+ Admin

+

+ Default page

+
+
+ + diff --git a/GPW/A1/Default.aspx.cs b/GPW/A1/Default.aspx.cs new file mode 100644 index 0000000..9a2f1f1 --- /dev/null +++ b/GPW/A1/Default.aspx.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +namespace GPW.AdminArea +{ + public partial class Default : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + memLayer.ML.setSessionVal("preUrlString", "A1", true); + memLayer.ML.setSessionVal("nextPage", "menu.aspx"); + Response.Redirect("login.aspx"); + } + } +} \ No newline at end of file diff --git a/GPW/A1/Default.aspx.designer.cs b/GPW/A1/Default.aspx.designer.cs new file mode 100644 index 0000000..6845710 --- /dev/null +++ b/GPW/A1/Default.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.AdminArea +{ + + + public partial class Default + { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +} diff --git a/GPW/A1/ExportCommesse.aspx b/GPW/A1/ExportCommesse.aspx new file mode 100644 index 0000000..3b633c5 --- /dev/null +++ b/GPW/A1/ExportCommesse.aspx @@ -0,0 +1,35 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExportCommesse.aspx.cs" Inherits="GPW.A1.ExportCommesse" %> + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + diff --git a/GPW/A1/ExportCommesse.aspx.cs b/GPW/A1/ExportCommesse.aspx.cs new file mode 100644 index 0000000..141afdd --- /dev/null +++ b/GPW/A1/ExportCommesse.aspx.cs @@ -0,0 +1,132 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Text; +using GPW_data; +using SteamWare; + +namespace GPW.A1 +{ + public partial class ExportCommesse : System.Web.UI.Page + { + public override void VerifyRenderingInServerForm(Control control) + { + // Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time. + } + + /// + /// inizio report + /// + protected DateTime inizio + { + get + { + return Convert.ToDateTime(memLayer.ML.objSessionObj("_inizio")); + } + } + /// + /// fine report + /// + protected DateTime fine + { + get + { + return Convert.ToDateTime(memLayer.ML.objSessionObj("_fine")); + } + } + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + aggiornamento(); + doExport(); + } + } + /// + /// update controlli + /// + public void aggiornamento() + { + grView.AllowPaging = false; + //gvEventi.PageSize = _numRighe; + ods.DataBind(); + } + /// + /// export html pagina + /// + private void doExport() + { + Response.Clear(); + Response.AddHeader("content-disposition", string.Format("attachment; filename=ExportCommesse_{0:dd-MM-yyyy}_{1:dd-MM-yyyy}.xls", inizio, fine)); + Response.Charset = ""; + // If you want the option to open the Excel file without saving than + // comment out the line below + Response.Cache.SetCacheability(HttpCacheability.NoCache); + Response.ContentType = "application/vnd.xls"; + System.IO.StringWriter stringWrite = new System.IO.StringWriter(); + System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite); + grView.RenderControl(htmlWrite); + Response.Write(stringWrite.ToString()); + Response.End(); + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + } + } + /// + /// effettua traduzione del lemma + /// + /// + /// + public string traduci(string lemma) + { + return user_std.UtSn.Traduci(lemma); + } + /// + /// restituisce info se utente sia admin (vedi web.config x ruolo...) + /// + public bool userIsAdmin + { + get + { + bool answ = false; + try + { + string adminRole = memLayer.ML.confReadString("adminRole"); + answ = user_std.UtSn.userHasRight(adminRole); + } + catch + { } + return answ; + } + } + + } +} \ No newline at end of file diff --git a/GPW/A1/ExportCommesse.aspx.designer.cs b/GPW/A1/ExportCommesse.aspx.designer.cs new file mode 100644 index 0000000..3b0af31 --- /dev/null +++ b/GPW/A1/ExportCommesse.aspx.designer.cs @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class ExportCommesse { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + } +} diff --git a/GPW/A1/ExportTimbZucchetti.aspx b/GPW/A1/ExportTimbZucchetti.aspx new file mode 100644 index 0000000..b368524 --- /dev/null +++ b/GPW/A1/ExportTimbZucchetti.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExportTimbZucchetti.aspx.cs" Inherits="GPW.A1.ExportTimbZucchetti" Culture="it-IT" %> + + + + + + + + +
+
+ +
+
+ + diff --git a/GPW/A1/ExportTimbZucchetti.aspx.cs b/GPW/A1/ExportTimbZucchetti.aspx.cs new file mode 100644 index 0000000..9095a2f --- /dev/null +++ b/GPW/A1/ExportTimbZucchetti.aspx.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Text; +using GPW_data; +using SteamWare; + + +namespace GPW.A1 +{ + public partial class ExportTimbZucchetti : System.Web.UI.Page + { + protected DateTime inizio; + protected DateTime fine; + protected int idxDipendente; + string codTimbra; + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + aggiornamento(); + doExport(); + } + } + /// + /// update controlli + /// + public void aggiornamento() + { + // carico dati inizio/fine periodo richiesti + inizio = Convert.ToDateTime(memLayer.ML.objSessionObj("_inizio")); + fine = Convert.ToDateTime(memLayer.ML.objSessionObj("_fine")); + idxDipendente = memLayer.ML.IntSessionObj("idxDip_sel"); + if (idxDipendente == -1) idxDipendente = 0; + codTimbra = memLayer.ML.confReadString("codTimbra"); + if (codTimbra == "") + { + codTimbra = "90"; // timbratrice 90: da web.config + } + } + /// + /// export html pagina + /// + private void doExport() + { + string attachment = "attachment; filename=Timbrature.txt"; + Response.Clear(); + Response.ClearHeaders(); + Response.ClearContent(); + Response.AddHeader("content-disposition", attachment); + Response.Charset = ""; + // If you want the option to open the Excel file without saving than + // comment out the line below + Response.Cache.SetCacheability(HttpCacheability.NoCache); + Response.ContentType = "text/csv"; + Response.AddHeader("Pragma", "public"); + // scrivo le righe dell'output! + DS_export.TimbratureZucchettiDataTable tabTimb = DataProxy.DP.taExpZucc.GetData(inizio, fine, idxDipendente, codTimbra); + foreach (DS_export.TimbratureZucchettiRow riga in tabTimb) + { + Response.Write(riga.campoExport); + Response.Write(Environment.NewLine); + } + //System.IO.StringWriter stringWrite = new System.IO.StringWriter(); + //System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite); + //grView.RenderControl(htmlWrite); + //Response.Write(stringWrite.ToString()); + Response.End(); + + } + } +} \ No newline at end of file diff --git a/GPW/A1/ExportTimbZucchetti.aspx.designer.cs b/GPW/A1/ExportTimbZucchetti.aspx.designer.cs new file mode 100644 index 0000000..093e19f --- /dev/null +++ b/GPW/A1/ExportTimbZucchetti.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 +{ + + + public partial class ExportTimbZucchetti + { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +} diff --git a/GPW/A1/approvTimbrature.aspx b/GPW/A1/approvTimbrature.aspx new file mode 100644 index 0000000..9ef7787 --- /dev/null +++ b/GPW/A1/approvTimbrature.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxTitle.master" AutoEventWireup="true" CodeBehind="approvTimbrature.aspx.cs" Inherits="GPW.A1.approvTimbrature" %> +<%@ Register src="../WebUserControls/mod_approvaTimbr.ascx" tagname="mod_approvaTimbr" tagprefix="uc1" %> + + + diff --git a/GPW/A1/approvTimbrature.aspx.cs b/GPW/A1/approvTimbrature.aspx.cs new file mode 100644 index 0000000..055c029 --- /dev/null +++ b/GPW/A1/approvTimbrature.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class approvTimbrature : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/approvTimbrature.aspx.designer.cs b/GPW/A1/approvTimbrature.aspx.designer.cs new file mode 100644 index 0000000..2a186e0 --- /dev/null +++ b/GPW/A1/approvTimbrature.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class approvTimbrature { + + /// + /// mod_approvaTimbr1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_approvaTimbr mod_approvaTimbr1; + } +} diff --git a/GPW/A1/chLang.aspx b/GPW/A1/chLang.aspx new file mode 100644 index 0000000..606f073 --- /dev/null +++ b/GPW/A1/chLang.aspx @@ -0,0 +1,9 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/MasterAjax.master" AutoEventWireup="true" CodeBehind="chLang.aspx.cs" + Inherits="GPW.A1.chLang" %> + + +

Errore

+ Modulo multilingue non disponibile / non installato + +
diff --git a/GPW/A1/chLang.aspx.cs b/GPW/A1/chLang.aspx.cs new file mode 100644 index 0000000..95519e7 --- /dev/null +++ b/GPW/A1/chLang.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class chLang : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/chLang.aspx.designer.cs b/GPW/A1/chLang.aspx.designer.cs new file mode 100644 index 0000000..b94c0be --- /dev/null +++ b/GPW/A1/chLang.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 +{ + + + public partial class chLang + { + } +} diff --git a/GPW/A1/clienti.aspx b/GPW/A1/clienti.aspx new file mode 100644 index 0000000..30801c8 --- /dev/null +++ b/GPW/A1/clienti.aspx @@ -0,0 +1,6 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="clienti.aspx.cs" Inherits="GPW.A1.clienti" %> + +<%@ Register Src="../WebUserControls/mod_adminClienti.ascx" TagName="mod_adminClienti" TagPrefix="uc1" %> + + + diff --git a/GPW/A1/clienti.aspx.cs b/GPW/A1/clienti.aspx.cs new file mode 100644 index 0000000..9a34c7d --- /dev/null +++ b/GPW/A1/clienti.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class clienti : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/clienti.aspx.designer.cs b/GPW/A1/clienti.aspx.designer.cs new file mode 100644 index 0000000..d977967 --- /dev/null +++ b/GPW/A1/clienti.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class clienti { + + /// + /// mod_adminClienti1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_adminClienti mod_adminClienti1; + } +} diff --git a/GPW/A1/dipendenti.aspx b/GPW/A1/dipendenti.aspx new file mode 100644 index 0000000..c1a84bb --- /dev/null +++ b/GPW/A1/dipendenti.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="dipendenti.aspx.cs" Inherits="GPW.A1.dipendenti" %> +<%@ Register src="../WebUserControls/mod_adminDipendenti.ascx" tagname="mod_adminDipendenti" tagprefix="uc1" %> + + + diff --git a/GPW/A1/dipendenti.aspx.cs b/GPW/A1/dipendenti.aspx.cs new file mode 100644 index 0000000..4526030 --- /dev/null +++ b/GPW/A1/dipendenti.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class dipendenti : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/dipendenti.aspx.designer.cs b/GPW/A1/dipendenti.aspx.designer.cs new file mode 100644 index 0000000..1601d4b --- /dev/null +++ b/GPW/A1/dipendenti.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class dipendenti { + + /// + /// mod_adminDipendenti1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_adminDipendenti mod_adminDipendenti1; + } +} diff --git a/GPW/A1/fasi.aspx b/GPW/A1/fasi.aspx new file mode 100644 index 0000000..11373cf --- /dev/null +++ b/GPW/A1/fasi.aspx @@ -0,0 +1,7 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="fasi.aspx.cs" Inherits="GPW.A1.fasi" %> +<%@ Register src="../WebUserControls/mod_adminFasi.ascx" tagname="mod_adminFasi" tagprefix="uc1" %> + +
+ +
+
diff --git a/GPW/A1/fasi.aspx.cs b/GPW/A1/fasi.aspx.cs new file mode 100644 index 0000000..9c48c8a --- /dev/null +++ b/GPW/A1/fasi.aspx.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +namespace GPW.A1 +{ + public partial class fasi : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + // imposto fasi selezionate! + mod_adminFasi1.idxProgetto = memLayer.ML.IntSessionObj("idxProgetto_sel"); + mod_adminFasi1.idxCliente = memLayer.ML.IntSessionObj("idxCli_sel"); + } + } +} \ No newline at end of file diff --git a/GPW/A1/fasi.aspx.designer.cs b/GPW/A1/fasi.aspx.designer.cs new file mode 100644 index 0000000..fe60dfc --- /dev/null +++ b/GPW/A1/fasi.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class fasi { + + /// + /// mod_adminFasi1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_adminFasi mod_adminFasi1; + } +} diff --git a/GPW/A1/gestOrario.aspx b/GPW/A1/gestOrario.aspx new file mode 100644 index 0000000..5502825 --- /dev/null +++ b/GPW/A1/gestOrario.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxTitle.master" AutoEventWireup="true" CodeBehind="gestOrario.aspx.cs" Inherits="GPW.A1.gestOrario" %> +<%@ Register src="../WebUserControls/mod_adminOrario.ascx" tagname="mod_adminOrario" tagprefix="uc1" %> + + + diff --git a/GPW/A1/gestOrario.aspx.cs b/GPW/A1/gestOrario.aspx.cs new file mode 100644 index 0000000..cd1ce35 --- /dev/null +++ b/GPW/A1/gestOrario.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class gestOrario : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/gestOrario.aspx.designer.cs b/GPW/A1/gestOrario.aspx.designer.cs new file mode 100644 index 0000000..9677118 --- /dev/null +++ b/GPW/A1/gestOrario.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class gestOrario { + + /// + /// mod_adminOrario1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_adminOrario mod_adminOrario1; + } +} diff --git a/GPW/A1/login.aspx b/GPW/A1/login.aspx new file mode 100644 index 0000000..01ea450 --- /dev/null +++ b/GPW/A1/login.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimple.master" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="GPW.A1.login" %> +<%@ Register src="../WebUserControls/mod_login.ascx" tagname="mod_login" tagprefix="uc1" %> + + + diff --git a/GPW/A1/login.aspx.cs b/GPW/A1/login.aspx.cs new file mode 100644 index 0000000..e391b5c --- /dev/null +++ b/GPW/A1/login.aspx.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class login : System.Web.UI.Page + { + protected string _nextPage + { + get + { + string pagina = SteamWare.memLayer.ML.StringSessionObj("nextPage"); + if (pagina == "") + { + pagina = "menu.aspx"; + } + return pagina; + } + } + + protected void Page_Load(object sender, EventArgs e) + { + mod_login1.modoLogin = SteamWare.loginMode.normale; + } + + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + mod_login1.Login_ok += new EventHandler(Mod_login1_Login_ok); + mod_login1.Login_Error += new EventHandler(Mod_login1_Login_Error); + } + + void Mod_login1_Login_Error(object sender, EventArgs e) + { + Response.Redirect("unauthorized.aspx"); + } + + void Mod_login1_Login_ok(object sender, EventArgs e) + { + Response.Redirect(_nextPage); + } + protected override void OnUnload(EventArgs e) + { + base.OnUnload(e); + mod_login1.Login_ok -= new EventHandler(Mod_login1_Login_ok); + mod_login1.Login_Error -= new EventHandler(Mod_login1_Login_Error); + } + } +} \ No newline at end of file diff --git a/GPW/A1/login.aspx.designer.cs b/GPW/A1/login.aspx.designer.cs new file mode 100644 index 0000000..0d44dcf --- /dev/null +++ b/GPW/A1/login.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class login { + + /// + /// mod_login1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_login mod_login1; + } +} diff --git a/GPW/A1/menu.aspx b/GPW/A1/menu.aspx new file mode 100644 index 0000000..275c44b --- /dev/null +++ b/GPW/A1/menu.aspx @@ -0,0 +1,7 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/MasterAjax.master" AutoEventWireup="true" CodeBehind="menu.aspx.cs" + Inherits="GPW.A1.menu" %> + + + + diff --git a/GPW/A1/menu.aspx.cs b/GPW/A1/menu.aspx.cs new file mode 100644 index 0000000..b43780f --- /dev/null +++ b/GPW/A1/menu.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class menu : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/menu.aspx.designer.cs b/GPW/A1/menu.aspx.designer.cs new file mode 100644 index 0000000..80eb8fa --- /dev/null +++ b/GPW/A1/menu.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 +{ + + + public partial class menu + { + } +} diff --git a/GPW/A1/progetti.aspx b/GPW/A1/progetti.aspx new file mode 100644 index 0000000..b80da2f --- /dev/null +++ b/GPW/A1/progetti.aspx @@ -0,0 +1,9 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="progetti.aspx.cs" + Inherits="GPW.A1.progetti" %> + +<%@ Register Src="../WebUserControls/mod_adminProgetti.ascx" TagName="mod_adminProgetti" TagPrefix="uc1" %> + +
+ +
+
diff --git a/GPW/A1/progetti.aspx.cs b/GPW/A1/progetti.aspx.cs new file mode 100644 index 0000000..34479b9 --- /dev/null +++ b/GPW/A1/progetti.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class progetti : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/progetti.aspx.designer.cs b/GPW/A1/progetti.aspx.designer.cs new file mode 100644 index 0000000..7cce7d8 --- /dev/null +++ b/GPW/A1/progetti.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class progetti { + + /// + /// mod_adminProgetti1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_adminProgetti mod_adminProgetti1; + } +} diff --git a/GPW/A1/reportProgetti.aspx b/GPW/A1/reportProgetti.aspx new file mode 100644 index 0000000..d486ca3 --- /dev/null +++ b/GPW/A1/reportProgetti.aspx @@ -0,0 +1,7 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="reportProgetti.aspx.cs" + Inherits="GPW.A1.reportProgetti" %> + +<%@ Register Src="../WebUserControls/mod_reportPrj.ascx" TagName="mod_reportPrj" TagPrefix="uc1" %> + + + diff --git a/GPW/A1/reportProgetti.aspx.cs b/GPW/A1/reportProgetti.aspx.cs new file mode 100644 index 0000000..ff7f8e0 --- /dev/null +++ b/GPW/A1/reportProgetti.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class reportProgetti : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/reportProgetti.aspx.designer.cs b/GPW/A1/reportProgetti.aspx.designer.cs new file mode 100644 index 0000000..fb87a67 --- /dev/null +++ b/GPW/A1/reportProgetti.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class reportProgetti { + + /// + /// mod_reportPrj1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_reportPrj mod_reportPrj1; + } +} diff --git a/GPW/A1/reviewTimbrature.aspx b/GPW/A1/reviewTimbrature.aspx new file mode 100644 index 0000000..fe771a3 --- /dev/null +++ b/GPW/A1/reviewTimbrature.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxTitle.master" AutoEventWireup="true" CodeBehind="reviewTimbrature.aspx.cs" Inherits="GPW.A1.reviewTimbrature" %> +<%@ Register src="../WebUserControls/mod_reviewTimbrature.ascx" tagname="mod_reviewTimbrature" tagprefix="uc1" %> + + + diff --git a/GPW/A1/reviewTimbrature.aspx.cs b/GPW/A1/reviewTimbrature.aspx.cs new file mode 100644 index 0000000..83c51fd --- /dev/null +++ b/GPW/A1/reviewTimbrature.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class reviewTimbrature : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/reviewTimbrature.aspx.designer.cs b/GPW/A1/reviewTimbrature.aspx.designer.cs new file mode 100644 index 0000000..33480e0 --- /dev/null +++ b/GPW/A1/reviewTimbrature.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class reviewTimbrature { + + /// + /// mod_reviewTimbrature1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_reviewTimbrature mod_reviewTimbrature1; + } +} diff --git a/GPW/A1/spostaFasi.aspx b/GPW/A1/spostaFasi.aspx new file mode 100644 index 0000000..5bb4d3c --- /dev/null +++ b/GPW/A1/spostaFasi.aspx @@ -0,0 +1,28 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxTitle.master" AutoEventWireup="true" CodeBehind="spostaFasi.aspx.cs" + Inherits="GPW.A1.spostaFasi" %> + +<%@ Register Src="../WebUserControls/mod_adminFasi.ascx" TagName="mod_adminFasi" TagPrefix="uc1" %> + +
+
+
+ + +
+
+
+

+ Origine

+ +
+
+

+ Destinazione

+ +
+
+
+
+
diff --git a/GPW/A1/spostaFasi.aspx.cs b/GPW/A1/spostaFasi.aspx.cs new file mode 100644 index 0000000..cfcc473 --- /dev/null +++ b/GPW/A1/spostaFasi.aspx.cs @@ -0,0 +1,243 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using GPW_data; +using SteamWare; + +namespace GPW.A1 +{ + public partial class spostaFasi : System.Web.UI.Page + { + /// + /// effettua traduzione del lemma + /// + /// + /// + public string traduci(string lemma) + { + return user_std.UtSn.Traduci(lemma); + } + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + fasiFrom.eh_faseSel += new EventHandler(fasiFrom_eh_faseSel); + fasiFrom.eh_resetSelezione += new EventHandler(fasiFrom_eh_resetSelezione); + fasiTo.eh_faseSel += new EventHandler(fasiTo_eh_faseSel); + fasiTo.eh_resetSelezione += new EventHandler(fasiTo_eh_resetSelezione); + fixBtnFunc(); + } + + void fasiTo_eh_resetSelezione(object sender, EventArgs e) + { + fixBtnFunc(); + } + + void fasiTo_eh_faseSel(object sender, EventArgs e) + { + fixBtnFunc(); + } + + void fasiFrom_eh_resetSelezione(object sender, EventArgs e) + { + fixBtnFunc(); + } + + void fasiFrom_eh_faseSel(object sender, EventArgs e) + { + fixBtnFunc(); + } + /// + /// sistema abilitazione del button spostamenti + /// + protected void fixBtnFunc() + { + /* ************************************************** + * controllo selezione fasi: + * - se seleziona 1 fase "top" a sx e nessuna a dx ok + * - se seleziona 1 fase "child" a sx ed 1 fase ""top" a dx ok + * **************************************************/ + bool enableBtnSposta = false; + bool enableBtnClona = false; + string testoBtn = traduci("noAction"); + string testoBtnClona = traduci("noAction"); + string cssBtn = "btnGrigio ui-corner-all shadowBox"; + string cssBtnClona = "btnGrigio ui-corner-all shadowBox"; + switch (moveEnabled(fasiFrom.idxFase, fasiTo.idxFase)) + { + case tipoSpostamento.chgProj: + enableBtnSposta = true; + enableBtnClona = true; + testoBtn = traduci("chgProj"); + testoBtnClona = traduci("clonaFase"); + cssBtn = "btnBlu ui-corner-all shadowBox btnEditBig"; + cssBtnClona = "btnVerde ui-corner-all shadowBox btnClonaBig"; + break; + case tipoSpostamento.chgAncest: + enableBtnSposta = true; + enableBtnClona = true; + testoBtn = traduci("chgAncest"); + testoBtnClona = traduci("clonaSottoFase"); + cssBtn = "btnBlu ui-corner-all shadowBox btnEditBig"; + cssBtnClona = "btnVerde ui-corner-all shadowBox btnClonaBig"; + break; + case tipoSpostamento.moveRA: + //enableBtnSposta = true; + //testoBtn = traduci("moveRA"); + //cssBtn = "btnBlu ui-corner-all shadowBox btnEditBig"; + break; + default: + break; + } + // fix sposta + btnSposta.Enabled = enableBtnSposta; + btnSposta.Text = testoBtn; + btnSposta.CssClass = cssBtn; + // fix clona + btnClona.Enabled = enableBtnClona; + btnClona.Text = testoBtnClona; + btnClona.CssClass = cssBtnClona; + } + /// + /// effettua spostamento fasi seconda dei casi... + /// + /// + /// + protected void btnSposta_Click(object sender, EventArgs e) + { + switch (moveEnabled(fasiFrom.idxFase, fasiTo.idxFase)) + { + case tipoSpostamento.none: + // non faccio nulla + break; + case tipoSpostamento.chgProj: + // sposto fase ANCESTOR selezionata nel progetto di destinazione + if (fasiTo.idxProgetto > 0 && fasiFrom.idxFase > 0) + { + DataProxy.DP.taAF.updateProgetto(fasiTo.idxProgetto, fasiFrom.idxFase); + } + break; + case tipoSpostamento.chgAncest: + // sposto sottofase in una differente fase ancestor + if (fasiTo.idxProgetto > 0 && fasiFrom.idxFase > 0) + { + DataProxy.DP.taAF.updateFaseAncest(fasiTo.idxFase, fasiFrom.idxFase); + } + break; + case tipoSpostamento.moveRA: + break; + default: + // non faccio nulla + break; + } + fasiFrom.resetSelezione(); + fasiTo.resetSelezione(); + } + /// + /// fornisce il tipo di spostamento concesso secondo valori selezionati + /// + /// + /// + /// + protected tipoSpostamento moveEnabled(int idxFaseFrom, int idxFaseTo) + { + tipoSpostamento answ = tipoSpostamento.none; + bool faseSxTop = false; + bool faseDxTop = false; + // se non ho nulla selezioanto a sx non faccio nulla... + if (idxFaseFrom > 0) + { + // carico info su tipo fase sx/dx... + try + { + faseSxTop = (DataProxy.DP.taAF.getByIdx(idxFaseFrom)[0].idxFaseAncest == 0); + } + catch + { } + if (fasiTo.idxFase > 0) + { + try + { + faseDxTop = (DataProxy.DP.taAF.getByIdx(idxFaseTo)[0].idxFaseAncest == 0); + } + catch + { } + } + if (faseSxTop && fasiTo.idxFase == 0) + { + answ = tipoSpostamento.chgProj; + } + else if (!faseSxTop && faseDxTop) + { + answ = tipoSpostamento.chgAncest; + } + else if (fasiTo.idxFase > 0) + { + answ = tipoSpostamento.moveRA; + } + } + return answ; + } + /// + /// clona la macrofase (e le sottofasi) dal primo progetot al secondo + /// + /// + /// + protected void btnClona_Click(object sender, EventArgs e) + { + switch (moveEnabled(fasiFrom.idxFase, fasiTo.idxFase)) + { + case tipoSpostamento.none: + // non faccio nulla + break; + case tipoSpostamento.chgProj: + // sposto fase ANCESTOR selezionata nel progetto di destinazione + if (fasiTo.idxProgetto > 0 && fasiFrom.idxFase > 0) + { + DataProxy.DP.taAF.clonaFaseAnc(fasiTo.idxProgetto, fasiFrom.idxFase); + } + break; + case tipoSpostamento.chgAncest: + // sposto sottofase in una differente fase ancestor + if (fasiTo.idxProgetto > 0 && fasiFrom.idxFase > 0) + { + DataProxy.DP.taAF.clonaFase(fasiTo.idxFase, fasiFrom.idxFase); + } + break; + case tipoSpostamento.moveRA: + break; + default: + // non faccio nulla + break; + } + fasiFrom.resetSelezione(); + fasiTo.resetSelezione(); + } + } + + public enum tipoSpostamento + { + /// + /// nessuno spsotamento consentito + /// + none, + /// + /// spostamento fase ancestor tra progetti + /// + chgProj, + /// + /// spostamento sottofase in altra fase ancestor + /// + chgAncest, + /// + /// sposta i record assegnati ad una fase (micro o macro) ad un altra fase (micro o macro) + /// + moveRA + } +} \ No newline at end of file diff --git a/GPW/A1/spostaFasi.aspx.designer.cs b/GPW/A1/spostaFasi.aspx.designer.cs new file mode 100644 index 0000000..3429aa0 --- /dev/null +++ b/GPW/A1/spostaFasi.aspx.designer.cs @@ -0,0 +1,51 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class spostaFasi { + + /// + /// btnSposta control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnSposta; + + /// + /// btnClona control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnClona; + + /// + /// fasiFrom control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_adminFasi fasiFrom; + + /// + /// fasiTo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_adminFasi fasiTo; + } +} diff --git a/GPW/A1/spostaOre.aspx b/GPW/A1/spostaOre.aspx new file mode 100644 index 0000000..86c0eaa --- /dev/null +++ b/GPW/A1/spostaOre.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="spostaOre.aspx.cs" Inherits="GPW.A1.spostaOre" %> +<%@ Register src="../WebUserControls/mod_spostaOre.ascx" tagname="mod_spostaOre" tagprefix="uc1" %> + + + diff --git a/GPW/A1/spostaOre.aspx.cs b/GPW/A1/spostaOre.aspx.cs new file mode 100644 index 0000000..e8a48f2 --- /dev/null +++ b/GPW/A1/spostaOre.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class spostaOre : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/spostaOre.aspx.designer.cs b/GPW/A1/spostaOre.aspx.designer.cs new file mode 100644 index 0000000..7a3f8e7 --- /dev/null +++ b/GPW/A1/spostaOre.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class spostaOre { + + /// + /// mod_spostaOre1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_spostaOre mod_spostaOre1; + } +} diff --git a/GPW/A1/timbratureMensili.aspx b/GPW/A1/timbratureMensili.aspx new file mode 100644 index 0000000..686a5fd --- /dev/null +++ b/GPW/A1/timbratureMensili.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxTitle.master" AutoEventWireup="true" CodeBehind="timbratureMensili.aspx.cs" Inherits="GPW.A1.timbratureMensili" %> +<%@ Register src="../WebUserControls/mod_timbrMensili.ascx" tagname="mod_timbrMensili" tagprefix="uc1" %> + + + diff --git a/GPW/A1/timbratureMensili.aspx.cs b/GPW/A1/timbratureMensili.aspx.cs new file mode 100644 index 0000000..5319214 --- /dev/null +++ b/GPW/A1/timbratureMensili.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class timbratureMensili : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/A1/timbratureMensili.aspx.designer.cs b/GPW/A1/timbratureMensili.aspx.designer.cs new file mode 100644 index 0000000..8bb8aed --- /dev/null +++ b/GPW/A1/timbratureMensili.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class timbratureMensili { + + /// + /// mod_timbrMensili1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GPW.WebUserControls.mod_timbrMensili mod_timbrMensili1; + } +} diff --git a/GPW/A1/unauthorized.aspx b/GPW/A1/unauthorized.aspx new file mode 100644 index 0000000..0f64fbc --- /dev/null +++ b/GPW/A1/unauthorized.aspx @@ -0,0 +1,19 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="unauthorized.aspx.cs" Inherits="GPW.A1.unauthorized1" %> + +<%@ Register Src="~/WebUserControls/mod_unauthorized.ascx" TagPrefix="uc1" TagName="mod_unauthorized" %> + + + + + + + + + +
+
+ +
+
+ + diff --git a/GPW/A1/unauthorized.aspx.cs b/GPW/A1/unauthorized.aspx.cs new file mode 100644 index 0000000..381238e --- /dev/null +++ b/GPW/A1/unauthorized.aspx.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class unauthorized1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + } + } +} \ No newline at end of file diff --git a/GPW/A1/unauthorized.aspx.designer.cs b/GPW/A1/unauthorized.aspx.designer.cs new file mode 100644 index 0000000..f8dffc8 --- /dev/null +++ b/GPW/A1/unauthorized.aspx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class unauthorized1 { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// mod_unauthorized control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_unauthorized mod_unauthorized; + } +} diff --git a/GPW/A4/unauthorized.aspx b/GPW/A4/unauthorized.aspx index 82c165d..d056215 100644 --- a/GPW/A4/unauthorized.aspx +++ b/GPW/A4/unauthorized.aspx @@ -1,5 +1,19 @@ -<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimple.master" AutoEventWireup="true" CodeBehind="unauthorized.aspx.cs" Inherits="GPW.A1.unauthorized" %> -<%@ Register src="../WebUserControls/mod_unauthorized.ascx" tagname="mod_unauthorized" tagprefix="uc1" %> - - - +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="unauthorized.aspx.cs" Inherits="GPW.A4.unauthorized" %> + +<%@ Register Src="~/WebUserControls/mod_unauthorized.ascx" TagPrefix="uc1" TagName="mod_unauthorized" %> + + + + + + + + + +
+
+ +
+
+ + diff --git a/GPW/A4/unauthorized.aspx.cs b/GPW/A4/unauthorized.aspx.cs index 158a6c8..e99605a 100644 --- a/GPW/A4/unauthorized.aspx.cs +++ b/GPW/A4/unauthorized.aspx.cs @@ -5,13 +5,12 @@ using System.Web; using System.Web.UI; using System.Web.UI.WebControls; -namespace GPW.A1 +namespace GPW.A4 { public partial class unauthorized : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { - } } } \ No newline at end of file diff --git a/GPW/A4/unauthorized.aspx.designer.cs b/GPW/A4/unauthorized.aspx.designer.cs index 326305a..d71ed98 100644 --- a/GPW/A4/unauthorized.aspx.designer.cs +++ b/GPW/A4/unauthorized.aspx.designer.cs @@ -7,18 +7,27 @@ // //------------------------------------------------------------------------------ -namespace GPW.A1 { +namespace GPW.A4 { public partial class unauthorized { /// - /// mod_unauthorized1 control. + /// form1 control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::mod_unauthorized mod_unauthorized1; + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// mod_unauthorized control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_unauthorized mod_unauthorized; } } diff --git a/GPW/App_Readme/Elmah.txt b/GPW/App_Readme/Elmah.txt new file mode 100644 index 0000000..784b309 --- /dev/null +++ b/GPW/App_Readme/Elmah.txt @@ -0,0 +1,15 @@ +A new HTTP handler has been configured in your application for consulting the +error log and its feeds. It is reachable at elmah.axd under your application +root. If, for example, your application is deployed at http://www.example.com, +the URL for ELMAH would be http://www.example.com/elmah.axd. You can, of +course, change this path in your application's configuration file. + +ELMAH is also set up to be secure such that it can only be accessed locally. +You can enable remote access but then it is paramount that you secure access +to authorized users or/and roles only. This can be done using standard +authorization rules and configuration already built into ASP.NET. For more +information, see http://code.google.com/p/elmah/wiki/SecuringErrorLogPages on +the project site. + +Please review the commented out authorization section under + and make the appropriate changes. diff --git a/GPW/CheckAnomalie.aspx b/GPW/CheckAnomalie.aspx new file mode 100644 index 0000000..604a28c --- /dev/null +++ b/GPW/CheckAnomalie.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckAnomalie.aspx.cs" Inherits="GPW.CheckAnomalie" %> + + + + + + + + +
+
+ +
+
+ + diff --git a/GPW/CheckAnomalie.aspx.cs b/GPW/CheckAnomalie.aspx.cs new file mode 100644 index 0000000..f1c2b2f --- /dev/null +++ b/GPW/CheckAnomalie.aspx.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; +using GPW_data; + +namespace GPW +{ + public partial class CheckAnomalie : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + utils.mng.checkAnomalie(); + } + } +} \ No newline at end of file diff --git a/GPW/CheckAnomalie.aspx.designer.cs b/GPW/CheckAnomalie.aspx.designer.cs new file mode 100644 index 0000000..b8d473e --- /dev/null +++ b/GPW/CheckAnomalie.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW +{ + + + public partial class CheckAnomalie + { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +} diff --git a/GPW/GPW.csproj b/GPW/GPW.csproj index 364f9a6..d7ffd68 100644 --- a/GPW/GPW.csproj +++ b/GPW/GPW.csproj @@ -121,6 +121,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -129,6 +156,10 @@ + + + + @@ -184,6 +215,7 @@ + compilerconfig.json @@ -372,6 +404,195 @@ GPW.cs + + approvTimbrature.aspx + ASPXCodeBehind + + + approvTimbrature.aspx + + + chLang.aspx + ASPXCodeBehind + + + chLang.aspx + + + clienti.aspx + ASPXCodeBehind + + + clienti.aspx + + + Default.aspx + ASPXCodeBehind + + + Default.aspx + + + dipendenti.aspx + ASPXCodeBehind + + + dipendenti.aspx + + + ExportCommesse.aspx + ASPXCodeBehind + + + ExportCommesse.aspx + + + ExportTimbZucchetti.aspx + ASPXCodeBehind + + + ExportTimbZucchetti.aspx + + + fasi.aspx + ASPXCodeBehind + + + fasi.aspx + + + gestOrario.aspx + ASPXCodeBehind + + + gestOrario.aspx + + + login.aspx + ASPXCodeBehind + + + login.aspx + + + menu.aspx + ASPXCodeBehind + + + menu.aspx + + + progetti.aspx + ASPXCodeBehind + + + progetti.aspx + + + reportProgetti.aspx + ASPXCodeBehind + + + reportProgetti.aspx + + + reviewTimbrature.aspx + ASPXCodeBehind + + + reviewTimbrature.aspx + + + spostaFasi.aspx + ASPXCodeBehind + + + spostaFasi.aspx + + + spostaOre.aspx + ASPXCodeBehind + + + spostaOre.aspx + + + timbratureMensili.aspx + ASPXCodeBehind + + + timbratureMensili.aspx + + + unauthorized.aspx + ASPXCodeBehind + + + unauthorized.aspx + + + Barcode.aspx + ASPXCodeBehind + + + Barcode.aspx + + + Default.aspx + ASPXCodeBehind + + + Default.aspx + + + Admin.aspx + ASPXCodeBehind + + + Admin.aspx + + + attivitaIns.aspx + ASPXCodeBehind + + + attivitaIns.aspx + + + Default.aspx + ASPXCodeBehind + + + Default.aspx + + + mancataTimbr.aspx + ASPXCodeBehind + + + mancataTimbr.aspx + + + Progetti.aspx + ASPXCodeBehind + + + Progetti.aspx + + + regNewDevice.aspx + ASPXCodeBehind + + + regNewDevice.aspx + + + Timbrature.aspx + ASPXCodeBehind + + + Timbrature.aspx + attivita.aspx ASPXCodeBehind @@ -428,6 +649,34 @@ unauthorized.aspx + + CheckAnomalie.aspx + ASPXCodeBehind + + + CheckAnomalie.aspx + + + infoPage.aspx + ASPXCodeBehind + + + infoPage.aspx + + + jumper.aspx + ASPXCodeBehind + + + jumper.aspx + + + unauthorized.aspx + ASPXCodeBehind + + + unauthorized.aspx + About.aspx @@ -894,6 +1143,10 @@ mod_unauthorized.ascx + + autoComplete.asmx + Component + diff --git a/GPW/WS/autoComplete.asmx b/GPW/WS/autoComplete.asmx new file mode 100644 index 0000000..858b268 --- /dev/null +++ b/GPW/WS/autoComplete.asmx @@ -0,0 +1 @@ +<%@ WebService Language="C#" CodeBehind="autoComplete.asmx.cs" Class="GPW.WS.autoComplete" %> diff --git a/GPW/WS/autoComplete.asmx.cs b/GPW/WS/autoComplete.asmx.cs new file mode 100644 index 0000000..2e08113 --- /dev/null +++ b/GPW/WS/autoComplete.asmx.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Services; +using System.Collections; +using System.Collections.Specialized; +using System.Web.Services.Protocols; +using AjaxControlToolkit; +using System.Data; +using System.Data.SqlClient; +using GPW_data; + +namespace GPW.WS +{ + /// + /// autoComplete per metodi jscript/ajax + /// + [WebService(Namespace = "http://www.steamware.net/")] + [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] + [System.ComponentModel.ToolboxItem(false)] + [System.Web.Script.Services.ScriptService] + public class autoComplete : System.Web.Services.WebService + { + + public autoComplete() + { + //Uncomment the following line if using designed components + //InitializeComponent(); + } + + + [WebMethod] + public CascadingDropDownNameValue[] GetClienti(string knownCategoryValues, string category) + { + DS_Applicazione.AnagClientiDataTable tabCli = DataProxy.DP.taAnCli.GetData(); + List values = new List(); + foreach (DataRow dr in tabCli) + { + string label = (string)dr["RagSociale"]; + int value = (int)dr["idxCliente"]; + values.Add(new CascadingDropDownNameValue(label, value.ToString())); + } + return values.ToArray(); + } + + [WebMethod] + public CascadingDropDownNameValue[] GetProgettiByCli(string knownCategoryValues, string category) + { + StringDictionary kv = CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues); + int idxCliente; + if (!kv.ContainsKey("clienti") || !Int32.TryParse(kv["clienti"], out idxCliente)) + { + return null; + } + DS_Applicazione.AnagProgettiDataTable tabProj = DataProxy.DP.taAP.getByIdxCli(idxCliente, false, false); + List values = new List(); + foreach (DataRow dr in tabProj) + { + string label = (string)dr["nomeProj"]; + int value = (int)dr["idxProgetto"]; + values.Add(new CascadingDropDownNameValue(label, value.ToString())); + } + return values.ToArray(); + } + [WebMethod] + public CascadingDropDownNameValue[] GetFasiByProgetti(string knownCategoryValues, string category) + { + StringDictionary kv = CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues); + int idxCliente; + if (!kv.ContainsKey("clienti") || !Int32.TryParse(kv["clienti"], out idxCliente)) + { + return null; + } + DS_Applicazione.AnagProgettiDataTable tabProj = DataProxy.DP.taAP.getByIdxCli(idxCliente, false, false); + List values = new List(); + foreach (DataRow dr in tabProj) + { + string label = (string)dr["nomeProj"]; + int value = (int)dr["idxProgetto"]; + values.Add(new CascadingDropDownNameValue(label, value.ToString())); + } + return values.ToArray(); + } + } +} diff --git a/GPW/css/BtnReport.css b/GPW/css/BtnReport.css new file mode 100644 index 0000000..a9d5685 --- /dev/null +++ b/GPW/css/BtnReport.css @@ -0,0 +1,110 @@ +.reportPivot { + background: #EFEFEF; + background-image: url(../images/PivotData.png); + background-repeat: no-repeat; + background-position: top; + background-position: left; + min-height: 250px; + height: 100%; + width: 100%; + display: block; + position: relative; +} + +.reportOre { + background: #EFEFEF; + background-image: url(../images/ReportGerarchico.png); + background-repeat: no-repeat; + background-position: top; + background-position: left; + min-height: 250px; + height: 100%; + width: 100%; + display: block; + position: relative; +} + +.reportFolders { + background: #EFEFEF; + background-image: url(../images/ReportFolders.png); + background-repeat: no-repeat; + background-position: top; + background-position: left; + min-height: 250px; + height: 100%; + width: 100%; + display: block; + position: relative; +} + +.reportBadge { + background: #EFEFEF; + background-image: url(../images/Barcode.png); + background-repeat: no-repeat; + background-position: top; + background-position: left; + min-height: 250px; + height: 100%; + width: 100%; + display: block; + position: relative; +} + +/* Text position */ +.areaTesto { + white-space: normal; + overflow: visible; + position: absolute; + left: 0; + right: 0; + bottom: 50%; + bottom: 0; + margin: 0; + padding: 0 20px; + min-height: 25%; + line-height: 1.5; + color: White; + background: #333; + background: rgba(50,50,50,.9); + -webkit-background-clip: padding; + background-clip: padding-box; + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; +} + +/* versioni small */ +.areaTestoSmall { + white-space: normal; + overflow: visible; + position: absolute; + left: 0; + right: 0; + bottom: 50%; + bottom: 0; + margin: 0; + padding: 0 3px; + min-height: 50%; + line-height: 1.5; + font-size: 7pt; + color: White; + background: #999; + background: rgba(160,160,160,.9); + -webkit-background-clip: padding; + background-clip: padding-box; + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; +} + +.reportFoldersSmall { + background: #EFEFEF; + background-image: url(../images/ReportGerarchico.png); + background-repeat: no-repeat; + background-position: left top; + background-size: 60px 60px; + min-height: 36px; + height: 100%; + width: 100%; + max-width: 100%; + display: block; + position: relative; +} diff --git a/GPW/css/BuildBlocks.css b/GPW/css/BuildBlocks.css new file mode 100644 index 0000000..fb1021e --- /dev/null +++ b/GPW/css/BuildBlocks.css @@ -0,0 +1,1195 @@ +/* zona blocchi Sx/DX */ +.divSx { + float: left; + padding: 0; + margin: 0; +} + +.divDx { + float: right; + padding: 0; + margin: 0; +} + +.divCenter { + float: none; + text-align: center; + padding: 0; + margin: 0 auto 0 auto; +} + +.clearDiv { + clear: both; +} + +/* @end */ + +/* fix alcuni std dei cdd jQuery/jUqeryUi, jQueryMobile */ +#accordion .ui-accordion-content { + padding: .5em .5em; /* riduco padding accordion! */ +} +/* end*/ + +/* group barPlot a colori*/ +.sv { + text-align: center; + height: 20px; + background-image: url(../images/verde_20.png); +} + +.sb { + text-align: center; + height: 20px; + background-image: url(../images/blu_20.png); +} + +.sa { + text-align: center; + height: 20px; + background-image: url(../images/arancio_20.png); +} + +.sg { + text-align: center; + height: 20px; + background-image: url(../images/giallo_20.png); +} + +.sr { + text-align: center; + height: 20px; + background-image: url(../images/rosso_20.png); + color: White; +} + +.ss { + text-align: center; + height: 20px; + background-image: url(../images/grigio_20.png); + color: White; +} + +.sv80 { + text-align: center; + height: 80px; + background-image: url(../images/verde_80.png); +} + +.sb80 { + text-align: center; + height: 80px; + background-image: url(../images/blu_80.png); +} + +.sa80 { + text-align: center; + height: 80px; + background-image: url(../images/arancio_80.png); +} + +.sg80 { + text-align: center; + height: 80px; + background-image: url(../images/giallo_80.png); +} + +.sr80 { + text-align: center; + height: 80px; + background-image: url(../images/rosso_80.png); + color: White; +} + +.ss80 { + text-align: center; + height: 80px; + background-image: url(../images/grigio_80.png); + color: White; +} +/* end*/ +/* zona size % div */ +.twoThird { + width: 67%; +} + +.half { + width: 50%; +} + +.third { + width: 33%; +} + +.quarter { + width: 25%; +} + +.fifth { + width: 20%; +} +/* end zona size % div */ + +/* colori gradeinte */ +.gradRosso { + background-image: -webkit-gradient(linear,left top,left bottom,from( #FF7a00 ),to( #CC3800 )); + background-image: -webkit-linear-gradient( #FF7a00,#CC3800 ); + background-image: -moz-linear-gradient( #FF7a00,#CC3800 ); + background-image: -ms-linear-gradient( #FF7a00,#CC3800 ); + background-image: -o-linear-gradient( #FF7a00,#CC3800 ); + background-image: linear-gradient( #FF7a00,#CC3800 ); +} + +.gradVerde { + background-image: -webkit-gradient(linear,left top,left bottom,from( #00FFa0 ),to( #00CC38 )); + background-image: -webkit-linear-gradient( #00FFa0,#00CC38 ); + background-image: -moz-linear-gradient( #00FFa0,#00CC38 ); + background-image: -ms-linear-gradient( #00FFa0,#00CC38 ); + background-image: -o-linear-gradient( #00FFa0,#00CC38 ); + background-image: linear-gradient( #00FFa0,#00CC38 ); +} + +.gradBlu { + background-image: -webkit-gradient(linear,left top,left bottom,from( #00a0FF ),to( #0038CC )); + background-image: -webkit-linear-gradient( #00a0FF,#0038CC ); + background-image: -moz-linear-gradient( #00a0FF,#0038CC ); + background-image: -ms-linear-gradient( #00a0FF,#0038CC ); + background-image: -o-linear-gradient( #00a0FF,#0038CC ); + background-image: linear-gradient( #00a0FF,#0038CC ); +} +/* end zona colori gradiente*/ + +/* reset links!*/ +.noLink { + text-decoration: none!important; +} + + +/* gestione gridview generica */ +.headerStyle { + background-color: #507CD1; + font-weight: bold; + color: White; + white-space: nowrap; +} + +.footeStyle { + background-color: #507CD1; + font-weight: bold; + color: White; + white-space: nowrap; +} + +.footerRowStyle { + background-image: -webkit-gradient(linear,left top,left bottom,from( #FF7a00 ),to( #CC3800 )); + background-image: -webkit-linear-gradient( #FF7a00,#CC3800 ); + background-image: -moz-linear-gradient( #FF7a00,#CC3800 ); + background-image: -ms-linear-gradient( #FF7a00,#CC3800 ); + background-image: -o-linear-gradient( #FF7a00,#CC3800 ); + background-image: linear-gradient( #FF7a00,#CC3800 ); +} + +.pagerStyle { + background-color: #2461BF; + color: White; + white-space: nowrap; + text-align: center; + margin: auto; + font-size: medium; +} + +.rowStyle { + /*background-color: #DEE2EA;*/ + background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 )); + background-image: -webkit-linear-gradient( #fff,#f1f1f1 ); + background-image: -moz-linear-gradient( #fff,#f1f1f1 ); + background-image: -ms-linear-gradient( #fff,#f1f1f1 ); + background-image: -o-linear-gradient( #fff,#f1f1f1 ); + background-image: linear-gradient( #fff,#f1f1f1 ); + border: 1px solid #CDCDCD; +} + +.alternatingRowStyle { + /*background-color: White;*/ + border: 1px solid #CDCDCD; + background-image: -webkit-gradient(linear,left top,left bottom,from( #ddf ),to( #e1f1ff )); + background-image: -webkit-linear-gradient( #ddf,#e1f1ff ); + background-image: -moz-linear-gradient( #ddf,#e1f1ff ); + background-image: -ms-linear-gradient( #ddf,#e1f1ff ); + background-image: -o-linear-gradient( #ddf,#e1f1ff ); + background-image: linear-gradient( #ddf,#e1f1ff ); + /* + background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 )); + background-image: -webkit-linear-gradient( #fff,#f1f1f1 ); + background-image: -moz-linear-gradient( #fff,#f1f1f1 ); + background-image: -ms-linear-gradient( #fff,#f1f1f1 ); + background-image: -o-linear-gradient( #fff,#f1f1f1 ); + background-image: linear-gradient( #fff,#f1f1f1 ); + */ +} + +.editRowStyle { + /*background-color: #2461BF;*/ + background-image: -webkit-gradient(linear,left top,left bottom,from( #4683ff ),to( #2461BF )); + background-image: -webkit-linear-gradient( #4683ff,#2461BF ); + background-image: -moz-linear-gradient( #4683ff,#2461BF ); + background-image: -ms-linear-gradient( #4683ff,#2461BF ); + background-image: -o-linear-gradient( #4683ff,#2461BF ); + background-image: linear-gradient( #4683ff,#2461BF ); +} + +.selectedRowStyle { + /*background-color: #D1DDF1;*/ + background-image: -webkit-gradient(linear,left top,left bottom,from( #dfd ),to( #80ff80 )); + background-image: -webkit-linear-gradient( #dfd,#80ff80 ); + background-image: -moz-linear-gradient( #dfd,#80ff80 ); + background-image: -ms-linear-gradient( #dfd,#80ff80 ); + background-image: -o-linear-gradient( #dfd,#80ff80 ); + background-image: linear-gradient( #dfd,#80ff80 ); + font-weight: bold; +} + +.sortAscHead { + background-color: #6D95E1; +} + +.sortDescHead { + background-color: #4870BE; +} + +.sortAscCell { + background-color: #F5F7FB; +} + +.sortDescCell { + background-color: #E9EBEF; +} +/* end gridView */ +/* gestione gridview Red */ +.headerStyleRed { + background-color: #D17C50; + font-weight: bold; + color: White; + white-space: nowrap; +} + +.footerStyleRed { + background-color: #D17C50; + font-weight: bold; + color: White; + white-space: nowrap; +} + +.pagerStyleRed { + background-color: #BF6124; + color: White; + white-space: nowrap; + text-align: center; + margin: auto; + font-size: medium; +} + +.rowStyleRed { + background-color: #EAE2DE; +} + +.alternatingRowStyleRed { + background-color: White; +} + +.editRowStyleRed { + background-color: #BF6124; +} + +.selectedRowStyleRed { + background-color: #F1DDD1; + font-weight: bold; +} + +.sortAscHeadRed { + background-color: #E1956D; +} + +.sortDescHeadRed { + background-color: #BE7048; +} + +.sortAscCellRed { + background-color: #FBF7F5; +} + +.sortDescCellRed { + background-color: #EFEBE9; +} +/* end gridView */ +/* gestione gridview Green */ +.headerStyleGreen { + background-color: #7CD150; + font-weight: bold; + color: White; + white-space: nowrap; +} + +.footerStyleGreen { + background-color: #7CD150; + font-weight: bold; + color: White; + white-space: nowrap; +} + +.pagerStyleGreen { + background-color: #61BF24; + color: White; + white-space: nowrap; + text-align: center; + margin: auto; + font-size: medium; +} + +.rowStyleGreen { + background-color: #E2EADE; +} + +.alternatingRowStyleGreen { + background-color: White; +} + +.editRowStyleGreen { + background-color: #61BF24; +} + +.selectedRowStyleGreen { + background-color: #DDF1D1; + font-weight: bold; +} + +.sortAscHeadGreen { + background-color: #95E16D; +} + +.sortDescHeadGreen { + background-color: #70BE48; +} + +.sortAscCellGreen { + background-color: #F7FBF5; +} + +.sortDescCellGreen { + background-color: #EBEFE9; +} +/* end gridView */ + +/* colore testi */ +.textArancio { + color: #FFAA33; +} + +.textAzzurro { + color: #36F; +} + +.textNero { + color: #000; +} + +.textGrigio { + color: #888; +} + +/* gestione etichette calcolate*/ +.badgeRosso { + border: solid 2px red; + background-color: #FFAAAA; + width: 100%; + text-align: center; +} + +.badgeStd { + border: solid 2px #333; + background-color: #EEE; + width: 100%; + text-align: center; +} + +.badgeVerde { + border: solid 2px green; + background-color: #AAFFAA; + width: 100%; + text-align: center; +} + +.badgeArancio { + border: solid 2px #998800; + background-color: #FFEE66; + width: 100%; + text-align: center; +} +/*end etichette calcolate */ + +/* modal popup*/ +.modalBackground { + background-color: gray; + filter: alpha(opacity=70); + opacity: 0.7; +} +/* end */ + +/* button con template */ +.shadowBox { + -moz-box-shadow: 0 4px 8px rgba(0,0,0,0.5); + -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.5); + box-shadow: 0 4px 8px rgba(0,0,0,0.5); +} + +.placardSteamware { + background-image: url(../images/logo_sw.png); + background-repeat: no-repeat; + background-position: top left; + padding-bottom: 128px; + min-height: 200px; +} + +.btnHomeLogo { + background-image: url(../images/time.png); + background-repeat: no-repeat; + background-position: top; + padding-bottom: 128px; + margin-top: 10px; +} + +.btnHomeBarcode { + background-image: url(../images/barcode.png); + background-repeat: no-repeat; + background-position: bottom; + padding-bottom: 128px; + min-height: 200px; + height: 100%; + width: 100%; +} + +.btnHomeAdmin { + background-image: url(../images/adminRed.png); + background-repeat: no-repeat; + background-position: top; + padding-bottom: 128px; + min-height: 200px; + height: 100%; + width: 100%; +} + +.btnHomeSmart { + background-image: url(../images/smart.png); + background-repeat: no-repeat; + background-position: bottom; + padding-bottom: 128px; + min-height: 200px; + height: 100%; + width: 100%; +} + +.btnHomeUser { + background-image: url(../images/user.png); + background-repeat: no-repeat; + background-position: top; + padding-bottom: 128px; + min-height: 200px; + height: 100%; + width: 100%; +} + +.btnChiudi { + background-image: url(../images/cancel_m.png); + background-repeat: no-repeat; + background-position: right; + border: 1px solid #333333; + padding: 4px; + padding-right: 28px; +} + +.btnNew { + background-image: url(../images/new_m.png); + background-repeat: no-repeat; + background-position: right; + border: 1px solid #333333; + padding: 4px; + padding-right: 28px; +} + +.btnDelete { + background-image: url(../images/elimina_m.png); + background-repeat: no-repeat; + background-position: right; + border: 1px solid #333333; + padding: 4px; + padding-right: 28px; +} + +.btnEditBig { + background-image: url(../images/edit_l.png); + background-repeat: no-repeat; + background-position: right; + border: 1px solid #333333; + padding: 4px; + padding-right: 28px; +} + +.btnEdit { + background-image: url(../images/edit_m.png); + background-repeat: no-repeat; + background-position: right; + border: 1px solid #333333; + padding: 4px; + padding-right: 28px; +} + +.btnClonaBig { + background-image: url(../images/clonaObj_l.png); + background-repeat: no-repeat; + background-position: right; + border: 1px solid #333333; + padding: 4px; + padding-right: 28px; +} + +.btnClona { + background-image: url(../images/clonaObj_m.png); + background-repeat: no-repeat; + background-position: right; + border: 1px solid #333333; + padding: 4px; + padding-right: 28px; +} + +.btnNaviga { + background-image: url(../images/naviga_m.png); + background-repeat: no-repeat; + background-position: right; + border: 1px solid #333333; + padding: 4px; + padding-right: 28px; +} + +.btnExportCSV { + background-color: #DEDEDE; + background-image: url(../images/download_m.png); + background-repeat: no-repeat; + background-position: right; + border: 1px solid #333333; + padding: 4px; + padding-right: 24px; + font-size: 10pt; +} + +.btnRosso { + border: solid 2px red; + background-color: #FFAAAA; + width: 100%; + text-align: center; +} + +.btnRossoGrad { + border: solid 2px red; + background-color: #FFAAAA; + width: 100%; + text-align: center; + background-image: -webkit-gradient(linear,left top,left bottom,from( #FFAAAA ),to( #994444 )); + background-image: -webkit-linear-gradient( #FFAAAA,#994444 ); + background-image: -moz-linear-gradient( #FFAAAA,#994444 ); + background-image: -ms-linear-gradient( #FFAAAA,#994444 ); + background-image: -o-linear-gradient( #FFAAAA,#994444 ); + background-image: linear-gradient( #FFAAAA,#994444 ); +} + +.btnArancio { + border: solid 2px #998800; + background-color: #FFEE66; + width: 100%; + text-align: center; +} + +.btnVerde { + border: solid 2px green; + background-color: #AAFFAA; + width: 100%; + text-align: center; +} + +.btnVerdeGrad { + border: solid 2px green; + background-color: #AAFFAA; + text-align: center; + background-image: -webkit-gradient(linear,left top,left bottom,from( #AAFFAA ),to( #449944 )); + background-image: -webkit-linear-gradient( #AAFFAA,#449944 ); + background-image: -moz-linear-gradient( #AAFFAA,#449944 ); + background-image: -ms-linear-gradient( #AAFFAA,#449944 ); + background-image: -o-linear-gradient( #AAFFAA,#449944 ); + background-image: linear-gradient( #AAFFAA,#449944 ); +} + +.btnBlu { + border: solid 2px blue; + background-color: #AAAAFF; + width: 100%; + text-align: center; +} + +.btnPreferred { + font-size: 3em; + border: solid 4px red; + background-color: #FFACAC; + width: 100%; + min-height: 200px; + height: 100%; + text-align: center; + white-space: pre; +} + +.btnStd { + font-size: 3em; + color: #696969; + border: solid 4px #333; + background-color: #ACACAC; + width: 100%; + min-height: 200px; + height: 100%; + text-align: center; + white-space: pre; +} + +/* end buttons! */ + +.bottomWrite { + font-size: 8pt; +} + +.lblWarning { + color: Red; +} + +/* zona menù top */ +.menuNav { + background-color: #B5C7DE; + color: #284E98; + font-size: 1.2em; +} + +.menuNavSel { + background-color: #507CD1; +} + +.menuItem { + width: 200px; +} +/* end zona menu */ + +/* zona colorazione filtri */ +.filtro_1 { + background-color: #8888ff; +} + +.filtro_2 { + background-color: #aaaaff; +} + +.filtro_3 { + background-color: #ccccff; +} + +.filtro_4 { + background-color: #dedeff; +} + +.filtro_5 { + background-color: #efefff; +} +/* @end */ + +/* area gestione etichette tab */ +.tabLabelGreen { + background-color: #DDFFDD; + border-top: 1px solid #339933; + border-left: 1px solid #339933; + border-right: 1px solid #339933; + height: 1.5em; + vertical-align: middle; + padding-top: 0.5em; + font-size: 13pt; + font-weight: bold; +} + +.tabBodyGreen { + background-color: #DDFFDD; + border-bottom: 1px solid green; + border-left: 1px solid green; + border-right: 1px solid green; +} + +.tabLabelGray { + background-color: #DEDEDE; + border-top: 1px solid #333333; + border-left: 1px solid #333333; + border-right: 1px solid #333333; + height: 1.5em; + vertical-align: middle; + padding-top: 0.5em; + font-size: 13pt; + font-weight: bold; +} + +.tabBodyGray { + background-color: #DEDEDE; + border-bottom: 1px solid black; + border-left: 1px solid black; + border-right: 1px solid black; +} + + +/* @end */ + +/* dimensione caratteri & co */ +.fontTitolo { + font-size: 44pt; + height: 36px; +} + +.fontMedio { + font-size: 16pt; +} + +.fontNormale { + font-size: 10pt; +} + +.fontPiccolo { + font-size: 8pt; +} + +.labelInput { + font-size: 9pt; + color: #555; +} + +/* @end */ + + +/* autocomplete e watermarking */ +.watermark { + color: Gray; + font-style: italic; +} + +.autocomplete { + width: 400px; + color: Gray; + background-color: White; + font-size: 8pt; + padding: 4px 1px 4px 1px; + border-bottom: 1px solid #888; +} + +.autocompleteHiglight { + width: 400px; + color: Black; + background-color: Yellow; + font-size: 8pt; + padding: 4px 1px 4px 1px; + border-bottom: 1px solid #888; +} + +.autocompleteElemID { + background-color: Red; + font-weight: bold; +} + +.autocompleteListCssClass { + width: 400px; + font-size: 8pt; + background-color: White; + padding: 2px 2px 2px 2px; +} + +/* @end */ + + +/* gestione blocco dati */ +.dataBlock { + background-color: #FFFFFF; + font-size: 9pt; + float: left; + border-top: solid 1px gray; + border-bottom: solid 1px gray; + border-left: solid 1px gray; + border-right: solid 1px gray; + margin: 0px; + padding: 4px; + vertical-align: text-top; + text-align: left; +} + +.dataBlockHeader { + border-top: solid 2px gray; + border-bottom: solid 1px gray; + border-left: solid 2px gray; + border-right: solid 2px gray; + background-color: #EFEFEF; + font-weight: bold; + padding: 2px; +} + +.dataBlockSx { + float: left; + text-align: left; +} + +.dataBlockDx { + float: right; + text-align: right; +} + +.dataBlockLabel { + border-top: solid 1px #FEFEFE; + padding-right: 2px; + padding-left: 2px; +} + +.dataBlockValue { + color: Black; + font-weight: bold; + padding-right: 4px; + padding-left: 4px; + margin-bottom: 0px; + font-weight: normal; +} + +.dataBlockReset { + clear: both; + padding-bottom: 2px; + margin-bottom: 2px; +} + +.dataBlockResetGray { + border-bottom: solid 1px #CECECE; + clear: both; + padding-bottom: 2px; + margin-bottom: 2px; +} + +.dataBlockResetDark { + border-bottom: solid 1px #363636; + clear: both; + padding-bottom: 2px; + margin-bottom: 2px; +} + +.dataBlockBtn { + background-color: #FAFAFA; + border: solid 1px gray; + padding-top: 4px; + padding-bottom: 4px; + vertical-align: text-top; + margin: 0px; + text-align: center; +} + +.blockSizeSmallest { + width: 175px; +} + +.blockSizeSmaller { + width: 200px; +} + +.blockSizeSmall { + width: 225px; +} + +.blockSizeMed { + width: 250px; +} + +.blockSizeLarge { + width: 275px; +} + +.blockSizeXLarge { + width: 300px; +} + +.blockSizeXXLarge { + width: 350px; +} + +.blockSizeXXXLarge { + width: 400px; +} +/* END gestione blocco dati */ + + +/* standard gridview */ +.grView { + color: #333333; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + padding-bottom: 1px; +} + +.ctrHeaderPager { + background-color: #b8b8b8; + font-weight: bold; + color: White; +} + +.ctrHeaderPagerRight { + background-color: #b8b8b8; + font-weight: bold; + color: White; + text-align: right; +} + +.ctrHeaderPagerBlue { + background-color: #507CD1; + height: 1px; +} + +.ctrHeaderPagerBlueRight { + background-color: #507CD1; + height: 1px; + text-align: right; +} + +.ctrFooter { + background-color: #507CD1; + font-weight: bold; + color: White; +} + +.ctrRowStyle { + vertical-align: top; + background-color: #EFF3FB; +} +/* end gridview */ + +/* area conf x gestione pagine full con barcode (es: spostamenti gitterbox, postazioni...) */ +.stileAttesa { + background: #AAAAAA; + text-align: center; +} + +.stileComandoOk { + background: #AAFFAA; + text-align: center; +} + +.stileComandoKo { + background: #FFAAAA; + text-align: center; +} + +.stileComandoAdd { + background: #AAAAFF; + text-align: center; +} + +.stileComandoND { + background: #FFFFAA; + text-align: center; +} + +.clockBar { + color: #9CC0FF; + background-image: -webkit-gradient(linear,left top,left bottom,from( #999 ),to( #000 )); + background-image: -webkit-linear-gradient( #999,#000 ); + background-image: -moz-linear-gradient( #999,#000 ); + background-image: -ms-linear-gradient( #999,#000 ); + background-image: -o-linear-gradient( #999,#000 ); + background-image: linear-gradient( #999,#000 ); +} + +.fullPageHeader { + border-bottom: solid 2px Black; + background-color: #6C90FF; + font-weight: bold; +} + +.msgBoxBarcode { + border-top: solid 2px Black; + border-bottom: solid 2px Black; + background-color: #E5E5E5; +} + +.stileErr01 { + background: #FF6633; + text-align: center; +} + +.stileErr02 { + background: #FFAA77; + text-align: center; +} + +.stileErr03 { + background: #FF3300; + text-align: center; +} +/* end gestione barcode full page */ + +/* Tag Cloud */ +#tagCloud { + border: solid 1px #ccc; + padding: 4px; + margin-bottom: 10px; + text-align: justify; + line-height: 1.2em; +} + + #tagCloud A { + text-decoration: none; + margin-left: 2px; + margin-right: 2px; + font-family: Trebuchet MS, Verdana, Arial; + } + + #tagCloud A:hover { + text-decoration: underline; + text-transform: uppercase; + font-size: 1.4em; + font-weight: 800; + } + + #tagCloud A.w1 { + color: #ff9900; + font-size: 1.9em; + font-weight: bolder; + } + + #tagCloud A.w2 { + color: #4169e1; + font-size: 1.5em; + font-weight: bolder; + } + + #tagCloud A.w3 { + color: #009eff; + font-size: 1.4em; + font-weight: bolder; + } + + #tagCloud A.w4 { + color: #4188cf; + font-size: 1.2em; + } + + #tagCloud A.w5 { + color: #83bcd8; + font-size: 1.0em; + } + + + #tagCloud A.e1 { + text-wrap: none; + white-space: nowrap; + color: #d88100; + } + + #tagCloud A.e2 { + text-wrap: none; + white-space: nowrap; + color: #7d4b00; + } + + #tagCloud A.e3 { + text-wrap: none; + white-space: nowrap; + color: #0b2055; + } + + #tagCloud A.e4 { + text-wrap: none; + white-space: nowrap; + color: #4188cf; + } + + #tagCloud A.e5 { + text-wrap: none; + white-space: nowrap; + color: #83bcd8; + } + + #tagCloud A.p1 { + color: #ff9900; + font-size: 1.9em; + font-weight: bolder; + min-width: 100%; + text-align: center; + text-wrap: none; + background-color: #ffe5c3; + margin: 2px 0px; + min-height: 3em; + } + + #tagCloud A.p2 { + color: #4169e1; + font-size: 1.5em; + font-weight: bolder; + width: 48%; + text-align: center; + float: left; + margin: 2px 2px; + text-wrap: none; + background-color: #e6ecfc; + min-height: 3em; + } + + #tagCloud A.p3 { + color: #009eff; + font-size: 1.4em; + font-weight: bolder; + width: 32%; + text-align: center; + float: left; + margin: 2px 2px; + text-wrap: none; + background-color: #c3e9ff; + min-height: 3em; + /*white-space: nowrap;*/ + } + + #tagCloud A.p4 { + color: #4188cf; + font-size: 1.2em; + width: 23%; + text-align: center; + float: left; + margin: 2px 2px; + text-wrap: none; + background-color: #d7e6f5; + min-height: 2em; + } + + #tagCloud A.p5 { + color: #83bcd8; + font-size: 1.0em; + width: 18%; + text-align: center; + float: left; + margin: 2px 2px; + text-wrap: none; + background-color: #f8fbfc; + min-height: 2em; + } + + #tagCloud A.p6 { + color: #83bcd8; + font-size: 1.0em; + width: 16.6%; + } + + #tagCloud A.p7 { + color: #83bcd8; + font-size: 0.9em; + width: 10%; + } + +/* END Tag Cloud */ diff --git a/GPW/css/ExtraComp.css b/GPW/css/ExtraComp.css new file mode 100644 index 0000000..f17718e --- /dev/null +++ b/GPW/css/ExtraComp.css @@ -0,0 +1,129 @@ +/* floating window */ +.ui-dialog-sw +{ + padding: .2em; + overflow: hidden; + -moz-box-shadow: 0px 5px 10px rgba(0,0,0,0.8); + -webkit-box-shadow: 0px 5px 10px rgba(0,0,0,0.8); + box-shadow: 0px 5px 10px rgba(0,0,0,0.8); +} +.ui-dialog-sw .ui-dialog-sw-titlebar +{ + padding: .5em 1em .3em; + position: relative; +} +.ui-dialog-sw .ui-dialog-sw-title +{ + float: left; + margin: .1em 16px .2em 0; +} +.ui-dialog-sw .ui-dialog-sw-titlebar-close +{ + position: absolute; + right: .3em; + top: 50%; + width: 19px; + margin: -10px 0 0 0; + padding: 1px; + height: 18px; + -moz-border-radius: 10px; +} +.ui-dialog-sw .ui-dialog-sw-titlebar-close span +{ + display: block; + margin: 1px; +} +.ui-dialog-sw .ui-dialog-sw-titlebar-close:hover, .ui-dialog-sw .ui-dialog-sw-titlebar-close:focus +{ + padding: 0; +} +.ui-dialog-sw .ui-dialog-sw-content +{ + position: relative; + border: 0; + padding: .5em 1em; + background: none; + overflow: auto; + zoom: 1; +} +.ui-dialog-sw .ui-dialog-sw-buttonpane +{ + text-align: left; + border-width: 1px 0 0 0; + background-image: none; + margin: .5em 0 0 0; + padding: .3em 1em .5em .4em; +} +.ui-dialog-sw .ui-dialog-sw-buttonpane .ui-dialog-sw-buttonset +{ + float: right; +} +.ui-dialog-sw .ui-dialog-sw-buttonpane button +{ + margin: .5em .4em .5em 0; + cursor: pointer; +} +.ui-dialog-sw .ui-resizable-se +{ + width: 14px; + height: 14px; + right: 3px; + bottom: 3px; +} +.ui-draggable .ui-dialog-sw-titlebar +{ + cursor: move; +} + +.ui-dialog-sw +{ + padding: 0; +} + +.ui-dialog-sw .ui-dialog-sw-titlebar +{ + border-top: none; + border-right: none; + border-left: none; + -moz-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0; +} + +.ui-dialog-sw .ui-dialog-sw-titlebar-close +{ +} + +.ui-widget-sw +{ + font-family: Arial,sans-serif; + font-size: 1.1em; +} +.ui-widget-sw .ui-widget-sw +{ + font-size: 1em; +} +.ui-widget-sw input, .ui-widget-sw select, .ui-widget-sw textarea, .ui-widget-sw button +{ + font-family: Arial,sans-serif; + font-size: 1em; +} +.ui-widget-sw-content +{ + border: 1px solid #a8a8a8; + background: #ffffff; + color: #4f4f4f; +} +.ui-widget-sw-header +{ + border: 1px solid #a8a8a8; + background: #c0c0c0 url(../../images/ui-bg_highlight-soft_100_c0c0c0_1x100.png) repeat-x 50% top; + color: #333; + font-weight: bold; + text-shadow: 0px 1px 0px rgba(255,255,255,0.7); +} +.ui-widget-sw-header a +{ + color: #4f4f4f; +} +/* END floating window */ diff --git a/GPW/css/JQClock.css b/GPW/css/JQClock.css new file mode 100644 index 0000000..4cb9251 --- /dev/null +++ b/GPW/css/JQClock.css @@ -0,0 +1,26 @@ + +.container {width: 100%; margin: 0 auto; overflow: hidden;} + +.clock {width:100%; margin:0 auto; padding:5px; color:#ABCDEF; } + +#Date { font-family: Arial, Helvetica, sans-serif; font-size:24px; text-align:center; } + +.clock ul { width:800px; margin:0 auto; padding:0px; list-style:none; text-align:center; } +.clock ul li { display:inline; font-size:4em; text-align:center; font-family:'BebasNeueRegular', Arial, Helvetica, sans-serif; } + +/*#point { position:relative; -moz-animation:mymove 1s ease infinite; -webkit-animation:mymove 1s ease infinite; padding-left:5px; padding-right:5px; }*/ + +/* Simple Animation */ +/*@-webkit-keyframes mymove +{ +0% {opacity:1.0; text-shadow:0 0 20px #00c6ff;} +50% {opacity:0; text-shadow:none; } +100% {opacity:1.0; text-shadow:0 0 20px #00c6ff; } +}*/ + +/*@-moz-keyframes mymove +{ +0% {opacity:1.0; text-shadow:0 0 20px #00c6ff;} +50% {opacity:0; text-shadow:none; } +100% {opacity:1.0; text-shadow:0 0 20px #00c6ff; } +}*/ \ No newline at end of file diff --git a/GPW/css/MasterPage.css b/GPW/css/MasterPage.css new file mode 100644 index 0000000..6570fb4 --- /dev/null +++ b/GPW/css/MasterPage.css @@ -0,0 +1,203 @@ +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td +{ + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-family: Verdana, Arial; + vertical-align: baseline; +} +/* remember to define focus styles! */ +:focus +{ + outline: 0; +} +body +{ + line-height: 1; + color: black; + background: white; +} +ol, ul +{ + list-style: none; +} +/* tables still need 'cellspacing="0"' in the markup */ +table +{ + border-collapse: separate; + border-spacing: 0; +} +caption, th, td +{ + font-weight: normal; +} +blockquote:before, blockquote:after, q:before, q:after +{ + content: ""; +} +blockquote, q +{ + quotes: "" ""; +} + + +.fullscreen +{ + display: block; /*set the div in the top-left corner of the screen*/ /*position: absolute;*/ /* COMMENTATA per iExplorer */ + top: 0; + left: 0; /*set the width and height to 100% of the screen*/ + width: 100%; + height: 100%; +} +.bottomWrite +{ + vertical-align: bottom; + border-top: #0D0083 1px solid; + margin-top: 2px; + padding-top: 2px; +} +.smallText +{ + font-size: 8pt; +} + +/* area menù top */ +.topMenu +{ + width: 100%; + text-align: left; + vertical-align: bottom; +} +.topTitle +{ + color: #663300; + font-family: Verdana, Arial; + font-size: 26px; + font-weight: bold; + text-align: center; + background-repeat: repeat-x; + background-position: 0% 0%; + background-attachment: scroll; + background-image: url(../images/orangeGrad32.png); +} +.barraTitolo +{ + background-color: #FF7A00; /* #4C90FF; */ + vertical-align: middle; + height: 20pt; + text-align: center; +} +.formatTableGeneral +{ + height: 100%; + width: 100%; + border-bottom-width: 0px; +} +.dxButtonClass +{ + padding-right: 8px; + padding-left: 8px; + font-weight: bold; + font-size: 9pt; + padding-bottom: 2px; + vertical-align: middle; + color: Yellow; + padding-top: 2px; + font-family: Verdana, Arial; + text-align: justify; +} +.smallTimeClock +{ + padding-right: 4px; + padding-left: 4px; + font-weight: bold; + font-size: 7pt; + padding-bottom: 2px; + vertical-align: middle; + color: Yellow; + padding-top: 2px; + font-family: Verdana, Arial; + text-align: justify; +} +.userClass +{ + padding-right: 8px; + padding-left: 8px; + font-weight: bold; + font-size: 9pt; + padding-bottom: 2px; + vertical-align: bottom; + color: white; + padding-top: 2px; + font-family: Verdana, Arial; + text-align: justify; +} +.topMenuMess +{ + font-size: 9pt; + text-align: left; + margin-left: 0px; + margin-right: 0px; + font-weight: bold; + color: white; + margin-top: 0px; +} +.topMenuMessEn +{ + font-size: 9pt; + text-align: left; + margin-left: 0px; + margin-right: 0px; + font-weight: bold; + color: black; + margin-top: 0px; +} +/* end menu */ + +/* area controlli standard in master pages */ +.topContrDx +{ + text-align: center; + background-color: white; + text-align: left; + font-size: 9pt; +} +.topContrSx +{ + padding: 6px 3px 6px 3px; + text-align: center; + background-color: #DEE8F5; + border-top: solid 2px silver; + border-left: solid 2px silver; + border-right: solid 2px silver; + font-weight: bold; + font-size: 12pt; +} +.boxShadowDark +{ + -webkit-box-shadow: 3px 3px 6px rgba(0,0,0,.3); + -moz-box-shadow: 3px 3px 6px rgba(0,0,0,.3); + box-shadow: 3px 3px 6px rgba(0,0,0,.3); +} +.tableContenuto +{ + padding: 0px; + margin: 2px; /* con questo Table va a full screen */ + width: 99%; +} +.menuSx +{ + font-size: 8pt; + width: 180px; + vertical-align: top; + min-height: 530px; + height: 100%; + background: #DEE8F5; + -webkit-box-shadow: 3px 3px 6px rgba(0,0,0,.3); + -moz-box-shadow: 3px 3px 6px rgba(0,0,0,.3); + box-shadow: 3px 3px 6px rgba(0,0,0,.3); +} +/* end */ \ No newline at end of file diff --git a/GPW/css/Style.css b/GPW/css/Style.css new file mode 100644 index 0000000..cfd3f1f --- /dev/null +++ b/GPW/css/Style.css @@ -0,0 +1,123 @@ +@import url("MasterPage.css"); +@import url("BuildBlocks.css"); +@import url("ExtraComp.css"); +@import url("BtnReport.css"); +@import url("JQClock.css"); + +.logo +{ + background-image: url(../images/logo_sw.png); + -khtml-opacity: .50; + -moz-opacity: .50; + -ms-filter: "alpha(opacity=50)"; + filter: alpha(opacity=50); + filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0.5); + opacity: .50; + width: 800px; + height: 300px; + margin: 50px auto 50px auto; + vertical-align:middle; + background-repeat: no-repeat; +} +.logo:hover +{ + background-image: url(../images/logo_sw.png); + -khtml-opacity: 1.0; + -moz-opacity: 1.0; + -ms-filter: "alpha(opacity=100)"; + filter: alpha(opacity=100); + filter: progid:DXImageTransform.Microsoft.Alpha(opacity=1.0); + opacity: 1.0; + width: 800px; + height: 300px; + margin: 50px auto 50px auto; + vertical-align:middle; + background-repeat: no-repeat; +} + +.bodyMainCenter +{ + /* background-image: url(../images/logo_sw.png); -khtml-opacity: .50; -moz-opacity: .50; -ms-filter: "alpha(opacity=50)"; filter: alpha(opacity=50); filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0.5); opacity: .50; */ + vertical-align: middle; + border-left: #0D0083 1px solid; /*border-top: #0D0083 1px solid;*/ + text-align: center; + height: 100%; + width: 100%; + background-position: center; + background-attachment: scroll; + background-repeat: no-repeat; +} +.bodyCenter +{ + vertical-align: middle; + text-align: center; + height: 100%; + width: 100%; +} +.centerMenu +{ + background-color: White; + text-align: center; + border-width: thin; + border-style: groove; + border-color: Blue; +} +A:hover +{ + color: red; +} + +.bodyMain +{ + /* background-image: url(../images/logo_sw.png); -khtml-opacity: .50; -moz-opacity: .50; -ms-filter: "alpha(opacity=50)"; filter: alpha(opacity=50); filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0.5); opacity: .50; */ + vertical-align: top; + border-left: #0D0083 1px solid; /*border-top: #0D0083 1px solid;*/ + height: 100%; + width: 100%; + background-position: center; /*was topleft*/ + background-attachment: scroll; + background-repeat: no-repeat; +} +.bodyMainEmpty +{ + vertical-align: top; + border-left: maroon 1px solid; + height: 100%; + width: 100%; +} + +.bodyMainWhite +{ + vertical-align: top; + border-left: maroon 1px solid; + height: 100%; + width: 100%; + background-position: center; + background-attachment: scroll; + background-repeat: no-repeat; +} + +.bodyMainWhite a:hover +{ + color: white; +} + +.bodyMainNoLogo +{ + vertical-align: top; + border-left: maroon 1px solid; + height: 100%; + width: 100%; +} + +.bodyMainLogoPiccolo +{ + background-image: url(../images/sfondoMedio.png); + background-position: 97% 210px; + vertical-align: top; + border-left: maroon 1px solid; + height: 100%; + width: 100%; + background-attachment: scroll; + background-repeat: no-repeat; +} diff --git a/GPW/infoPage.aspx b/GPW/infoPage.aspx new file mode 100644 index 0000000..a995a2f --- /dev/null +++ b/GPW/infoPage.aspx @@ -0,0 +1,25 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimpleFull.master" AutoEventWireup="true" CodeBehind="infoPage.aspx.cs" + Inherits="GPW.infoPage" %> + + +
+
+
+ + +

+ Info installazione

+ Cliente: +
+ Applicazione: +
+ Licenze indicate: +
+ Scadenza Licenze: +
+ +
+
+
+
+
diff --git a/GPW/infoPage.aspx.cs b/GPW/infoPage.aspx.cs new file mode 100644 index 0000000..1cf83de --- /dev/null +++ b/GPW/infoPage.aspx.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using GPW_data; + +namespace GPW +{ + public partial class infoPage : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (licenzeGPW.modApp == "runtime") + { + setupPanels(true); + } + else + { + setupPanels(false); + } + } + /// + /// mostr ai pannelli setup/dati install + /// + /// + private void setupPanels(bool showInstall) + { + if (showInstall) + { + if (licenzeGPW.scadenzaLicenza >= DateTime.Now) + { + pnlCheck.CssClass = "btnVerdeGrad ui-corner-all shadowBox"; + } + else + { + pnlCheck.CssClass = "btnRossoGrad ui-corner-all shadowBox"; + } + lblInstallation.Text = licenzeGPW.installazione; + lblApplication.Text = licenzeGPW.applicazione; + lblNumLic.Text = string.Format("{1} ({0} disp)", licenzeGPW.licenzeAttive, licenzeGPW.licenzeDb); + lblNumLic.ToolTip = "licenze valide (licenze su db)"; + lblExpiryDate.Text = licenzeGPW.scadenzaLicenza.ToShortDateString(); + lblAuthKey.Text = licenzeGPW.authKey; + } + } + } +} \ No newline at end of file diff --git a/GPW/infoPage.aspx.designer.cs b/GPW/infoPage.aspx.designer.cs new file mode 100644 index 0000000..ff5de0c --- /dev/null +++ b/GPW/infoPage.aspx.designer.cs @@ -0,0 +1,69 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW { + + + public partial class infoPage { + + /// + /// pnlCheck control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCheck; + + /// + /// lblInstallation control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblInstallation; + + /// + /// lblApplication control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblApplication; + + /// + /// lblNumLic control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblNumLic; + + /// + /// lblExpiryDate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblExpiryDate; + + /// + /// lblAuthKey control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblAuthKey; + } +} diff --git a/GPW/jumper.aspx b/GPW/jumper.aspx new file mode 100644 index 0000000..8cc1bdf --- /dev/null +++ b/GPW/jumper.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/jQueryMobileNoCookie.Master" AutoEventWireup="true" CodeBehind="jumper.aspx.cs" Inherits="GPW.jumper" %> + + + + diff --git a/GPW/jumper.aspx.cs b/GPW/jumper.aspx.cs new file mode 100644 index 0000000..e09dee6 --- /dev/null +++ b/GPW/jumper.aspx.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW +{ + public partial class jumper : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + // cerco un insieme di parametri in URL (get)... + string UserAuthkey = ""; + string idxDipendente = ""; + try + { + UserAuthkey = Request["UserAuthkey"]; + idxDipendente = Request["idxDipendente"]; + } + catch + { } + // ... li inserisco in sessione ... + Session["UserAuthkey"] = UserAuthkey; + Session["idxDipendente"] = idxDipendente; + // ...infine rimando a pagina di login... + Response.Redirect("~/A3/regNewDevice.aspx"); + } + } +} \ No newline at end of file diff --git a/GPW/jumper.aspx.designer.cs b/GPW/jumper.aspx.designer.cs new file mode 100644 index 0000000..6428e2d --- /dev/null +++ b/GPW/jumper.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW +{ + + + public partial class jumper + { + } +} diff --git a/GPW/logs/20161109.txt b/GPW/logs/20161109.txt new file mode 100644 index 0000000..e155aa5 --- /dev/null +++ b/GPW/logs/20161109.txt @@ -0,0 +1,105 @@ +15:48:05 0782 [LEMMA] - AccessFail +15:48:05 1132 [LEMMA] - UsrNotAuth +15:48:05 1222 [WARNING] - Accesso fallito, utente non autenticato +15:48:30 7399 [LEMMA] - AccessFail +15:48:30 7459 [LEMMA] - UsrNotAuth +15:48:30 7499 [WARNING] - Accesso fallito, utente non autenticato +15:48:45 4300 [LEMMA] - AccessFail +15:48:45 4365 [LEMMA] - UsrNotAuth +15:48:45 4405 [WARNING] - Accesso fallito, utente non autenticato +15:48:56 2515 [LEMMA] - AccessFail +15:48:56 2570 [LEMMA] - UsrNotAuth +15:48:56 2620 [WARNING] - Accesso fallito, utente non autenticato +15:49:48 0991 [LEMMA] - NonDisponibile +15:49:48 1061 [LEMMA] - NonAuth +15:51:39 3393 [LEMMA] - NonDisponibile +15:51:39 3458 [LEMMA] - NonAuth +15:52:39 5586 [INFO] - Richiesto Check Daily Duties +15:53:09 1055 [LEMMA] - AccessFail +15:53:09 1105 [LEMMA] - UsrNotAuth +15:53:09 1155 [WARNING] - Accesso fallito, utente non autenticato +15:53:09 1570 [LEMMA] - NonDisponibile +15:53:09 1630 [LEMMA] - NonAuth +15:53:24 7392 [INFO] - Richiesto Check Daily Duties +15:53:24 8997 [LEMMA] - NonDisponibile +15:53:24 9067 [LEMMA] - NonAuth +15:54:05 8709 [INFO] - Richiesto Check Daily Duties +15:54:09 7169 [INFO] - Richiesto Check Daily Duties +15:54:10 1555 [LEMMA] - NonDisponibile +15:54:10 1630 [LEMMA] - NonAuth +15:54:10 1835 [EXCEPTION] - Errore recupero chiave installazione da AKV: System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto. + in GPW_data.DS_UtilityTableAdapters.AnagKeyValueTableAdapter.getByKey(String nomeVar) in C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GPW\GPW_Data\DS_Utility.Designer.cs:riga 9918 + in GPW_data.licenzeGPW.get_installazione() in C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GPW\GPW_Data\licenzeGPW.cs:riga 89 +15:54:10 1935 [EXCEPTION] - Errore recupero chiave installazione da AKV: System.InvalidOperationException: A Command è già associato un DataReader aperto, che deve essere chiuso. + in System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute(SqlCommand command) + in System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) + in System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) + in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) + in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) + in System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) + in System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + in System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) + in System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) + in System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) + in System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) + in GPW_data.DS_UtilityTableAdapters.AnagKeyValueTableAdapter.getByKey(String nomeVar) in C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GPW\GPW_Data\DS_Utility.Designer.cs:riga 9921 + in GPW_data.licenzeGPW.get_installazione() in C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GPW\GPW_Data\licenzeGPW.cs:riga 89 +15:54:10 2295 [WARNING] - WARNING licenze: utenti attivi 3 / licenziati 10 +15:54:14 1482 [INFO] - Richiesto Check Daily Duties +15:55:12 1597 [INFO] - Richiesto Check Daily Duties +15:55:17 8465 [INFO] - Richiesto Check Daily Duties +15:56:31 7835 [LEMMA] - AccessFail +15:56:31 8036 [LEMMA] - UsrNotAuth +15:56:31 8246 [WARNING] - Accesso fallito, utente non autenticato +15:56:32 2181 [INFO] - Richiesto Check Daily Duties +15:56:33 0077 [LEMMA] - AccessFail +15:56:33 0307 [LEMMA] - UsrNotAuth +15:56:33 0487 [WARNING] - Accesso fallito, utente non autenticato +15:56:41 3246 [LEMMA] - AccessFail +15:56:41 3401 [LEMMA] - UsrNotAuth +15:56:41 3556 [WARNING] - Accesso fallito, utente non autenticato +15:57:33 8089 [INFO] - Richiesto Check Daily Duties +15:58:13 6866 [INFO] - Richiesto Check Daily Duties +15:58:53 7092 [INFO] - Richiesto Check Daily Duties +15:58:55 3534 [LEMMA] - AccessFail +15:58:55 3804 [LEMMA] - UsrNotAuth +15:58:55 4134 [WARNING] - Accesso fallito, utente non autenticato +15:58:55 8665 [LEMMA] - AccessFail +15:58:55 8900 [LEMMA] - UsrNotAuth +15:58:55 9125 [WARNING] - Accesso fallito, utente non autenticato +16:03:30 1353 [LEMMA] - NonDisponibile +16:03:30 1533 [LEMMA] - NonAuth +16:03:41 9661 [LEMMA] - NonDisponibile +16:03:41 9811 [LEMMA] - NonAuth +16:03:51 2428 [LEMMA] - AccessFail +16:03:51 2618 [LEMMA] - UsrNotAuth +16:03:51 2768 [WARNING] - Accesso fallito, utente non autenticato +16:03:51 3128 [LEMMA] - NonDisponibile +16:03:51 3288 [LEMMA] - NonAuth +16:07:41 5769 [LEMMA] - NonDisponibile +16:07:41 5939 [LEMMA] - NonAuth +16:07:48 6444 [LEMMA] - NonDisponibile +16:07:48 6674 [LEMMA] - NonAuth +16:07:52 9277 [LEMMA] - NonDisponibile +16:07:52 9477 [LEMMA] - NonAuth +16:07:52 9867 [LEMMA] - NonDisponibile +16:07:53 0157 [LEMMA] - NonAuth +16:08:01 2433 [LEMMA] - AccessFail +16:08:01 2593 [LEMMA] - UsrNotAuth +16:08:01 2743 [WARNING] - Accesso fallito, utente non autenticato +16:08:01 3003 [LEMMA] - NonDisponibile +16:08:01 3183 [LEMMA] - NonAuth +16:09:07 9084 [INFO] - Richiesto Check Daily Duties +16:09:10 7176 [LEMMA] - NonDisponibile +16:09:10 7396 [LEMMA] - NonAuth +16:09:44 8672 [LEMMA] - NonDisponibile +16:09:44 8812 [LEMMA] - NonAuth +16:09:50 7206 [LEMMA] - AccessFail +16:09:50 7346 [LEMMA] - UsrNotAuth +16:09:50 7486 [WARNING] - Accesso fallito, utente non autenticato +16:09:50 7746 [LEMMA] - NonDisponibile +16:09:50 7886 [LEMMA] - NonAuth +16:10:08 2870 [INFO] - Richiesto controllo anomalie! +16:10:08 3050 [INFO] - Trovate anomalie mancate approvazioni, invio email ad admin +16:10:08 3170 [STARTUP] - [Modulo gestEmail]: avviato con parametro smtp 10.74.82.254 +16:10:08 3270 [STARTUP] - [Modulo gestEmail]: avviato con parametro smtp 10.74.82.254 diff --git a/GPW/unauthorized.aspx b/GPW/unauthorized.aspx new file mode 100644 index 0000000..82c165d --- /dev/null +++ b/GPW/unauthorized.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimple.master" AutoEventWireup="true" CodeBehind="unauthorized.aspx.cs" Inherits="GPW.A1.unauthorized" %> +<%@ Register src="../WebUserControls/mod_unauthorized.ascx" tagname="mod_unauthorized" tagprefix="uc1" %> + + + diff --git a/GPW/unauthorized.aspx.cs b/GPW/unauthorized.aspx.cs new file mode 100644 index 0000000..158a6c8 --- /dev/null +++ b/GPW/unauthorized.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GPW.A1 +{ + public partial class unauthorized : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GPW/unauthorized.aspx.designer.cs b/GPW/unauthorized.aspx.designer.cs new file mode 100644 index 0000000..326305a --- /dev/null +++ b/GPW/unauthorized.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GPW.A1 { + + + public partial class unauthorized { + + /// + /// mod_unauthorized1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_unauthorized mod_unauthorized1; + } +} diff --git a/packages/elmah.1.2.2/Readme.txt b/packages/elmah.1.2.2/Readme.txt new file mode 100644 index 0000000..784b309 --- /dev/null +++ b/packages/elmah.1.2.2/Readme.txt @@ -0,0 +1,15 @@ +A new HTTP handler has been configured in your application for consulting the +error log and its feeds. It is reachable at elmah.axd under your application +root. If, for example, your application is deployed at http://www.example.com, +the URL for ELMAH would be http://www.example.com/elmah.axd. You can, of +course, change this path in your application's configuration file. + +ELMAH is also set up to be secure such that it can only be accessed locally. +You can enable remote access but then it is paramount that you secure access +to authorized users or/and roles only. This can be done using standard +authorization rules and configuration already built into ASP.NET. For more +information, see http://code.google.com/p/elmah/wiki/SecuringErrorLogPages on +the project site. + +Please review the commented out authorization section under + and make the appropriate changes. diff --git a/packages/elmah.1.2.2/content/App_Readme/Elmah.txt b/packages/elmah.1.2.2/content/App_Readme/Elmah.txt new file mode 100644 index 0000000..784b309 --- /dev/null +++ b/packages/elmah.1.2.2/content/App_Readme/Elmah.txt @@ -0,0 +1,15 @@ +A new HTTP handler has been configured in your application for consulting the +error log and its feeds. It is reachable at elmah.axd under your application +root. If, for example, your application is deployed at http://www.example.com, +the URL for ELMAH would be http://www.example.com/elmah.axd. You can, of +course, change this path in your application's configuration file. + +ELMAH is also set up to be secure such that it can only be accessed locally. +You can enable remote access but then it is paramount that you secure access +to authorized users or/and roles only. This can be done using standard +authorization rules and configuration already built into ASP.NET. For more +information, see http://code.google.com/p/elmah/wiki/SecuringErrorLogPages on +the project site. + +Please review the commented out authorization section under + and make the appropriate changes. diff --git a/packages/elmah.1.2.2/content/web.config.transform b/packages/elmah.1.2.2/content/web.config.transform new file mode 100644 index 0000000..364c347 --- /dev/null +++ b/packages/elmah.1.2.2/content/web.config.transform @@ -0,0 +1,59 @@ + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/elmah.1.2.2/elmah.1.2.2.nupkg b/packages/elmah.1.2.2/elmah.1.2.2.nupkg new file mode 100644 index 0000000..db84991 Binary files /dev/null and b/packages/elmah.1.2.2/elmah.1.2.2.nupkg differ diff --git a/packages/elmah.corelibrary.1.2.2/elmah.corelibrary.1.2.2.nupkg b/packages/elmah.corelibrary.1.2.2/elmah.corelibrary.1.2.2.nupkg new file mode 100644 index 0000000..38531b3 Binary files /dev/null and b/packages/elmah.corelibrary.1.2.2/elmah.corelibrary.1.2.2.nupkg differ diff --git a/packages/elmah.corelibrary.1.2.2/lib/Elmah.dll b/packages/elmah.corelibrary.1.2.2/lib/Elmah.dll new file mode 100644 index 0000000..1851d9a Binary files /dev/null and b/packages/elmah.corelibrary.1.2.2/lib/Elmah.dll differ