diff --git a/C2P/WebUserControls/mod_OffersArchive.ascx b/C2P/WebUserControls/mod_OffersArchive.ascx index 2042562..e570279 100644 --- a/C2P/WebUserControls/mod_OffersArchive.ascx +++ b/C2P/WebUserControls/mod_OffersArchive.ascx @@ -91,7 +91,7 @@ <%:traduci("Open") %>
- <%:traduci("Delete") %> + <%:traduci("Delete") %>
<%:traduci("Duplicate") %> diff --git a/C2P/WebUserControls/mod_OffersArchive.ascx.cs b/C2P/WebUserControls/mod_OffersArchive.ascx.cs index 6aff653..268037f 100644 --- a/C2P/WebUserControls/mod_OffersArchive.ascx.cs +++ b/C2P/WebUserControls/mod_OffersArchive.ascx.cs @@ -406,11 +406,24 @@ namespace C2P.WebUserControls /// protected void lbDelete_Click(object sender, EventArgs e) { - // elimino SINGOLA offerta selezionata - DtProxy.man.taQFQ.DeleteQuery(QuoteType, Convert.ToInt32(CodQuote), Convert.ToInt32(QuoteRev)); - numSel = 0; - doUpdate(); - setBtnVisib(); + bool isDraft = false; + int IdxQS = 0; + try + { + IdxQS = DtProxy.man.taQFQ.getByKey(QuoteType, Convert.ToInt32(CodQuote), Convert.ToInt32(QuoteRev), "N")[0].IdxQState; + isDraft = (IdxQS == 0); + } + catch + { } + // SOLO se è in stato draft... + if (isDraft) + { + // elimino SINGOLA offerta selezionata + DtProxy.man.taQFQ.DeleteQuery(QuoteType, Convert.ToInt32(CodQuote), Convert.ToInt32(QuoteRev)); + numSel = 0; + doUpdate(); + setBtnVisib(); + } } /// /// duplica offerta selezionata diff --git a/C2P/WebUserControls/mod_Q_ExtrPar.ascx b/C2P/WebUserControls/mod_Q_ExtrPar.ascx index a79918c..e2d90c2 100644 --- a/C2P/WebUserControls/mod_Q_ExtrPar.ascx +++ b/C2P/WebUserControls/mod_Q_ExtrPar.ascx @@ -23,7 +23,7 @@
-
+
@@ -37,7 +37,7 @@
-
+
@@ -47,13 +47,14 @@
+ <%----%>
-
+
diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll index b0b9a6f..b26181c 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 691567f..43185e7 100644 Binary files a/C2P/bin/C2P_Data.dll and b/C2P/bin/C2P_Data.dll differ diff --git a/C2P/bin/SteamWare.dll b/C2P/bin/SteamWare.dll index 51b6720..48b0bec 100644 Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ diff --git a/C2P_Data/C2P_Data.csproj b/C2P_Data/C2P_Data.csproj index f45df1e..f4a573a 100644 --- a/C2P_Data/C2P_Data.csproj +++ b/C2P_Data/C2P_Data.csproj @@ -47,6 +47,10 @@ + + DS_Quotes.xsd + Component + True True diff --git a/C2P_Data/DS_Quotes.Designer.cs b/C2P_Data/DS_Quotes.Designer.cs index 639fb06..5c58b6b 100644 --- a/C2P_Data/DS_Quotes.Designer.cs +++ b/C2P_Data/DS_Quotes.Designer.cs @@ -3727,8 +3727,6 @@ namespace C2P_Data { private global::System.Data.DataColumn columnP_MinPrice_sim; - private global::System.Data.DataColumn columnNumSMED1; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public QuoteFull_QDataTable() { @@ -4594,14 +4592,6 @@ namespace C2P_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn NumSMED1Column { - get { - return this.columnNumSMED1; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -4743,8 +4733,7 @@ namespace C2P_Data { decimal NetMar_sim, decimal FCShield_sim, decimal MinPrice_sim, - decimal P_MinPrice_sim, - int NumSMED1) { + decimal P_MinPrice_sim) { QuoteFull_QRow rowQuoteFull_QRow = ((QuoteFull_QRow)(this.NewRow())); object[] columnValuesArray = new object[] { Vers, @@ -4850,8 +4839,7 @@ namespace C2P_Data { NetMar_sim, FCShield_sim, MinPrice_sim, - P_MinPrice_sim, - NumSMED1}; + P_MinPrice_sim}; rowQuoteFull_QRow.ItemArray = columnValuesArray; this.Rows.Add(rowQuoteFull_QRow); return rowQuoteFull_QRow; @@ -4987,7 +4975,6 @@ namespace C2P_Data { this.columnFCShield_sim = base.Columns["FCShield_sim"]; this.columnMinPrice_sim = base.Columns["MinPrice_sim"]; this.columnP_MinPrice_sim = base.Columns["P_MinPrice_sim"]; - this.columnNumSMED1 = base.Columns["NumSMED1"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -5201,8 +5188,6 @@ namespace C2P_Data { base.Columns.Add(this.columnMinPrice_sim); this.columnP_MinPrice_sim = new global::System.Data.DataColumn("P_MinPrice_sim", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnP_MinPrice_sim); - this.columnNumSMED1 = new global::System.Data.DataColumn("NumSMED1", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnNumSMED1); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnQuoteType, this.columnCodQuote, @@ -5306,7 +5291,6 @@ namespace C2P_Data { this.columnMSR01_sim.AllowDBNull = false; this.columnNetProd01_sim.AllowDBNull = false; this.columnDSR_sim.AllowDBNull = false; - this.columnNumSMED1.Caption = "NumSMED"; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -10588,22 +10572,6 @@ namespace C2P_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int NumSMED1 { - get { - try { - return ((int)(this[this.tableQuoteFull_Q.NumSMED1Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'NumSMED1\' in table \'QuoteFull_Q\' is DBNull.", e); - } - } - set { - this[this.tableQuoteFull_Q.NumSMED1Column] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsCodClientAssocNull() { @@ -11095,18 +11063,6 @@ namespace C2P_Data { public void SetP_MinPrice_simNull() { this[this.tableQuoteFull_Q.P_MinPrice_simColumn] = global::System.Convert.DBNull; } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsNumSMED1Null() { - return this.IsNull(this.tableQuoteFull_Q.NumSMED1Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetNumSMED1Null() { - this[this.tableQuoteFull_Q.NumSMED1Column] = global::System.Convert.DBNull; - } } /// @@ -17601,7 +17557,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas tableMapping.ColumnMappings.Add("FCShield_sim", "FCShield_sim"); tableMapping.ColumnMappings.Add("MinPrice_sim", "MinPrice_sim"); tableMapping.ColumnMappings.Add("P_MinPrice_sim", "P_MinPrice_sim"); - tableMapping.ColumnMappings.Add("NumSMED", "NumSMED1"); + tableMapping.ColumnMappings.Add("NumSMED", "NumSMED"); this._adapter.TableMappings.Add(tableMapping); } diff --git a/C2P_Data/DS_Quotes.cs b/C2P_Data/DS_Quotes.cs new file mode 100644 index 0000000..a964100 --- /dev/null +++ b/C2P_Data/DS_Quotes.cs @@ -0,0 +1,13 @@ +namespace C2P_Data { + + + public partial class DS_Quotes { + } +} + +namespace C2P_Data.DS_QuotesTableAdapters { + + + public partial class QuoteFull_QTableAdapter { + } +} diff --git a/C2P_Data/DS_Quotes.xsd b/C2P_Data/DS_Quotes.xsd index 72f6b5a..1533148 100644 --- a/C2P_Data/DS_Quotes.xsd +++ b/C2P_Data/DS_Quotes.xsd @@ -882,10 +882,10 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas - + - + dbo.stp_QLF_Delete @@ -898,7 +898,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas - + dbo.stp_QL_fullDataCount @@ -1003,7 +1003,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas - + dbo.stp_QuoteFull_Q_update @@ -1870,7 +1870,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -1954,7 +1954,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -1990,7 +1990,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -2015,7 +2015,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -2095,7 +2095,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -2132,7 +2132,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -2202,7 +2202,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -2453,11 +2453,10 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - - + @@ -2695,7 +2694,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -2716,7 +2715,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -2851,11 +2850,11 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - - - - - + + + + + \ No newline at end of file diff --git a/C2P_Data/DS_Quotes.xss b/C2P_Data/DS_Quotes.xss index 3edc65b..d106d29 100644 --- a/C2P_Data/DS_Quotes.xss +++ b/C2P_Data/DS_Quotes.xss @@ -12,7 +12,7 @@ - + diff --git a/C2P_Report/bin/C2P_Data.dll b/C2P_Report/bin/C2P_Data.dll index 691567f..43185e7 100644 Binary files a/C2P_Report/bin/C2P_Data.dll and b/C2P_Report/bin/C2P_Data.dll differ diff --git a/C2P_Report/bin/C2P_Report.dll b/C2P_Report/bin/C2P_Report.dll index 8343942..e90bc99 100644 Binary files a/C2P_Report/bin/C2P_Report.dll and b/C2P_Report/bin/C2P_Report.dll differ diff --git a/C2P_Report/bin/SteamWare.dll b/C2P_Report/bin/SteamWare.dll index 51b6720..48b0bec 100644 Binary files a/C2P_Report/bin/SteamWare.dll and b/C2P_Report/bin/SteamWare.dll differ diff --git a/VersGen/C2P.cs b/VersGen/C2P.cs index 256870d..991f08e 100644 --- a/VersGen/C2P.cs +++ b/VersGen/C2P.cs @@ -5,7 +5,7 @@ using System.Reflection; -[assembly: AssemblyVersion("0.8.109.240")] -[assembly: AssemblyFileVersion("0.8.109.240")] +[assembly: AssemblyVersion("0.8.110.241")] +[assembly: AssemblyFileVersion("0.8.110.241")] [assembly: AssemblyCopyright("Proxima & Steamware © 2013-2014")] [assembly: AssemblyCompany("Steamware")] diff --git a/VersGen/C2P.tt b/VersGen/C2P.tt index 8ba99d5..acf16af 100644 --- a/VersGen/C2P.tt +++ b/VersGen/C2P.tt @@ -6,8 +6,8 @@ using System.Reflection; -[assembly: AssemblyVersion("0.8.109.<#= this.RevisionNumber #>")] -[assembly: AssemblyFileVersion("0.8.109.<#= this.RevisionNumber #>")] +[assembly: AssemblyVersion("0.8.110.<#= this.RevisionNumber #>")] +[assembly: AssemblyFileVersion("0.8.110.<#= this.RevisionNumber #>")] [assembly: AssemblyCopyright("Proxima & Steamware © 2013-<#= DateTime.Now.Year #>")] [assembly: AssemblyCompany("Steamware")] <#+