diff --git a/C2P/AgentsMan.aspx b/C2P/AgentsMan.aspx
index 944b68c..680b871 100644
--- a/C2P/AgentsMan.aspx
+++ b/C2P/AgentsMan.aspx
@@ -1 +1,37 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="AgentsMan.aspx.cs" Inherits="C2P.AgentsMan" %>
+
+<%@ Register Src="~/WebUserControls/mod_ricercaGenerica.ascx" TagPrefix="uc1" TagName="mod_ricercaGenerica" %>
+<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc1" %>
+<%@ Register Src="~/WebUserControls/mod_AgentsMan.ascx" TagPrefix="uc1" TagName="mod_AgentsMan" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/C2P/AgentsMan.aspx.designer.cs b/C2P/AgentsMan.aspx.designer.cs
index 485ab37..535cfe4 100644
--- a/C2P/AgentsMan.aspx.designer.cs
+++ b/C2P/AgentsMan.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 AgentsMan
- {
+namespace C2P {
+
+
+ public partial class AgentsMan {
+
+ ///
+ /// mod_ricercaGenerica control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::mod_ricercaGenerica mod_ricercaGenerica;
+
+ ///
+ /// mod_righePag control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::mod_righePag mod_righePag;
+
+ ///
+ /// mod_AgentsMan control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::C2P.WebUserControls.mod_AgentsMan mod_AgentsMan;
}
}
diff --git a/C2P/C2P.csproj b/C2P/C2P.csproj
index 65d9d44..6646955 100644
--- a/C2P/C2P.csproj
+++ b/C2P/C2P.csproj
@@ -368,6 +368,7 @@
+
@@ -741,6 +742,13 @@
Vocabolario.aspx
+
+ mod_AgentsMan.ascx
+ ASPXCodeBehind
+
+
+ mod_AgentsMan.ascx
+
mod_autocomplete.ascx
ASPXCodeBehind
diff --git a/C2P/WebUserControls/mod_AgentsMan.ascx b/C2P/WebUserControls/mod_AgentsMan.ascx
new file mode 100644
index 0000000..00897eb
--- /dev/null
+++ b/C2P/WebUserControls/mod_AgentsMan.ascx
@@ -0,0 +1,60 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_AgentsMan.ascx.cs" Inherits="C2P.WebUserControls.mod_AgentsMan" %>
+
+
+
<%: traduci("btnNewAgent") %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/C2P/WebUserControls/mod_AgentsMan.ascx.cs b/C2P/WebUserControls/mod_AgentsMan.ascx.cs
new file mode 100644
index 0000000..39c2be6
--- /dev/null
+++ b/C2P/WebUserControls/mod_AgentsMan.ascx.cs
@@ -0,0 +1,114 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using SteamWare;
+using C2P_Data;
+
+namespace C2P.WebUserControls
+{
+ public partial class mod_AgentsMan : SteamWare.UserControl
+ {
+ ///
+ /// caricamento pagina
+ ///
+ protected void Page_Load()
+ {
+ if (!Page.IsPostBack)
+ {
+ txtNewVal.Text = "";
+ }
+ }
+ ///
+ /// inserisco nel db il nuovo lemma...
+ ///
+ ///
+ ///
+ protected void lbtNew_Click(object sender, EventArgs e)
+ {
+ creaNuovo();
+ }
+ ///
+ /// dimensione pagina grid view
+ ///
+ public int pageSize
+ {
+ get
+ {
+ return grView.PageSize;
+ }
+ set
+ {
+ grView.PageSize = value;
+ }
+ }
+ ///
+ /// post bind grView
+ ///
+ ///
+ ///
+ 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} ({1})", grView.Rows.Count, totRecord);
+ }
+ else
+ {
+ lblNumRec.Text = "";
+ }
+ }
+ ///
+ /// editing riga
+ ///
+ ///
+ ///
+ protected void grView_RowEditing(object sender, GridViewEditEventArgs e)
+ {
+ // seleziono la riga corrente...
+ grView.SelectedIndex = e.NewEditIndex;
+ }
+ ///
+ /// resetta la selezione dei valori in caso di modifiche su altri controlli
+ ///
+ public void resetSelezione()
+ {
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ }
+
+
+ ///
+ /// creazione nuovo lemma
+ ///
+ private void creaNuovo()
+ {
+ if (txtNewVal.Text != "")
+ {
+ // inserisco
+ DtProxy.man.taAgent.insertQuery(txtNewVal.Text.Trim(), "-", "-", 0);
+ // metto in campo ricerca...
+ memLayer.ML.setSessionVal("valoreCercato", txtNewVal.Text.Trim());
+ // svuoto campo text
+ txtNewVal.Text = "";
+ // riparto...
+ Response.Redirect(user_std.pagCorrente);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/C2P/WebUserControls/mod_AgentsMan.ascx.designer.cs b/C2P/WebUserControls/mod_AgentsMan.ascx.designer.cs
new file mode 100644
index 0000000..fecb887
--- /dev/null
+++ b/C2P/WebUserControls/mod_AgentsMan.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_AgentsMan {
+
+ ///
+ /// lbtNew control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.LinkButton lbtNew;
+
+ ///
+ /// txtNewVal control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtNewVal;
+
+ ///
+ /// 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_PackageMan.ascx.cs b/C2P/WebUserControls/mod_PackageMan.ascx.cs
index 46616b2..f513bdc 100644
--- a/C2P/WebUserControls/mod_PackageMan.ascx.cs
+++ b/C2P/WebUserControls/mod_PackageMan.ascx.cs
@@ -7,7 +7,6 @@ using System.Web.UI.WebControls;
using SteamWare;
using C2P_Data;
-
namespace C2P.WebUserControls
{
public partial class mod_PackageMan : SteamWare.UserControl
diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll
index 6742408..9b8a054 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 8b6be87..1ad061f 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 1eb05a0..e23d17c 100644
Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ
diff --git a/C2P_Data/DS_Quotes.Designer.cs b/C2P_Data/DS_Quotes.Designer.cs
index 6739f15..814491f 100644
--- a/C2P_Data/DS_Quotes.Designer.cs
+++ b/C2P_Data/DS_Quotes.Designer.cs
@@ -52,6 +52,8 @@ namespace C2P_Data {
private PackagDetDataTable tablePackagDet;
+ private AgentsDetDataTable tableAgentsDet;
+
private global::System.Data.DataRelation relationFK_QuoteRM_QuoteList;
private global::System.Data.DataRelation relationFK_QuoteWorkExt_QuoteList;
@@ -132,6 +134,9 @@ namespace C2P_Data {
if ((ds.Tables["PackagDet"] != null)) {
base.Tables.Add(new PackagDetDataTable(ds.Tables["PackagDet"]));
}
+ if ((ds.Tables["AgentsDet"] != null)) {
+ base.Tables.Add(new AgentsDetDataTable(ds.Tables["AgentsDet"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -290,6 +295,16 @@ namespace C2P_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AgentsDetDataTable AgentsDet {
+ get {
+ return this.tableAgentsDet;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -399,6 +414,9 @@ namespace C2P_Data {
if ((ds.Tables["PackagDet"] != null)) {
base.Tables.Add(new PackagDetDataTable(ds.Tables["PackagDet"]));
}
+ if ((ds.Tables["AgentsDet"] != null)) {
+ base.Tables.Add(new AgentsDetDataTable(ds.Tables["AgentsDet"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -516,6 +534,12 @@ namespace C2P_Data {
this.tablePackagDet.InitVars();
}
}
+ this.tableAgentsDet = ((AgentsDetDataTable)(base.Tables["AgentsDet"]));
+ if ((initTable == true)) {
+ if ((this.tableAgentsDet != null)) {
+ this.tableAgentsDet.InitVars();
+ }
+ }
this.relationFK_QuoteRM_QuoteList = this.Relations["FK_QuoteRM_QuoteList"];
this.relationFK_QuoteWorkExt_QuoteList = this.Relations["FK_QuoteWorkExt_QuoteList"];
this.relationFK_QuoteWorkInt_QuoteList = this.Relations["FK_QuoteWorkInt_QuoteList"];
@@ -559,6 +583,8 @@ namespace C2P_Data {
base.Tables.Add(this.tablestp_chekLastRevQuote);
this.tablePackagDet = new PackagDetDataTable();
base.Tables.Add(this.tablePackagDet);
+ this.tableAgentsDet = new AgentsDetDataTable();
+ base.Tables.Add(this.tableAgentsDet);
this.relationFK_QuoteRM_QuoteList = new global::System.Data.DataRelation("FK_QuoteRM_QuoteList", new global::System.Data.DataColumn[] {
this.tableQuoteList.QuoteTypeColumn,
this.tableQuoteList.CodQuoteColumn,
@@ -685,6 +711,12 @@ namespace C2P_Data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeAgentsDet() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -782,6 +814,9 @@ namespace C2P_Data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void PackagDetRowChangeEventHandler(object sender, PackagDetRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void AgentsDetRowChangeEventHandler(object sender, AgentsDetRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -11221,6 +11256,312 @@ namespace C2P_Data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class AgentsDetDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodAg;
+
+ private global::System.Data.DataColumn columnLastname;
+
+ private global::System.Data.DataColumn columnFirstname;
+
+ private global::System.Data.DataColumn columnQuotaProvvAg;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AgentsDetDataTable() {
+ this.TableName = "AgentsDet";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal AgentsDetDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected AgentsDetDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodAgColumn {
+ get {
+ return this.columnCodAg;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn LastnameColumn {
+ get {
+ return this.columnLastname;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn FirstnameColumn {
+ get {
+ return this.columnFirstname;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn QuotaProvvAgColumn {
+ get {
+ return this.columnQuotaProvvAg;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AgentsDetRow this[int index] {
+ get {
+ return ((AgentsDetRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AgentsDetRowChangeEventHandler AgentsDetRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AgentsDetRowChangeEventHandler AgentsDetRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AgentsDetRowChangeEventHandler AgentsDetRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event AgentsDetRowChangeEventHandler AgentsDetRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddAgentsDetRow(AgentsDetRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AgentsDetRow AddAgentsDetRow(string CodAg, string Lastname, string Firstname, decimal QuotaProvvAg) {
+ AgentsDetRow rowAgentsDetRow = ((AgentsDetRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodAg,
+ Lastname,
+ Firstname,
+ QuotaProvvAg};
+ rowAgentsDetRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAgentsDetRow);
+ return rowAgentsDetRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AgentsDetRow FindByCodAg(string CodAg) {
+ return ((AgentsDetRow)(this.Rows.Find(new object[] {
+ CodAg})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ AgentsDetDataTable cln = ((AgentsDetDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AgentsDetDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnCodAg = base.Columns["CodAg"];
+ this.columnLastname = base.Columns["Lastname"];
+ this.columnFirstname = base.Columns["Firstname"];
+ this.columnQuotaProvvAg = base.Columns["QuotaProvvAg"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnCodAg = new global::System.Data.DataColumn("CodAg", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodAg);
+ this.columnLastname = new global::System.Data.DataColumn("Lastname", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnLastname);
+ this.columnFirstname = new global::System.Data.DataColumn("Firstname", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFirstname);
+ this.columnQuotaProvvAg = new global::System.Data.DataColumn("QuotaProvvAg", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQuotaProvvAg);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodAg}, true));
+ this.columnCodAg.AllowDBNull = false;
+ this.columnCodAg.Unique = true;
+ this.columnCodAg.MaxLength = 50;
+ this.columnLastname.AllowDBNull = false;
+ this.columnLastname.MaxLength = 50;
+ this.columnFirstname.AllowDBNull = false;
+ this.columnFirstname.MaxLength = 50;
+ this.columnQuotaProvvAg.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AgentsDetRow NewAgentsDetRow() {
+ return ((AgentsDetRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AgentsDetRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(AgentsDetRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AgentsDetRowChanged != null)) {
+ this.AgentsDetRowChanged(this, new AgentsDetRowChangeEvent(((AgentsDetRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AgentsDetRowChanging != null)) {
+ this.AgentsDetRowChanging(this, new AgentsDetRowChangeEvent(((AgentsDetRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AgentsDetRowDeleted != null)) {
+ this.AgentsDetRowDeleted(this, new AgentsDetRowChangeEvent(((AgentsDetRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AgentsDetRowDeleting != null)) {
+ this.AgentsDetRowDeleting(this, new AgentsDetRowChangeEvent(((AgentsDetRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveAgentsDetRow(AgentsDetRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_Quotes ds = new DS_Quotes();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "AgentsDetDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+ try {
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
+ }
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
+ }
+ }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
///
///Represents strongly named DataRow class.
///
@@ -18330,6 +18671,65 @@ namespace C2P_Data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class AgentsDetRow : global::System.Data.DataRow {
+
+ private AgentsDetDataTable tableAgentsDet;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal AgentsDetRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAgentsDet = ((AgentsDetDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodAg {
+ get {
+ return ((string)(this[this.tableAgentsDet.CodAgColumn]));
+ }
+ set {
+ this[this.tableAgentsDet.CodAgColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Lastname {
+ get {
+ return ((string)(this[this.tableAgentsDet.LastnameColumn]));
+ }
+ set {
+ this[this.tableAgentsDet.LastnameColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Firstname {
+ get {
+ return ((string)(this[this.tableAgentsDet.FirstnameColumn]));
+ }
+ set {
+ this[this.tableAgentsDet.FirstnameColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal QuotaProvvAg {
+ get {
+ return ((decimal)(this[this.tableAgentsDet.QuotaProvvAgColumn]));
+ }
+ set {
+ this[this.tableAgentsDet.QuotaProvvAgColumn] = value;
+ }
+ }
+ }
+
///
///Row event argument class
///
@@ -18805,6 +19205,40 @@ namespace C2P_Data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class AgentsDetRowChangeEvent : global::System.EventArgs {
+
+ private AgentsDetRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AgentsDetRowChangeEvent(AgentsDetRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AgentsDetRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace C2P_Data.DS_QuotesTableAdapters {
@@ -25681,6 +26115,539 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class AgentsDetTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AgentsDetTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "AgentsDet";
+ tableMapping.ColumnMappings.Add("CodAg", "CodAg");
+ tableMapping.ColumnMappings.Add("Lastname", "Lastname");
+ tableMapping.ColumnMappings.Add("Firstname", "Firstname");
+ tableMapping.ColumnMappings.Add("QuotaProvvAg", "QuotaProvvAg");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AgentsDet] WHERE (([CodAg] = @Original_CodAg) AND ([Lastname] " +
+ "= @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ([QuotaProvvAg" +
+ "] = @Original_QuotaProvvAg))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAg", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAg", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuotaProvvAg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "QuotaProvvAg", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AgentsDet] ([CodAg], [Lastname], [Firstname], [QuotaProvvAg]) " +
+ "VALUES (@CodAg, @Lastname, @Firstname, @QuotaProvvAg);\r\nSELECT CodAg, Lastname, " +
+ "Firstname, QuotaProvvAg FROM AgentsDet WHERE (CodAg = @CodAg)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAg", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAg", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaProvvAg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "QuotaProvvAg", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AgentsDet] SET [CodAg] = @CodAg, [Lastname] = @Lastname, [Firstname] = @Firstname, [QuotaProvvAg] = @QuotaProvvAg WHERE (([CodAg] = @Original_CodAg) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ([QuotaProvvAg] = @Original_QuotaProvvAg));
+SELECT CodAg, Lastname, Firstname, QuotaProvvAg FROM AgentsDet WHERE (CodAg = @CodAg)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAg", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAg", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaProvvAg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "QuotaProvvAg", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAg", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAg", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuotaProvvAg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "QuotaProvvAg", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::C2P_Data.Properties.Settings.Default.C2PConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodAg, Lastname, Firstname, QuotaProvvAg FROM dbo.AgentsDet";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_Agent_deleteQuery";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAg", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_Agent_insertQuery";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAg", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaProvvAg", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_Agent_updateQuery";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAg", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaProvvAg", global::System.Data.SqlDbType.Decimal, 5, global::System.Data.ParameterDirection.Input, 9, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAg", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_Quotes.AgentsDetDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Quotes.AgentsDetDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Quotes.AgentsDetDataTable dataTable = new DS_Quotes.AgentsDetDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Quotes.AgentsDetDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Quotes dataSet) {
+ return this.Adapter.Update(dataSet, "AgentsDet");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodAg, string Original_Lastname, string Original_Firstname, decimal Original_QuotaProvvAg) {
+ if ((Original_CodAg == null)) {
+ throw new global::System.ArgumentNullException("Original_CodAg");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodAg));
+ }
+ if ((Original_Lastname == null)) {
+ throw new global::System.ArgumentNullException("Original_Lastname");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Lastname));
+ }
+ if ((Original_Firstname == null)) {
+ throw new global::System.ArgumentNullException("Original_Firstname");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Firstname));
+ }
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_QuotaProvvAg));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodAg, string Lastname, string Firstname, decimal QuotaProvvAg) {
+ if ((CodAg == null)) {
+ throw new global::System.ArgumentNullException("CodAg");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodAg));
+ }
+ if ((Lastname == null)) {
+ throw new global::System.ArgumentNullException("Lastname");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Lastname));
+ }
+ if ((Firstname == null)) {
+ throw new global::System.ArgumentNullException("Firstname");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Firstname));
+ }
+ this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(QuotaProvvAg));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodAg, string Lastname, string Firstname, decimal QuotaProvvAg, string Original_CodAg, string Original_Lastname, string Original_Firstname, decimal Original_QuotaProvvAg) {
+ if ((CodAg == null)) {
+ throw new global::System.ArgumentNullException("CodAg");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodAg));
+ }
+ if ((Lastname == null)) {
+ throw new global::System.ArgumentNullException("Lastname");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Lastname));
+ }
+ if ((Firstname == null)) {
+ throw new global::System.ArgumentNullException("Firstname");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Firstname));
+ }
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(QuotaProvvAg));
+ if ((Original_CodAg == null)) {
+ throw new global::System.ArgumentNullException("Original_CodAg");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodAg));
+ }
+ if ((Original_Lastname == null)) {
+ throw new global::System.ArgumentNullException("Original_Lastname");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Lastname));
+ }
+ if ((Original_Firstname == null)) {
+ throw new global::System.ArgumentNullException("Original_Firstname");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Firstname));
+ }
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_QuotaProvvAg));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string Lastname, string Firstname, decimal QuotaProvvAg, string Original_CodAg, string Original_Lastname, string Original_Firstname, decimal Original_QuotaProvvAg) {
+ return this.Update(Original_CodAg, Lastname, Firstname, QuotaProvvAg, Original_CodAg, Original_Lastname, Original_Firstname, Original_QuotaProvvAg);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)]
+ public virtual int deleteQuery(string Original_CodAg) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Original_CodAg == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_CodAg));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)]
+ public virtual int insertQuery(string CodAg, string Lastname, string Firstname, global::System.Nullable QuotaProvvAg) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
+ if ((CodAg == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodAg));
+ }
+ if ((Lastname == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Lastname));
+ }
+ if ((Firstname == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(Firstname));
+ }
+ if ((QuotaProvvAg.HasValue == true)) {
+ command.Parameters[4].Value = ((decimal)(QuotaProvvAg.Value));
+ }
+ else {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
+ public virtual int updateQuery(string CodAg, string Lastname, string Firstname, global::System.Nullable QuotaProvvAg, string Original_CodAg) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ if ((CodAg == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodAg));
+ }
+ if ((Lastname == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Lastname));
+ }
+ if ((Firstname == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(Firstname));
+ }
+ if ((QuotaProvvAg.HasValue == true)) {
+ command.Parameters[4].Value = ((decimal)(QuotaProvvAg.Value));
+ }
+ else {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CodAg == null)) {
+ command.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[5].Value = ((string)(Original_CodAg));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -25705,6 +26672,8 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
private PackagDetTableAdapter _packagDetTableAdapter;
+ private AgentsDetTableAdapter _agentsDetTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -25804,6 +26773,20 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public AgentsDetTableAdapter AgentsDetTableAdapter {
+ get {
+ return this._agentsDetTableAdapter;
+ }
+ set {
+ this._agentsDetTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -25847,6 +26830,10 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
&& (this._packagDetTableAdapter.Connection != null))) {
return this._packagDetTableAdapter.Connection;
}
+ if (((this._agentsDetTableAdapter != null)
+ && (this._agentsDetTableAdapter.Connection != null))) {
+ return this._agentsDetTableAdapter.Connection;
+ }
return null;
}
set {
@@ -25878,6 +26865,9 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
if ((this._packagDetTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._agentsDetTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -25943,6 +26933,15 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._agentsDetTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AgentsDet.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._agentsDetTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -26001,6 +27000,14 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._agentsDetTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AgentsDet.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._agentsDetTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -26011,6 +27018,14 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateDeletedRows(DS_Quotes dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._agentsDetTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AgentsDet.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._agentsDetTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._packagDetTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.PackagDet.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -26128,6 +27143,11 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._agentsDetTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._agentsDetTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -26214,6 +27234,15 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
adaptersWithAcceptChangesDuringUpdate.Add(this._packagDetTableAdapter.Adapter);
}
}
+ if ((this._agentsDetTableAdapter != null)) {
+ revertConnections.Add(this._agentsDetTableAdapter, this._agentsDetTableAdapter.Connection);
+ this._agentsDetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._agentsDetTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._agentsDetTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._agentsDetTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._agentsDetTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -26296,6 +27325,10 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
this._packagDetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._packagDetTableAdapter]));
this._packagDetTableAdapter.Transaction = null;
}
+ if ((this._agentsDetTableAdapter != null)) {
+ this._agentsDetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._agentsDetTableAdapter]));
+ this._agentsDetTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/C2P_Data/DS_Quotes.xsd b/C2P_Data/DS_Quotes.xsd
index 5e8fb4b..0516204 100644
--- a/C2P_Data/DS_Quotes.xsd
+++ b/C2P_Data/DS_Quotes.xsd
@@ -1594,6 +1594,105 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
+
+
+
+
+
+ DELETE FROM [dbo].[AgentsDet] WHERE (([CodAg] = @Original_CodAg) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ([QuotaProvvAg] = @Original_QuotaProvvAg))
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[AgentsDet] ([CodAg], [Lastname], [Firstname], [QuotaProvvAg]) VALUES (@CodAg, @Lastname, @Firstname, @QuotaProvvAg);
+SELECT CodAg, Lastname, Firstname, QuotaProvvAg FROM AgentsDet WHERE (CodAg = @CodAg)
+
+
+
+
+
+
+
+
+
+
+ SELECT CodAg, Lastname, Firstname, QuotaProvvAg FROM dbo.AgentsDet
+
+
+
+
+
+ UPDATE [dbo].[AgentsDet] SET [CodAg] = @CodAg, [Lastname] = @Lastname, [Firstname] = @Firstname, [QuotaProvvAg] = @QuotaProvvAg WHERE (([CodAg] = @Original_CodAg) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ([QuotaProvvAg] = @Original_QuotaProvvAg));
+SELECT CodAg, Lastname, Firstname, QuotaProvvAg FROM AgentsDet WHERE (CodAg = @CodAg)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Agent_deleteQuery
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Agent_insertQuery
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Agent_updateQuery
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2979,6 +3078,34 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -3042,6 +3169,10 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
+
+
+
+
diff --git a/C2P_Data/DS_Quotes.xss b/C2P_Data/DS_Quotes.xss
index 88d9bb1..2f3d1a3 100644
--- a/C2P_Data/DS_Quotes.xss
+++ b/C2P_Data/DS_Quotes.xss
@@ -4,25 +4,26 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
462
@@ -34,7 +35,7 @@
-
+
462
@@ -46,7 +47,7 @@
-
+
645
@@ -62,7 +63,7 @@
-
+
559
@@ -74,7 +75,7 @@
-