diff --git a/.gitignore b/.gitignore index 4284bb9..9ef4174 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,8 @@ Thumbs.db #-------------------------------------------- C2P/bin/*.pdb /C2P/bin/*.pdb +C2P/bin/*.dll +/C2P/bin/*.dll /C2P/obj/Release /C2P/obj/Debug /C2P/obj/Release/* @@ -78,4 +80,4 @@ C2P_Project/C2P_Project.dbmdl *.pdb *.pdb C2P/bin/C2P_Data.pdb -C2P/bin/C2P_Data.pdb \ No newline at end of file +C2P/bin/C2P_Data.pdb diff --git a/C2P/C2P.csproj b/C2P/C2P.csproj index 8c07049..0f61b97 100644 --- a/C2P/C2P.csproj +++ b/C2P/C2P.csproj @@ -232,6 +232,20 @@ + + + + + + + + + + + + + + @@ -259,11 +273,16 @@ + + + + + @@ -387,6 +406,13 @@ WS_data.asmx Component + + Settings.aspx + ASPXCodeBehind + + + Settings.aspx + Simulation.aspx ASPXCodeBehind @@ -415,6 +441,13 @@ ViewSwitcher.ascx + + Vocabolario.aspx + ASPXCodeBehind + + + Vocabolario.aspx + mod_autocomplete.ascx ASPXCodeBehind @@ -422,6 +455,13 @@ mod_autocomplete.ascx + + mod_lemmiVocab.ascx + ASPXCodeBehind + + + mod_lemmiVocab.ascx + mod_newQuote.ascx ASPXCodeBehind @@ -450,6 +490,20 @@ mod_testata.ascx + + mod_vocabolario.ascx + ASPXCodeBehind + + + mod_vocabolario.ascx + + + WhatIf.aspx + ASPXCodeBehind + + + WhatIf.aspx + diff --git a/C2P/Default.aspx b/C2P/Default.aspx index 7889043..cafff84 100644 --- a/C2P/Default.aspx +++ b/C2P/Default.aspx @@ -16,6 +16,28 @@
+
+
+
+
+

Grafica e navigazione: HOME (click x dettaglio)

+
+
+ +
+
+
+
+
+
+

Menu (click x dettaglio)

+
+
+ +
+
+
+
diff --git a/C2P/Default.aspx.designer.cs b/C2P/Default.aspx.designer.cs index 7793a31..7ec6c9b 100644 --- a/C2P/Default.aspx.designer.cs +++ b/C2P/Default.aspx.designer.cs @@ -12,6 +12,24 @@ namespace C2P { public partial class _Default { + /// + /// HyperLink1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink1; + + /// + /// HyperLink2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink2; + /// /// hlQuote control. /// diff --git a/C2P/Images/scratch/01-HomePage.jpg b/C2P/Images/scratch/01-HomePage.jpg new file mode 100644 index 0000000..94ed82e Binary files /dev/null and b/C2P/Images/scratch/01-HomePage.jpg differ diff --git a/C2P/Images/scratch/02-Menu.jpg b/C2P/Images/scratch/02-Menu.jpg new file mode 100644 index 0000000..f5fc199 Binary files /dev/null and b/C2P/Images/scratch/02-Menu.jpg differ diff --git a/C2P/Images/scratch/03-NuovaOffertaAlt.jpg b/C2P/Images/scratch/03-NuovaOffertaAlt.jpg new file mode 100644 index 0000000..13406c9 Binary files /dev/null and b/C2P/Images/scratch/03-NuovaOffertaAlt.jpg differ diff --git a/C2P/Images/scratch/04-Errore.jpg b/C2P/Images/scratch/04-Errore.jpg new file mode 100644 index 0000000..ea94b57 Binary files /dev/null and b/C2P/Images/scratch/04-Errore.jpg differ diff --git a/C2P/Images/scratch/05-NuovaSimAlt.jpg b/C2P/Images/scratch/05-NuovaSimAlt.jpg new file mode 100644 index 0000000..1549327 Binary files /dev/null and b/C2P/Images/scratch/05-NuovaSimAlt.jpg differ diff --git a/C2P/Images/scratch/06-NuovaOfferta.jpg b/C2P/Images/scratch/06-NuovaOfferta.jpg new file mode 100644 index 0000000..a5f2f14 Binary files /dev/null and b/C2P/Images/scratch/06-NuovaOfferta.jpg differ diff --git a/C2P/Images/scratch/07-NuovaSim.jpg b/C2P/Images/scratch/07-NuovaSim.jpg new file mode 100644 index 0000000..c972146 Binary files /dev/null and b/C2P/Images/scratch/07-NuovaSim.jpg differ diff --git a/C2P/Images/scratch/08-ArchivioOfferte.jpg b/C2P/Images/scratch/08-ArchivioOfferte.jpg new file mode 100644 index 0000000..dffaf2b Binary files /dev/null and b/C2P/Images/scratch/08-ArchivioOfferte.jpg differ diff --git a/C2P/Images/scratch/09-Reports.jpg b/C2P/Images/scratch/09-Reports.jpg new file mode 100644 index 0000000..6c21529 Binary files /dev/null and b/C2P/Images/scratch/09-Reports.jpg differ diff --git a/C2P/Images/scratch/10-stdCost.jpg b/C2P/Images/scratch/10-stdCost.jpg new file mode 100644 index 0000000..409d0c5 Binary files /dev/null and b/C2P/Images/scratch/10-stdCost.jpg differ diff --git a/C2P/Images/scratch/11-MarginReport.jpg b/C2P/Images/scratch/11-MarginReport.jpg new file mode 100644 index 0000000..3629f21 Binary files /dev/null and b/C2P/Images/scratch/11-MarginReport.jpg differ diff --git a/C2P/Images/scratch/12-whatIf.jpg b/C2P/Images/scratch/12-whatIf.jpg new file mode 100644 index 0000000..1f9e23d Binary files /dev/null and b/C2P/Images/scratch/12-whatIf.jpg differ diff --git a/C2P/Images/scratch/13-WhatIfHypercube.jpg b/C2P/Images/scratch/13-WhatIfHypercube.jpg new file mode 100644 index 0000000..7243f10 Binary files /dev/null and b/C2P/Images/scratch/13-WhatIfHypercube.jpg differ diff --git a/C2P/Images/scratch/14-Settings.jpg b/C2P/Images/scratch/14-Settings.jpg new file mode 100644 index 0000000..e33cff4 Binary files /dev/null and b/C2P/Images/scratch/14-Settings.jpg differ diff --git a/C2P/Properties/AssemblyInfo.cs b/C2P/Properties/AssemblyInfo.cs index 5113519..d3cbd26 100644 --- a/C2P/Properties/AssemblyInfo.cs +++ b/C2P/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ using System.Runtime.InteropServices; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("0.6.37.0")] -[assembly: AssemblyFileVersion("0.6.37.0")] +[assembly: AssemblyVersion("0.6.38.0")] +[assembly: AssemblyFileVersion("0.6.38.0")] diff --git a/C2P/Quote.aspx b/C2P/Quote.aspx index 2b11d52..ba576c5 100644 --- a/C2P/Quote.aspx +++ b/C2P/Quote.aspx @@ -9,6 +9,38 @@ +
+
+
+
+

Nuova offerta (click x dettaglio)

+
+
+ +
+
+
+
+
+
+

Alternativa meno preferita (click x dettaglio)

+
+
+ +
+
+
+
+
+
+

Archivio Offerte (click x dettaglio)

+
+
+ +
+
+
+

diff --git a/C2P/Quote.aspx.designer.cs b/C2P/Quote.aspx.designer.cs index beff99b..d058bd5 100644 --- a/C2P/Quote.aspx.designer.cs +++ b/C2P/Quote.aspx.designer.cs @@ -12,6 +12,33 @@ namespace C2P { public partial class Quote { + /// + /// HyperLink1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink1; + + /// + /// HyperLink2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink2; + + /// + /// HyperLink3 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink3; + /// /// mod_newQuote1 control. /// diff --git a/C2P/Report.aspx b/C2P/Report.aspx index 63e7904..7ffa80c 100644 --- a/C2P/Report.aspx +++ b/C2P/Report.aspx @@ -1,9 +1,44 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.Master" AutoEventWireup="true" CodeBehind="Report.aspx.cs" Inherits="C2P.Report" %> + +
+
+
+
+

Reports (click x dettaglio)

+
+
+ +
+
+
+ <%--
+
+
+

Nuova simulazione alternativa (click x dettaglio)

+
+
+ +
+
+
+
+
+
+

Errore (click x dettaglio)

+
+
+ +
+
+
--%> +
+

- Work In Progress

+ Work In Progress +

diff --git a/C2P/Report.aspx.designer.cs b/C2P/Report.aspx.designer.cs index 6ce638d..3377fba 100644 --- a/C2P/Report.aspx.designer.cs +++ b/C2P/Report.aspx.designer.cs @@ -3,15 +3,22 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ -namespace C2P -{ - - - public partial class Report - { +namespace C2P { + + + public partial class Report { + + /// + /// HyperLink1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink1; } } diff --git a/C2P/Settings.aspx b/C2P/Settings.aspx new file mode 100644 index 0000000..030d676 --- /dev/null +++ b/C2P/Settings.aspx @@ -0,0 +1,42 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="Settings.aspx.cs" Inherits="C2P.Settings" %> + + + + + +
+
+
+
+

Settings (click x dettaglio)

+
+
+ +
+
+
+
+
+
+

Costi standard (click x dettaglio)

+
+
+ +
+
+
+ <%--
+
+
+

Errore (click x dettaglio)

+
+
+ +
+
+
--%> +
+

+ Work In Progress +

+
diff --git a/C2P/Settings.aspx.cs b/C2P/Settings.aspx.cs new file mode 100644 index 0000000..77ba4ff --- /dev/null +++ b/C2P/Settings.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 C2P +{ + public partial class Settings : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/C2P/Settings.aspx.designer.cs b/C2P/Settings.aspx.designer.cs new file mode 100644 index 0000000..9d1434d --- /dev/null +++ b/C2P/Settings.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 C2P { + + + public partial class Settings { + + /// + /// HyperLink1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink1; + + /// + /// HyperLink2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink2; + } +} diff --git a/C2P/Simulation.aspx b/C2P/Simulation.aspx index c68568e..3a03087 100644 --- a/C2P/Simulation.aspx +++ b/C2P/Simulation.aspx @@ -1,10 +1,43 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.Master" AutoEventWireup="true" CodeBehind="Simulation.aspx.cs" Inherits="C2P.Simulation" %> - + +
+
+
+
+

Nuova simulazione (click x dettaglio)

+
+
+ +
+
+
+
+
+
+

Nuova simulazione alternativa (click x dettaglio)

+
+
+ +
+
+
+
+
+
+

Errore (click x dettaglio)

+
+
+ +
+
+
+

- Work In Progress

+ Work In Progress +

diff --git a/C2P/Simulation.aspx.designer.cs b/C2P/Simulation.aspx.designer.cs index a4873b3..54d54eb 100644 --- a/C2P/Simulation.aspx.designer.cs +++ b/C2P/Simulation.aspx.designer.cs @@ -3,15 +3,40 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ -namespace C2P -{ - - - public partial class Simulation - { +namespace C2P { + + + public partial class Simulation { + + /// + /// HyperLink1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink1; + + /// + /// HyperLink2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink2; + + /// + /// HyperLink3 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink3; } } diff --git a/C2P/Vocabolario.aspx b/C2P/Vocabolario.aspx new file mode 100644 index 0000000..74bea5d --- /dev/null +++ b/C2P/Vocabolario.aspx @@ -0,0 +1,12 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="Vocabolario.aspx.cs" Inherits="C2P.Vocabolario" %> +<%@ Register Src="~/WebUserControls/mod_lemmiVocab.ascx" TagPrefix="uc1" TagName="mod_lemmiVocab" %> +<%@ Register src="WebUserControls/mod_vocabolario.ascx" tagname="mod_vocabolario" tagprefix="uc2" %> + + + + + <%----%> + + + <%----%> + diff --git a/C2P/Vocabolario.aspx.cs b/C2P/Vocabolario.aspx.cs new file mode 100644 index 0000000..bc43d17 --- /dev/null +++ b/C2P/Vocabolario.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 C2P +{ + public partial class Vocabolario : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/C2P/Vocabolario.aspx.designer.cs b/C2P/Vocabolario.aspx.designer.cs new file mode 100644 index 0000000..88c7e00 --- /dev/null +++ b/C2P/Vocabolario.aspx.designer.cs @@ -0,0 +1,15 @@ +//------------------------------------------------------------------------------ +// +// 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 C2P { + + + public partial class Vocabolario { + } +} diff --git a/C2P/WebUserControls/mod_lemmiVocab.ascx b/C2P/WebUserControls/mod_lemmiVocab.ascx new file mode 100644 index 0000000..e768bb1 --- /dev/null +++ b/C2P/WebUserControls/mod_lemmiVocab.ascx @@ -0,0 +1,53 @@ +<%@ Control Language="C#" AutoEventWireup="true" Inherits="C2P.WebUserControls.mod_lemmiVocab" Codebehind="mod_lemmiVocab.ascx.cs" %> + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/C2P/WebUserControls/mod_lemmiVocab.ascx.cs b/C2P/WebUserControls/mod_lemmiVocab.ascx.cs new file mode 100644 index 0000000..9887a9f --- /dev/null +++ b/C2P/WebUserControls/mod_lemmiVocab.ascx.cs @@ -0,0 +1,72 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + + +namespace C2P.WebUserControls +{ + public partial class mod_lemmiVocab : System.Web.UI.UserControl + { + + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(object lemma) + { + return user_std.UtSn.Traduci(lemma.ToString()); + } + + #region protected + + //protected override void aggiornaControlliDataGL() + //{ + // base.aggiornaControlliDataGL(); + // grView.PageSize = _righeDataGridAnagr; + //} + + 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 + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// aggiorna i dati mostrati + /// + public void doUpdate() + { + ods.DataBind(); + grView.DataBind(); + } + + #endregion + } +} \ No newline at end of file diff --git a/C2P/WebUserControls/mod_lemmiVocab.ascx.designer.cs b/C2P/WebUserControls/mod_lemmiVocab.ascx.designer.cs new file mode 100644 index 0000000..b028201 --- /dev/null +++ b/C2P/WebUserControls/mod_lemmiVocab.ascx.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 C2P.WebUserControls { + + + public partial class mod_lemmiVocab { + + /// + /// 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; + + /// + /// lblNumRec control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblNumRec; + + /// + /// 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/C2P/WebUserControls/mod_testata.ascx b/C2P/WebUserControls/mod_testata.ascx index 6af9513..7e8b8fd 100644 --- a/C2P/WebUserControls/mod_testata.ascx +++ b/C2P/WebUserControls/mod_testata.ascx @@ -16,7 +16,7 @@
  • - C2P - 13Al + C2Pline
  • @@ -61,6 +61,8 @@
  • Quotes
  • Simulation
  • Report
  • +
  • WhatIf
  • +
  • Settings
  • Help
  • diff --git a/C2P/WebUserControls/mod_testata.ascx.designer.cs b/C2P/WebUserControls/mod_testata.ascx.designer.cs index 92722e0..c83cafa 100644 --- a/C2P/WebUserControls/mod_testata.ascx.designer.cs +++ b/C2P/WebUserControls/mod_testata.ascx.designer.cs @@ -66,6 +66,24 @@ namespace C2P.WebUserControls { /// protected global::System.Web.UI.HtmlControls.HtmlAnchor A4; + /// + /// A7 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlAnchor A7; + + /// + /// A8 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlAnchor A8; + /// /// A5 control. /// diff --git a/C2P/WebUserControls/mod_vocabolario.ascx b/C2P/WebUserControls/mod_vocabolario.ascx new file mode 100644 index 0000000..3c1d4f8 --- /dev/null +++ b/C2P/WebUserControls/mod_vocabolario.ascx @@ -0,0 +1,100 @@ +<%@ Control Language="C#" AutoEventWireup="true" Inherits="C2P.WebUserControls.mod_vocabolario" CodeBehind="mod_vocabolario.ascx.cs" %> + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + <%-- + --%> +
    diff --git a/C2P/WebUserControls/mod_vocabolario.ascx.cs b/C2P/WebUserControls/mod_vocabolario.ascx.cs new file mode 100644 index 0000000..24fd28a --- /dev/null +++ b/C2P/WebUserControls/mod_vocabolario.ascx.cs @@ -0,0 +1,170 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + + +namespace C2P.WebUserControls +{ + public partial class mod_vocabolario : System.Web.UI.UserControl + { + + #region gestione eventi + + public event EventHandler eh_selezioneValore; + public event EventHandler eh_resetSelezione; + + #endregion + + #region protected + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + traduciObj(); + } + aggiornaControlliDataGL(); + } + + protected void traduciObj() + { + btnNewLemma.Text = user_std.UtSn.Traduci("btnNewLemma"); + txtNewLemma.Text = ""; + //TBW_newLemma.WatermarkText = user_std.UtSn.Traduci("insertNewLemma"); + } + + /// + /// inserisco nel db il nuovo lemma... + /// + /// + /// + protected void btnNewLemma_Click(object sender, EventArgs e) + { + creaNuovoLemma(); + } + /// + /// creazione nuovo lemma + /// + private void creaNuovoLemma() + { + if (txtNewLemma.Text != "") + { + // inserisco + DataWrap.DW.creaNuovoLemmaVoc(txtNewLemma.Text.Trim()); + // metto in campo ricerca... + memLayer.ML.setSessionVal("valoreCercato", txtNewLemma.Text.Trim()); + // svuoto campo text + txtNewLemma.Text = ""; + // aggiorno il vocabolario in memoria... + DataWrap.DW.resetVocabolario(); + // riparto... + Response.Redirect("Vocabolario"); + } + } + + protected void aggiornaControlliDataGL() + { + //base.aggiornaControlliDataGL(); + //grView.PageSize = _righeDataGridAnagr; + ods.DataBind(); + } + + 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 + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + selezionatoValore(); + } + + private void selezionatoValore() + { + SteamWare.memLayer.ML.setSessionVal("lemma_sel", grView.SelectedDataKey.Values[1]); + if (eh_selezioneValore != null) + { + eh_selezioneValore(this, new EventArgs()); + } + } + + protected void grView_RowEditing(object sender, GridViewEditEventArgs e) + { + // seleziono la riga corrente... + grView.SelectedIndex = e.NewEditIndex; + selezionatoValore(); + } + + protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e) + { + selezionatoValore(); + } + + #endregion + + #region area public + + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(object lemma) + { + return user_std.UtSn.Traduci(lemma.ToString()); + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + SteamWare.memLayer.ML.emptySessionVal("lemma_sel"); + grView.SelectedIndex = -1; + grView.DataBind(); + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + + #endregion + + } +} diff --git a/C2P/WebUserControls/mod_vocabolario.ascx.designer.cs b/C2P/WebUserControls/mod_vocabolario.ascx.designer.cs new file mode 100644 index 0000000..9cd14b5 --- /dev/null +++ b/C2P/WebUserControls/mod_vocabolario.ascx.designer.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// 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 C2P.WebUserControls { + + + public partial class mod_vocabolario { + + /// + /// 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; + + /// + /// lblNumRec control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblNumRec; + + /// + /// 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; + + /// + /// btnNewLemma control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnNewLemma; + + /// + /// txtNewLemma control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtNewLemma; + } +} diff --git a/C2P/WhatIf.aspx b/C2P/WhatIf.aspx new file mode 100644 index 0000000..c1e5939 --- /dev/null +++ b/C2P/WhatIf.aspx @@ -0,0 +1,42 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="WhatIf.aspx.cs" Inherits="C2P.WhatIf" %> + + + + + +
    +
    +
    +
    +

    What if base (click x dettaglio)

    +
    +
    + +
    +
    +
    +
    +
    +
    +

    What if hypercube (click x dettaglio)

    +
    +
    + +
    +
    +
    + <%--
    +
    +
    +

    Errore (click x dettaglio)

    +
    +
    + +
    +
    +
    --%> +
    +

    + Work In Progress +

    +
    diff --git a/C2P/WhatIf.aspx.cs b/C2P/WhatIf.aspx.cs new file mode 100644 index 0000000..de08580 --- /dev/null +++ b/C2P/WhatIf.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 C2P +{ + public partial class WhatIf : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/C2P/WhatIf.aspx.designer.cs b/C2P/WhatIf.aspx.designer.cs new file mode 100644 index 0000000..2b3381c --- /dev/null +++ b/C2P/WhatIf.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 C2P { + + + public partial class WhatIf { + + /// + /// HyperLink1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink1; + + /// + /// HyperLink2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink2; + } +} diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll index 2e46637..65f8a8c 100644 Binary files a/C2P/bin/C2P.dll and b/C2P/bin/C2P.dll differ diff --git a/C2P/bin/C2P_Data.dll b/C2P/bin/C2P_Data.dll index 20dbc4a..251d256 100644 Binary files a/C2P/bin/C2P_Data.dll and b/C2P/bin/C2P_Data.dll differ diff --git a/C2P/bin/C2P_Data.pdb b/C2P/bin/C2P_Data.pdb index a3664b2..191d88c 100644 Binary files a/C2P/bin/C2P_Data.pdb and b/C2P/bin/C2P_Data.pdb differ diff --git a/C2P_Data/bin/Release/C2P_Data.dll b/C2P_Data/bin/Release/C2P_Data.dll index 20dbc4a..251d256 100644 Binary files a/C2P_Data/bin/Release/C2P_Data.dll and b/C2P_Data/bin/Release/C2P_Data.dll differ diff --git a/C2P_Project/bin/Release/C2P_DB.dacpac b/C2P_Project/bin/Release/C2P_DB.dacpac index 2047a48..48fce2a 100644 Binary files a/C2P_Project/bin/Release/C2P_DB.dacpac and b/C2P_Project/bin/Release/C2P_DB.dacpac differ diff --git a/C2P_Project/bin/Release/C2P_Project.dll b/C2P_Project/bin/Release/C2P_Project.dll index 4a5a348..9f0bcaf 100644 Binary files a/C2P_Project/bin/Release/C2P_Project.dll and b/C2P_Project/bin/Release/C2P_Project.dll differ