Beispiel #1
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "Products";
     tableMapping.ColumnMappings.Add("ProductID", "ProductID");
     tableMapping.ColumnMappings.Add("ProductName", "ProductName");
     tableMapping.ColumnMappings.Add("CategoryID", "CategoryID");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand             = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection  = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `Products` WHERE ((`ProductID` = ?) AND ((? = 1 AND `ProductName` IS " +
                                               "NULL) OR (`ProductName` = ?)) AND ((? = 1 AND `CategoryID` IS NULL) OR (`Categor" +
                                               "yID` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ProductID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ProductName", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductName", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ProductName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductName", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CategoryID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CategoryID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CategoryID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CategoryID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand             = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection  = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `Products` SET `ProductName` = ?, `CategoryID` = ? WHERE ((`ProductID` = ?" +
                                               ") AND ((? = 1 AND `ProductName` IS NULL) OR (`ProductName` = ?)) AND ((? = 1 AND" +
                                               " `CategoryID` IS NULL) OR (`CategoryID` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ProductName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductName", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CategoryID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CategoryID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ProductID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ProductName", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductName", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ProductName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductName", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CategoryID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CategoryID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CategoryID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CategoryID", global::System.Data.DataRowVersion.Original, false, null));
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "Reports";
     tableMapping.ColumnMappings.Add("ID", "ID");
     tableMapping.ColumnMappings.Add("Report", "Report");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand             = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection  = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `Reports` WHERE ((`ID` = ?))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand             = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection  = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `Reports` (`Report`) VALUES (?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Report", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Report", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand             = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection  = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `Reports` SET `Report` = ? WHERE ((`ID` = ?))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Report", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Report", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ID", global::System.Data.DataRowVersion.Original, false, null));
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "Products";
     tableMapping.ColumnMappings.Add("ProductName", "ProductName");
     tableMapping.ColumnMappings.Add("UnitPrice", "UnitPrice");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "Products";
     tableMapping.ColumnMappings.Add("SupplierID", "SupplierID");
     tableMapping.ColumnMappings.Add("CategoryID", "CategoryID");
     tableMapping.ColumnMappings.Add("UnitsInStock", "UnitsInStock");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "SalesPerson";
     tableMapping.ColumnMappings.Add("Country", "Country");
     tableMapping.ColumnMappings.Add("OrderDate", "OrderDate");
     tableMapping.ColumnMappings.Add("Extended Price", "Extended Price");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "Order Details";
     tableMapping.ColumnMappings.Add("OrderID", "OrderID");
     tableMapping.ColumnMappings.Add("UnitPrice", "UnitPrice");
     tableMapping.ColumnMappings.Add("Quantity", "Quantity");
     tableMapping.ColumnMappings.Add("Discount", "Discount");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "ProductReports";
     tableMapping.ColumnMappings.Add("CategoryName", "CategoryName");
     tableMapping.ColumnMappings.Add("ProductName", "ProductName");
     tableMapping.ColumnMappings.Add("ProductSales", "ProductSales");
     tableMapping.ColumnMappings.Add("ShippedDate", "ShippedDate");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #8
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "CustomerReports";
     tableMapping.ColumnMappings.Add("ProductName", "ProductName");
     tableMapping.ColumnMappings.Add("CompanyName", "CompanyName");
     tableMapping.ColumnMappings.Add("OrderDate", "OrderDate");
     tableMapping.ColumnMappings.Add("ProductAmount", "ProductAmount");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #9
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "CarScheduling";
     tableMapping.ColumnMappings.Add("Status", "Status");
     tableMapping.ColumnMappings.Add("Subject", "Subject");
     tableMapping.ColumnMappings.Add("StartTime", "StartTime");
     tableMapping.ColumnMappings.Add("EndTime", "EndTime");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #10
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     this._adapter.DeleteCommand             = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection  = this.Connection;
     this._adapter.DeleteCommand.CommandText = "";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand             = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection  = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `Composer` (`First`, `Last`, `Country`, `Birth`, `Death`) VALUES (?, " +
                                               "?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("p1", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "First", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("p2", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Last", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("p3", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Country", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("p4", global::System.Data.OleDb.OleDbType.DBTimeStamp, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Birth", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("p5", global::System.Data.OleDb.OleDbType.DBTimeStamp, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Death", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand             = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection  = this.Connection;
     this._adapter.UpdateCommand.CommandText = "";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
 }
Beispiel #11
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "工作單";
     tableMapping.ColumnMappings.Add("單號", "單號");
     tableMapping.ColumnMappings.Add("單據日期", "單據日期");
     tableMapping.ColumnMappings.Add("實際完成日", "實際完成日");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `工作單` WHERE ((`單號` = ?) AND ((? = 1 AND `單據日期` IS NULL) OR (`單據日期` = " +
         "?)) AND ((? = 1 AND `實際完成日` IS NULL) OR (`實際完成日` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_單據日期", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單據日期", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_單據日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單據日期", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_實際完成日", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_實際完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `工作單` (`單號`, `單據日期`, `實際完成日`) VALUES (?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("單據日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單據日期", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("實際完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `工作單` SET `單號` = ?, `單據日期` = ?, `實際完成日` = ? WHERE ((`單號` = ?) AND ((? = 1 " +
         "AND `單據日期` IS NULL) OR (`單據日期` = ?)) AND ((? = 1 AND `實際完成日` IS NULL) OR (`實際完成日" +
         "` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("單據日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單據日期", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("實際完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_單據日期", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單據日期", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_單據日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單據日期", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_實際完成日", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_實際完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #12
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "工作單品號";
     tableMapping.ColumnMappings.Add("單號", "單號");
     tableMapping.ColumnMappings.Add("品號", "品號");
     tableMapping.ColumnMappings.Add("數量", "數量");
     tableMapping.ColumnMappings.Add("實際完成日", "實際完成日");
     tableMapping.ColumnMappings.Add("客戶需貨日", "客戶需貨日");
     tableMapping.ColumnMappings.Add("預計完成日", "預計完成日");
     tableMapping.ColumnMappings.Add("客戶", "客戶");
     tableMapping.ColumnMappings.Add("編號", "編號");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `工作單品號` WHERE ((`單號` = ?) AND (`品號` = ?) AND ((? = 1 AND `數量` IS NULL) OR (`數量` = ?)) AND ((? = 1 AND `實際完成日` IS NULL) OR (`實際完成日` = ?)) AND ((? = 1 AND `客戶需貨日` IS NULL) OR (`客戶需貨日` = ?)) AND ((? = 1 AND `預計完成日` IS NULL) OR (`預計完成日` = ?)) AND ((? = 1 AND `客戶` IS NULL) OR (`客戶` = ?)) AND ((? = 1 AND `編號` IS NULL) OR (`編號` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_品號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "數量", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_數量", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "數量", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_實際完成日", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_實際完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_客戶需貨日", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶需貨日", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_客戶需貨日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶需貨日", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_預計完成日", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "預計完成日", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_預計完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "預計完成日", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_客戶", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_客戶", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `工作單品號` (`單號`, `品號`, `數量`, `實際完成日`, `客戶需貨日`, `預計完成日`, `客戶`, `編號`) VAL" +
         "UES (?, ?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("品號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("數量", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "數量", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("實際完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("客戶需貨日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶需貨日", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("預計完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "預計完成日", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("客戶", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `工作單品號` SET `單號` = ?, `品號` = ?, `數量` = ?, `實際完成日` = ?, `客戶需貨日` = ?, `預計完成日` = ?, `客戶` = ?, `編號` = ? WHERE ((`單號` = ?) AND (`品號` = ?) AND ((? = 1 AND `數量` IS NULL) OR (`數量` = ?)) AND ((? = 1 AND `實際完成日` IS NULL) OR (`實際完成日` = ?)) AND ((? = 1 AND `客戶需貨日` IS NULL) OR (`客戶需貨日` = ?)) AND ((? = 1 AND `預計完成日` IS NULL) OR (`預計完成日` = ?)) AND ((? = 1 AND `客戶` IS NULL) OR (`客戶` = ?)) AND ((? = 1 AND `編號` IS NULL) OR (`編號` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("品號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("數量", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "數量", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("實際完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("客戶需貨日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶需貨日", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("預計完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "預計完成日", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("客戶", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_品號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "數量", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_數量", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "數量", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_實際完成日", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_實際完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "實際完成日", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_客戶需貨日", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶需貨日", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_客戶需貨日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶需貨日", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_預計完成日", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "預計完成日", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_預計完成日", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "預計完成日", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_客戶", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_客戶", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "客戶", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Original, false, null));
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "Unite";
     tableMapping.ColumnMappings.Add("ID", "ID");
     tableMapping.ColumnMappings.Add("UNITE", "UNITE");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `Unite` WHERE ((`ID` = ?) AND ((? = 1 AND `UNITE` IS NULL) OR (`UNITE" +
         "` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_UNITE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_UNITE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `Unite` (`UNITE`) VALUES (?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("UNITE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `Unite` SET `UNITE` = ? WHERE ((`ID` = ?) AND ((? = 1 AND `UNITE` IS NULL)" +
         " OR (`UNITE` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("UNITE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_UNITE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_UNITE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #14
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "產品檢驗";
     tableMapping.ColumnMappings.Add("工時資料編號", "工時資料編號");
     tableMapping.ColumnMappings.Add("檢驗結果", "檢驗結果");
     tableMapping.ColumnMappings.Add("QCN", "QCN");
     tableMapping.ColumnMappings.Add("待驗數量", "待驗數量");
     tableMapping.ColumnMappings.Add("檢驗", "檢驗");
     tableMapping.ColumnMappings.Add("特許", "特許");
     tableMapping.ColumnMappings.Add("送檢次數", "送檢次數");
     tableMapping.ColumnMappings.Add("日期", "日期");
     tableMapping.ColumnMappings.Add("重驗", "重驗");
     tableMapping.ColumnMappings.Add("最後送檢編號", "最後送檢編號");
     tableMapping.ColumnMappings.Add("最後檢驗紀錄", "最後檢驗紀錄");
     tableMapping.ColumnMappings.Add("送檢日期", "送檢日期");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `產品檢驗` WHERE ((`工時資料編號` = ?) AND ((? = 1 AND `檢驗` IS NULL) OR (`檢驗` = ?)) AND ((? = 1 AND `檢驗結果` IS NULL) OR (`檢驗結果` = ?)) AND ((? = 1 AND `QCN` IS NULL) OR (`QCN` = ?)) AND ((? = 1 AND `待驗數量` IS NULL) OR (`待驗數量` = ?)) AND ((? = 1 AND `特許` IS NULL) OR (`特許` = ?)) AND ((? = 1 AND `送檢次數` IS NULL) OR (`送檢次數` = ?)) AND ((? = 1 AND `日期` IS NULL) OR (`日期` = ?)) AND ((? = 1 AND `重驗` IS NULL) OR (`重驗` = ?)) AND ((? = 1 AND `最後送檢編號` IS NULL) OR (`最後送檢編號` = ?)) AND ((? = 1 AND `最後檢驗紀錄` IS NULL) OR (`最後檢驗紀錄` = ?)) AND ((? = 1 AND `送檢日期` IS NULL) OR (`送檢日期` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工時資料編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時資料編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_檢驗", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_檢驗", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_檢驗結果", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗結果", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_檢驗結果", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗結果", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_QCN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "QCN", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_QCN", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "QCN", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_待驗數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "待驗數量", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_待驗數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "待驗數量", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_特許", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "特許", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_特許", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "特許", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_送檢次數", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢次數", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_送檢次數", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢次數", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_日期", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_重驗", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "重驗", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_重驗", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "重驗", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_最後送檢編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後送檢編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_最後送檢編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後送檢編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_最後檢驗紀錄", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後檢驗紀錄", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_最後檢驗紀錄", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後檢驗紀錄", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_送檢日期", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢日期", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_送檢日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢日期", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `產品檢驗` (`工時資料編號`, `檢驗`, `檢驗結果`, `QCN`, `待驗數量`, `特許`, `送檢次數`, `日期`, `重" +
         "驗`, `最後送檢編號`, `最後檢驗紀錄`, `送檢日期`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工時資料編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時資料編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("檢驗", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("檢驗結果", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗結果", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("QCN", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "QCN", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("待驗數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "待驗數量", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("特許", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "特許", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("送檢次數", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢次數", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("重驗", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "重驗", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("最後送檢編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後送檢編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("最後檢驗紀錄", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後檢驗紀錄", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("送檢日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢日期", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `產品檢驗` SET `工時資料編號` = ?, `檢驗` = ?, `檢驗結果` = ?, `QCN` = ?, `待驗數量` = ?, `特許` = ?, `送檢次數` = ?, `日期` = ?, `重驗` = ?, `最後送檢編號` = ?, `最後檢驗紀錄` = ?, `送檢日期` = ? WHERE ((`工時資料編號` = ?) AND ((? = 1 AND `檢驗` IS NULL) OR (`檢驗` = ?)) AND ((? = 1 AND `檢驗結果` IS NULL) OR (`檢驗結果` = ?)) AND ((? = 1 AND `QCN` IS NULL) OR (`QCN` = ?)) AND ((? = 1 AND `待驗數量` IS NULL) OR (`待驗數量` = ?)) AND ((? = 1 AND `特許` IS NULL) OR (`特許` = ?)) AND ((? = 1 AND `送檢次數` IS NULL) OR (`送檢次數` = ?)) AND ((? = 1 AND `日期` IS NULL) OR (`日期` = ?)) AND ((? = 1 AND `重驗` IS NULL) OR (`重驗` = ?)) AND ((? = 1 AND `最後送檢編號` IS NULL) OR (`最後送檢編號` = ?)) AND ((? = 1 AND `最後檢驗紀錄` IS NULL) OR (`最後檢驗紀錄` = ?)) AND ((? = 1 AND `送檢日期` IS NULL) OR (`送檢日期` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工時資料編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時資料編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("檢驗", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("檢驗結果", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗結果", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("QCN", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "QCN", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("待驗數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "待驗數量", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("特許", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "特許", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("送檢次數", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢次數", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("重驗", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "重驗", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("最後送檢編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後送檢編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("最後檢驗紀錄", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後檢驗紀錄", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("送檢日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢日期", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工時資料編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時資料編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_檢驗", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_檢驗", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_檢驗結果", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗結果", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_檢驗結果", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "檢驗結果", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_QCN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "QCN", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_QCN", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "QCN", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_待驗數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "待驗數量", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_待驗數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "待驗數量", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_特許", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "特許", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_特許", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "特許", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_送檢次數", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢次數", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_送檢次數", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢次數", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_日期", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_重驗", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "重驗", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_重驗", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "重驗", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_最後送檢編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後送檢編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_最後送檢編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後送檢編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_最後檢驗紀錄", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後檢驗紀錄", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_最後檢驗紀錄", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "最後檢驗紀錄", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_送檢日期", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢日期", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_送檢日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "送檢日期", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #15
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "CalculatedOrders";
     tableMapping.ColumnMappings.Add("OrderID", "OrderID");
     tableMapping.ColumnMappings.Add("CustomerID", "CustomerID");
     tableMapping.ColumnMappings.Add("EmployeeID", "EmployeeID");
     tableMapping.ColumnMappings.Add("OrderDate", "OrderDate");
     tableMapping.ColumnMappings.Add("RequiredDate", "RequiredDate");
     tableMapping.ColumnMappings.Add("ShippedDate", "ShippedDate");
     tableMapping.ColumnMappings.Add("ShipVia", "ShipVia");
     tableMapping.ColumnMappings.Add("Freight", "Freight");
     tableMapping.ColumnMappings.Add("ShipName", "ShipName");
     tableMapping.ColumnMappings.Add("ShipAddress", "ShipAddress");
     tableMapping.ColumnMappings.Add("ShipCity", "ShipCity");
     tableMapping.ColumnMappings.Add("ShipRegion", "ShipRegion");
     tableMapping.ColumnMappings.Add("ShipPostalCode", "ShipPostalCode");
     tableMapping.ColumnMappings.Add("ShipCountry", "ShipCountry");
     tableMapping.ColumnMappings.Add("CreateID", "CreateID");
     tableMapping.ColumnMappings.Add("CreateUser", "CreateUser");
     tableMapping.ColumnMappings.Add("ModifyID", "ModifyID");
     tableMapping.ColumnMappings.Add("ModifyUser", "ModifyUser");
     tableMapping.ColumnMappings.Add("TotalQuotedPrice", "TotalQuotedPrice");
     tableMapping.ColumnMappings.Add("TotalNetPrice", "TotalNetPrice");
     tableMapping.ColumnMappings.Add("DiscountAmount", "DiscountAmount");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "LineLaborHourReportSource";
     tableMapping.ColumnMappings.Add("員工編號", "員工編號");
     tableMapping.ColumnMappings.Add("日期", "日期");
     tableMapping.ColumnMappings.Add("工作單號", "工作單號");
     tableMapping.ColumnMappings.Add("工時", "工時");
     tableMapping.ColumnMappings.Add("非生產編號", "非生產編號");
     tableMapping.ColumnMappings.Add("備註", "備註");
     tableMapping.ColumnMappings.Add("員工姓名", "員工姓名");
     tableMapping.ColumnMappings.Add("產線", "產線");
     tableMapping.ColumnMappings.Add("借入產線", "借入產線");
     tableMapping.ColumnMappings.Add("數量", "數量");
     tableMapping.ColumnMappings.Add("品號", "品號");
     tableMapping.ColumnMappings.Add("工時類型", "工時類型");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "BalanceRtpPOItem";
     tableMapping.ColumnMappings.Add("POID", "POID");
     tableMapping.ColumnMappings.Add("POItemNumber", "POItemNumber");
     tableMapping.ColumnMappings.Add("Grade", "Grade");
     tableMapping.ColumnMappings.Add("ClosedCount", "ClosedCount");
     tableMapping.ColumnMappings.Add("TotalCount", "TotalCount");
     tableMapping.ColumnMappings.Add("ClosedPercent", "ClosedPercent");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `BalanceRtpPOItem` WHERE ((`POID` = ?) AND ((? = 1 AND `POItemNumber` IS NULL) OR (`POItemNumber` = ?)) AND ((? = 1 AND `Grade` IS NULL) OR (`Grade` = ?)) AND ((? = 1 AND `ClosedCount` IS NULL) OR (`ClosedCount` = ?)) AND ((? = 1 AND `TotalCount` IS NULL) OR (`TotalCount` = ?)) AND ((? = 1 AND `ClosedPercent` IS NULL) OR (`ClosedPercent` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Grade", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Grade", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Grade", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Grade", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ClosedCount", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedCount", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ClosedCount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedCount", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_TotalCount", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TotalCount", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_TotalCount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TotalCount", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ClosedPercent", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedPercent", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ClosedPercent", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedPercent", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `BalanceRtpPOItem` (`POID`, `POItemNumber`, `Grade`, `ClosedCount`, `" +
         "TotalCount`, `ClosedPercent`) VALUES (?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Grade", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Grade", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ClosedCount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedCount", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("TotalCount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TotalCount", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ClosedPercent", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedPercent", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `BalanceRtpPOItem` SET `POID` = ?, `POItemNumber` = ?, `Grade` = ?, `ClosedCount` = ?, `TotalCount` = ?, `ClosedPercent` = ? WHERE ((`POID` = ?) AND ((? = 1 AND `POItemNumber` IS NULL) OR (`POItemNumber` = ?)) AND ((? = 1 AND `Grade` IS NULL) OR (`Grade` = ?)) AND ((? = 1 AND `ClosedCount` IS NULL) OR (`ClosedCount` = ?)) AND ((? = 1 AND `TotalCount` IS NULL) OR (`TotalCount` = ?)) AND ((? = 1 AND `ClosedPercent` IS NULL) OR (`ClosedPercent` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Grade", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Grade", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ClosedCount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedCount", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("TotalCount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TotalCount", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ClosedPercent", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedPercent", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Grade", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Grade", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Grade", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Grade", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ClosedCount", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedCount", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ClosedCount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedCount", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_TotalCount", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TotalCount", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_TotalCount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TotalCount", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ClosedPercent", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedPercent", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ClosedPercent", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ClosedPercent", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #18
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "ChangeLogs";
     tableMapping.ColumnMappings.Add("ID", "ID");
     tableMapping.ColumnMappings.Add("SequenceNumber", "SequenceNumber");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #19
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "使用者";
     tableMapping.ColumnMappings.Add("帳號", "帳號");
     tableMapping.ColumnMappings.Add("密碼", "密碼");
     tableMapping.ColumnMappings.Add("權限", "權限");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `使用者` WHERE ((`帳號` = ?) AND ((? = 1 AND `密碼` IS NULL) OR (`密碼` = ?)) " +
         "AND ((? = 1 AND `權限` IS NULL) OR (`權限` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_帳號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "帳號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_密碼", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "密碼", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_密碼", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "密碼", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_權限", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "權限", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_權限", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "權限", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `使用者` (`帳號`, `密碼`, `權限`) VALUES (?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("帳號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "帳號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("密碼", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "密碼", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("權限", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "權限", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `使用者` SET `帳號` = ?, `密碼` = ?, `權限` = ? WHERE ((`帳號` = ?) AND ((? = 1 AND `" +
         "密碼` IS NULL) OR (`密碼` = ?)) AND ((? = 1 AND `權限` IS NULL) OR (`權限` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("帳號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "帳號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("密碼", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "密碼", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("權限", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "權限", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_帳號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "帳號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_密碼", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "密碼", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_密碼", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "密碼", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_權限", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "權限", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_權限", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "權限", global::System.Data.DataRowVersion.Original, false, null));
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "Contacts";
     tableMapping.ColumnMappings.Add("ContactID", "ContactID");
     tableMapping.ColumnMappings.Add("ContactName", "ContactName");
     tableMapping.ColumnMappings.Add("Company", "Company");
     tableMapping.ColumnMappings.Add("Address", "Address");
     tableMapping.ColumnMappings.Add("City", "City");
     tableMapping.ColumnMappings.Add("Country", "Country");
     tableMapping.ColumnMappings.Add("Phone", "Phone");
     tableMapping.ColumnMappings.Add("MobilePhone", "MobilePhone");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `Contacts` WHERE ((`ContactID` = ?) AND ((? = 1 AND `ContactName` IS NULL) OR (`ContactName` = ?)) AND ((? = 1 AND `Company` IS NULL) OR (`Company` = ?)) AND ((? = 1 AND `Address` IS NULL) OR (`Address` = ?)) AND ((? = 1 AND `City` IS NULL) OR (`City` = ?)) AND ((? = 1 AND `Country` IS NULL) OR (`Country` = ?)) AND ((? = 1 AND `Phone` IS NULL) OR (`Phone` = ?)) AND ((? = 1 AND `MobilePhone` IS NULL) OR (`MobilePhone` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContactName", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactName", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContactName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactName", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Company", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Company", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Company", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Company", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Address", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Address", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Address", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Address", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_City", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "City", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_City", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "City", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Country", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Country", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Country", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Country", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Phone", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Phone", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Phone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Phone", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MobilePhone", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MobilePhone", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MobilePhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MobilePhone", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `Contacts` (`ContactName`, `Company`, `Address`, `City`, `Country`, `" +
         "Phone`, `MobilePhone`) VALUES (?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContactName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactName", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Company", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Company", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Address", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Address", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("City", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "City", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Country", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Country", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Phone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Phone", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MobilePhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MobilePhone", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `Contacts` SET `ContactName` = ?, `Company` = ?, `Address` = ?, `City` = ?, `Country` = ?, `Phone` = ?, `MobilePhone` = ? WHERE ((`ContactID` = ?) AND ((? = 1 AND `ContactName` IS NULL) OR (`ContactName` = ?)) AND ((? = 1 AND `Company` IS NULL) OR (`Company` = ?)) AND ((? = 1 AND `Address` IS NULL) OR (`Address` = ?)) AND ((? = 1 AND `City` IS NULL) OR (`City` = ?)) AND ((? = 1 AND `Country` IS NULL) OR (`Country` = ?)) AND ((? = 1 AND `Phone` IS NULL) OR (`Phone` = ?)) AND ((? = 1 AND `MobilePhone` IS NULL) OR (`MobilePhone` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContactName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactName", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Company", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Company", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Address", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Address", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("City", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "City", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Country", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Country", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Phone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Phone", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MobilePhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MobilePhone", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContactName", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactName", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContactName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactName", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Company", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Company", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Company", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Company", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Address", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Address", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Address", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Address", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_City", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "City", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_City", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "City", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Country", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Country", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Country", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Country", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Phone", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Phone", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Phone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Phone", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MobilePhone", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MobilePhone", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MobilePhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MobilePhone", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #21
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "工時";
     tableMapping.ColumnMappings.Add("編號", "編號");
     tableMapping.ColumnMappings.Add("員工編號", "員工編號");
     tableMapping.ColumnMappings.Add("日期", "日期");
     tableMapping.ColumnMappings.Add("工作單號", "工作單號");
     tableMapping.ColumnMappings.Add("工時", "工時");
     tableMapping.ColumnMappings.Add("非生產編號", "非生產編號");
     tableMapping.ColumnMappings.Add("備註", "備註");
     tableMapping.ColumnMappings.Add("員工姓名", "員工姓名");
     tableMapping.ColumnMappings.Add("非生產名稱", "非生產名稱");
     tableMapping.ColumnMappings.Add("新舊", "新舊");
     tableMapping.ColumnMappings.Add("數量", "數量");
     tableMapping.ColumnMappings.Add("借入產線", "借入產線");
     tableMapping.ColumnMappings.Add("工品編號", "工品編號");
     tableMapping.ColumnMappings.Add("工時類型", "工時類型");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `工時` WHERE ((`編號` = ?) AND ((? = 1 AND `借入產線` IS NULL) OR (`借入產線` = ?)) AND ((? = 1 AND `員工編號` IS NULL) OR (`員工編號` = ?)) AND ((? = 1 AND `日期` IS NULL) OR (`日期` = ?)) AND ((? = 1 AND `工作單號` IS NULL) OR (`工作單號` = ?)) AND ((? = 1 AND `工時` IS NULL) OR (`工時` = ?)) AND ((? = 1 AND `數量` IS NULL) OR (`數量` = ?)) AND ((? = 1 AND `非生產編號` IS NULL) OR (`非生產編號` = ?)) AND ((? = 1 AND `備註` IS NULL) OR (`備註` = ?)) AND ((? = 1 AND `工品編號` IS NULL) OR (`工品編號` = ?)) AND ((? = 1 AND `工時類型` IS NULL) OR (`工時類型` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_借入產線", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "借入產線", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_借入產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "借入產線", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_員工編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "員工編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_員工編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "員工編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_日期", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_工作單號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工作單號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工作單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工作單號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_工時", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工時", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "工時", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "數量", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "數量", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_非生產編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "非生產編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_非生產編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "非生產編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_備註", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "備註", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_備註", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "備註", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_工品編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工品編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工品編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工品編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_工時類型", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時類型", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工時類型", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時類型", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `工時` (`編號`, `借入產線`, `員工編號`, `日期`, `工作單號`, `工時`, `數量`, `非生產編號`, `備註`, " +
         "`工品編號`, `工時類型`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("借入產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "借入產線", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("員工編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "員工編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工作單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工作單號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工時", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "工時", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "數量", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("非生產編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "非生產編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("備註", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "備註", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工品編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工品編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工時類型", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時類型", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `工時` SET `編號` = ?, `借入產線` = ?, `員工編號` = ?, `日期` = ?, `工作單號` = ?, `工時` = ?, `數量` = ?, `非生產編號` = ?, `備註` = ?, `工品編號` = ?, `工時類型` = ? WHERE ((`編號` = ?) AND ((? = 1 AND `借入產線` IS NULL) OR (`借入產線` = ?)) AND ((? = 1 AND `員工編號` IS NULL) OR (`員工編號` = ?)) AND ((? = 1 AND `日期` IS NULL) OR (`日期` = ?)) AND ((? = 1 AND `工作單號` IS NULL) OR (`工作單號` = ?)) AND ((? = 1 AND `工時` IS NULL) OR (`工時` = ?)) AND ((? = 1 AND `數量` IS NULL) OR (`數量` = ?)) AND ((? = 1 AND `非生產編號` IS NULL) OR (`非生產編號` = ?)) AND ((? = 1 AND `備註` IS NULL) OR (`備註` = ?)) AND ((? = 1 AND `工品編號` IS NULL) OR (`工品編號` = ?)) AND ((? = 1 AND `工時類型` IS NULL) OR (`工時類型` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("借入產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "借入產線", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("員工編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "員工編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工作單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工作單號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工時", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "工時", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "數量", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("非生產編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "非生產編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("備註", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "備註", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工品編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工品編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工時類型", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時類型", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_借入產線", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "借入產線", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_借入產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "借入產線", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_員工編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "員工編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_員工編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "員工編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_日期", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_工作單號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工作單號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工作單號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工作單號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_工時", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工時", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "工時", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "數量", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_數量", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "數量", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_非生產編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "非生產編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_非生產編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "非生產編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_備註", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "備註", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_備註", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "備註", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_工品編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工品編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工品編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工品編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_工時類型", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時類型", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工時類型", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時類型", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #22
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "TumOzellikler";
     tableMapping.ColumnMappings.Add("YTNO", "YTNO");
     tableMapping.ColumnMappings.Add("MALZEMEADI", "MALZEMEADI");
     tableMapping.ColumnMappings.Add("MARKA", "MARKA");
     tableMapping.ColumnMappings.Add("SPECT", "SPECT");
     tableMapping.ColumnMappings.Add("RESIM", "RESIM");
     tableMapping.ColumnMappings.Add("ADET", "ADET");
     tableMapping.ColumnMappings.Add("RAFNO", "RAFNO");
     tableMapping.ColumnMappings.Add("EKIPMAN", "EKIPMAN");
     tableMapping.ColumnMappings.Add("UNITE", "UNITE");
     tableMapping.ColumnMappings.Add("MIN", "MIN");
     tableMapping.ColumnMappings.Add("MAX", "MAX");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #24
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "Orders";
     tableMapping.ColumnMappings.Add("OrderID", "OrderID");
     tableMapping.ColumnMappings.Add("CustomerID", "CustomerID");
     tableMapping.ColumnMappings.Add("EmployeeID", "EmployeeID");
     tableMapping.ColumnMappings.Add("OrderDate", "OrderDate");
     tableMapping.ColumnMappings.Add("RequiredDate", "RequiredDate");
     tableMapping.ColumnMappings.Add("ShippedDate", "ShippedDate");
     tableMapping.ColumnMappings.Add("ShipVia", "ShipVia");
     tableMapping.ColumnMappings.Add("Freight", "Freight");
     tableMapping.ColumnMappings.Add("ShipName", "ShipName");
     tableMapping.ColumnMappings.Add("ShipAddress", "ShipAddress");
     tableMapping.ColumnMappings.Add("ShipCity", "ShipCity");
     tableMapping.ColumnMappings.Add("ShipRegion", "ShipRegion");
     tableMapping.ColumnMappings.Add("ShipPostalCode", "ShipPostalCode");
     tableMapping.ColumnMappings.Add("ShipCountry", "ShipCountry");
     tableMapping.ColumnMappings.Add("CreateID", "CreateID");
     tableMapping.ColumnMappings.Add("CreateUser", "CreateUser");
     tableMapping.ColumnMappings.Add("ModifyID", "ModifyID");
     tableMapping.ColumnMappings.Add("ModifyUser", "ModifyUser");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `Orders` WHERE ((`OrderID` = ?) AND ((? = 1 AND `CustomerID` IS NULL) OR (`CustomerID` = ?)) AND ((? = 1 AND `EmployeeID` IS NULL) OR (`EmployeeID` = ?)) AND ((? = 1 AND `OrderDate` IS NULL) OR (`OrderDate` = ?)) AND ((? = 1 AND `RequiredDate` IS NULL) OR (`RequiredDate` = ?)) AND ((? = 1 AND `ShippedDate` IS NULL) OR (`ShippedDate` = ?)) AND ((? = 1 AND `ShipVia` IS NULL) OR (`ShipVia` = ?)) AND ((? = 1 AND `Freight` IS NULL) OR (`Freight` = ?)) AND ((? = 1 AND `ShipName` IS NULL) OR (`ShipName` = ?)) AND ((? = 1 AND `ShipAddress` IS NULL) OR (`ShipAddress` = ?)) AND ((? = 1 AND `ShipCity` IS NULL) OR (`ShipCity` = ?)) AND ((? = 1 AND `ShipRegion` IS NULL) OR (`ShipRegion` = ?)) AND ((? = 1 AND `ShipPostalCode` IS NULL) OR (`ShipPostalCode` = ?)) AND ((? = 1 AND `ShipCountry` IS NULL) OR (`ShipCountry` = ?)) AND ((? = 1 AND `CreateID` IS NULL) OR (`CreateID` = ?)) AND ((? = 1 AND `CreateUser` IS NULL) OR (`CreateUser` = ?)) AND ((? = 1 AND `ModifyID` IS NULL) OR (`ModifyID` = ?)) AND ((? = 1 AND `ModifyUser` IS NULL) OR (`ModifyUser` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OrderID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustomerID", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_EmployeeID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EmployeeID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_EmployeeID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EmployeeID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_OrderDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OrderDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_RequiredDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RequiredDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_RequiredDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RequiredDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShippedDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShippedDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShippedDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShippedDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipVia", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipVia", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipVia", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipVia", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Freight", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Freight", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Freight", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Freight", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipName", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipName", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipName", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipAddress", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipAddress", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipAddress", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipAddress", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipCity", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCity", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipCity", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCity", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipRegion", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipRegion", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipRegion", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipRegion", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipPostalCode", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipPostalCode", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipPostalCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipPostalCode", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipCountry", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCountry", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipCountry", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCountry", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CreateUser", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CreateUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ModifyUser", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ModifyUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = @"INSERT INTO `Orders` (`CustomerID`, `EmployeeID`, `OrderDate`, `RequiredDate`, `ShippedDate`, `ShipVia`, `Freight`, `ShipName`, `ShipAddress`, `ShipCity`, `ShipRegion`, `ShipPostalCode`, `ShipCountry`, `CreateID`, `CreateUser`, `ModifyID`, `ModifyUser`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustomerID", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("EmployeeID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EmployeeID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("OrderDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("RequiredDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RequiredDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShippedDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShippedDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipVia", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipVia", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Freight", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Freight", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipName", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipAddress", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipAddress", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipCity", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCity", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipRegion", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipRegion", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipPostalCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipPostalCode", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipCountry", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCountry", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CreateUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ModifyUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `Orders` SET `CustomerID` = ?, `EmployeeID` = ?, `OrderDate` = ?, `RequiredDate` = ?, `ShippedDate` = ?, `ShipVia` = ?, `Freight` = ?, `ShipName` = ?, `ShipAddress` = ?, `ShipCity` = ?, `ShipRegion` = ?, `ShipPostalCode` = ?, `ShipCountry` = ?, `CreateID` = ?, `CreateUser` = ?, `ModifyID` = ?, `ModifyUser` = ? WHERE ((`OrderID` = ?) AND ((? = 1 AND `CustomerID` IS NULL) OR (`CustomerID` = ?)) AND ((? = 1 AND `EmployeeID` IS NULL) OR (`EmployeeID` = ?)) AND ((? = 1 AND `OrderDate` IS NULL) OR (`OrderDate` = ?)) AND ((? = 1 AND `RequiredDate` IS NULL) OR (`RequiredDate` = ?)) AND ((? = 1 AND `ShippedDate` IS NULL) OR (`ShippedDate` = ?)) AND ((? = 1 AND `ShipVia` IS NULL) OR (`ShipVia` = ?)) AND ((? = 1 AND `Freight` IS NULL) OR (`Freight` = ?)) AND ((? = 1 AND `ShipName` IS NULL) OR (`ShipName` = ?)) AND ((? = 1 AND `ShipAddress` IS NULL) OR (`ShipAddress` = ?)) AND ((? = 1 AND `ShipCity` IS NULL) OR (`ShipCity` = ?)) AND ((? = 1 AND `ShipRegion` IS NULL) OR (`ShipRegion` = ?)) AND ((? = 1 AND `ShipPostalCode` IS NULL) OR (`ShipPostalCode` = ?)) AND ((? = 1 AND `ShipCountry` IS NULL) OR (`ShipCountry` = ?)) AND ((? = 1 AND `CreateID` IS NULL) OR (`CreateID` = ?)) AND ((? = 1 AND `CreateUser` IS NULL) OR (`CreateUser` = ?)) AND ((? = 1 AND `ModifyID` IS NULL) OR (`ModifyID` = ?)) AND ((? = 1 AND `ModifyUser` IS NULL) OR (`ModifyUser` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustomerID", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("EmployeeID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EmployeeID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("OrderDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("RequiredDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RequiredDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShippedDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShippedDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipVia", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipVia", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Freight", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Freight", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipName", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipAddress", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipAddress", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipCity", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCity", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipRegion", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipRegion", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipPostalCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipPostalCode", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipCountry", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCountry", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CreateUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ModifyUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OrderID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustomerID", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_EmployeeID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EmployeeID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_EmployeeID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EmployeeID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_OrderDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OrderDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_RequiredDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RequiredDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_RequiredDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RequiredDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShippedDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShippedDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShippedDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShippedDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipVia", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipVia", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipVia", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipVia", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Freight", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Freight", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Freight", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Freight", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipName", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipName", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipName", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipName", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipAddress", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipAddress", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipAddress", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipAddress", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipCity", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCity", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipCity", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCity", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipRegion", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipRegion", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipRegion", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipRegion", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipPostalCode", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipPostalCode", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipPostalCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipPostalCode", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipCountry", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCountry", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipCountry", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCountry", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CreateUser", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CreateUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ModifyUser", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ModifyUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Original, false, null));
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "POHeaderTbl";
     tableMapping.ColumnMappings.Add("POID", "POID");
     tableMapping.ColumnMappings.Add("PONumber", "PONumber");
     tableMapping.ColumnMappings.Add("PODate", "PODate");
     tableMapping.ColumnMappings.Add("VendCompany", "VendCompany");
     tableMapping.ColumnMappings.Add("VendNameObsolete", "VendNameObsolete");
     tableMapping.ColumnMappings.Add("VendPhone", "VendPhone");
     tableMapping.ColumnMappings.Add("VendFax", "VendFax");
     tableMapping.ColumnMappings.Add("VendContact", "VendContact");
     tableMapping.ColumnMappings.Add("VendEMail", "VendEMail");
     tableMapping.ColumnMappings.Add("VendAddressObsolete", "VendAddressObsolete");
     tableMapping.ColumnMappings.Add("VendCountryObsolete", "VendCountryObsolete");
     tableMapping.ColumnMappings.Add("ShipToCompanyObsolete", "ShipToCompanyObsolete");
     tableMapping.ColumnMappings.Add("ShipToNameObsolete", "ShipToNameObsolete");
     tableMapping.ColumnMappings.Add("ShipToPhone", "ShipToPhone");
     tableMapping.ColumnMappings.Add("ShipToFax", "ShipToFax");
     tableMapping.ColumnMappings.Add("ShipToContact", "ShipToContact");
     tableMapping.ColumnMappings.Add("ShipToEMail", "ShipToEMail");
     tableMapping.ColumnMappings.Add("ShipToAddressObsolete", "ShipToAddressObsolete");
     tableMapping.ColumnMappings.Add("ShipToCountryObsolete", "ShipToCountryObsolete");
     tableMapping.ColumnMappings.Add("Terms", "Terms");
     tableMapping.ColumnMappings.Add("ShipCode", "ShipCode");
     tableMapping.ColumnMappings.Add("FOB", "FOB");
     tableMapping.ColumnMappings.Add("Status", "Status");
     tableMapping.ColumnMappings.Add("USTotal", "USTotal");
     tableMapping.ColumnMappings.Add("OtherTotal", "OtherTotal");
     tableMapping.ColumnMappings.Add("ExchangeRate", "ExchangeRate");
     tableMapping.ColumnMappings.Add("CancelDate", "CancelDate");
     tableMapping.ColumnMappings.Add("Comments", "Comments");
     tableMapping.ColumnMappings.Add("VendLocationNameObsolete", "VendLocationNameObsolete");
     tableMapping.ColumnMappings.Add("ShipToLocationNameObsolete", "ShipToLocationNameObsolete");
     tableMapping.ColumnMappings.Add("MillConfirmationNumber", "MillConfirmationNumber");
     tableMapping.ColumnMappings.Add("MillAcknowledgeDate", "MillAcknowledgeDate");
     tableMapping.ColumnMappings.Add("ExchangeDate", "ExchangeDate");
     tableMapping.ColumnMappings.Add("CurrencyID", "CurrencyID");
     tableMapping.ColumnMappings.Add("CustomerID", "CustomerID");
     tableMapping.ColumnMappings.Add("CustomerLocationID", "CustomerLocationID");
     tableMapping.ColumnMappings.Add("MillID", "MillID");
     tableMapping.ColumnMappings.Add("MillLocationID", "MillLocationID");
     tableMapping.ColumnMappings.Add("SurchargesInEffect", "SurchargesInEffect");
     tableMapping.ColumnMappings.Add("InvoiceNumber", "InvoiceNumber");
     tableMapping.ColumnMappings.Add("InvoiceDate", "InvoiceDate");
     tableMapping.ColumnMappings.Add("MillAcknowledgeDateRevised", "MillAcknowledgeDateRevised");
     tableMapping.ColumnMappings.Add("VendContactID", "VendContactID");
     tableMapping.ColumnMappings.Add("ShipToContactID", "ShipToContactID");
     tableMapping.ColumnMappings.Add("MillConfirmationAppliesToEntirePO", "MillConfirmationAppliesToEntirePO");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `tblPOHeader2` WHERE ((`POID` = ?) AND ((? = 1 AND `PONumber` IS NULL" +
         ") OR (`PONumber` = ?)) AND ((? = 1 AND `PODate` IS NULL) OR (`PODate` = ?)) AND " +
         "((? = 1 AND `VendCompany` IS NULL) OR (`VendCompany` = ?)) AND ((? = 1 AND `Vend" +
         "NameObsolete` IS NULL) OR (`VendNameObsolete` = ?)) AND ((? = 1 AND `VendPhone` " +
         "IS NULL) OR (`VendPhone` = ?)) AND ((? = 1 AND `VendFax` IS NULL) OR (`VendFax` " +
         "= ?)) AND ((? = 1 AND `VendContact` IS NULL) OR (`VendContact` = ?)) AND ((? = 1" +
         " AND `VendEMail` IS NULL) OR (`VendEMail` = ?)) AND ((? = 1 AND `VendCountryObso" +
         "lete` IS NULL) OR (`VendCountryObsolete` = ?)) AND ((? = 1 AND `ShipToCompanyObs" +
         "olete` IS NULL) OR (`ShipToCompanyObsolete` = ?)) AND ((? = 1 AND `ShipToNameObs" +
         "olete` IS NULL) OR (`ShipToNameObsolete` = ?)) AND ((? = 1 AND `ShipToPhone` IS " +
         "NULL) OR (`ShipToPhone` = ?)) AND ((? = 1 AND `ShipToFax` IS NULL) OR (`ShipToFa" +
         "x` = ?)) AND ((? = 1 AND `ShipToContact` IS NULL) OR (`ShipToContact` = ?)) AND " +
         "((? = 1 AND `ShipToEMail` IS NULL) OR (`ShipToEMail` = ?)) AND ((? = 1 AND `Ship" +
         "ToCountryObsolete` IS NULL) OR (`ShipToCountryObsolete` = ?)) AND ((? = 1 AND `T" +
         "erms` IS NULL) OR (`Terms` = ?)) AND ((? = 1 AND `ShipCode` IS NULL) OR (`ShipCo" +
         "de` = ?)) AND ((? = 1 AND `FOB` IS NULL) OR (`FOB` = ?)) AND ((? = 1 AND `Status" +
         "` IS NULL) OR (`Status` = ?)) AND ((? = 1 AND `USTotal` IS NULL) OR (`USTotal` =" +
         " ?)) AND ((? = 1 AND `OtherTotal` IS NULL) OR (`OtherTotal` = ?)) AND ((? = 1 AN" +
         "D `ExchangeRate` IS NULL) OR (`ExchangeRate` = ?)) AND ((? = 1 AND `CancelDate` " +
         "IS NULL) OR (`CancelDate` = ?)) AND ((? = 1 AND `VendLocationNameObsolete` IS NU" +
         "LL) OR (`VendLocationNameObsolete` = ?)) AND ((? = 1 AND `ShipToLocationNameObso" +
         "lete` IS NULL) OR (`ShipToLocationNameObsolete` = ?)) AND ((? = 1 AND `MillConfi" +
         "rmationNumber` IS NULL) OR (`MillConfirmationNumber` = ?)) AND ((? = 1 AND `Mill" +
         "AcknowledgeDate` IS NULL) OR (`MillAcknowledgeDate` = ?)) AND ((? = 1 AND `Excha" +
         "ngeDate` IS NULL) OR (`ExchangeDate` = ?)) AND ((? = 1 AND `CurrencyID` IS NULL)" +
         " OR (`CurrencyID` = ?)) AND ((? = 1 AND `CustomerID` IS NULL) OR (`CustomerID` =" +
         " ?)) AND ((? = 1 AND `CustomerLocationID` IS NULL) OR (`CustomerLocationID` = ?)" +
         ") AND ((? = 1 AND `MillID` IS NULL) OR (`MillID` = ?)) AND ((? = 1 AND `MillLoca" +
         "tionID` IS NULL) OR (`MillLocationID` = ?)) AND ((? = 1 AND `SurchargesInEffect`" +
         " IS NULL) OR (`SurchargesInEffect` = ?)) AND ((? = 1 AND `InvoiceNumber` IS NULL" +
         ") OR (`InvoiceNumber` = ?)) AND ((? = 1 AND `InvoiceDate` IS NULL) OR (`InvoiceD" +
         "ate` = ?)) AND ((? = 1 AND `MillAcknowledgeDateRevised` IS NULL) OR (`MillAcknow" +
         "ledgeDateRevised` = ?)) AND ((? = 1 AND `VendContactID` IS NULL) OR (`VendContac" +
         "tID` = ?)) AND ((? = 1 AND `ShipToContactID` IS NULL) OR (`ShipToContactID` = ?)" +
         ") AND ((? = 1 AND `MillConfirmationAppliesToEntirePO` IS NULL) OR (`MillConfirma" +
         "tionAppliesToEntirePO` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_PONumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PONumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_PONumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PONumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_PODate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PODate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_PODate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PODate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendCompany", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCompany", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendCompany", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCompany", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendNameObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendNameObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendNameObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendPhone", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendPhone", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendPhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendPhone", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendFax", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendFax", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendFax", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendFax", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendContact", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContact", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendContact", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContact", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendEMail", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendEMail", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendEMail", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendEMail", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendCountryObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCountryObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendCountryObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCountryObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToCompanyObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCompanyObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToCompanyObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCompanyObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToNameObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToNameObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToNameObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToPhone", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToPhone", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToPhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToPhone", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToFax", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToFax", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToFax", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToFax", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToContact", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContact", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToContact", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContact", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToEMail", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToEMail", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToEMail", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToEMail", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToCountryObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCountryObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToCountryObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCountryObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Terms", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Terms", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Terms", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Terms", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipCode", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCode", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCode", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_FOB", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FOB", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_FOB", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FOB", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Status", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Status", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_USTotal", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "USTotal", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_USTotal", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "USTotal", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_OtherTotal", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OtherTotal", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OtherTotal", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OtherTotal", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ExchangeRate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeRate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ExchangeRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeRate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CancelDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CancelDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendLocationNameObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendLocationNameObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendLocationNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendLocationNameObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToLocationNameObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToLocationNameObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToLocationNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToLocationNameObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillConfirmationNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillConfirmationNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ExchangeDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ExchangeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CurrencyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CurrencyID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CurrencyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CurrencyID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillLocationID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillLocationID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SurchargesInEffect", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargesInEffect", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SurchargesInEffect", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargesInEffect", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_InvoiceNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_InvoiceDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_InvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillAcknowledgeDateRevised", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDateRevised", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillAcknowledgeDateRevised", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDateRevised", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContactID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContactID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContactID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContactID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillConfirmationAppliesToEntirePO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationAppliesToEntirePO", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillConfirmationAppliesToEntirePO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationAppliesToEntirePO", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = @"INSERT INTO `tblPOHeader2` (`POID`, `PONumber`, `PODate`, `VendCompany`, `VendNameObsolete`, `VendPhone`, `VendFax`, `VendContact`, `VendEMail`, `VendAddressObsolete`, `VendCountryObsolete`, `ShipToCompanyObsolete`, `ShipToNameObsolete`, `ShipToPhone`, `ShipToFax`, `ShipToContact`, `ShipToEMail`, `ShipToAddressObsolete`, `ShipToCountryObsolete`, `Terms`, `ShipCode`, `FOB`, `Status`, `USTotal`, `OtherTotal`, `ExchangeRate`, `CancelDate`, `Comments`, `VendLocationNameObsolete`, `ShipToLocationNameObsolete`, `MillConfirmationNumber`, `MillAcknowledgeDate`, `ExchangeDate`, `CurrencyID`, `CustomerID`, `CustomerLocationID`, `MillID`, `MillLocationID`, `SurchargesInEffect`, `InvoiceNumber`, `InvoiceDate`, `MillAcknowledgeDateRevised`, `VendContactID`, `ShipToContactID`, `MillConfirmationAppliesToEntirePO`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("PONumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PONumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("PODate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PODate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendCompany", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCompany", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendNameObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendPhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendPhone", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendFax", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendFax", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendContact", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContact", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendEMail", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendEMail", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendAddressObsolete", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendAddressObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendCountryObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCountryObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToCompanyObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCompanyObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToNameObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToPhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToPhone", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToFax", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToFax", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToContact", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContact", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToEMail", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToEMail", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToAddressObsolete", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToAddressObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToCountryObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCountryObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Terms", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Terms", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCode", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("FOB", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FOB", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Status", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("USTotal", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "USTotal", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("OtherTotal", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OtherTotal", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ExchangeRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeRate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CancelDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Comments", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Comments", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendLocationNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendLocationNameObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToLocationNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToLocationNameObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillConfirmationNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ExchangeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CurrencyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CurrencyID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillLocationID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SurchargesInEffect", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargesInEffect", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("InvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillAcknowledgeDateRevised", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDateRevised", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContactID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContactID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillConfirmationAppliesToEntirePO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationAppliesToEntirePO", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `tblPOHeader2` SET `POID` = ?, `PONumber` = ?, `PODate` = ?, `VendCompany`" +
         " = ?, `VendNameObsolete` = ?, `VendPhone` = ?, `VendFax` = ?, `VendContact` = ?," +
         " `VendEMail` = ?, `VendAddressObsolete` = ?, `VendCountryObsolete` = ?, `ShipToC" +
         "ompanyObsolete` = ?, `ShipToNameObsolete` = ?, `ShipToPhone` = ?, `ShipToFax` = " +
         "?, `ShipToContact` = ?, `ShipToEMail` = ?, `ShipToAddressObsolete` = ?, `ShipToC" +
         "ountryObsolete` = ?, `Terms` = ?, `ShipCode` = ?, `FOB` = ?, `Status` = ?, `USTo" +
         "tal` = ?, `OtherTotal` = ?, `ExchangeRate` = ?, `CancelDate` = ?, `Comments` = ?" +
         ", `VendLocationNameObsolete` = ?, `ShipToLocationNameObsolete` = ?, `MillConfirm" +
         "ationNumber` = ?, `MillAcknowledgeDate` = ?, `ExchangeDate` = ?, `CurrencyID` = " +
         "?, `CustomerID` = ?, `CustomerLocationID` = ?, `MillID` = ?, `MillLocationID` = " +
         "?, `SurchargesInEffect` = ?, `InvoiceNumber` = ?, `InvoiceDate` = ?, `MillAcknow" +
         "ledgeDateRevised` = ?, `VendContactID` = ?, `ShipToContactID` = ?, `MillConfirma" +
         "tionAppliesToEntirePO` = ? WHERE ((`POID` = ?) AND ((? = 1 AND `PONumber` IS NUL" +
         "L) OR (`PONumber` = ?)) AND ((? = 1 AND `PODate` IS NULL) OR (`PODate` = ?)) AND" +
         " ((? = 1 AND `VendCompany` IS NULL) OR (`VendCompany` = ?)) AND ((? = 1 AND `Ven" +
         "dNameObsolete` IS NULL) OR (`VendNameObsolete` = ?)) AND ((? = 1 AND `VendPhone`" +
         " IS NULL) OR (`VendPhone` = ?)) AND ((? = 1 AND `VendFax` IS NULL) OR (`VendFax`" +
         " = ?)) AND ((? = 1 AND `VendContact` IS NULL) OR (`VendContact` = ?)) AND ((? = " +
         "1 AND `VendEMail` IS NULL) OR (`VendEMail` = ?)) AND ((? = 1 AND `VendCountryObs" +
         "olete` IS NULL) OR (`VendCountryObsolete` = ?)) AND ((? = 1 AND `ShipToCompanyOb" +
         "solete` IS NULL) OR (`ShipToCompanyObsolete` = ?)) AND ((? = 1 AND `ShipToNameOb" +
         "solete` IS NULL) OR (`ShipToNameObsolete` = ?)) AND ((? = 1 AND `ShipToPhone` IS" +
         " NULL) OR (`ShipToPhone` = ?)) AND ((? = 1 AND `ShipToFax` IS NULL) OR (`ShipToF" +
         "ax` = ?)) AND ((? = 1 AND `ShipToContact` IS NULL) OR (`ShipToContact` = ?)) AND" +
         " ((? = 1 AND `ShipToEMail` IS NULL) OR (`ShipToEMail` = ?)) AND ((? = 1 AND `Shi" +
         "pToCountryObsolete` IS NULL) OR (`ShipToCountryObsolete` = ?)) AND ((? = 1 AND `" +
         "Terms` IS NULL) OR (`Terms` = ?)) AND ((? = 1 AND `ShipCode` IS NULL) OR (`ShipC" +
         "ode` = ?)) AND ((? = 1 AND `FOB` IS NULL) OR (`FOB` = ?)) AND ((? = 1 AND `Statu" +
         "s` IS NULL) OR (`Status` = ?)) AND ((? = 1 AND `USTotal` IS NULL) OR (`USTotal` " +
         "= ?)) AND ((? = 1 AND `OtherTotal` IS NULL) OR (`OtherTotal` = ?)) AND ((? = 1 A" +
         "ND `ExchangeRate` IS NULL) OR (`ExchangeRate` = ?)) AND ((? = 1 AND `CancelDate`" +
         " IS NULL) OR (`CancelDate` = ?)) AND ((? = 1 AND `VendLocationNameObsolete` IS N" +
         "ULL) OR (`VendLocationNameObsolete` = ?)) AND ((? = 1 AND `ShipToLocationNameObs" +
         "olete` IS NULL) OR (`ShipToLocationNameObsolete` = ?)) AND ((? = 1 AND `MillConf" +
         "irmationNumber` IS NULL) OR (`MillConfirmationNumber` = ?)) AND ((? = 1 AND `Mil" +
         "lAcknowledgeDate` IS NULL) OR (`MillAcknowledgeDate` = ?)) AND ((? = 1 AND `Exch" +
         "angeDate` IS NULL) OR (`ExchangeDate` = ?)) AND ((? = 1 AND `CurrencyID` IS NULL" +
         ") OR (`CurrencyID` = ?)) AND ((? = 1 AND `CustomerID` IS NULL) OR (`CustomerID` " +
         "= ?)) AND ((? = 1 AND `CustomerLocationID` IS NULL) OR (`CustomerLocationID` = ?" +
         ")) AND ((? = 1 AND `MillID` IS NULL) OR (`MillID` = ?)) AND ((? = 1 AND `MillLoc" +
         "ationID` IS NULL) OR (`MillLocationID` = ?)) AND ((? = 1 AND `SurchargesInEffect" +
         "` IS NULL) OR (`SurchargesInEffect` = ?)) AND ((? = 1 AND `InvoiceNumber` IS NUL" +
         "L) OR (`InvoiceNumber` = ?)) AND ((? = 1 AND `InvoiceDate` IS NULL) OR (`Invoice" +
         "Date` = ?)) AND ((? = 1 AND `MillAcknowledgeDateRevised` IS NULL) OR (`MillAckno" +
         "wledgeDateRevised` = ?)) AND ((? = 1 AND `VendContactID` IS NULL) OR (`VendConta" +
         "ctID` = ?)) AND ((? = 1 AND `ShipToContactID` IS NULL) OR (`ShipToContactID` = ?" +
         ")) AND ((? = 1 AND `MillConfirmationAppliesToEntirePO` IS NULL) OR (`MillConfirm" +
         "ationAppliesToEntirePO` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("PONumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PONumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("PODate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PODate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendCompany", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCompany", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendNameObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendPhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendPhone", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendFax", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendFax", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendContact", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContact", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendEMail", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendEMail", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendAddressObsolete", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendAddressObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendCountryObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCountryObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToCompanyObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCompanyObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToNameObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToPhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToPhone", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToFax", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToFax", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToContact", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContact", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToEMail", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToEMail", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToAddressObsolete", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToAddressObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToCountryObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCountryObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Terms", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Terms", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCode", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("FOB", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FOB", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Status", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("USTotal", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "USTotal", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("OtherTotal", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OtherTotal", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ExchangeRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeRate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CancelDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Comments", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Comments", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendLocationNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendLocationNameObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToLocationNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToLocationNameObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillConfirmationNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ExchangeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CurrencyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CurrencyID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillLocationID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SurchargesInEffect", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargesInEffect", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("InvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillAcknowledgeDateRevised", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDateRevised", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VendContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContactID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipToContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContactID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillConfirmationAppliesToEntirePO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationAppliesToEntirePO", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_PONumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PONumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_PONumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PONumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_PODate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PODate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_PODate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PODate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendCompany", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCompany", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendCompany", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCompany", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendNameObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendNameObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendNameObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendPhone", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendPhone", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendPhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendPhone", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendFax", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendFax", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendFax", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendFax", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendContact", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContact", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendContact", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContact", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendEMail", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendEMail", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendEMail", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendEMail", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendCountryObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCountryObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendCountryObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendCountryObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToCompanyObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCompanyObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToCompanyObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCompanyObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToNameObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToNameObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToNameObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToPhone", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToPhone", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToPhone", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToPhone", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToFax", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToFax", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToFax", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToFax", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToContact", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContact", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToContact", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContact", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToEMail", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToEMail", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToEMail", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToEMail", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToCountryObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCountryObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToCountryObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToCountryObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Terms", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Terms", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Terms", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Terms", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipCode", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCode", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipCode", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_FOB", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FOB", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_FOB", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FOB", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Status", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Status", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_USTotal", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "USTotal", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_USTotal", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "USTotal", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_OtherTotal", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OtherTotal", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OtherTotal", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OtherTotal", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ExchangeRate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeRate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ExchangeRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeRate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CancelDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CancelDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendLocationNameObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendLocationNameObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendLocationNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendLocationNameObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToLocationNameObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToLocationNameObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToLocationNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToLocationNameObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillConfirmationNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillConfirmationNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ExchangeDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ExchangeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ExchangeDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CurrencyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CurrencyID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CurrencyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CurrencyID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillLocationID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillLocationID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SurchargesInEffect", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargesInEffect", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SurchargesInEffect", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargesInEffect", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_InvoiceNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_InvoiceDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_InvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillAcknowledgeDateRevised", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDateRevised", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillAcknowledgeDateRevised", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDateRevised", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VendContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContactID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VendContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VendContactID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipToContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContactID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipToContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipToContactID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillConfirmationAppliesToEntirePO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationAppliesToEntirePO", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillConfirmationAppliesToEntirePO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationAppliesToEntirePO", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #26
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "Order Details";
     tableMapping.ColumnMappings.Add("OrderID", "OrderID");
     tableMapping.ColumnMappings.Add("ProductID", "ProductID");
     tableMapping.ColumnMappings.Add("UnitPrice", "UnitPrice");
     tableMapping.ColumnMappings.Add("Quantity", "Quantity");
     tableMapping.ColumnMappings.Add("Discount", "Discount");
     tableMapping.ColumnMappings.Add("CreateID", "CreateID");
     tableMapping.ColumnMappings.Add("CreateUser", "CreateUser");
     tableMapping.ColumnMappings.Add("ModifyID", "ModifyID");
     tableMapping.ColumnMappings.Add("ModifyUser", "ModifyUser");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `Order Details` WHERE ((`OrderID` = ?) AND (`ProductID` = ?) AND ((? = 1 AND `UnitPrice` IS NULL) OR (`UnitPrice` = ?)) AND ((? = 1 AND `Quantity` IS NULL) OR (`Quantity` = ?)) AND ((? = 1 AND `Discount` IS NULL) OR (`Discount` = ?)) AND ((? = 1 AND `CreateID` IS NULL) OR (`CreateID` = ?)) AND ((? = 1 AND `CreateUser` IS NULL) OR (`CreateUser` = ?)) AND ((? = 1 AND `ModifyID` IS NULL) OR (`ModifyID` = ?)) AND ((? = 1 AND `ModifyUser` IS NULL) OR (`ModifyUser` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OrderID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ProductID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_UnitPrice", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UnitPrice", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_UnitPrice", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UnitPrice", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Quantity", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Quantity", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Quantity", global::System.Data.OleDb.OleDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Quantity", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Discount", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Discount", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Discount", global::System.Data.OleDb.OleDbType.Single, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Discount", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CreateUser", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CreateUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ModifyUser", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ModifyUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `Order Details` (`OrderID`, `ProductID`, `UnitPrice`, `Quantity`, `Di" +
         "scount`, `CreateID`, `CreateUser`, `ModifyID`, `ModifyUser`) VALUES (?, ?, ?, ?," +
         " ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("OrderID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ProductID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("UnitPrice", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UnitPrice", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Quantity", global::System.Data.OleDb.OleDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Quantity", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Discount", global::System.Data.OleDb.OleDbType.Single, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Discount", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CreateUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ModifyUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `Order Details` SET `OrderID` = ?, `ProductID` = ?, `UnitPrice` = ?, `Quantity` = ?, `Discount` = ?, `CreateID` = ?, `CreateUser` = ?, `ModifyID` = ?, `ModifyUser` = ? WHERE ((`OrderID` = ?) AND (`ProductID` = ?) AND ((? = 1 AND `UnitPrice` IS NULL) OR (`UnitPrice` = ?)) AND ((? = 1 AND `Quantity` IS NULL) OR (`Quantity` = ?)) AND ((? = 1 AND `Discount` IS NULL) OR (`Discount` = ?)) AND ((? = 1 AND `CreateID` IS NULL) OR (`CreateID` = ?)) AND ((? = 1 AND `CreateUser` IS NULL) OR (`CreateUser` = ?)) AND ((? = 1 AND `ModifyID` IS NULL) OR (`ModifyID` = ?)) AND ((? = 1 AND `ModifyUser` IS NULL) OR (`ModifyUser` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("OrderID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ProductID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("UnitPrice", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UnitPrice", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Quantity", global::System.Data.OleDb.OleDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Quantity", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Discount", global::System.Data.OleDb.OleDbType.Single, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Discount", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CreateUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ModifyUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OrderID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OrderID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ProductID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProductID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_UnitPrice", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UnitPrice", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_UnitPrice", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UnitPrice", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Quantity", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Quantity", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Quantity", global::System.Data.OleDb.OleDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Quantity", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Discount", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Discount", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Discount", global::System.Data.OleDb.OleDbType.Single, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Discount", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CreateID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CreateUser", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CreateUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CreateUser", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ModifyID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ModifyUser", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ModifyUser", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ModifyUser", global::System.Data.DataRowVersion.Original, false, null));
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "SurchargeRateTbl";
     tableMapping.ColumnMappings.Add("SurchargeID", "SurchargeID");
     tableMapping.ColumnMappings.Add("ItemID", "ItemID");
     tableMapping.ColumnMappings.Add("FinishID", "FinishID");
     tableMapping.ColumnMappings.Add("SurchargeRate", "SurchargeRate");
     tableMapping.ColumnMappings.Add("SurchargeDate", "SurchargeDate");
     tableMapping.ColumnMappings.Add("SurchargeMonth", "SurchargeMonth");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `tblSurchargeRate` WHERE ((`SurchargeID` = ?) AND ((? = 1 AND `ItemID` IS NULL) OR (`ItemID` = ?)) AND ((? = 1 AND `FinishID` IS NULL) OR (`FinishID` = ?)) AND ((? = 1 AND `SurchargeRate` IS NULL) OR (`SurchargeRate` = ?)) AND ((? = 1 AND `SurchargeDate` IS NULL) OR (`SurchargeDate` = ?)) AND ((? = 1 AND `SurchargeMonth` IS NULL) OR (`SurchargeMonth` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SurchargeID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SurchargeRate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeRate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SurchargeRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeRate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SurchargeDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SurchargeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SurchargeMonth", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeMonth", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SurchargeMonth", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeMonth", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `tblSurchargeRate` (`SurchargeID`, `ItemID`, `FinishID`, `SurchargeRa" +
         "te`, `SurchargeDate`, `SurchargeMonth`) VALUES (?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SurchargeID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SurchargeRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeRate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SurchargeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SurchargeMonth", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeMonth", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `tblSurchargeRate` SET `SurchargeID` = ?, `ItemID` = ?, `FinishID` = ?, `SurchargeRate` = ?, `SurchargeDate` = ?, `SurchargeMonth` = ? WHERE ((`SurchargeID` = ?) AND ((? = 1 AND `ItemID` IS NULL) OR (`ItemID` = ?)) AND ((? = 1 AND `FinishID` IS NULL) OR (`FinishID` = ?)) AND ((? = 1 AND `SurchargeRate` IS NULL) OR (`SurchargeRate` = ?)) AND ((? = 1 AND `SurchargeDate` IS NULL) OR (`SurchargeDate` = ?)) AND ((? = 1 AND `SurchargeMonth` IS NULL) OR (`SurchargeMonth` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SurchargeID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SurchargeRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeRate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SurchargeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SurchargeMonth", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeMonth", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SurchargeID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SurchargeRate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeRate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SurchargeRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeRate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SurchargeDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SurchargeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SurchargeMonth", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeMonth", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SurchargeMonth", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SurchargeMonth", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #28
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "CalculatedOrderDetails";
     tableMapping.ColumnMappings.Add("OrderID", "OrderID");
     tableMapping.ColumnMappings.Add("ProductID", "ProductID");
     tableMapping.ColumnMappings.Add("UnitPrice", "UnitPrice");
     tableMapping.ColumnMappings.Add("Quantity", "Quantity");
     tableMapping.ColumnMappings.Add("QuotePrice", "QuotePrice");
     tableMapping.ColumnMappings.Add("Discount", "Discount");
     tableMapping.ColumnMappings.Add("CreateID", "CreateID");
     tableMapping.ColumnMappings.Add("CreateUser", "CreateUser");
     tableMapping.ColumnMappings.Add("ModifyID", "ModifyID");
     tableMapping.ColumnMappings.Add("ModifyUser", "ModifyUser");
     tableMapping.ColumnMappings.Add("UOMID", "UOMID");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "CPS";
     tableMapping.ColumnMappings.Add("YTNO", "YTNO");
     tableMapping.ColumnMappings.Add("MALZEMEADI", "MALZEMEADI");
     tableMapping.ColumnMappings.Add("MARKA", "MARKA");
     tableMapping.ColumnMappings.Add("SPECT", "SPECT");
     tableMapping.ColumnMappings.Add("RESIM", "RESIM");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `CPS` WHERE ((`YTNO` = ?) AND ((? = 1 AND `MALZEMEADI` IS NULL) OR (`" +
         "MALZEMEADI` = ?)) AND ((? = 1 AND `MARKA` IS NULL) OR (`MARKA` = ?)) AND ((? = 1" +
         " AND `SPECT` IS NULL) OR (`SPECT` = ?)) AND ((? = 1 AND `RESIM` IS NULL) OR (`RE" +
         "SIM` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_YTNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "YTNO", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MALZEMEADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MALZEMEADI", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MALZEMEADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MALZEMEADI", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MARKA", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MARKA", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MARKA", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MARKA", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SPECT", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SPECT", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SPECT", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SPECT", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_RESIM", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_RESIM", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `CPS` (`YTNO`, `MALZEMEADI`, `MARKA`, `SPECT`, `RESIM`) VALUES (?, ?," +
         " ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("YTNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "YTNO", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MALZEMEADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MALZEMEADI", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MARKA", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MARKA", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SPECT", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SPECT", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("RESIM", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `CPS` SET `YTNO` = ?, `MALZEMEADI` = ?, `MARKA` = ?, `SPECT` = ?, `RESIM` = ? WHERE ((`YTNO` = ?) AND ((? = 1 AND `MALZEMEADI` IS NULL) OR (`MALZEMEADI` = ?)) AND ((? = 1 AND `MARKA` IS NULL) OR (`MARKA` = ?)) AND ((? = 1 AND `SPECT` IS NULL) OR (`SPECT` = ?)) AND ((? = 1 AND `RESIM` IS NULL) OR (`RESIM` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("YTNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "YTNO", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MALZEMEADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MALZEMEADI", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MARKA", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MARKA", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SPECT", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SPECT", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("RESIM", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_YTNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "YTNO", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MALZEMEADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MALZEMEADI", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MALZEMEADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MALZEMEADI", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MARKA", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MARKA", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MARKA", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MARKA", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SPECT", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SPECT", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SPECT", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SPECT", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_RESIM", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_RESIM", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #30
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "DeletedOrderDetails";
     tableMapping.ColumnMappings.Add("ID", "ID");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #31
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "品質原因";
     tableMapping.ColumnMappings.Add("編號", "編號");
     tableMapping.ColumnMappings.Add("名稱", "名稱");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `品質原因` WHERE ((`編號` = ?) AND ((? = 1 AND `名稱` IS NULL) OR (`名稱` = ?))" +
         ")";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_名稱", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "名稱", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_名稱", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "名稱", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `品質原因` (`編號`, `名稱`) VALUES (?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("名稱", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "名稱", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `品質原因` SET `編號` = ?, `名稱` = ? WHERE ((`編號` = ?) AND ((? = 1 AND `名稱` IS NU" +
         "LL) OR (`名稱` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("名稱", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "名稱", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_名稱", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "名稱", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_名稱", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "名稱", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #32
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "員工";
     tableMapping.ColumnMappings.Add("編號", "編號");
     tableMapping.ColumnMappings.Add("姓名", "姓名");
     tableMapping.ColumnMappings.Add("薪水", "薪水");
     tableMapping.ColumnMappings.Add("產線", "產線");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `員工` WHERE ((`編號` = ?) AND ((? = 1 AND `姓名` IS NULL) OR (`姓名` = ?)) A" +
         "ND ((? = 1 AND `薪水` IS NULL) OR (`薪水` = ?)) AND ((? = 1 AND `產線` IS NULL) OR (`產" +
         "線` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_姓名", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "姓名", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_姓名", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "姓名", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_薪水", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "薪水", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_薪水", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "薪水", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_產線", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `員工` (`編號`, `姓名`, `薪水`, `產線`) VALUES (?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("姓名", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "姓名", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("薪水", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "薪水", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `員工` SET `編號` = ?, `姓名` = ?, `薪水` = ?, `產線` = ? WHERE ((`編號` = ?) AND ((? " +
         "= 1 AND `姓名` IS NULL) OR (`姓名` = ?)) AND ((? = 1 AND `薪水` IS NULL) OR (`薪水` = ?)" +
         ") AND ((? = 1 AND `產線` IS NULL) OR (`產線` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("姓名", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "姓名", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("薪水", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "薪水", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_編號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_姓名", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "姓名", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_姓名", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "姓名", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_薪水", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "薪水", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_薪水", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "薪水", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_產線", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Original, false, null));
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "Malzeme";
     tableMapping.ColumnMappings.Add("ID", "ID");
     tableMapping.ColumnMappings.Add("YTNO", "YTNO");
     tableMapping.ColumnMappings.Add("ADET", "ADET");
     tableMapping.ColumnMappings.Add("RAFNO", "RAFNO");
     tableMapping.ColumnMappings.Add("UNITE", "UNITE");
     tableMapping.ColumnMappings.Add("EKIPMAN", "EKIPMAN");
     tableMapping.ColumnMappings.Add("MIN", "MIN");
     tableMapping.ColumnMappings.Add("MAX", "MAX");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `Malzeme` WHERE ((`ID` = ?) AND ((? = 1 AND `YTNO` IS NULL) OR (`YTNO` = ?)) AND ((? = 1 AND `ADET` IS NULL) OR (`ADET` = ?)) AND ((? = 1 AND `RAFNO` IS NULL) OR (`RAFNO` = ?)) AND ((? = 1 AND `UNITE` IS NULL) OR (`UNITE` = ?)) AND ((? = 1 AND `EKIPMAN` IS NULL) OR (`EKIPMAN` = ?)) AND ((? = 1 AND `MIN` IS NULL) OR (`MIN` = ?)) AND ((? = 1 AND `MAX` IS NULL) OR (`MAX` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_YTNO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "YTNO", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_YTNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "YTNO", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ADET", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADET", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ADET", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADET", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_RAFNO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RAFNO", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_RAFNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RAFNO", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_UNITE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_UNITE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_EKIPMAN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EKIPMAN", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_EKIPMAN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EKIPMAN", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MIN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MIN", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MIN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MIN", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MAX", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAX", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MAX", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAX", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `Malzeme` (`YTNO`, `ADET`, `RAFNO`, `UNITE`, `EKIPMAN`, `MIN`, `MAX`)" +
         " VALUES (?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("YTNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "YTNO", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ADET", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADET", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("RAFNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RAFNO", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("UNITE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("EKIPMAN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EKIPMAN", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MIN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MIN", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MAX", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAX", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `Malzeme` SET `YTNO` = ?, `ADET` = ?, `RAFNO` = ?, `UNITE` = ?, `EKIPMAN` = ?, `MIN` = ?, `MAX` = ? WHERE ((`ID` = ?) AND ((? = 1 AND `YTNO` IS NULL) OR (`YTNO` = ?)) AND ((? = 1 AND `ADET` IS NULL) OR (`ADET` = ?)) AND ((? = 1 AND `RAFNO` IS NULL) OR (`RAFNO` = ?)) AND ((? = 1 AND `UNITE` IS NULL) OR (`UNITE` = ?)) AND ((? = 1 AND `EKIPMAN` IS NULL) OR (`EKIPMAN` = ?)) AND ((? = 1 AND `MIN` IS NULL) OR (`MIN` = ?)) AND ((? = 1 AND `MAX` IS NULL) OR (`MAX` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("YTNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "YTNO", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ADET", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADET", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("RAFNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RAFNO", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("UNITE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("EKIPMAN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EKIPMAN", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MIN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MIN", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MAX", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAX", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_YTNO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "YTNO", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_YTNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "YTNO", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ADET", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADET", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ADET", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADET", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_RAFNO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RAFNO", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_RAFNO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RAFNO", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_UNITE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_UNITE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UNITE", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_EKIPMAN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EKIPMAN", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_EKIPMAN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EKIPMAN", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MIN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MIN", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MIN", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MIN", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MAX", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAX", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MAX", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAX", global::System.Data.DataRowVersion.Original, false, null));
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "Contacts_ContactCategories";
     tableMapping.ColumnMappings.Add("ContactID", "ContactID");
     tableMapping.ColumnMappings.Add("ContactCategoryID", "ContactCategoryID");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `Contacts_ContactCategories` WHERE ((`ContactID` = ?) AND (`ContactCa" +
         "tegoryID` = ?))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContactCategoryID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactCategoryID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `Contacts_ContactCategories` (`ContactID`, `ContactCategoryID`) VALUE" +
         "S (?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContactCategoryID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactCategoryID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `Contacts_ContactCategories` SET `ContactID` = ?, `ContactCategoryID` = ? " +
         "WHERE ((`ContactID` = ?) AND (`ContactCategoryID` = ?))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContactCategoryID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactCategoryID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContactID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContactCategoryID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContactCategoryID", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #35
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "產品品號";
     tableMapping.ColumnMappings.Add("品號", "品號");
     tableMapping.ColumnMappings.Add("系列名稱", "系列名稱");
     tableMapping.ColumnMappings.Add("系列編號", "系列編號");
     tableMapping.ColumnMappings.Add("品名", "品名");
     tableMapping.ColumnMappings.Add("產線", "產線");
     tableMapping.ColumnMappings.Add("工時", "工時");
     tableMapping.ColumnMappings.Add("標準工資", "標準工資");
     tableMapping.ColumnMappings.Add("單位標準工資", "單位標準工資");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `產品品號` WHERE ((`品號` = ?) AND ((? = 1 AND `系列名稱` IS NULL) OR (`系列名稱` = ?)) AND ((? = 1 AND `系列編號` IS NULL) OR (`系列編號` = ?)) AND ((? = 1 AND `品名` IS NULL) OR (`品名` = ?)) AND ((? = 1 AND `產線` IS NULL) OR (`產線` = ?)) AND ((? = 1 AND `工時` IS NULL) OR (`工時` = ?)) AND ((? = 1 AND `標準工資` IS NULL) OR (`標準工資` = ?)) AND ((? = 1 AND `單位標準工資` IS NULL) OR (`單位標準工資` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_品號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_系列名稱", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列名稱", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_系列名稱", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列名稱", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_系列編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_系列編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_品名", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品名", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_品名", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品名", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_產線", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_工時", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工時", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "工時", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_標準工資", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "標準工資", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_標準工資", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "標準工資", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_單位標準工資", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單位標準工資", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_單位標準工資", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "單位標準工資", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `產品品號` (`品號`, `系列名稱`, `系列編號`, `品名`, `產線`, `工時`, `標準工資`, `單位標準工資`) VAL" +
         "UES (?, ?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("品號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("系列名稱", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列名稱", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("系列編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("品名", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品名", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工時", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "工時", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("標準工資", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "標準工資", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("單位標準工資", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "單位標準工資", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `產品品號` SET `品號` = ?, `系列名稱` = ?, `系列編號` = ?, `品名` = ?, `產線` = ?, `工時` = ?, `標準工資` = ?, `單位標準工資` = ? WHERE ((`品號` = ?) AND ((? = 1 AND `系列名稱` IS NULL) OR (`系列名稱` = ?)) AND ((? = 1 AND `系列編號` IS NULL) OR (`系列編號` = ?)) AND ((? = 1 AND `品名` IS NULL) OR (`品名` = ?)) AND ((? = 1 AND `產線` IS NULL) OR (`產線` = ?)) AND ((? = 1 AND `工時` IS NULL) OR (`工時` = ?)) AND ((? = 1 AND `標準工資` IS NULL) OR (`標準工資` = ?)) AND ((? = 1 AND `單位標準工資` IS NULL) OR (`單位標準工資` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("品號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("系列名稱", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列名稱", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("系列編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列編號", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("品名", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品名", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("工時", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "工時", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("標準工資", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "標準工資", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("單位標準工資", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "單位標準工資", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_品號", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_系列名稱", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列名稱", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_系列名稱", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列名稱", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_系列編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列編號", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_系列編號", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "系列編號", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_品名", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品名", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_品名", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "品名", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_產線", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_產線", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "產線", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_工時", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "工時", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_工時", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "工時", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_標準工資", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "標準工資", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_標準工資", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "標準工資", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_單位標準工資", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "單位標準工資", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_單位標準工資", global::System.Data.OleDb.OleDbType.Numeric, 0, global::System.Data.ParameterDirection.Input, ((byte)(18)), ((byte)(4)), "單位標準工資", global::System.Data.DataRowVersion.Original, false, null));
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "POItemTbl";
     tableMapping.ColumnMappings.Add("POItemNumber", "POItemNumber");
     tableMapping.ColumnMappings.Add("POID", "POID");
     tableMapping.ColumnMappings.Add("SeqNumber", "SeqNumber");
     tableMapping.ColumnMappings.Add("ItemNameObsolete", "ItemNameObsolete");
     tableMapping.ColumnMappings.Add("ItemDesc", "ItemDesc");
     tableMapping.ColumnMappings.Add("Length", "Length");
     tableMapping.ColumnMappings.Add("SizeOfItem", "SizeOfItem");
     tableMapping.ColumnMappings.Add("ItemAccessCode", "ItemAccessCode");
     tableMapping.ColumnMappings.Add("Qty", "Qty");
     tableMapping.ColumnMappings.Add("UM", "UM");
     tableMapping.ColumnMappings.Add("DateRequired", "DateRequired");
     tableMapping.ColumnMappings.Add("AcknowledgeDate", "AcknowledgeDate");
     tableMapping.ColumnMappings.Add("MillShipDate", "MillShipDate");
     tableMapping.ColumnMappings.Add("CancelDate", "CancelDate");
     tableMapping.ColumnMappings.Add("CustRate", "CustRate");
     tableMapping.ColumnMappings.Add("CommRate", "CommRate");
     tableMapping.ColumnMappings.Add("CustAmount", "CustAmount");
     tableMapping.ColumnMappings.Add("CommAmount", "CommAmount");
     tableMapping.ColumnMappings.Add("Comments", "Comments");
     tableMapping.ColumnMappings.Add("FinishID", "FinishID");
     tableMapping.ColumnMappings.Add("ItemID", "ItemID");
     tableMapping.ColumnMappings.Add("TreatmentID", "TreatmentID");
     tableMapping.ColumnMappings.Add("MillConfirmationNumber", "MillConfirmationNumber");
     tableMapping.ColumnMappings.Add("MillAcknowledgeDate", "MillAcknowledgeDate");
     tableMapping.ColumnMappings.Add("InvoiceNumber", "InvoiceNumber");
     tableMapping.ColumnMappings.Add("InvoiceDate", "InvoiceDate");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `tblPOItem2` WHERE ((`POItemNumber` = ?) AND ((? = 1 AND `POID` IS NULL) OR (`POID` = ?)) AND ((? = 1 AND `SeqNumber` IS NULL) OR (`SeqNumber` = ?)) AND ((? = 1 AND `ItemNameObsolete` IS NULL) OR (`ItemNameObsolete` = ?)) AND ((? = 1 AND `Length` IS NULL) OR (`Length` = ?)) AND ((? = 1 AND `SizeOfItem` IS NULL) OR (`SizeOfItem` = ?)) AND ((? = 1 AND `ItemAccessCode` IS NULL) OR (`ItemAccessCode` = ?)) AND ((? = 1 AND `Qty` IS NULL) OR (`Qty` = ?)) AND ((? = 1 AND `UM` IS NULL) OR (`UM` = ?)) AND ((? = 1 AND `DateRequired` IS NULL) OR (`DateRequired` = ?)) AND ((? = 1 AND `AcknowledgeDate` IS NULL) OR (`AcknowledgeDate` = ?)) AND ((? = 1 AND `MillShipDate` IS NULL) OR (`MillShipDate` = ?)) AND ((? = 1 AND `CancelDate` IS NULL) OR (`CancelDate` = ?)) AND ((? = 1 AND `CustRate` IS NULL) OR (`CustRate` = ?)) AND ((? = 1 AND `CommRate` IS NULL) OR (`CommRate` = ?)) AND ((? = 1 AND `CustAmount` IS NULL) OR (`CustAmount` = ?)) AND ((? = 1 AND `CommAmount` IS NULL) OR (`CommAmount` = ?)) AND ((? = 1 AND `FinishID` IS NULL) OR (`FinishID` = ?)) AND ((? = 1 AND `ItemID` IS NULL) OR (`ItemID` = ?)) AND ((? = 1 AND `TreatmentID` IS NULL) OR (`TreatmentID` = ?)) AND ((? = 1 AND `MillConfirmationNumber` IS NULL) OR (`MillConfirmationNumber` = ?)) AND ((? = 1 AND `MillAcknowledgeDate` IS NULL) OR (`MillAcknowledgeDate` = ?)) AND ((? = 1 AND `InvoiceNumber` IS NULL) OR (`InvoiceNumber` = ?)) AND ((? = 1 AND `InvoiceDate` IS NULL) OR (`InvoiceDate` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SeqNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SeqNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ItemNameObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemNameObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ItemNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemNameObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Length", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Length", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Length", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Length", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SizeOfItem", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SizeOfItem", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SizeOfItem", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SizeOfItem", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ItemAccessCode", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemAccessCode", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ItemAccessCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemAccessCode", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Qty", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Qty", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Qty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Qty", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_UM", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UM", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_UM", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UM", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_DateRequired", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DateRequired", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_DateRequired", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DateRequired", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_AcknowledgeDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AcknowledgeDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_AcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AcknowledgeDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillShipDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillShipDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillShipDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillShipDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CancelDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CancelDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustRate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustRate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustRate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CommRate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommRate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CommRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommRate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustAmount", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustAmount", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustAmount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustAmount", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CommAmount", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommAmount", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CommAmount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommAmount", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_TreatmentID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TreatmentID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_TreatmentID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TreatmentID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillConfirmationNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillConfirmationNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_InvoiceNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_InvoiceDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_InvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = @"INSERT INTO `tblPOItem2` (`POItemNumber`, `POID`, `SeqNumber`, `ItemNameObsolete`, `ItemDesc`, `Length`, `SizeOfItem`, `ItemAccessCode`, `Qty`, `UM`, `DateRequired`, `AcknowledgeDate`, `MillShipDate`, `CancelDate`, `CustRate`, `CommRate`, `CustAmount`, `CommAmount`, `Comments`, `FinishID`, `ItemID`, `TreatmentID`, `MillConfirmationNumber`, `MillAcknowledgeDate`, `InvoiceNumber`, `InvoiceDate`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SeqNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ItemNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemNameObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ItemDesc", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemDesc", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Length", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Length", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SizeOfItem", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SizeOfItem", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ItemAccessCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemAccessCode", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Qty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Qty", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("UM", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UM", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("DateRequired", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DateRequired", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("AcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AcknowledgeDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillShipDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillShipDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CancelDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustRate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CommRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommRate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustAmount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustAmount", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CommAmount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommAmount", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Comments", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Comments", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("TreatmentID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TreatmentID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillConfirmationNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("InvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `tblPOItem2` SET `POItemNumber` = ?, `POID` = ?, `SeqNumber` = ?, `ItemNam" +
         "eObsolete` = ?, `ItemDesc` = ?, `Length` = ?, `SizeOfItem` = ?, `ItemAccessCode`" +
         " = ?, `Qty` = ?, `UM` = ?, `DateRequired` = ?, `AcknowledgeDate` = ?, `MillShipD" +
         "ate` = ?, `CancelDate` = ?, `CustRate` = ?, `CommRate` = ?, `CustAmount` = ?, `C" +
         "ommAmount` = ?, `Comments` = ?, `FinishID` = ?, `ItemID` = ?, `TreatmentID` = ?," +
         " `MillConfirmationNumber` = ?, `MillAcknowledgeDate` = ?, `InvoiceNumber` = ?, `" +
         "InvoiceDate` = ? WHERE ((`POItemNumber` = ?) AND ((? = 1 AND `POID` IS NULL) OR " +
         "(`POID` = ?)) AND ((? = 1 AND `SeqNumber` IS NULL) OR (`SeqNumber` = ?)) AND ((?" +
         " = 1 AND `ItemNameObsolete` IS NULL) OR (`ItemNameObsolete` = ?)) AND ((? = 1 AN" +
         "D `Length` IS NULL) OR (`Length` = ?)) AND ((? = 1 AND `SizeOfItem` IS NULL) OR " +
         "(`SizeOfItem` = ?)) AND ((? = 1 AND `ItemAccessCode` IS NULL) OR (`ItemAccessCod" +
         "e` = ?)) AND ((? = 1 AND `Qty` IS NULL) OR (`Qty` = ?)) AND ((? = 1 AND `UM` IS " +
         "NULL) OR (`UM` = ?)) AND ((? = 1 AND `DateRequired` IS NULL) OR (`DateRequired` " +
         "= ?)) AND ((? = 1 AND `AcknowledgeDate` IS NULL) OR (`AcknowledgeDate` = ?)) AND" +
         " ((? = 1 AND `MillShipDate` IS NULL) OR (`MillShipDate` = ?)) AND ((? = 1 AND `C" +
         "ancelDate` IS NULL) OR (`CancelDate` = ?)) AND ((? = 1 AND `CustRate` IS NULL) O" +
         "R (`CustRate` = ?)) AND ((? = 1 AND `CommRate` IS NULL) OR (`CommRate` = ?)) AND" +
         " ((? = 1 AND `CustAmount` IS NULL) OR (`CustAmount` = ?)) AND ((? = 1 AND `CommA" +
         "mount` IS NULL) OR (`CommAmount` = ?)) AND ((? = 1 AND `FinishID` IS NULL) OR (`" +
         "FinishID` = ?)) AND ((? = 1 AND `ItemID` IS NULL) OR (`ItemID` = ?)) AND ((? = 1" +
         " AND `TreatmentID` IS NULL) OR (`TreatmentID` = ?)) AND ((? = 1 AND `MillConfirm" +
         "ationNumber` IS NULL) OR (`MillConfirmationNumber` = ?)) AND ((? = 1 AND `MillAc" +
         "knowledgeDate` IS NULL) OR (`MillAcknowledgeDate` = ?)) AND ((? = 1 AND `Invoice" +
         "Number` IS NULL) OR (`InvoiceNumber` = ?)) AND ((? = 1 AND `InvoiceDate` IS NULL" +
         ") OR (`InvoiceDate` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SeqNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ItemNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemNameObsolete", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ItemDesc", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemDesc", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Length", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Length", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SizeOfItem", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SizeOfItem", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ItemAccessCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemAccessCode", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Qty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Qty", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("UM", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UM", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("DateRequired", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DateRequired", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("AcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AcknowledgeDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillShipDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillShipDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CancelDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustRate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CommRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommRate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustAmount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustAmount", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CommAmount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommAmount", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Comments", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Comments", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("TreatmentID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TreatmentID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillConfirmationNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("InvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SeqNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SeqNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ItemNameObsolete", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemNameObsolete", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ItemNameObsolete", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemNameObsolete", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Length", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Length", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Length", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Length", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SizeOfItem", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SizeOfItem", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SizeOfItem", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SizeOfItem", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ItemAccessCode", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemAccessCode", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ItemAccessCode", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemAccessCode", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Qty", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Qty", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Qty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Qty", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_UM", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UM", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_UM", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "UM", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_DateRequired", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DateRequired", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_DateRequired", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DateRequired", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_AcknowledgeDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AcknowledgeDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_AcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AcknowledgeDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillShipDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillShipDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillShipDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillShipDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CancelDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CancelDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CancelDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustRate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustRate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustRate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CommRate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommRate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CommRate", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommRate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustAmount", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustAmount", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustAmount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustAmount", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CommAmount", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommAmount", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CommAmount", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CommAmount", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_FinishID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FinishID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ItemID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ItemID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_TreatmentID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TreatmentID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_TreatmentID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TreatmentID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillConfirmationNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillConfirmationNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillConfirmationNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillAcknowledgeDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillAcknowledgeDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_InvoiceNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_InvoiceDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_InvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceDate", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #37
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "產品品號View";
     tableMapping.ColumnMappings.Add("系列代號", "系列代號");
     tableMapping.ColumnMappings.Add("品號", "品號");
     tableMapping.ColumnMappings.Add("系列名稱", "系列名稱");
     tableMapping.ColumnMappings.Add("品名", "品名");
     tableMapping.ColumnMappings.Add("產線", "產線");
     tableMapping.ColumnMappings.Add("工時", "工時");
     tableMapping.ColumnMappings.Add("系列編號", "系列編號");
     tableMapping.ColumnMappings.Add("標準工資", "標準工資");
     tableMapping.ColumnMappings.Add("單位標準工資", "單位標準工資");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "ContainerTbl";
     tableMapping.ColumnMappings.Add("ContID", "ContID");
     tableMapping.ColumnMappings.Add("ContNumber", "ContNumber");
     tableMapping.ColumnMappings.Add("ShipDate", "ShipDate");
     tableMapping.ColumnMappings.Add("ETA", "ETA");
     tableMapping.ColumnMappings.Add("Comments", "Comments");
     tableMapping.ColumnMappings.Add("Status", "Status");
     tableMapping.ColumnMappings.Add("CustomerID", "CustomerID");
     tableMapping.ColumnMappings.Add("CustomerLocationID", "CustomerLocationID");
     tableMapping.ColumnMappings.Add("ApplyClosingToEntireContainer", "ApplyClosingToEntireContainer");
     tableMapping.ColumnMappings.Add("ContainerPickupDate", "ContainerPickupDate");
     tableMapping.ColumnMappings.Add("ContainerPickupTerminal", "ContainerPickupTerminal");
     tableMapping.ColumnMappings.Add("ContainerProofOfDelivery", "ContainerProofOfDelivery");
     tableMapping.ColumnMappings.Add("ReleaseDate", "ReleaseDate");
     tableMapping.ColumnMappings.Add("MillID", "MillID");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `tblContainer` WHERE ((`ContID` = ?) AND ((? = 1 AND `ContNumber` IS NULL) OR (`ContNumber` = ?)) AND ((? = 1 AND `ShipDate` IS NULL) OR (`ShipDate` = ?)) AND ((? = 1 AND `ETA` IS NULL) OR (`ETA` = ?)) AND ((? = 1 AND `Status` IS NULL) OR (`Status` = ?)) AND ((? = 1 AND `CustomerID` IS NULL) OR (`CustomerID` = ?)) AND ((? = 1 AND `CustomerLocationID` IS NULL) OR (`CustomerLocationID` = ?)) AND ((? = 1 AND `ApplyClosingToEntireContainer` IS NULL) OR (`ApplyClosingToEntireContainer` = ?)) AND ((? = 1 AND `ContainerPickupDate` IS NULL) OR (`ContainerPickupDate` = ?)) AND ((? = 1 AND `ContainerPickupTerminal` IS NULL) OR (`ContainerPickupTerminal` = ?)) AND ((? = 1 AND `ContainerProofOfDelivery` IS NULL) OR (`ContainerProofOfDelivery` = ?)) AND ((? = 1 AND `ReleaseDate` IS NULL) OR (`ReleaseDate` = ?)) AND ((? = 1 AND `MillID` IS NULL) OR (`MillID` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ETA", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ETA", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ETA", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ETA", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Status", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Status", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ApplyClosingToEntireContainer", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ApplyClosingToEntireContainer", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ApplyClosingToEntireContainer", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ApplyClosingToEntireContainer", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContainerPickupDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContainerPickupDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContainerPickupTerminal", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupTerminal", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContainerPickupTerminal", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupTerminal", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContainerProofOfDelivery", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerProofOfDelivery", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContainerProofOfDelivery", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerProofOfDelivery", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ReleaseDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ReleaseDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ReleaseDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ReleaseDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = @"INSERT INTO `tblContainer` (`ContID`, `ContNumber`, `ShipDate`, `ETA`, `Comments`, `Status`, `CustomerID`, `CustomerLocationID`, `ApplyClosingToEntireContainer`, `ContainerPickupDate`, `ContainerPickupTerminal`, `ContainerProofOfDelivery`, `ReleaseDate`, `MillID`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ETA", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ETA", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Comments", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Comments", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Status", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ApplyClosingToEntireContainer", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ApplyClosingToEntireContainer", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContainerPickupDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContainerPickupTerminal", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupTerminal", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContainerProofOfDelivery", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerProofOfDelivery", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ReleaseDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ReleaseDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = @"UPDATE `tblContainer` SET `ContID` = ?, `ContNumber` = ?, `ShipDate` = ?, `ETA` = ?, `Comments` = ?, `Status` = ?, `CustomerID` = ?, `CustomerLocationID` = ?, `ApplyClosingToEntireContainer` = ?, `ContainerPickupDate` = ?, `ContainerPickupTerminal` = ?, `ContainerProofOfDelivery` = ?, `ReleaseDate` = ?, `MillID` = ? WHERE ((`ContID` = ?) AND ((? = 1 AND `ContNumber` IS NULL) OR (`ContNumber` = ?)) AND ((? = 1 AND `ShipDate` IS NULL) OR (`ShipDate` = ?)) AND ((? = 1 AND `ETA` IS NULL) OR (`ETA` = ?)) AND ((? = 1 AND `Status` IS NULL) OR (`Status` = ?)) AND ((? = 1 AND `CustomerID` IS NULL) OR (`CustomerID` = ?)) AND ((? = 1 AND `CustomerLocationID` IS NULL) OR (`CustomerLocationID` = ?)) AND ((? = 1 AND `ApplyClosingToEntireContainer` IS NULL) OR (`ApplyClosingToEntireContainer` = ?)) AND ((? = 1 AND `ContainerPickupDate` IS NULL) OR (`ContainerPickupDate` = ?)) AND ((? = 1 AND `ContainerPickupTerminal` IS NULL) OR (`ContainerPickupTerminal` = ?)) AND ((? = 1 AND `ContainerProofOfDelivery` IS NULL) OR (`ContainerProofOfDelivery` = ?)) AND ((? = 1 AND `ReleaseDate` IS NULL) OR (`ReleaseDate` = ?)) AND ((? = 1 AND `MillID` IS NULL) OR (`MillID` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ShipDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ETA", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ETA", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Comments", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Comments", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Status", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ApplyClosingToEntireContainer", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ApplyClosingToEntireContainer", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContainerPickupDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContainerPickupTerminal", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupTerminal", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContainerProofOfDelivery", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerProofOfDelivery", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ReleaseDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ReleaseDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ShipDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ShipDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ShipDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ETA", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ETA", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ETA", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ETA", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Status", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Status", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Status", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustomerID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CustomerLocationID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CustomerLocationID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ApplyClosingToEntireContainer", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ApplyClosingToEntireContainer", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ApplyClosingToEntireContainer", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ApplyClosingToEntireContainer", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContainerPickupDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContainerPickupDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContainerPickupTerminal", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupTerminal", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContainerPickupTerminal", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerPickupTerminal", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContainerProofOfDelivery", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerProofOfDelivery", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContainerProofOfDelivery", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerProofOfDelivery", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ReleaseDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ReleaseDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ReleaseDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ReleaseDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillID", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #39
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "假日";
     tableMapping.ColumnMappings.Add("日期", "日期");
     tableMapping.ColumnMappings.Add("增加", "增加");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM `假日` WHERE ((`日期` = ?) AND ((? = 1 AND `增加` IS NULL) OR (`增加` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_增加", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "增加", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_增加", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "增加", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO `假日` (`日期`, `增加`) VALUES (?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("增加", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "增加", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `假日` SET `日期` = ?, `增加` = ? WHERE ((`日期` = ?) AND ((? = 1 AND `增加` IS NULL" +
         ") OR (`增加` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("增加", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "增加", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_日期", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "日期", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_增加", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "增加", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_增加", global::System.Data.OleDb.OleDbType.Boolean, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "增加", global::System.Data.DataRowVersion.Original, false, null));
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "ContBundleTbl";
     tableMapping.ColumnMappings.Add("ContainerBundleID", "ContainerBundleID");
     tableMapping.ColumnMappings.Add("ContID", "ContID");
     tableMapping.ColumnMappings.Add("POItemNumber", "POItemNumber");
     tableMapping.ColumnMappings.Add("BundleSeqNumber", "BundleSeqNumber");
     tableMapping.ColumnMappings.Add("EnglishShipQty", "EnglishShipQty");
     tableMapping.ColumnMappings.Add("InvoiceNumber", "InvoiceNumber");
     tableMapping.ColumnMappings.Add("Heat", "Heat");
     tableMapping.ColumnMappings.Add("MetricShipQty", "MetricShipQty");
     tableMapping.ColumnMappings.Add("BayNumber", "BayNumber");
     tableMapping.ColumnMappings.Add("PickupDate", "PickupDate");
     tableMapping.ColumnMappings.Add("PickupTerminal", "PickupTerminal");
     tableMapping.ColumnMappings.Add("ProofOfDelivery", "ProofOfDelivery");
     tableMapping.ColumnMappings.Add("EMInvoiceNumber", "EMInvoiceNumber");
     tableMapping.ColumnMappings.Add("AuxKey1", "AuxKey1");
     tableMapping.ColumnMappings.Add("AuxKey2", "AuxKey2");
     tableMapping.ColumnMappings.Add("MillInvoiceDate", "MillInvoiceDate");
     tableMapping.ColumnMappings.Add("BundleAlloySurcharge", "BundleAlloySurcharge");
     tableMapping.ColumnMappings.Add("BundleScrapSurcharge", "BundleScrapSurcharge");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = @"DELETE FROM `tblContBundle` WHERE ((`ContainerBundleID` = ?) AND ((? = 1 AND `ContID` IS NULL) OR (`ContID` = ?)) AND ((? = 1 AND `POItemNumber` IS NULL) OR (`POItemNumber` = ?)) AND ((? = 1 AND `BundleSeqNumber` IS NULL) OR (`BundleSeqNumber` = ?)) AND ((? = 1 AND `EnglishShipQty` IS NULL) OR (`EnglishShipQty` = ?)) AND ((? = 1 AND `InvoiceNumber` IS NULL) OR (`InvoiceNumber` = ?)) AND ((? = 1 AND `Heat` IS NULL) OR (`Heat` = ?)) AND ((? = 1 AND `MetricShipQty` IS NULL) OR (`MetricShipQty` = ?)) AND ((? = 1 AND `BayNumber` IS NULL) OR (`BayNumber` = ?)) AND ((? = 1 AND `PickupDate` IS NULL) OR (`PickupDate` = ?)) AND ((? = 1 AND `PickupTerminal` IS NULL) OR (`PickupTerminal` = ?)) AND ((? = 1 AND `ProofOfDelivery` IS NULL) OR (`ProofOfDelivery` = ?)) AND ((? = 1 AND `EMInvoiceNumber` IS NULL) OR (`EMInvoiceNumber` = ?)) AND ((? = 1 AND `AuxKey1` IS NULL) OR (`AuxKey1` = ?)) AND ((? = 1 AND `AuxKey2` IS NULL) OR (`AuxKey2` = ?)) AND ((? = 1 AND `MillInvoiceDate` IS NULL) OR (`MillInvoiceDate` = ?)) AND ((? = 1 AND `BundleAlloySurcharge` IS NULL) OR (`BundleAlloySurcharge` = ?)) AND ((? = 1 AND `BundleScrapSurcharge` IS NULL) OR (`BundleScrapSurcharge` = ?)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContainerBundleID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerBundleID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BundleSeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleSeqNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BundleSeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleSeqNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_EnglishShipQty", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EnglishShipQty", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_EnglishShipQty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EnglishShipQty", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_InvoiceNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Heat", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Heat", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Heat", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Heat", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MetricShipQty", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MetricShipQty", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MetricShipQty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MetricShipQty", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BayNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BayNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BayNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BayNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_PickupDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_PickupDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_PickupTerminal", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupTerminal", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_PickupTerminal", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupTerminal", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ProofOfDelivery", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProofOfDelivery", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ProofOfDelivery", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProofOfDelivery", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_EMInvoiceNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EMInvoiceNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_EMInvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EMInvoiceNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_AuxKey1", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey1", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_AuxKey1", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey1", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_AuxKey2", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey2", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_AuxKey2", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey2", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillInvoiceDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillInvoiceDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillInvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillInvoiceDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BundleAlloySurcharge", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleAlloySurcharge", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BundleAlloySurcharge", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleAlloySurcharge", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BundleScrapSurcharge", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleScrapSurcharge", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BundleScrapSurcharge", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleScrapSurcharge", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = @"INSERT INTO `tblContBundle` (`ContainerBundleID`, `ContID`, `POItemNumber`, `BundleSeqNumber`, `EnglishShipQty`, `InvoiceNumber`, `Heat`, `MetricShipQty`, `BayNumber`, `PickupDate`, `PickupTerminal`, `ProofOfDelivery`, `EMInvoiceNumber`, `AuxKey1`, `AuxKey2`, `MillInvoiceDate`, `BundleAlloySurcharge`, `BundleScrapSurcharge`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContainerBundleID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerBundleID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BundleSeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleSeqNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("EnglishShipQty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EnglishShipQty", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Heat", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Heat", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MetricShipQty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MetricShipQty", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BayNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BayNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("PickupDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("PickupTerminal", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupTerminal", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ProofOfDelivery", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProofOfDelivery", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("EMInvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EMInvoiceNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("AuxKey1", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey1", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("AuxKey2", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey2", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillInvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillInvoiceDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BundleAlloySurcharge", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleAlloySurcharge", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BundleScrapSurcharge", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleScrapSurcharge", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE `tblContBundle` SET `ContainerBundleID` = ?, `ContID` = ?, `POItemNumber` " +
         "= ?, `BundleSeqNumber` = ?, `EnglishShipQty` = ?, `InvoiceNumber` = ?, `Heat` = " +
         "?, `MetricShipQty` = ?, `BayNumber` = ?, `PickupDate` = ?, `PickupTerminal` = ?," +
         " `ProofOfDelivery` = ?, `EMInvoiceNumber` = ?, `AuxKey1` = ?, `AuxKey2` = ?, `Mi" +
         "llInvoiceDate` = ?, `BundleAlloySurcharge` = ?, `BundleScrapSurcharge` = ? WHERE" +
         " ((`ContainerBundleID` = ?) AND ((? = 1 AND `ContID` IS NULL) OR (`ContID` = ?))" +
         " AND ((? = 1 AND `POItemNumber` IS NULL) OR (`POItemNumber` = ?)) AND ((? = 1 AN" +
         "D `BundleSeqNumber` IS NULL) OR (`BundleSeqNumber` = ?)) AND ((? = 1 AND `Englis" +
         "hShipQty` IS NULL) OR (`EnglishShipQty` = ?)) AND ((? = 1 AND `InvoiceNumber` IS" +
         " NULL) OR (`InvoiceNumber` = ?)) AND ((? = 1 AND `Heat` IS NULL) OR (`Heat` = ?)" +
         ") AND ((? = 1 AND `MetricShipQty` IS NULL) OR (`MetricShipQty` = ?)) AND ((? = 1" +
         " AND `BayNumber` IS NULL) OR (`BayNumber` = ?)) AND ((? = 1 AND `PickupDate` IS " +
         "NULL) OR (`PickupDate` = ?)) AND ((? = 1 AND `PickupTerminal` IS NULL) OR (`Pick" +
         "upTerminal` = ?)) AND ((? = 1 AND `ProofOfDelivery` IS NULL) OR (`ProofOfDeliver" +
         "y` = ?)) AND ((? = 1 AND `EMInvoiceNumber` IS NULL) OR (`EMInvoiceNumber` = ?)) " +
         "AND ((? = 1 AND `AuxKey1` IS NULL) OR (`AuxKey1` = ?)) AND ((? = 1 AND `AuxKey2`" +
         " IS NULL) OR (`AuxKey2` = ?)) AND ((? = 1 AND `MillInvoiceDate` IS NULL) OR (`Mi" +
         "llInvoiceDate` = ?)) AND ((? = 1 AND `BundleAlloySurcharge` IS NULL) OR (`Bundle" +
         "AlloySurcharge` = ?)) AND ((? = 1 AND `BundleScrapSurcharge` IS NULL) OR (`Bundl" +
         "eScrapSurcharge` = ?)))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContainerBundleID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerBundleID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ContID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContID", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BundleSeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleSeqNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("EnglishShipQty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EnglishShipQty", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Heat", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Heat", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MetricShipQty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MetricShipQty", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BayNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BayNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("PickupDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("PickupTerminal", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupTerminal", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ProofOfDelivery", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProofOfDelivery", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("EMInvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EMInvoiceNumber", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("AuxKey1", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey1", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("AuxKey2", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey2", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MillInvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillInvoiceDate", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BundleAlloySurcharge", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleAlloySurcharge", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BundleScrapSurcharge", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleScrapSurcharge", global::System.Data.DataRowVersion.Current, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContainerBundleID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContainerBundleID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ContID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContID", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ContID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ContID", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_POItemNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "POItemNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BundleSeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleSeqNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BundleSeqNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleSeqNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_EnglishShipQty", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EnglishShipQty", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_EnglishShipQty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EnglishShipQty", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_InvoiceNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_InvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "InvoiceNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Heat", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Heat", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Heat", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Heat", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MetricShipQty", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MetricShipQty", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MetricShipQty", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MetricShipQty", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BayNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BayNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BayNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BayNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_PickupDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_PickupDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_PickupTerminal", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupTerminal", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_PickupTerminal", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "PickupTerminal", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ProofOfDelivery", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProofOfDelivery", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ProofOfDelivery", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ProofOfDelivery", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_EMInvoiceNumber", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EMInvoiceNumber", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_EMInvoiceNumber", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "EMInvoiceNumber", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_AuxKey1", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey1", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_AuxKey1", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey1", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_AuxKey2", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey2", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_AuxKey2", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AuxKey2", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MillInvoiceDate", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillInvoiceDate", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MillInvoiceDate", global::System.Data.OleDb.OleDbType.Date, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MillInvoiceDate", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BundleAlloySurcharge", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleAlloySurcharge", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BundleAlloySurcharge", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleAlloySurcharge", global::System.Data.DataRowVersion.Original, false, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BundleScrapSurcharge", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleScrapSurcharge", global::System.Data.DataRowVersion.Original, true, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BundleScrapSurcharge", global::System.Data.OleDb.OleDbType.Currency, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BundleScrapSurcharge", global::System.Data.DataRowVersion.Original, false, null));
 }
Beispiel #41
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "假日View";
     tableMapping.ColumnMappings.Add("日期", "日期");
     this._adapter.TableMappings.Add(tableMapping);
 }