diff --git a/C2P/WebUserControls/mod_newQuote.ascx b/C2P/WebUserControls/mod_newQuote.ascx new file mode 100644 index 0000000..409809c --- /dev/null +++ b/C2P/WebUserControls/mod_newQuote.ascx @@ -0,0 +1,62 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_newQuote.ascx.cs" Inherits="C2P.WebUserControls.mod_newQuote" %> +<%@ Register Src="~/WebUserControls/mod_autocomplete.ascx" TagPrefix="uc1" TagName="mod_autocomplete" %> + +<%if (false) + { %> + +<%} %> +
+
+
+

NUOVA OFFERTA

+
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+ Articolo +
+
+ elenco +
+
+
+
+ Materiale +
+
+ elenco +
+
+
+
+ Costi Al +
+
+ importo +
+
+ Costi extra +
+
+ importo +
+
+ note: +
+ - i campi compilati x nuovo FANNO da filtro x elenco sotto
+ - se ho almeno 1 campo calcolato mostro elenco sotto
+ - da elenco ho "duplica" o "riporta" +
+
+
diff --git a/C2P/WebUserControls/mod_newQuote.ascx.cs b/C2P/WebUserControls/mod_newQuote.ascx.cs new file mode 100644 index 0000000..754925c --- /dev/null +++ b/C2P/WebUserControls/mod_newQuote.ascx.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +namespace C2P.WebUserControls +{ + public partial class mod_newQuote : System.Web.UI.UserControl + { + /// + /// evento disponibilità nuovi dati x ricerca + /// + public event EventHandler eh_newSearchData; + /// + /// evento nuovo record inserito + /// + public event EventHandler eh_newQuote; + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + traduciObj(); + } + acCliente.eh_valSelezionato += acCliente_eh_valSelezionato; + acCliente.eh_reset += acCliente_eh_reset; + } + /// + /// traduzioni dell'interfaccia + /// + private void traduciObj() + { + lblCodCli.Text = traduci("lblCodCli"); + } + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(object lemma) + { + return user_std.UtSn.Traduci(lemma.ToString()); + } + /// + /// evento reset selezione valore CodCliente + /// + /// + /// + void acCliente_eh_reset(object sender, EventArgs e) + { + salvaRicerca(); + } + + /// + /// evento selezione valore CodCliente + /// + /// + /// + void acCliente_eh_valSelezionato(object sender, EventArgs e) + { + salvaRicerca(); + } + /// + /// salva valori cercati + /// + private void salvaRicerca() + { + // aggiorno dati cliente mostrati + lblDescrCli.Text = string.Format("clietne codice: {0}", acCliente.valore); + // salvo valore selezionato cliente + memLayer.ML.setSessionVal("CercaCodCli", acCliente.valore); + // sollevo evento + if (eh_newSearchData != null) + { + eh_newSearchData(this, new EventArgs()); + } + } + + } +} \ No newline at end of file diff --git a/C2P/WebUserControls/mod_newQuote.ascx.designer.cs b/C2P/WebUserControls/mod_newQuote.ascx.designer.cs new file mode 100644 index 0000000..a16aa74 --- /dev/null +++ b/C2P/WebUserControls/mod_newQuote.ascx.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 C2P.WebUserControls { + + + public partial class mod_newQuote { + + /// + /// BundleReference1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1; + + /// + /// lblCodCli control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblCodCli; + + /// + /// acCliente control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::C2P.WebUserControls.mod_autocomplete acCliente; + + /// + /// lblDescrCli control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblDescrCli; + } +}