Continuo creazione pagina offline orders
This commit is contained in:
Generated
+137
-23
@@ -4314,6 +4314,10 @@ namespace AppData {
|
||||
|
||||
private global::System.Data.DataColumn columnOrdStatus;
|
||||
|
||||
private global::System.Data.DataColumn columnStatusDesc;
|
||||
|
||||
private global::System.Data.DataColumn columnNumItems;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public OfflineOrderListDataTable() {
|
||||
@@ -4371,6 +4375,22 @@ namespace AppData {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public global::System.Data.DataColumn StatusDescColumn {
|
||||
get {
|
||||
return this.columnStatusDesc;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public global::System.Data.DataColumn NumItemsColumn {
|
||||
get {
|
||||
return this.columnNumItems;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -4408,12 +4428,14 @@ namespace AppData {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public OfflineOrderListRow AddOfflineOrderListRow(System.DateTime CreationDate, int OrdStatus) {
|
||||
public OfflineOrderListRow AddOfflineOrderListRow(System.DateTime CreationDate, int OrdStatus, string StatusDesc, int NumItems) {
|
||||
OfflineOrderListRow rowOfflineOrderListRow = ((OfflineOrderListRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
CreationDate,
|
||||
OrdStatus};
|
||||
OrdStatus,
|
||||
StatusDesc,
|
||||
NumItems};
|
||||
rowOfflineOrderListRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowOfflineOrderListRow);
|
||||
return rowOfflineOrderListRow;
|
||||
@@ -4446,6 +4468,8 @@ namespace AppData {
|
||||
this.columnOrdID = base.Columns["OrdID"];
|
||||
this.columnCreationDate = base.Columns["CreationDate"];
|
||||
this.columnOrdStatus = base.Columns["OrdStatus"];
|
||||
this.columnStatusDesc = base.Columns["StatusDesc"];
|
||||
this.columnNumItems = base.Columns["NumItems"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -4457,6 +4481,10 @@ namespace AppData {
|
||||
base.Columns.Add(this.columnCreationDate);
|
||||
this.columnOrdStatus = new global::System.Data.DataColumn("OrdStatus", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnOrdStatus);
|
||||
this.columnStatusDesc = new global::System.Data.DataColumn("StatusDesc", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnStatusDesc);
|
||||
this.columnNumItems = new global::System.Data.DataColumn("NumItems", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnNumItems);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnOrdID}, true));
|
||||
this.columnOrdID.AutoIncrement = true;
|
||||
@@ -4467,6 +4495,8 @@ namespace AppData {
|
||||
this.columnOrdID.Unique = true;
|
||||
this.columnCreationDate.AllowDBNull = false;
|
||||
this.columnOrdStatus.AllowDBNull = false;
|
||||
this.columnStatusDesc.ReadOnly = true;
|
||||
this.columnStatusDesc.MaxLength = 9;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -6668,6 +6698,62 @@ namespace AppData {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public string StatusDesc {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableOfflineOrderList.StatusDescColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("Il valore della colonna \'StatusDesc\' nella tabella \'OfflineOrderList\' è DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableOfflineOrderList.StatusDescColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public int NumItems {
|
||||
get {
|
||||
try {
|
||||
return ((int)(this[this.tableOfflineOrderList.NumItemsColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumItems\' nella tabella \'OfflineOrderList\' è DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableOfflineOrderList.NumItemsColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public bool IsStatusDescNull() {
|
||||
return this.IsNull(this.tableOfflineOrderList.StatusDescColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public void SetStatusDescNull() {
|
||||
this[this.tableOfflineOrderList.StatusDescColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public bool IsNumItemsNull() {
|
||||
return this.IsNull(this.tableOfflineOrderList.NumItemsColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public void SetNumItemsNull() {
|
||||
this[this.tableOfflineOrderList.NumItemsColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public OffOrd2ItemRow[] GetOffOrd2ItemRows() {
|
||||
@@ -11317,6 +11403,8 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
|
||||
tableMapping.ColumnMappings.Add("OrdID", "OrdID");
|
||||
tableMapping.ColumnMappings.Add("CreationDate", "CreationDate");
|
||||
tableMapping.ColumnMappings.Add("OrdStatus", "OrdStatus");
|
||||
tableMapping.ColumnMappings.Add("StatusDesc", "StatusDesc");
|
||||
tableMapping.ColumnMappings.Add("NumItems", "NumItems");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.DeleteCommand.Connection = this.Connection;
|
||||
@@ -11328,23 +11416,24 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdStatus", 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].[OfflineOrderList] ([CreationDate], [OrdStatus]) VALUES (@Creat" +
|
||||
"ionDate, @OrdStatus);\r\nSELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderLi" +
|
||||
"st WHERE (OrdID = SCOPE_IDENTITY())";
|
||||
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[OfflineOrderList] ([OrdID], [CreationDate], [OrdStatus]) VALUE" +
|
||||
"S (@OrdID, @CreationDate, @OrdStatus)";
|
||||
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdStatus", 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].[OfflineOrderList] SET [CreationDate] = @CreationDate, [OrdStatus] = @OrdStatus WHERE (([OrdID] = @Original_OrdID) AND ([CreationDate] = @Original_CreationDate) AND ([OrdStatus] = @Original_OrdStatus));
|
||||
SELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderList WHERE (OrdID = @OrdID)";
|
||||
this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[OfflineOrderList] SET [OrdID] = @OrdID, [CreationDate] = @CreationD" +
|
||||
"ate, [OrdStatus] = @OrdStatus WHERE (([OrdID] = @Original_OrdID) AND ([CreationD" +
|
||||
"ate] = @Original_CreationDate) AND ([OrdStatus] = @Original_OrdStatus))";
|
||||
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdStatus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "OrdID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -11357,16 +11446,23 @@ SELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderList WHERE (OrdID = @OrdI
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT OrdID, CreationDate, OrdStatus FROM dbo.OfflineOrderList";
|
||||
this._commandCollection[0].CommandText = "SELECT OrdID, CreationDate, OrdStatus, StatusDesc, NumItems\r\nFROM " +
|
||||
" v_OOL";
|
||||
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_OffOrd_insert";
|
||||
this._commandCollection[1].CommandText = "dbo.stp_OOL_search";
|
||||
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("@MaxOrdStatus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_OOL_insert";
|
||||
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, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -11397,8 +11493,25 @@ SELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderList WHERE (OrdID = @OrdI
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_App.OfflineOrderListDataTable insertNew() {
|
||||
public virtual DS_App.OfflineOrderListDataTable getBySearch(global::System.Nullable<int> MaxOrdStatus) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((MaxOrdStatus.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(MaxOrdStatus.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_App.OfflineOrderListDataTable dataTable = new DS_App.OfflineOrderListDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_App.OfflineOrderListDataTable insertNew() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
DS_App.OfflineOrderListDataTable dataTable = new DS_App.OfflineOrderListDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
@@ -11461,9 +11574,10 @@ SELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderList WHERE (OrdID = @OrdI
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(System.DateTime CreationDate, int OrdStatus) {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(CreationDate));
|
||||
this.Adapter.InsertCommand.Parameters[1].Value = ((int)(OrdStatus));
|
||||
public virtual int Insert(int OrdID, System.DateTime CreationDate, int OrdStatus) {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(OrdID));
|
||||
this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(CreationDate));
|
||||
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(OrdStatus));
|
||||
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)) {
|
||||
@@ -11484,13 +11598,13 @@ SELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderList WHERE (OrdID = @OrdI
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(System.DateTime CreationDate, int OrdStatus, int Original_OrdID, System.DateTime Original_CreationDate, int Original_OrdStatus, int OrdID) {
|
||||
this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(CreationDate));
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(OrdStatus));
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_OrdID));
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Original_CreationDate));
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_OrdStatus));
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(OrdID));
|
||||
public virtual int Update(int OrdID, System.DateTime CreationDate, int OrdStatus, int Original_OrdID, System.DateTime Original_CreationDate, int Original_OrdStatus) {
|
||||
this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(OrdID));
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(CreationDate));
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(OrdStatus));
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_OrdID));
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Original_CreationDate));
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_OrdStatus));
|
||||
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)) {
|
||||
@@ -11512,7 +11626,7 @@ SELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderList WHERE (OrdID = @OrdI
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
||||
public virtual int Update(System.DateTime CreationDate, int OrdStatus, int Original_OrdID, System.DateTime Original_CreationDate, int Original_OrdStatus) {
|
||||
return this.Update(CreationDate, OrdStatus, Original_OrdID, Original_CreationDate, Original_OrdStatus, Original_OrdID);
|
||||
return this.Update(Original_OrdID, CreationDate, OrdStatus, Original_OrdID, Original_CreationDate, Original_OrdStatus);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+30
-9
@@ -909,7 +909,7 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OfflineOrderListTableAdapter" GeneratorDataComponentClassName="OfflineOrderListTableAdapter" Name="OfflineOrderList" UserDataComponentName="OfflineOrderListTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.OfflineOrderList" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.v_OOL" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[OfflineOrderList] WHERE (([OrdID] = @Original_OrdID) AND ([CreationDate] = @Original_CreationDate) AND ([OrdStatus] = @Original_OrdStatus))</CommandText>
|
||||
@@ -922,9 +922,9 @@ SELECT CartID, CreationCarts, CartNum, CartDtmx FROM Carts WHERE (CartID = @Cart
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[OfflineOrderList] ([CreationDate], [OrdStatus]) VALUES (@CreationDate, @OrdStatus);
|
||||
SELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderList WHERE (OrdID = SCOPE_IDENTITY())</CommandText>
|
||||
<CommandText>INSERT INTO [dbo].[OfflineOrderList] ([OrdID], [CreationDate], [OrdStatus]) VALUES (@OrdID, @CreationDate, @OrdStatus)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrdID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrdID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@CreationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreationDate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrdStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
@@ -932,21 +932,21 @@ SELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderList WHERE (OrdID = SCOPE
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT OrdID, CreationDate, OrdStatus FROM dbo.OfflineOrderList</CommandText>
|
||||
<CommandText>SELECT OrdID, CreationDate, OrdStatus, StatusDesc, NumItems
|
||||
FROM v_OOL</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[OfflineOrderList] SET [CreationDate] = @CreationDate, [OrdStatus] = @OrdStatus WHERE (([OrdID] = @Original_OrdID) AND ([CreationDate] = @Original_CreationDate) AND ([OrdStatus] = @Original_OrdStatus));
|
||||
SELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderList WHERE (OrdID = @OrdID)</CommandText>
|
||||
<CommandText>UPDATE [dbo].[OfflineOrderList] SET [OrdID] = @OrdID, [CreationDate] = @CreationDate, [OrdStatus] = @OrdStatus WHERE (([OrdID] = @Original_OrdID) AND ([CreationDate] = @Original_CreationDate) AND ([OrdStatus] = @Original_OrdStatus))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrdID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrdID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@CreationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreationDate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrdStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OrdID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrdID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_CreationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreationDate" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OrdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrdStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="OrdID" ColumnName="OrdID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrdID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="OrdID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -956,12 +956,25 @@ SELECT OrdID, CreationDate, OrdStatus FROM OfflineOrderList WHERE (OrdID = @OrdI
|
||||
<Mapping SourceColumn="OrdID" DataSetColumn="OrdID" />
|
||||
<Mapping SourceColumn="CreationDate" DataSetColumn="CreationDate" />
|
||||
<Mapping SourceColumn="OrdStatus" DataSetColumn="OrdStatus" />
|
||||
<Mapping SourceColumn="StatusDesc" DataSetColumn="StatusDesc" />
|
||||
<Mapping SourceColumn="NumItems" DataSetColumn="NumItems" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_OffOrd_insert" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="insertNew" GetMethodModifier="Public" GetMethodName="insertNew" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="insertNew" UserSourceName="insertNew">
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_OOL_search" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getBySearch" GetMethodModifier="Public" GetMethodName="getBySearch" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getBySearch" UserSourceName="getBySearch">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_OffOrd_insert</CommandText>
|
||||
<CommandText>dbo.stp_OOL_search</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@MaxOrdStatus" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_OOL_insert" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="insertNew" GetMethodModifier="Public" GetMethodName="insertNew" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="insertNew" UserSourceName="insertNew">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_OOL_insert</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
@@ -1360,6 +1373,14 @@ SELECT OrdID, ItemID FROM OffOrd2Item WHERE (ItemID = @ItemID) AND (OrdID = @Ord
|
||||
<xs:element name="OrdID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnOrdID" msprop:Generator_ColumnPropNameInRow="OrdID" msprop:Generator_ColumnPropNameInTable="OrdIDColumn" msprop:Generator_UserColumnName="OrdID" type="xs:int" />
|
||||
<xs:element name="CreationDate" msprop:Generator_ColumnVarNameInTable="columnCreationDate" msprop:Generator_ColumnPropNameInRow="CreationDate" msprop:Generator_ColumnPropNameInTable="CreationDateColumn" msprop:Generator_UserColumnName="CreationDate" type="xs:dateTime" />
|
||||
<xs:element name="OrdStatus" msprop:Generator_ColumnVarNameInTable="columnOrdStatus" msprop:Generator_ColumnPropNameInRow="OrdStatus" msprop:Generator_ColumnPropNameInTable="OrdStatusColumn" msprop:Generator_UserColumnName="OrdStatus" type="xs:int" />
|
||||
<xs:element name="StatusDesc" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnStatusDesc" msprop:Generator_ColumnPropNameInRow="StatusDesc" msprop:Generator_ColumnPropNameInTable="StatusDescColumn" msprop:Generator_UserColumnName="StatusDesc" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="9" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="NumItems" msprop:Generator_ColumnVarNameInTable="columnNumItems" msprop:Generator_ColumnPropNameInRow="NumItems" msprop:Generator_ColumnPropNameInTable="NumItemsColumn" msprop:Generator_UserColumnName="NumItems" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
+7
-7
@@ -4,7 +4,7 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-33" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:BatchList" ZOrder="7" X="90" Y="375" Height="381" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:StackList" ZOrder="15" X="434" Y="674" Height="343" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
@@ -15,8 +15,8 @@
|
||||
<Shape ID="DesignTable:Materials" ZOrder="9" X="1110" Y="48" Height="248" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:Bins" ZOrder="6" X="1137" Y="468" Height="191" Width="169" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:Carts" ZOrder="5" X="1226" Y="760" Height="191" Width="174" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:OfflineOrderList" ZOrder="3" X="738" Y="1037" Height="153" Width="238" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:OffOrd2Item" ZOrder="2" X="1089" Y="1052" Height="134" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:OfflineOrderList" ZOrder="1" X="729" Y="983" Height="210" Width="238" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:OffOrd2Item" ZOrder="3" X="1089" Y="1052" Height="134" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_BatchReqList_OrderList" ZOrder="12" LineWidth="11">
|
||||
@@ -55,15 +55,15 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_OffOrd2Item_OfflineOrderList" ZOrder="1" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_OffOrd2Item_OfflineOrderList" ZOrder="2" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>976</X>
|
||||
<Y>1121</Y>
|
||||
<X>967</X>
|
||||
<Y>1088</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1089</X>
|
||||
<Y>1121</Y>
|
||||
<Y>1088</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
|
||||
Reference in New Issue
Block a user