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));
 }
Beispiel #2
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "BB_dsfx_temp";
     tableMapping.ColumnMappings.Add("id", "id");
     tableMapping.ColumnMappings.Add("qymc", "qymc");
     tableMapping.ColumnMappings.Add("yydh", "yydh");
     tableMapping.ColumnMappings.Add("dsdr", "dsdr");
     tableMapping.ColumnMappings.Add("je", "je");
     tableMapping.ColumnMappings.Add("czy_temp", "czy_temp");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.InsertCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection  = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [bb_dsfx_temp] ([id], [qymc], [yydh], [dsdr], [je], [czy_temp]) VALUE" +
                                               "S (@id, @qymc, @yydh, @dsdr, @je, @czy_temp)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qymc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qymc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@yydh", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "yydh", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dsdr", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dsdr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@je", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "je", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@czy_temp", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "czy_temp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
 }
Beispiel #3
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "SelectStimulusSet";
     tableMapping.ColumnMappings.Add("name", "name");
     tableMapping.ColumnMappings.Add("series_config_id", "series_config_id");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.DeleteCommand.Connection  = this.Connection;
     this._adapter.DeleteCommand.CommandText = "dbo.DeleteStimulusFromSet";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.StoredProcedure;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@series_config_id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, "series_config_id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stimulus_name", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection  = this.Connection;
     this._adapter.InsertCommand.CommandText = "dbo.InsertStimulusIntoSet";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.StoredProcedure;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stimulus_name", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@series_config_id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, "series_config_id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.UpdateCommand.Connection  = this.Connection;
     this._adapter.UpdateCommand.CommandText = "dbo.UpdateStimulusSet";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.StoredProcedure;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stimulus_name", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_stimulus_name", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@series_config_id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, "series_config_id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
 }
Beispiel #4
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.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "Tbl_MailTopic";
     tableMapping.ColumnMappings.Add("TopicName", "TopicName");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.DeleteCommand.Connection  = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tbl_MailTopic] WHERE (([TopicName] = @Original_TopicName))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TopicName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TopicName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.InsertCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection  = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tbl_MailTopic] ([TopicName]) VALUES (@TopicName);\r\nSELECT Topi" +
                                               "cName FROM Tbl_MailTopic WHERE (TopicName = @TopicName)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TopicName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TopicName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.UpdateCommand.Connection  = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tbl_MailTopic] SET [TopicName] = @TopicName WHERE (([TopicName] = @" +
                                               "Original_TopicName));\r\nSELECT TopicName FROM Tbl_MailTopic WHERE (TopicName = @T" +
                                               "opicName)";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TopicName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TopicName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TopicName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TopicName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "tb_gasto";
     tableMapping.ColumnMappings.Add("id_gasto", "id_gasto");
     tableMapping.ColumnMappings.Add("id_personal", "id_personal");
     tableMapping.ColumnMappings.Add("id_caja", "id_caja");
     tableMapping.ColumnMappings.Add("monto", "monto");
     tableMapping.ColumnMappings.Add("concepto", "concepto");
     tableMapping.ColumnMappings.Add("observacion", "observacion");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.InsertCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection  = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[tb_gasto] ([id_gasto], [id_personal], [id_caja], [monto], [con" +
                                               "cepto], [observacion]) VALUES (@id_gasto, @id_personal, @id_caja, @monto, @conce" +
                                               "pto, @observacion)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_gasto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_gasto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_personal", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_personal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_caja", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_caja", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@monto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "monto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@concepto", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "concepto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@observacion", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "observacion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
 }
Beispiel #7
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "刷卡记录";
     tableMapping.ColumnMappings.Add("ID", "ID");
     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.InsertCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection  = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [Door].[刷卡记录] ([ID], [用户编号], [卡号], [卡型], [门编号], [刷卡状态], [时间]) VALUES " +
                                               "(@ID, @用户编号, @卡号, @卡型, @门编号, @刷卡状态, @时间)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@用户编号", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "用户编号", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@卡号", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "卡号", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@卡型", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "卡型", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@门编号", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "门编号", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@刷卡状态", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "刷卡状态", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@时间", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "时间", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "ProjectInfo";
     tableMapping.ColumnMappings.Add("ProjectName", "ProjectName");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.DeleteCommand.Connection  = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProjectInfo] WHERE (([ProjectName] = @Original_ProjectName))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProjectName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProjectName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.InsertCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection  = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProjectInfo] ([ProjectName]) VALUES (@ProjectName);\r\nSELECT Pr" +
                                               "ojectName FROM ProjectInfo WHERE (ProjectName = @ProjectName)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProjectName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProjectName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand             = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.UpdateCommand.Connection  = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[ProjectInfo] SET [ProjectName] = @ProjectName WHERE (([ProjectName]" +
                                               " = @Original_ProjectName));\r\nSELECT ProjectName FROM ProjectInfo WHERE (ProjectN" +
                                               "ame = @ProjectName)";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProjectName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProjectName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProjectName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProjectName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
 }
Beispiel #9
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlServerCe.SqlCeDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "Programa";
     tableMapping.ColumnMappings.Add("programa_id", "programa_id");
     tableMapping.ColumnMappings.Add("fecha_programada", "fecha_programada");
     tableMapping.ColumnMappings.Add("estado", "estado");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand             = new global::System.Data.SqlServerCe.SqlCeCommand();
     this._adapter.DeleteCommand.Connection  = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM [Programa] WHERE (([programa_id] = @p1))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlServerCe.SqlCeParameter("@p1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, true, 0, 0, "programa_id", global::System.Data.DataRowVersion.Original, null));
     this._adapter.InsertCommand             = new global::System.Data.SqlServerCe.SqlCeCommand();
     this._adapter.InsertCommand.Connection  = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [Programa] ([programa_id], [fecha_programada], [estado]) VALUES (@p1," +
                                               " @p2, @p3)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlServerCe.SqlCeParameter("@p1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, true, 0, 0, "programa_id", global::System.Data.DataRowVersion.Current, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlServerCe.SqlCeParameter("@p2", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, true, 0, 0, "fecha_programada", global::System.Data.DataRowVersion.Current, null));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlServerCe.SqlCeParameter("@p3", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, true, 0, 0, "estado", global::System.Data.DataRowVersion.Current, null));
     this._adapter.UpdateCommand             = new global::System.Data.SqlServerCe.SqlCeCommand();
     this._adapter.UpdateCommand.Connection  = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE [Programa] SET [programa_id] = @p1, [fecha_programada] = @p2, [estado] = @" +
                                               "p3 WHERE (([programa_id] = @p4))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlServerCe.SqlCeParameter("@p1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, true, 0, 0, "programa_id", global::System.Data.DataRowVersion.Current, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlServerCe.SqlCeParameter("@p2", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, true, 0, 0, "fecha_programada", global::System.Data.DataRowVersion.Current, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlServerCe.SqlCeParameter("@p3", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, true, 0, 0, "estado", global::System.Data.DataRowVersion.Current, null));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlServerCe.SqlCeParameter("@p4", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, true, 0, 0, "programa_id", global::System.Data.DataRowVersion.Original, null));
 }
Beispiel #10
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.Odbc.OdbcDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "DimensionRows";
     tableMapping.ColumnMappings.Add("DimensionRowId", "DimensionRowId");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #11
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "ActiveElectionCycles";
     tableMapping.ColumnMappings.Add("Election_Cycle", "ElectionCycle");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "WebTransferDate";
     tableMapping.ColumnMappings.Add("Transfer_date", "TransferDate");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #13
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "ClassRooms";
     tableMapping.ColumnMappings.Add("ClassRoomNumber", "ClassRoomNumber");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #14
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "ProjectInfo";
     tableMapping.ColumnMappings.Add("AreaName", "AreaName");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "PRODUCT";
     tableMapping.ColumnMappings.Add("PRODUCTNAME", "PRODUCTNAME");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "uspInvoiceSummary";
     tableMapping.ColumnMappings.Add("CallType", "CallType");
     tableMapping.ColumnMappings.Add("Amount", "Amount");
     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("ProductName", "ProductName");
     tableMapping.ColumnMappings.Add("UnitPrice", "UnitPrice");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #18
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "Employee";
     tableMapping.ColumnMappings.Add("operator_code", "operator_code");
     tableMapping.ColumnMappings.Add("name", "name");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "SP_DOANH_THU";
     tableMapping.ColumnMappings.Add("THANG", "THANG");
     tableMapping.ColumnMappings.Add("TONG_SO_TIEN", "TONG_SO_TIEN");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "PTユーザー作成";
     tableMapping.ColumnMappings.Add("ユーザー作成成功かどうか", "ユーザー作成成功かどうか");
     tableMapping.ColumnMappings.Add("エラーメッセージ", "エラーメッセージ");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #21
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "spGetTourVersion";
     tableMapping.ColumnMappings.Add("VersionNumber", "VersionNumber");
     tableMapping.ColumnMappings.Add("VersionUpdatedDateTime", "VersionUpdatedDateTime");
     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 = "Products";
     tableMapping.ColumnMappings.Add("SupplierID", "SupplierID");
     tableMapping.ColumnMappings.Add("CategoryID", "CategoryID");
     tableMapping.ColumnMappings.Add("UnitsInStock", "UnitsInStock");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #24
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "view_ReportBorrowByDepart";
     tableMapping.ColumnMappings.Add("使用部门", "使用部门");
     tableMapping.ColumnMappings.Add("领用总数", "领用总数");
     tableMapping.ColumnMappings.Add("领用总值(¥/元)", "领用总值(¥/元)");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlServerCe.SqlCeDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "Client";
     tableMapping.ColumnMappings.Add("Nom", "Nom");
     tableMapping.ColumnMappings.Add("Prenom", "Prenom");
     tableMapping.ColumnMappings.Add("Code ", "Code ");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #26
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "VIEW_S_jz_fkfs";
     tableMapping.ColumnMappings.Add("czy", "czy");
     tableMapping.ColumnMappings.Add("fkfs", "fkfs");
     tableMapping.ColumnMappings.Add("Column1", "Column1");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #27
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "view_BorrowBytype1";
     tableMapping.ColumnMappings.Add("资产类别", "资产类别");
     tableMapping.ColumnMappings.Add("领用总数", "领用总数");
     tableMapping.ColumnMappings.Add("领用总值(元)", "领用总值(元)");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #28
0
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "GetMaterialFooter";
     tableMapping.ColumnMappings.Add("TotalCount", "TotalCount");
     tableMapping.ColumnMappings.Add("TotalPart", "TotalPart");
     tableMapping.ColumnMappings.Add("TotalCost", "TotalCost");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter()
 {
     this._adapter = new global::System.Data.SqlServerCe.SqlCeDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable  = "Table";
     tableMapping.DataSetTable = "Options";
     tableMapping.ColumnMappings.Add("Name", "Name");
     tableMapping.ColumnMappings.Add("Value", "Value");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand             = new global::System.Data.SqlServerCe.SqlCeCommand();
     this._adapter.DeleteCommand.Connection  = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM [Options] WHERE (([Name] = @p1))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     global::System.Data.SqlServerCe.SqlCeParameter param = new global::System.Data.SqlServerCe.SqlCeParameter();
     param.ParameterName = "@p1";
     param.IsNullable    = true;
     param.SourceColumn  = "Name";
     param.SourceVersion = global::System.Data.DataRowVersion.Original;
     this._adapter.DeleteCommand.Parameters.Add(param);
     this._adapter.InsertCommand             = new global::System.Data.SqlServerCe.SqlCeCommand();
     this._adapter.InsertCommand.Connection  = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [Options] ([Name], [Value]) VALUES (@p1, @p2)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     param = new global::System.Data.SqlServerCe.SqlCeParameter();
     param.ParameterName = "@p1";
     param.IsNullable    = true;
     param.SourceColumn  = "Name";
     this._adapter.InsertCommand.Parameters.Add(param);
     param = new global::System.Data.SqlServerCe.SqlCeParameter();
     param.ParameterName = "@p2";
     param.IsNullable    = true;
     param.SourceColumn  = "Value";
     this._adapter.InsertCommand.Parameters.Add(param);
     this._adapter.UpdateCommand             = new global::System.Data.SqlServerCe.SqlCeCommand();
     this._adapter.UpdateCommand.Connection  = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE [Options] SET [Name] = @p1, [Value] = @p2 WHERE (([Name] = @p3))";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     param = new global::System.Data.SqlServerCe.SqlCeParameter();
     param.ParameterName = "@p1";
     param.IsNullable    = true;
     param.SourceColumn  = "Name";
     this._adapter.UpdateCommand.Parameters.Add(param);
     param = new global::System.Data.SqlServerCe.SqlCeParameter();
     param.ParameterName = "@p2";
     param.IsNullable    = true;
     param.SourceColumn  = "Value";
     this._adapter.UpdateCommand.Parameters.Add(param);
     param = new global::System.Data.SqlServerCe.SqlCeParameter();
     param.ParameterName = "@p3";
     param.IsNullable    = true;
     param.SourceColumn  = "Name";
     param.SourceVersion = global::System.Data.DataRowVersion.Original;
     this._adapter.UpdateCommand.Parameters.Add(param);
 }
 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.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "停车场收费统计";
     tableMapping.ColumnMappings.Add("ID", "ID");
     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.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [park].[出场记录] ([ID], [卡号], [卡型], [用户编号], [打印编号], [日期], [入场日期], [车牌], " +
         "[车型], [收费金额], [出场图片], [出场门岗], [操作员]) VALUES (@ID, @卡号, @卡型, @用户编号, @打印编号, @日期, @" +
         "入场日期, @车牌, @车型, @收费金额, @出场图片, @出场门岗, @操作员)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@卡号", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "卡号", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@卡型", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "卡型", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@用户编号", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "用户编号", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@打印编号", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "打印编号", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@日期", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "日期", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@入场日期", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "入场日期", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@车牌", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "车牌", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@车型", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "车型", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@收费金额", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "收费金额", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@出场图片", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "出场图片", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@出场门岗", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "出场门岗", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@操作员", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "操作员", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "GetOstat";
     tableMapping.ColumnMappings.Add("id", "id");
     tableMapping.ColumnMappings.Add("rashName", "rashName");
     tableMapping.ColumnMappings.Add("typeacc_id", "typeacc_id");
     tableMapping.ColumnMappings.Add("typeName", "typeName");
     tableMapping.ColumnMappings.Add("cnt", "cnt");
     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));
 }
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "Goods";
            tableMapping.ColumnMappings.Add("ID", "ID");
            tableMapping.ColumnMappings.Add("BoxCardID", "BoxCardID");
            tableMapping.ColumnMappings.Add("TruckNo", "TruckNo");
            tableMapping.ColumnMappings.Add("StartTime", "StartTime");
            tableMapping.ColumnMappings.Add("EndTime", "EndTime");
            tableMapping.ColumnMappings.Add("State", "State");
            tableMapping.ColumnMappings.Add("Weight", "Weight");
            tableMapping.ColumnMappings.Add("StartStationID", "StartStationID");
            tableMapping.ColumnMappings.Add("EndStationID", "EndStationID");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Goods] WHERE (([ID] = @Original_ID))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            global::System.Data.SqlClient.SqlParameter param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@Original_ID";
            param.DbType = global::System.Data.DbType.Int32;
            param.IsNullable = true;
            param.SourceColumn = "ID";
            param.SourceVersion = global::System.Data.DataRowVersion.Original;
            this._adapter.DeleteCommand.Parameters.Add(param);
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Goods] ([BoxCardID], [TruckNo], [StartTime], [EndTime], [State], [Weight], [StartStationID], [EndStationID]) VALUES (@BoxCardID, @TruckNo, @StartTime, @EndTime, @State, @Weight, @StartStationID, @EndStationID);
SELECT ID, BoxCardID, TruckNo, StartTime, EndTime, State, Weight, StartStationID, EndStationID FROM Goods WHERE (ID = SCOPE_IDENTITY())";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@BoxCardID";
            param.DbType = global::System.Data.DbType.StringFixedLength;
            param.IsNullable = true;
            param.SourceColumn = "BoxCardID";
            this._adapter.InsertCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@TruckNo";
            param.DbType = global::System.Data.DbType.StringFixedLength;
            param.IsNullable = true;
            param.SourceColumn = "TruckNo";
            this._adapter.InsertCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@StartTime";
            param.DbType = global::System.Data.DbType.StringFixedLength;
            param.IsNullable = true;
            param.SourceColumn = "StartTime";
            this._adapter.InsertCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@EndTime";
            param.DbType = global::System.Data.DbType.StringFixedLength;
            param.IsNullable = true;
            param.SourceColumn = "EndTime";
            this._adapter.InsertCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@State";
            param.DbType = global::System.Data.DbType.Int32;
            param.IsNullable = true;
            param.SourceColumn = "State";
            this._adapter.InsertCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@Weight";
            param.DbType = global::System.Data.DbType.Double;
            param.IsNullable = true;
            param.SourceColumn = "Weight";
            this._adapter.InsertCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@StartStationID";
            param.DbType = global::System.Data.DbType.Int32;
            param.IsNullable = true;
            param.SourceColumn = "StartStationID";
            this._adapter.InsertCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@EndStationID";
            param.DbType = global::System.Data.DbType.Int32;
            param.IsNullable = true;
            param.SourceColumn = "EndStationID";
            this._adapter.InsertCommand.Parameters.Add(param);
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Goods] SET [BoxCardID] = @BoxCardID, [TruckNo] = @TruckNo, [StartTime] = @StartTime, [EndTime] = @EndTime, [State] = @State, [Weight] = @Weight, [StartStationID] = @StartStationID, [EndStationID] = @EndStationID WHERE (([ID] = @Original_ID));
SELECT ID, BoxCardID, TruckNo, StartTime, EndTime, State, Weight, StartStationID, EndStationID FROM Goods WHERE (ID = @ID)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@BoxCardID";
            param.DbType = global::System.Data.DbType.StringFixedLength;
            param.IsNullable = true;
            param.SourceColumn = "BoxCardID";
            this._adapter.UpdateCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@TruckNo";
            param.DbType = global::System.Data.DbType.StringFixedLength;
            param.IsNullable = true;
            param.SourceColumn = "TruckNo";
            this._adapter.UpdateCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@StartTime";
            param.DbType = global::System.Data.DbType.StringFixedLength;
            param.IsNullable = true;
            param.SourceColumn = "StartTime";
            this._adapter.UpdateCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@EndTime";
            param.DbType = global::System.Data.DbType.StringFixedLength;
            param.IsNullable = true;
            param.SourceColumn = "EndTime";
            this._adapter.UpdateCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@State";
            param.DbType = global::System.Data.DbType.Int32;
            param.IsNullable = true;
            param.SourceColumn = "State";
            this._adapter.UpdateCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@Weight";
            param.DbType = global::System.Data.DbType.Double;
            param.IsNullable = true;
            param.SourceColumn = "Weight";
            this._adapter.UpdateCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@StartStationID";
            param.DbType = global::System.Data.DbType.Int32;
            param.IsNullable = true;
            param.SourceColumn = "StartStationID";
            this._adapter.UpdateCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@EndStationID";
            param.DbType = global::System.Data.DbType.Int32;
            param.IsNullable = true;
            param.SourceColumn = "EndStationID";
            this._adapter.UpdateCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@Original_ID";
            param.DbType = global::System.Data.DbType.Int32;
            param.IsNullable = true;
            param.SourceColumn = "ID";
            param.SourceVersion = global::System.Data.DataRowVersion.Original;
            this._adapter.UpdateCommand.Parameters.Add(param);
            param = new global::System.Data.SqlClient.SqlParameter();
            param.ParameterName = "@ID";
            param.DbType = global::System.Data.DbType.Int32;
            param.Size = 4;
            param.IsNullable = true;
            param.SourceColumn = "ID";
            this._adapter.UpdateCommand.Parameters.Add(param);
        }
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "tblClass";
            tableMapping.ColumnMappings.Add("strClassCode", "strClassCode");
            tableMapping.ColumnMappings.Add("strDescription", "strDescription");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[tblClass] WHERE (([strClassCode] = @Original_strClassCode) AND" +
                " ((@IsNull_strDescription = 1 AND [strDescription] IS NULL) OR ([strDescription]" +
                " = @Original_strDescription)))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_strClassCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strClassCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_strDescription", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strDescription", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_strDescription", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strDescription", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[tblClass] ([strClassCode], [strDescription]) VALUES (@strClass" +
                "Code, @strDescription);\r\nSELECT strClassCode, strDescription FROM tblClass WHERE" +
                " (strClassCode = @strClassCode)";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@strClassCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strClassCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@strDescription", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strDescription", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[tblClass] SET [strClassCode] = @strClassCode, [strDescription] = @strDescription WHERE (([strClassCode] = @Original_strClassCode) AND ((@IsNull_strDescription = 1 AND [strDescription] IS NULL) OR ([strDescription] = @Original_strDescription)));
SELECT strClassCode, strDescription FROM tblClass WHERE (strClassCode = @strClassCode)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@strClassCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strClassCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@strDescription", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strDescription", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_strClassCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strClassCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_strDescription", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strDescription", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_strDescription", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strDescription", 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));
 }
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "考勤明细查询";
            tableMapping.ColumnMappings.Add("ID", "ID");
            tableMapping.ColumnMappings.Add("部门", "部门");
            tableMapping.ColumnMappings.Add("班制", "班制");
            tableMapping.ColumnMappings.Add("启动日期", "启动日期");
            tableMapping.ColumnMappings.Add("班次", "班次");
            tableMapping.ColumnMappings.Add("周期序号", "周期序号");
            tableMapping.ColumnMappings.Add("日期", "日期");
            tableMapping.ColumnMappings.Add("状态", "状态");
            tableMapping.ColumnMappings.Add("上班1", "上班1");
            tableMapping.ColumnMappings.Add("下班1", "下班1");
            tableMapping.ColumnMappings.Add("上班2", "上班2");
            tableMapping.ColumnMappings.Add("下班2", "下班2");
            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.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = @"DELETE FROM [work].[部门排班登记] WHERE (([ID] = @Original_ID) AND ((@IsNull_部门 = 1 AND [部门] IS NULL) OR ([部门] = @Original_部门)) AND ((@IsNull_班制 = 1 AND [班制] IS NULL) OR ([班制] = @Original_班制)) AND ((@IsNull_启动日期 = 1 AND [启动日期] IS NULL) OR ([启动日期] = @Original_启动日期)) AND ((@IsNull_班次 = 1 AND [班次] IS NULL) OR ([班次] = @Original_班次)) AND ((@IsNull_周期序号 = 1 AND [周期序号] IS NULL) OR ([周期序号] = @Original_周期序号)) AND ((@IsNull_日期 = 1 AND [日期] IS NULL) OR ([日期] = @Original_日期)) AND ((@IsNull_状态 = 1 AND [状态] IS NULL) OR ([状态] = @Original_状态)) AND ((@IsNull_上班1 = 1 AND [上班1] IS NULL) OR ([上班1] = @Original_上班1)) AND ((@IsNull_下班1 = 1 AND [下班1] IS NULL) OR ([下班1] = @Original_下班1)) AND ((@IsNull_上班2 = 1 AND [上班2] IS NULL) OR ([上班2] = @Original_上班2)) AND ((@IsNull_下班2 = 1 AND [下班2] IS NULL) OR ([下班2] = @Original_下班2)) AND ((@IsNull_打卡类别 = 1 AND [打卡类别] IS NULL) OR ([打卡类别] = @Original_打卡类别)) AND ((@IsNull_允许迟到 = 1 AND [允许迟到] IS NULL) OR ([允许迟到] = @Original_允许迟到)) AND ((@IsNull_迟到限制 = 1 AND [迟到限制] IS NULL) OR ([迟到限制] = @Original_迟到限制)) AND ((@IsNull_允许早退 = 1 AND [允许早退] IS NULL) OR ([允许早退] = @Original_允许早退)) AND ((@IsNull_早退限制 = 1 AND [早退限制] IS NULL) OR ([早退限制] = @Original_早退限制)) AND ((@IsNull_上班有效 = 1 AND [上班有效] IS NULL) OR ([上班有效] = @Original_上班有效)) AND ((@IsNull_下班有效 = 1 AND [下班有效] IS NULL) OR ([下班有效] = @Original_下班有效)))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_部门", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "部门", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_部门", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "部门", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_班制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班制", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_班制", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班制", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_启动日期", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "启动日期", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_启动日期", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "启动日期", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_班次", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班次", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_班次", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班次", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_周期序号", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "周期序号", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_周期序号", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "周期序号", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_日期", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "日期", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_日期", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "日期", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_状态", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "状态", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_状态", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "状态", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_上班1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_上班1", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_下班1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_下班1", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_上班2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_上班2", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_下班2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_下班2", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_打卡类别", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "打卡类别", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_打卡类别", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "打卡类别", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_允许迟到", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许迟到", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_允许迟到", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许迟到", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_迟到限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "迟到限制", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_迟到限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "迟到限制", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_允许早退", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许早退", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_允许早退", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许早退", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_早退限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "早退限制", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_早退限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "早退限制", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_上班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班有效", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_上班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班有效", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_下班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班有效", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_下班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班有效", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = @"INSERT INTO [work].[部门排班登记] ([ID], [部门], [班制], [启动日期], [班次], [周期序号], [日期], [状态], [上班1], [下班1], [上班2], [下班2], [打卡类别], [允许迟到], [迟到限制], [允许早退], [早退限制], [上班有效], [下班有效]) VALUES (@ID, @部门, @班制, @启动日期, @班次, @周期序号, @日期, @状态, @上班1, @下班1, @上班2, @下班2, @打卡类别, @允许迟到, @迟到限制, @允许早退, @早退限制, @上班有效, @下班有效);
SELECT ID, 部门, 班制, 启动日期, 班次, 周期序号, 日期, 状态, 上班1, 下班1, 上班2, 下班2, 打卡类别, 允许迟到, 迟到限制, 允许早退, 早退限制, 上班有效, 下班有效 FROM [work].部门排班登记 WHERE (ID = @ID)";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@部门", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "部门", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@班制", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班制", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@启动日期", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "启动日期", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@班次", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班次", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@周期序号", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "周期序号", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@日期", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "日期", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@状态", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "状态", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@上班1", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@下班1", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@上班2", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@下班2", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@打卡类别", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "打卡类别", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@允许迟到", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许迟到", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@迟到限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "迟到限制", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@允许早退", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许早退", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@早退限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "早退限制", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@上班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班有效", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@下班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班有效", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = "UPDATE [work].[部门排班登记] SET [ID] = @ID, [部门] = @部门, [班制] = @班制, [启动日期] = @启动日期, [班" +
                "次] = @班次, [周期序号] = @周期序号, [日期] = @日期, [状态] = @状态, [上班1] = @上班1, [下班1] = @下班1, [上" +
                "班2] = @上班2, [下班2] = @下班2, [打卡类别] = @打卡类别, [允许迟到] = @允许迟到, [迟到限制] = @迟到限制, [允许早退]" +
                " = @允许早退, [早退限制] = @早退限制, [上班有效] = @上班有效, [下班有效] = @下班有效 WHERE (([ID] = @Origina" +
                "l_ID) AND ((@IsNull_部门 = 1 AND [部门] IS NULL) OR ([部门] = @Original_部门)) AND ((@Is" +
                "Null_班制 = 1 AND [班制] IS NULL) OR ([班制] = @Original_班制)) AND ((@IsNull_启动日期 = 1 A" +
                "ND [启动日期] IS NULL) OR ([启动日期] = @Original_启动日期)) AND ((@IsNull_班次 = 1 AND [班次] I" +
                "S NULL) OR ([班次] = @Original_班次)) AND ((@IsNull_周期序号 = 1 AND [周期序号] IS NULL) OR " +
                "([周期序号] = @Original_周期序号)) AND ((@IsNull_日期 = 1 AND [日期] IS NULL) OR ([日期] = @Or" +
                "iginal_日期)) AND ((@IsNull_状态 = 1 AND [状态] IS NULL) OR ([状态] = @Original_状态)) AND" +
                " ((@IsNull_上班1 = 1 AND [上班1] IS NULL) OR ([上班1] = @Original_上班1)) AND ((@IsNull_" +
                "下班1 = 1 AND [下班1] IS NULL) OR ([下班1] = @Original_下班1)) AND ((@IsNull_上班2 = 1 AND" +
                " [上班2] IS NULL) OR ([上班2] = @Original_上班2)) AND ((@IsNull_下班2 = 1 AND [下班2] IS N" +
                "ULL) OR ([下班2] = @Original_下班2)) AND ((@IsNull_打卡类别 = 1 AND [打卡类别] IS NULL) OR (" +
                "[打卡类别] = @Original_打卡类别)) AND ((@IsNull_允许迟到 = 1 AND [允许迟到] IS NULL) OR ([允许迟到] " +
                "= @Original_允许迟到)) AND ((@IsNull_迟到限制 = 1 AND [迟到限制] IS NULL) OR ([迟到限制] = @Orig" +
                "inal_迟到限制)) AND ((@IsNull_允许早退 = 1 AND [允许早退] IS NULL) OR ([允许早退] = @Original_允许" +
                "早退)) AND ((@IsNull_早退限制 = 1 AND [早退限制] IS NULL) OR ([早退限制] = @Original_早退限制)) AN" +
                "D ((@IsNull_上班有效 = 1 AND [上班有效] IS NULL) OR ([上班有效] = @Original_上班有效)) AND ((@Is" +
                "Null_下班有效 = 1 AND [下班有效] IS NULL) OR ([下班有效] = @Original_下班有效)));\r\nSELECT ID, 部门" +
                ", 班制, 启动日期, 班次, 周期序号, 日期, 状态, 上班1, 下班1, 上班2, 下班2, 打卡类别, 允许迟到, 迟到限制, 允许早退, 早退限制, " +
                "上班有效, 下班有效 FROM [work].部门排班登记 WHERE (ID = @ID)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@部门", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "部门", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@班制", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班制", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@启动日期", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "启动日期", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@班次", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班次", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@周期序号", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "周期序号", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@日期", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "日期", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@状态", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "状态", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@上班1", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@下班1", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@上班2", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@下班2", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@打卡类别", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "打卡类别", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@允许迟到", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许迟到", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@迟到限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "迟到限制", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@允许早退", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许早退", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@早退限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "早退限制", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@上班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班有效", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@下班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班有效", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_部门", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "部门", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_部门", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "部门", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_班制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班制", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_班制", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班制", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_启动日期", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "启动日期", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_启动日期", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "启动日期", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_班次", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班次", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_班次", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "班次", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_周期序号", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "周期序号", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_周期序号", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "周期序号", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_日期", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "日期", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_日期", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "日期", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_状态", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "状态", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_状态", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "状态", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_上班1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_上班1", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_下班1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_下班1", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_上班2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_上班2", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_下班2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_下班2", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_打卡类别", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "打卡类别", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_打卡类别", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "打卡类别", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_允许迟到", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许迟到", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_允许迟到", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许迟到", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_迟到限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "迟到限制", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_迟到限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "迟到限制", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_允许早退", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许早退", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_允许早退", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "允许早退", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_早退限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "早退限制", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_早退限制", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "早退限制", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_上班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班有效", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_上班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "上班有效", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_下班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班有效", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_下班有效", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "下班有效", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
        }
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "Items";
            tableMapping.ColumnMappings.Add("ID", "ID");
            tableMapping.ColumnMappings.Add("Code", "Code");
            tableMapping.ColumnMappings.Add("Name", "Name");
            tableMapping.ColumnMappings.Add("Specification", "Specification");
            tableMapping.ColumnMappings.Add("VendorCode", "VendorCode");
            tableMapping.ColumnMappings.Add("BrandName", "BrandName");
            tableMapping.ColumnMappings.Add("BrandType", "BrandType");
            tableMapping.ColumnMappings.Add("Dimension", "Dimension");
            tableMapping.ColumnMappings.Add("BasePrice", "BasePrice");
            tableMapping.ColumnMappings.Add("SellingPrice", "SellingPrice");
            tableMapping.ColumnMappings.Add("QuantityMax", "QuantityMax");
            tableMapping.ColumnMappings.Add("QuantityMin", "QuantityMin");
            tableMapping.ColumnMappings.Add("MeasureID", "MeasureID");
            tableMapping.ColumnMappings.Add("CategoryID", "CategoryID");
            tableMapping.ColumnMappings.Add("Inventoried", "Inventoried");
            tableMapping.ColumnMappings.Add("Active", "Active");
            tableMapping.ColumnMappings.Add("ExpiredDate", "ExpiredDate");
            tableMapping.ColumnMappings.Add("ExpiryInDays", "ExpiryInDays");
            tableMapping.ColumnMappings.Add("CompanyID", "CompanyID");
            tableMapping.ColumnMappings.Add("QuantityCarton", "QuantityCarton");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = "DELETE FROM [Items] WHERE (([ID] = @Original_ID) AND ([Code] = @Original_Code) AN" +
                "D ([Name] = @Original_Name) AND ((@IsNull_Specification = 1 AND [Specification] " +
                "IS NULL) OR ([Specification] = @Original_Specification)) AND ((@IsNull_VendorCod" +
                "e = 1 AND [VendorCode] IS NULL) OR ([VendorCode] = @Original_VendorCode)) AND ((" +
                "@IsNull_BrandName = 1 AND [BrandName] IS NULL) OR ([BrandName] = @Original_Brand" +
                "Name)) AND ((@IsNull_BrandType = 1 AND [BrandType] IS NULL) OR ([BrandType] = @O" +
                "riginal_BrandType)) AND ((@IsNull_Dimension = 1 AND [Dimension] IS NULL) OR ([Di" +
                "mension] = @Original_Dimension)) AND ((@IsNull_BasePrice = 1 AND [BasePrice] IS " +
                "NULL) OR ([BasePrice] = @Original_BasePrice)) AND ((@IsNull_SellingPrice = 1 AND" +
                " [SellingPrice] IS NULL) OR ([SellingPrice] = @Original_SellingPrice)) AND ((@Is" +
                "Null_QuantityMax = 1 AND [QuantityMax] IS NULL) OR ([QuantityMax] = @Original_Qu" +
                "antityMax)) AND ((@IsNull_QuantityMin = 1 AND [QuantityMin] IS NULL) OR ([Quanti" +
                "tyMin] = @Original_QuantityMin)) AND ((@IsNull_QuantityCarton = 1 AND [QuantityC" +
                "arton] IS NULL) OR ([QuantityCarton] = @Original_QuantityCarton)) AND ((@IsNull_" +
                "MeasureID = 1 AND [MeasureID] IS NULL) OR ([MeasureID] = @Original_MeasureID)) A" +
                "ND ((@IsNull_CategoryID = 1 AND [CategoryID] IS NULL) OR ([CategoryID] = @Origin" +
                "al_CategoryID)) AND ([Inventoried] = @Original_Inventoried) AND ([Active] = @Ori" +
                "ginal_Active) AND ((@IsNull_ExpiredDate = 1 AND [ExpiredDate] IS NULL) OR ([Expi" +
                "redDate] = @Original_ExpiredDate)) AND ((@IsNull_ExpiryInDays = 1 AND [ExpiryInD" +
                "ays] IS NULL) OR ([ExpiryInDays] = @Original_ExpiryInDays)) AND ((@IsNull_Compan" +
                "yID = 1 AND [CompanyID] IS NULL) OR ([CompanyID] = @Original_CompanyID)))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Specification", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Specification", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Specification", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Specification", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_VendorCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VendorCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VendorCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VendorCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BrandName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BrandName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BrandType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BrandType", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Dimension", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dimension", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Dimension", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dimension", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BasePrice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BasePrice", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BasePrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BasePrice", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SellingPrice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SellingPrice", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SellingPrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SellingPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QuantityMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMax", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuantityMax", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMax", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QuantityMin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMin", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuantityMin", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QuantityCarton", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityCarton", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuantityCarton", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityCarton", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MeasureID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MeasureID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MeasureID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MeasureID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Inventoried", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Inventoried", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ExpiredDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiredDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ExpiredDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiredDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ExpiryInDays", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiryInDays", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ExpiryInDays", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiryInDays", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = @"INSERT INTO [Items] ([Code], [Name], [Specification], [VendorCode], [BrandName], [BrandType], [Dimension], [BasePrice], [SellingPrice], [QuantityMax], [QuantityMin], [QuantityCarton], [MeasureID], [CategoryID], [Inventoried], [Active], [ExpiredDate], [ExpiryInDays], [CompanyID]) VALUES (@Code, @Name, @Specification, @VendorCode, @BrandName, @BrandType, @Dimension, @BasePrice, @SellingPrice, @QuantityMax, @QuantityMin, @QuantityCarton, @MeasureID, @CategoryID, @Inventoried, @Active, @ExpiredDate, @ExpiryInDays, @CompanyID);
SELECT ID, Code, Name, Specification, VendorCode, BrandName, BrandType, Dimension, BasePrice, SellingPrice, QuantityMax, QuantityMin, QuantityCarton, MeasureID, CategoryID, Inventoried, Active, ExpiredDate, ExpiryInDays, CompanyID FROM Items WHERE (ID = SCOPE_IDENTITY())";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Specification", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Specification", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VendorCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VendorCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BrandName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BrandType", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Dimension", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dimension", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BasePrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BasePrice", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SellingPrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SellingPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuantityMax", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMax", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuantityMin", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuantityCarton", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityCarton", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MeasureID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MeasureID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inventoried", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Inventoried", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExpiredDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiredDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExpiryInDays", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiryInDays", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = "UPDATE [Items] SET [Code] = @Code, [Name] = @Name, [Specification] = @Specificati" +
                "on, [VendorCode] = @VendorCode, [BrandName] = @BrandName, [BrandType] = @BrandTy" +
                "pe, [Dimension] = @Dimension, [BasePrice] = @BasePrice, [SellingPrice] = @Sellin" +
                "gPrice, [QuantityMax] = @QuantityMax, [QuantityMin] = @QuantityMin, [QuantityCar" +
                "ton] = @QuantityCarton, [MeasureID] = @MeasureID, [CategoryID] = @CategoryID, [I" +
                "nventoried] = @Inventoried, [Active] = @Active, [ExpiredDate] = @ExpiredDate, [E" +
                "xpiryInDays] = @ExpiryInDays, [CompanyID] = @CompanyID WHERE (([ID] = @Original_" +
                "ID) AND ([Code] = @Original_Code) AND ([Name] = @Original_Name) AND ((@IsNull_Sp" +
                "ecification = 1 AND [Specification] IS NULL) OR ([Specification] = @Original_Spe" +
                "cification)) AND ((@IsNull_VendorCode = 1 AND [VendorCode] IS NULL) OR ([VendorC" +
                "ode] = @Original_VendorCode)) AND ((@IsNull_BrandName = 1 AND [BrandName] IS NUL" +
                "L) OR ([BrandName] = @Original_BrandName)) AND ((@IsNull_BrandType = 1 AND [Bran" +
                "dType] IS NULL) OR ([BrandType] = @Original_BrandType)) AND ((@IsNull_Dimension " +
                "= 1 AND [Dimension] IS NULL) OR ([Dimension] = @Original_Dimension)) AND ((@IsNu" +
                "ll_BasePrice = 1 AND [BasePrice] IS NULL) OR ([BasePrice] = @Original_BasePrice)" +
                ") AND ((@IsNull_SellingPrice = 1 AND [SellingPrice] IS NULL) OR ([SellingPrice] " +
                "= @Original_SellingPrice)) AND ((@IsNull_QuantityMax = 1 AND [QuantityMax] IS NU" +
                "LL) OR ([QuantityMax] = @Original_QuantityMax)) AND ((@IsNull_QuantityMin = 1 AN" +
                "D [QuantityMin] IS NULL) OR ([QuantityMin] = @Original_QuantityMin)) AND ((@IsNu" +
                "ll_QuantityCarton = 1 AND [QuantityCarton] IS NULL) OR ([QuantityCarton] = @Orig" +
                "inal_QuantityCarton)) AND ((@IsNull_MeasureID = 1 AND [MeasureID] IS NULL) OR ([" +
                "MeasureID] = @Original_MeasureID)) AND ((@IsNull_CategoryID = 1 AND [CategoryID]" +
                " IS NULL) OR ([CategoryID] = @Original_CategoryID)) AND ([Inventoried] = @Origin" +
                "al_Inventoried) AND ([Active] = @Original_Active) AND ((@IsNull_ExpiredDate = 1 " +
                "AND [ExpiredDate] IS NULL) OR ([ExpiredDate] = @Original_ExpiredDate)) AND ((@Is" +
                "Null_ExpiryInDays = 1 AND [ExpiryInDays] IS NULL) OR ([ExpiryInDays] = @Original" +
                "_ExpiryInDays)) AND ((@IsNull_CompanyID = 1 AND [CompanyID] IS NULL) OR ([Compan" +
                "yID] = @Original_CompanyID)));\r\nSELECT ID, Code, Name, Specification, VendorCode" +
                ", BrandName, BrandType, Dimension, BasePrice, SellingPrice, QuantityMax, Quantit" +
                "yMin, QuantityCarton, MeasureID, CategoryID, Inventoried, Active, ExpiredDate, E" +
                "xpiryInDays, CompanyID FROM Items WHERE (ID = @ID)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Specification", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Specification", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VendorCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VendorCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BrandName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BrandType", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Dimension", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dimension", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BasePrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BasePrice", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SellingPrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SellingPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuantityMax", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMax", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuantityMin", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuantityCarton", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityCarton", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MeasureID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MeasureID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inventoried", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Inventoried", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExpiredDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiredDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExpiryInDays", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiryInDays", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Specification", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Specification", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Specification", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Specification", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_VendorCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VendorCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VendorCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VendorCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BrandName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BrandName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BrandType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BrandType", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BrandType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Dimension", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dimension", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Dimension", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dimension", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BasePrice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BasePrice", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BasePrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BasePrice", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SellingPrice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SellingPrice", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SellingPrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SellingPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QuantityMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMax", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuantityMax", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMax", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QuantityMin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMin", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuantityMin", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityMin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QuantityCarton", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityCarton", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuantityCarton", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuantityCarton", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MeasureID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MeasureID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MeasureID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MeasureID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Inventoried", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Inventoried", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ExpiredDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiredDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ExpiredDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiredDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ExpiryInDays", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiryInDays", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ExpiryInDays", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExpiryInDays", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, 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));
 }
 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));
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "Box";
     tableMapping.ColumnMappings.Add("ID", "ID");
     tableMapping.ColumnMappings.Add("BoxCardID", "BoxCardID");
     tableMapping.ColumnMappings.Add("BoxCardState", "BoxCardState");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Box] WHERE (([ID] = @Original_ID))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     global::System.Data.SqlClient.SqlParameter param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@Original_ID";
     param.DbType = global::System.Data.DbType.Int32;
     param.IsNullable = true;
     param.SourceColumn = "ID";
     param.SourceVersion = global::System.Data.DataRowVersion.Original;
     this._adapter.DeleteCommand.Parameters.Add(param);
     this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Box] ([BoxCardID], [BoxCardState]) VALUES (@BoxCardID, @BoxCar" +
         "dState);\r\nSELECT ID, BoxCardID, BoxCardState FROM Box WHERE (ID = SCOPE_IDENTITY" +
         "())";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@BoxCardID";
     param.DbType = global::System.Data.DbType.StringFixedLength;
     param.IsNullable = true;
     param.SourceColumn = "BoxCardID";
     this._adapter.InsertCommand.Parameters.Add(param);
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@BoxCardState";
     param.DbType = global::System.Data.DbType.Int32;
     param.IsNullable = true;
     param.SourceColumn = "BoxCardState";
     this._adapter.InsertCommand.Parameters.Add(param);
     this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Box] SET [BoxCardID] = @BoxCardID, [BoxCardState] = @BoxCardState W" +
         "HERE (([ID] = @Original_ID));\r\nSELECT ID, BoxCardID, BoxCardState FROM Box WHERE" +
         " (ID = @ID)";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@BoxCardID";
     param.DbType = global::System.Data.DbType.StringFixedLength;
     param.IsNullable = true;
     param.SourceColumn = "BoxCardID";
     this._adapter.UpdateCommand.Parameters.Add(param);
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@BoxCardState";
     param.DbType = global::System.Data.DbType.Int32;
     param.IsNullable = true;
     param.SourceColumn = "BoxCardState";
     this._adapter.UpdateCommand.Parameters.Add(param);
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@Original_ID";
     param.DbType = global::System.Data.DbType.Int32;
     param.IsNullable = true;
     param.SourceColumn = "ID";
     param.SourceVersion = global::System.Data.DataRowVersion.Original;
     this._adapter.UpdateCommand.Parameters.Add(param);
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@ID";
     param.DbType = global::System.Data.DbType.Int32;
     param.Size = 4;
     param.IsNullable = true;
     param.SourceColumn = "ID";
     this._adapter.UpdateCommand.Parameters.Add(param);
 }
Beispiel #42
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "ScheduleBriefTbl";
     tableMapping.ColumnMappings.Add("scheduleId", "scheduleId");
     tableMapping.ColumnMappings.Add("tourId", "tourId");
     tableMapping.ColumnMappings.Add("startDate", "startDate");
     tableMapping.ColumnMappings.Add("endDate", "endDate");
     tableMapping.ColumnMappings.Add("status", "status");
     tableMapping.ColumnMappings.Add("createMode", "createMode");
     tableMapping.ColumnMappings.Add("bookCustomers", "bookCustomers");
     tableMapping.ColumnMappings.Add("actualCustomers", "actualCustomers");
     tableMapping.ColumnMappings.Add("priceAdult", "priceAdult");
     tableMapping.ColumnMappings.Add("priceChild", "priceChild");
     tableMapping.ColumnMappings.Add("TourName", "TourName");
     tableMapping.ColumnMappings.Add("TourName_cn", "TourName_cn");
     tableMapping.ColumnMappings.Add("TourType", "TourType");
     tableMapping.ColumnMappings.Add("tourStatus", "tourStatus");
     tableMapping.ColumnMappings.Add("subTitle", "subTitle");
     tableMapping.ColumnMappings.Add("TourDay", "TourDay");
     tableMapping.ColumnMappings.Add("actualRooms", "actualRooms");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "Driver";
     tableMapping.ColumnMappings.Add("ID", "ID");
     tableMapping.ColumnMappings.Add("DriverCardID", "DriverCardID");
     tableMapping.ColumnMappings.Add("TruckNo", "TruckNo");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Driver] WHERE (([ID] = @Original_ID))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     global::System.Data.SqlClient.SqlParameter param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@Original_ID";
     param.DbType = global::System.Data.DbType.Int32;
     param.IsNullable = true;
     param.SourceColumn = "ID";
     param.SourceVersion = global::System.Data.DataRowVersion.Original;
     this._adapter.DeleteCommand.Parameters.Add(param);
     this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Driver] ([DriverCardID], [TruckNo]) VALUES (@DriverCardID, @Tr" +
         "uckNo);\r\nSELECT ID, DriverCardID, TruckNo FROM Driver WHERE (ID = SCOPE_IDENTITY" +
         "())";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@DriverCardID";
     param.DbType = global::System.Data.DbType.StringFixedLength;
     param.IsNullable = true;
     param.SourceColumn = "DriverCardID";
     this._adapter.InsertCommand.Parameters.Add(param);
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@TruckNo";
     param.DbType = global::System.Data.DbType.StringFixedLength;
     param.IsNullable = true;
     param.SourceColumn = "TruckNo";
     this._adapter.InsertCommand.Parameters.Add(param);
     this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Driver] SET [DriverCardID] = @DriverCardID, [TruckNo] = @TruckNo WH" +
         "ERE (([ID] = @Original_ID));\r\nSELECT ID, DriverCardID, TruckNo FROM Driver WHERE" +
         " (ID = @ID)";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@DriverCardID";
     param.DbType = global::System.Data.DbType.StringFixedLength;
     param.IsNullable = true;
     param.SourceColumn = "DriverCardID";
     this._adapter.UpdateCommand.Parameters.Add(param);
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@TruckNo";
     param.DbType = global::System.Data.DbType.StringFixedLength;
     param.IsNullable = true;
     param.SourceColumn = "TruckNo";
     this._adapter.UpdateCommand.Parameters.Add(param);
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@Original_ID";
     param.DbType = global::System.Data.DbType.Int32;
     param.IsNullable = true;
     param.SourceColumn = "ID";
     param.SourceVersion = global::System.Data.DataRowVersion.Original;
     this._adapter.UpdateCommand.Parameters.Add(param);
     param = new global::System.Data.SqlClient.SqlParameter();
     param.ParameterName = "@ID";
     param.DbType = global::System.Data.DbType.Int32;
     param.Size = 4;
     param.IsNullable = true;
     param.SourceColumn = "ID";
     this._adapter.UpdateCommand.Parameters.Add(param);
 }
Beispiel #44
0
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "InspectionReplies";
            tableMapping.ColumnMappings.Add("ReplyId", "ReplyId");
            tableMapping.ColumnMappings.Add("QueryId", "QueryId");
            tableMapping.ColumnMappings.Add("Reply", "Reply");
            tableMapping.ColumnMappings.Add("Remarks", "Remarks");
            tableMapping.ColumnMappings.Add("CreatedBy", "CreatedBy");
            tableMapping.ColumnMappings.Add("CreatedAt", "CreatedAt");
            tableMapping.ColumnMappings.Add("ModifiedBy", "ModifiedBy");
            tableMapping.ColumnMappings.Add("ModifiedAt", "ModifiedAt");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = @"DELETE FROM [InspectionReplies] WHERE (([ReplyId] = @Original_ReplyId) AND ([QueryId] = @Original_QueryId) AND ((@IsNull_Reply = 1 AND [Reply] IS NULL) OR ([Reply] = @Original_Reply)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_CreatedBy = 1 AND [CreatedBy] IS NULL) OR ([CreatedBy] = @Original_CreatedBy)) AND ((@IsNull_CreatedAt = 1 AND [CreatedAt] IS NULL) OR ([CreatedAt] = @Original_CreatedAt)) AND ((@IsNull_ModifiedBy = 1 AND [ModifiedBy] IS NULL) OR ([ModifiedBy] = @Original_ModifiedBy)) AND ((@IsNull_ModifiedAt = 1 AND [ModifiedAt] IS NULL) OR ([ModifiedAt] = @Original_ModifiedAt)))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReplyId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReplyId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QueryId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QueryId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Reply", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Reply", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Reply", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Reply", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Remarks", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Remarks", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreatedBy", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreatedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreatedAt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreatedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModifiedBy", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModifiedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModifiedAt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModifiedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = @"INSERT INTO [InspectionReplies] ([ReplyId], [QueryId], [Reply], [Remarks], [CreatedBy], [CreatedAt], [ModifiedBy], [ModifiedAt]) VALUES (@ReplyId, @QueryId, @Reply, @Remarks, @CreatedBy, @CreatedAt, @ModifiedBy, @ModifiedAt);
SELECT ReplyId, QueryId, Reply, Remarks, CreatedBy, CreatedAt, ModifiedBy, ModifiedAt FROM InspectionReplies WHERE (ReplyId = @ReplyId)";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReplyId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReplyId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QueryId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QueryId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Reply", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Reply", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remarks", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreatedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreatedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModifiedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModifiedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = @"UPDATE [InspectionReplies] SET [ReplyId] = @ReplyId, [QueryId] = @QueryId, [Reply] = @Reply, [Remarks] = @Remarks, [CreatedBy] = @CreatedBy, [CreatedAt] = @CreatedAt, [ModifiedBy] = @ModifiedBy, [ModifiedAt] = @ModifiedAt WHERE (([ReplyId] = @Original_ReplyId) AND ([QueryId] = @Original_QueryId) AND ((@IsNull_Reply = 1 AND [Reply] IS NULL) OR ([Reply] = @Original_Reply)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_CreatedBy = 1 AND [CreatedBy] IS NULL) OR ([CreatedBy] = @Original_CreatedBy)) AND ((@IsNull_CreatedAt = 1 AND [CreatedAt] IS NULL) OR ([CreatedAt] = @Original_CreatedAt)) AND ((@IsNull_ModifiedBy = 1 AND [ModifiedBy] IS NULL) OR ([ModifiedBy] = @Original_ModifiedBy)) AND ((@IsNull_ModifiedAt = 1 AND [ModifiedAt] IS NULL) OR ([ModifiedAt] = @Original_ModifiedAt)));
SELECT ReplyId, QueryId, Reply, Remarks, CreatedBy, CreatedAt, ModifiedBy, ModifiedAt FROM InspectionReplies WHERE (ReplyId = @ReplyId)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReplyId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReplyId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QueryId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QueryId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Reply", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Reply", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remarks", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreatedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreatedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModifiedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModifiedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReplyId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReplyId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QueryId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QueryId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Reply", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Reply", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Reply", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Reply", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Remarks", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Remarks", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreatedBy", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreatedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreatedAt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreatedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModifiedBy", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModifiedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModifiedAt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModifiedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
        }
 private void InitAdapter() {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "EMPLOY";
     tableMapping.ColumnMappings.Add("ID", "ID");
     tableMapping.ColumnMappings.Add("EMPID", "EMPID");
     tableMapping.ColumnMappings.Add("EMPCODE", "EMPCODE");
     tableMapping.ColumnMappings.Add("NAME", "NAME");
     tableMapping.ColumnMappings.Add("EMPTYPEID", "EMPTYPEID");
     tableMapping.ColumnMappings.Add("company", "company");
     tableMapping.ColumnMappings.Add("DEPARTMENT", "DEPARTMENT");
     tableMapping.ColumnMappings.Add("DEPTCODE", "DEPTCODE");
     tableMapping.ColumnMappings.Add("DUTY", "DUTY");
     tableMapping.ColumnMappings.Add("POSTCODE", "POSTCODE");
     tableMapping.ColumnMappings.Add("FOREFATHER", "FOREFATHER");
     tableMapping.ColumnMappings.Add("POSTDATE", "POSTDATE");
     tableMapping.ColumnMappings.Add("SIGN", "SIGN");
     tableMapping.ColumnMappings.Add("PAY", "PAY");
     tableMapping.ColumnMappings.Add("COUNTMETH", "COUNTMETH");
     tableMapping.ColumnMappings.Add("MEMORY", "MEMORY");
     tableMapping.ColumnMappings.Add("ISOPERATE", "ISOPERATE");
     tableMapping.ColumnMappings.Add("SEX", "SEX");
     tableMapping.ColumnMappings.Add("BIRTHDAY", "BIRTHDAY");
     tableMapping.ColumnMappings.Add("IDCARD", "IDCARD");
     tableMapping.ColumnMappings.Add("ADDRESS", "ADDRESS");
     tableMapping.ColumnMappings.Add("EMAIL", "EMAIL");
     tableMapping.ColumnMappings.Add("CULTURE", "CULTURE");
     tableMapping.ColumnMappings.Add("BP", "BP");
     tableMapping.ColumnMappings.Add("TELEPHONE", "TELEPHONE");
     tableMapping.ColumnMappings.Add("HOMEPHONE", "HOMEPHONE");
     tableMapping.ColumnMappings.Add("UPFLAG", "UPFLAG");
     tableMapping.ColumnMappings.Add("pic", "pic");
     tableMapping.ColumnMappings.Add("核算方式", "核算方式");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[EMPLOY] ([ID], [EMPID], [EMPCODE], [NAME], [EMPTYPEID], [company], [DEPARTMENT], [DEPTCODE], [DUTY], [POSTCODE], [FOREFATHER], [POSTDATE], [SIGN], [PAY], [COUNTMETH], [MEMORY], [ISOPERATE], [SEX], [BIRTHDAY], [IDCARD], [ADDRESS], [EMAIL], [CULTURE], [BP], [TELEPHONE], [HOMEPHONE], [UPFLAG], [pic], [核算方式]) VALUES (@ID, @EMPID, @EMPCODE, @NAME, @EMPTYPEID, @company, @DEPARTMENT, @DEPTCODE, @DUTY, @POSTCODE, @FOREFATHER, @POSTDATE, @SIGN, @PAY, @COUNTMETH, @MEMORY, @ISOPERATE, @SEX, @BIRTHDAY, @IDCARD, @ADDRESS, @EMAIL, @CULTURE, @BP, @TELEPHONE, @HOMEPHONE, @UPFLAG, @pic, @核算方式)";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EMPID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EMPID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EMPCODE", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EMPCODE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NAME", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NAME", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EMPTYPEID", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EMPTYPEID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@company", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "company", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DEPARTMENT", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DEPARTMENT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DEPTCODE", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DEPTCODE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DUTY", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DUTY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@POSTCODE", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "POSTCODE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FOREFATHER", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FOREFATHER", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@POSTDATE", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "POSTDATE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SIGN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SIGN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PAY", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PAY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@COUNTMETH", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "COUNTMETH", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MEMORY", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MEMORY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ISOPERATE", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ISOPERATE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SEX", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SEX", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BIRTHDAY", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BIRTHDAY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDCARD", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCARD", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ADDRESS", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ADDRESS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EMAIL", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EMAIL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CULTURE", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CULTURE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BP", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TELEPHONE", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TELEPHONE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HOMEPHONE", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HOMEPHONE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UPFLAG", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPFLAG", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pic", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@核算方式", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "核算方式", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
 }
Beispiel #46
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "TourScheduleReport";
     tableMapping.ColumnMappings.Add("tourID", "tourID");
     tableMapping.ColumnMappings.Add("scheduleCount", "scheduleCount");
     tableMapping.ColumnMappings.Add("bookCustomers", "bookCustomers");
     tableMapping.ColumnMappings.Add("actualCustomers", "actualCustomers");
     tableMapping.ColumnMappings.Add("actualRooms", "actualRooms");
     tableMapping.ColumnMappings.Add("salesAmount", "salesAmount");
     tableMapping.ColumnMappings.Add("tourName", "tourName");
     tableMapping.ColumnMappings.Add("tourName_cn", "tourName_cn");
     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 = "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 #48
0
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "InspectionYearlyScheduleMonthwise";
            tableMapping.ColumnMappings.Add("MonthlyScheduleId", "MonthlyScheduleId");
            tableMapping.ColumnMappings.Add("DetailScheduleId", "DetailScheduleId");
            tableMapping.ColumnMappings.Add("InspectingOfficeId", "InspectingOfficeId");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = @"DELETE FROM [InspectionYearlyScheduleMonthwise] WHERE (([MonthlyScheduleId] = @Original_MonthlyScheduleId) AND ([DetailScheduleId] = @Original_DetailScheduleId) AND ((@IsNull_InspectingOfficeId = 1 AND [InspectingOfficeId] IS NULL) OR ([InspectingOfficeId] = @Original_InspectingOfficeId)))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MonthlyScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MonthlyScheduleId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DetailScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DetailScheduleId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InspectingOfficeId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InspectingOfficeId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = @"INSERT INTO [InspectionYearlyScheduleMonthwise] ([MonthlyScheduleId], [DetailScheduleId], [InspectingOfficeId]) VALUES (@MonthlyScheduleId, @DetailScheduleId, @InspectingOfficeId);
SELECT MonthlyScheduleId, DetailScheduleId, InspectingOfficeId FROM InspectionYearlyScheduleMonthwise WHERE (MonthlyScheduleId = @MonthlyScheduleId)";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MonthlyScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MonthlyScheduleId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DetailScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DetailScheduleId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InspectingOfficeId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = @"UPDATE [InspectionYearlyScheduleMonthwise] SET [MonthlyScheduleId] = @MonthlyScheduleId, [DetailScheduleId] = @DetailScheduleId, [InspectingOfficeId] = @InspectingOfficeId WHERE (([MonthlyScheduleId] = @Original_MonthlyScheduleId) AND ([DetailScheduleId] = @Original_DetailScheduleId) AND ((@IsNull_InspectingOfficeId = 1 AND [InspectingOfficeId] IS NULL) OR ([InspectingOfficeId] = @Original_InspectingOfficeId)));
SELECT MonthlyScheduleId, DetailScheduleId, InspectingOfficeId FROM InspectionYearlyScheduleMonthwise WHERE (MonthlyScheduleId = @MonthlyScheduleId)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MonthlyScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MonthlyScheduleId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DetailScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DetailScheduleId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InspectingOfficeId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MonthlyScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MonthlyScheduleId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DetailScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DetailScheduleId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InspectingOfficeId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InspectingOfficeId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
        }
Beispiel #49
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "TourScheduleList";
     tableMapping.ColumnMappings.Add("scheduleId", "scheduleId");
     tableMapping.ColumnMappings.Add("startDate", "startDate");
     tableMapping.ColumnMappings.Add("endDate", "endDate");
     tableMapping.ColumnMappings.Add("createMode", "createMode");
     tableMapping.ColumnMappings.Add("maxSeats", "maxSeats");
     tableMapping.ColumnMappings.Add("bookCustomers", "bookCustomers");
     tableMapping.ColumnMappings.Add("priceAdult", "priceAdult");
     tableMapping.ColumnMappings.Add("priceChild", "priceChild");
     tableMapping.ColumnMappings.Add("tourGuide", "tourGuide");
     tableMapping.ColumnMappings.Add("Driver", "Driver");
     tableMapping.ColumnMappings.Add("status", "status");
     this._adapter.TableMappings.Add(tableMapping);
 }
Beispiel #50
0
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "InspectionItenary";
            tableMapping.ColumnMappings.Add("ItenaryId", "ItenaryId");
            tableMapping.ColumnMappings.Add("ScheduleId", "ScheduleId");
            tableMapping.ColumnMappings.Add("InspectingDate", "InspectingDate");
            tableMapping.ColumnMappings.Add("InspectingOfficeId", "InspectingOfficeId");
            tableMapping.ColumnMappings.Add("EndDate", "EndDate");
            tableMapping.ColumnMappings.Add("ItenaryDetails", "ItenaryDetails");
            tableMapping.ColumnMappings.Add("CreatedBy", "CreatedBy");
            tableMapping.ColumnMappings.Add("CreatedAt", "CreatedAt");
            tableMapping.ColumnMappings.Add("ModifiedBy", "ModifiedBy");
            tableMapping.ColumnMappings.Add("ModifiedAt", "ModifiedAt");
            tableMapping.ColumnMappings.Add("Month", "Month");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = @"DELETE FROM [InspectionItenary] WHERE (([ItenaryId] = @Original_ItenaryId) AND ((@IsNull_ScheduleId = 1 AND [ScheduleId] IS NULL) OR ([ScheduleId] = @Original_ScheduleId)) AND ((@IsNull_Month = 1 AND [Month] IS NULL) OR ([Month] = @Original_Month)) AND ((@IsNull_InspectingDate = 1 AND [InspectingDate] IS NULL) OR ([InspectingDate] = @Original_InspectingDate)) AND ((@IsNull_InspectingOfficeId = 1 AND [InspectingOfficeId] IS NULL) OR ([InspectingOfficeId] = @Original_InspectingOfficeId)) AND ((@IsNull_EndDate = 1 AND [EndDate] IS NULL) OR ([EndDate] = @Original_EndDate)) AND ((@IsNull_ItenaryDetails = 1 AND [ItenaryDetails] IS NULL) OR ([ItenaryDetails] = @Original_ItenaryDetails)) AND ((@IsNull_CreatedBy = 1 AND [CreatedBy] IS NULL) OR ([CreatedBy] = @Original_CreatedBy)) AND ((@IsNull_CreatedAt = 1 AND [CreatedAt] IS NULL) OR ([CreatedAt] = @Original_CreatedAt)) AND ((@IsNull_ModifiedBy = 1 AND [ModifiedBy] IS NULL) OR ([ModifiedBy] = @Original_ModifiedBy)) AND ((@IsNull_ModifiedAt = 1 AND [ModifiedAt] IS NULL) OR ([ModifiedAt] = @Original_ModifiedAt)))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItenaryId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItenaryId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ScheduleId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ScheduleId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ScheduleId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Month", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Month", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Month", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Month", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InspectingDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InspectingDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InspectingOfficeId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InspectingOfficeId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EndDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EndDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EndDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EndDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItenaryDetails", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItenaryDetails", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItenaryDetails", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItenaryDetails", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreatedBy", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreatedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreatedAt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreatedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModifiedBy", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModifiedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModifiedAt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModifiedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = @"INSERT INTO [InspectionItenary] ([ItenaryId], [ScheduleId], [Month], [InspectingDate], [InspectingOfficeId], [EndDate], [ItenaryDetails], [CreatedBy], [CreatedAt], [ModifiedBy], [ModifiedAt]) VALUES (@ItenaryId, @ScheduleId, @Month, @InspectingDate, @InspectingOfficeId, @EndDate, @ItenaryDetails, @CreatedBy, @CreatedAt, @ModifiedBy, @ModifiedAt);
SELECT ItenaryId, ScheduleId, Month, InspectingDate, InspectingOfficeId, EndDate, ItenaryDetails, CreatedBy, CreatedAt, ModifiedBy, ModifiedAt FROM InspectionItenary WHERE (ItenaryId = @ItenaryId)";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItenaryId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItenaryId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ScheduleId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Month", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Month", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InspectingDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InspectingOfficeId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EndDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EndDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItenaryDetails", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItenaryDetails", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreatedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreatedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModifiedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModifiedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = "UPDATE [InspectionItenary] SET [ItenaryId] = @ItenaryId, [ScheduleId] = @Schedule" +
                "Id, [Month] = @Month, [InspectingDate] = @InspectingDate, [InspectingOfficeId] =" +
                " @InspectingOfficeId, [EndDate] = @EndDate, [ItenaryDetails] = @ItenaryDetails, " +
                "[CreatedBy] = @CreatedBy, [CreatedAt] = @CreatedAt, [ModifiedBy] = @ModifiedBy, " +
                "[ModifiedAt] = @ModifiedAt WHERE (([ItenaryId] = @Original_ItenaryId) AND ((@IsN" +
                "ull_ScheduleId = 1 AND [ScheduleId] IS NULL) OR ([ScheduleId] = @Original_Schedu" +
                "leId)) AND ((@IsNull_Month = 1 AND [Month] IS NULL) OR ([Month] = @Original_Mont" +
                "h)) AND ((@IsNull_InspectingDate = 1 AND [InspectingDate] IS NULL) OR ([Inspecti" +
                "ngDate] = @Original_InspectingDate)) AND ((@IsNull_InspectingOfficeId = 1 AND [I" +
                "nspectingOfficeId] IS NULL) OR ([InspectingOfficeId] = @Original_InspectingOffic" +
                "eId)) AND ((@IsNull_EndDate = 1 AND [EndDate] IS NULL) OR ([EndDate] = @Original" +
                "_EndDate)) AND ((@IsNull_ItenaryDetails = 1 AND [ItenaryDetails] IS NULL) OR ([I" +
                "tenaryDetails] = @Original_ItenaryDetails)) AND ((@IsNull_CreatedBy = 1 AND [Cre" +
                "atedBy] IS NULL) OR ([CreatedBy] = @Original_CreatedBy)) AND ((@IsNull_CreatedAt" +
                " = 1 AND [CreatedAt] IS NULL) OR ([CreatedAt] = @Original_CreatedAt)) AND ((@IsN" +
                "ull_ModifiedBy = 1 AND [ModifiedBy] IS NULL) OR ([ModifiedBy] = @Original_Modifi" +
                "edBy)) AND ((@IsNull_ModifiedAt = 1 AND [ModifiedAt] IS NULL) OR ([ModifiedAt] =" +
                " @Original_ModifiedAt)));\r\nSELECT ItenaryId, ScheduleId, Month, InspectingDate, " +
                "InspectingOfficeId, EndDate, ItenaryDetails, CreatedBy, CreatedAt, ModifiedBy, M" +
                "odifiedAt FROM InspectionItenary WHERE (ItenaryId = @ItenaryId)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItenaryId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItenaryId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ScheduleId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Month", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Month", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InspectingDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InspectingOfficeId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EndDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EndDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItenaryDetails", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItenaryDetails", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreatedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreatedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModifiedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModifiedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItenaryId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItenaryId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ScheduleId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ScheduleId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ScheduleId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ScheduleId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Month", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Month", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Month", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Month", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InspectingDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InspectingDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InspectingOfficeId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InspectingOfficeId", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InspectingOfficeId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EndDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EndDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EndDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EndDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItenaryDetails", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItenaryDetails", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItenaryDetails", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItenaryDetails", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreatedBy", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreatedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedBy", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreatedAt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreatedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreatedAt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModifiedBy", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModifiedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedBy", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModifiedAt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModifiedAt", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModifiedAt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
        }
Beispiel #51
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "ScheduleBaseInfo";
     tableMapping.ColumnMappings.Add("scheduleId", "scheduleId");
     tableMapping.ColumnMappings.Add("vehicleId", "vehicleId");
     tableMapping.ColumnMappings.Add("maxSeats", "maxSeats");
     tableMapping.ColumnMappings.Add("driverId", "driverId");
     tableMapping.ColumnMappings.Add("driverAssistanceId", "driverAssistanceId");
     tableMapping.ColumnMappings.Add("tourGuideId", "tourGuideId");
     tableMapping.ColumnMappings.Add("tourGuideAssistanceId", "tourGuideAssistanceId");
     tableMapping.ColumnMappings.Add("vehicleName", "vehicleName");
     tableMapping.ColumnMappings.Add("customerSeatNum", "customerSeatNum");
     tableMapping.ColumnMappings.Add("driverName", "driverName");
     tableMapping.ColumnMappings.Add("driverAssName", "driverAssName");
     tableMapping.ColumnMappings.Add("tourGuideName", "tourGuideName");
     tableMapping.ColumnMappings.Add("tourGuideAssName", "tourGuideAssName");
     tableMapping.ColumnMappings.Add("status", "status");
     tableMapping.ColumnMappings.Add("subTitle", "subTitle");
     tableMapping.ColumnMappings.Add("startDate", "startDate");
     tableMapping.ColumnMappings.Add("endDate", "endDate");
     tableMapping.ColumnMappings.Add("tourId", "tourId");
     tableMapping.ColumnMappings.Add("tourDay", "tourDay");
     tableMapping.ColumnMappings.Add("maxWebSeats", "maxWebSeats");
     tableMapping.ColumnMappings.Add("priceAdult", "priceAdult");
     tableMapping.ColumnMappings.Add("priceChild", "priceChild");
     tableMapping.ColumnMappings.Add("hasSeatTable", "hasSeatTable");
     this._adapter.TableMappings.Add(tableMapping);
 }
 private void InitAdapter() {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "Companies";
     tableMapping.ColumnMappings.Add("ID", "ID");
     tableMapping.ColumnMappings.Add("Code", "Code");
     tableMapping.ColumnMappings.Add("Name", "Name");
     tableMapping.ColumnMappings.Add("Type", "Type");
     tableMapping.ColumnMappings.Add("Active", "Active");
     tableMapping.ColumnMappings.Add("PhoneOffice", "PhoneOffice");
     tableMapping.ColumnMappings.Add("PhoneAlternate", "PhoneAlternate");
     tableMapping.ColumnMappings.Add("PhoneFax", "PhoneFax");
     tableMapping.ColumnMappings.Add("Website", "Website");
     tableMapping.ColumnMappings.Add("Ownership", "Ownership");
     tableMapping.ColumnMappings.Add("Employees", "Employees");
     tableMapping.ColumnMappings.Add("Industry", "Industry");
     tableMapping.ColumnMappings.Add("AnnualRevenue", "AnnualRevenue");
     tableMapping.ColumnMappings.Add("BillingAddressStreet", "BillingAddressStreet");
     tableMapping.ColumnMappings.Add("BillingAddressCity", "BillingAddressCity");
     tableMapping.ColumnMappings.Add("BillingAddressState", "BillingAddressState");
     tableMapping.ColumnMappings.Add("BillingAddressPostalCode", "BillingAddressPostalCode");
     tableMapping.ColumnMappings.Add("BillingAddressCountry", "BillingAddressCountry");
     tableMapping.ColumnMappings.Add("ShippingAddressStreet", "ShippingAddressStreet");
     tableMapping.ColumnMappings.Add("ShippingAddressCity", "ShippingAddressCity");
     tableMapping.ColumnMappings.Add("ShippingAddressState", "ShippingAddressState");
     tableMapping.ColumnMappings.Add("ShippingAddressPostalCode", "ShippingAddressPostalCode");
     tableMapping.ColumnMappings.Add("ShippingAddressCountry", "ShippingAddressCountry");
     tableMapping.ColumnMappings.Add("BillingContactPerson", "BillingContactPerson");
     tableMapping.ColumnMappings.Add("BillingContactPhone", "BillingContactPhone");
     tableMapping.ColumnMappings.Add("ShippingContactPerson", "ShippingContactPerson");
     tableMapping.ColumnMappings.Add("ShippingContactPhone", "ShippingContactPhone");
     tableMapping.ColumnMappings.Add("EmailAddress", "EmailAddress");
     this._adapter.TableMappings.Add(tableMapping);
     this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.DeleteCommand.Connection = this.Connection;
     this._adapter.DeleteCommand.CommandText = "DELETE FROM [Companies] WHERE (([ID] = @Original_ID) AND ([Code] = @Original_Code" +
         ") AND ([Name] = @Original_Name) AND ([Type] = @Original_Type) AND ([Active] = @O" +
         "riginal_Active) AND ((@IsNull_PhoneOffice = 1 AND [PhoneOffice] IS NULL) OR ([Ph" +
         "oneOffice] = @Original_PhoneOffice)) AND ((@IsNull_PhoneAlternate = 1 AND [Phone" +
         "Alternate] IS NULL) OR ([PhoneAlternate] = @Original_PhoneAlternate)) AND ((@IsN" +
         "ull_PhoneFax = 1 AND [PhoneFax] IS NULL) OR ([PhoneFax] = @Original_PhoneFax)) A" +
         "ND ((@IsNull_Website = 1 AND [Website] IS NULL) OR ([Website] = @Original_Websit" +
         "e)) AND ((@IsNull_Ownership = 1 AND [Ownership] IS NULL) OR ([Ownership] = @Orig" +
         "inal_Ownership)) AND ((@IsNull_Employees = 1 AND [Employees] IS NULL) OR ([Emplo" +
         "yees] = @Original_Employees)) AND ((@IsNull_Industry = 1 AND [Industry] IS NULL)" +
         " OR ([Industry] = @Original_Industry)) AND ((@IsNull_AnnualRevenue = 1 AND [Annu" +
         "alRevenue] IS NULL) OR ([AnnualRevenue] = @Original_AnnualRevenue)) AND ((@IsNul" +
         "l_BillingAddressStreet = 1 AND [BillingAddressStreet] IS NULL) OR ([BillingAddre" +
         "ssStreet] = @Original_BillingAddressStreet)) AND ((@IsNull_BillingAddressCity = " +
         "1 AND [BillingAddressCity] IS NULL) OR ([BillingAddressCity] = @Original_Billing" +
         "AddressCity)) AND ((@IsNull_BillingAddressState = 1 AND [BillingAddressState] IS" +
         " NULL) OR ([BillingAddressState] = @Original_BillingAddressState)) AND ((@IsNull" +
         "_BillingAddressPostalCode = 1 AND [BillingAddressPostalCode] IS NULL) OR ([Billi" +
         "ngAddressPostalCode] = @Original_BillingAddressPostalCode)) AND ((@IsNull_Billin" +
         "gAddressCountry = 1 AND [BillingAddressCountry] IS NULL) OR ([BillingAddressCoun" +
         "try] = @Original_BillingAddressCountry)) AND ((@IsNull_BillingContactPerson = 1 " +
         "AND [BillingContactPerson] IS NULL) OR ([BillingContactPerson] = @Original_Billi" +
         "ngContactPerson)) AND ((@IsNull_BillingContactPhone = 1 AND [BillingContactPhone" +
         "] IS NULL) OR ([BillingContactPhone] = @Original_BillingContactPhone)) AND ((@Is" +
         "Null_ShippingAddressStreet = 1 AND [ShippingAddressStreet] IS NULL) OR ([Shippin" +
         "gAddressStreet] = @Original_ShippingAddressStreet)) AND ((@IsNull_ShippingAddres" +
         "sCity = 1 AND [ShippingAddressCity] IS NULL) OR ([ShippingAddressCity] = @Origin" +
         "al_ShippingAddressCity)) AND ((@IsNull_ShippingAddressState = 1 AND [ShippingAdd" +
         "ressState] IS NULL) OR ([ShippingAddressState] = @Original_ShippingAddressState)" +
         ") AND ((@IsNull_ShippingAddressPostalCode = 1 AND [ShippingAddressPostalCode] IS" +
         " NULL) OR ([ShippingAddressPostalCode] = @Original_ShippingAddressPostalCode)) A" +
         "ND ((@IsNull_ShippingAddressCountry = 1 AND [ShippingAddressCountry] IS NULL) OR" +
         " ([ShippingAddressCountry] = @Original_ShippingAddressCountry)) AND ((@IsNull_Sh" +
         "ippingContactPerson = 1 AND [ShippingContactPerson] IS NULL) OR ([ShippingContac" +
         "tPerson] = @Original_ShippingContactPerson)) AND ((@IsNull_ShippingContactPhone " +
         "= 1 AND [ShippingContactPhone] IS NULL) OR ([ShippingContactPhone] = @Original_S" +
         "hippingContactPhone)) AND ((@IsNull_EmailAddress = 1 AND [EmailAddress] IS NULL)" +
         " OR ([EmailAddress] = @Original_EmailAddress)))";
     this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Type", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhoneOffice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneOffice", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhoneOffice", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneOffice", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhoneAlternate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneAlternate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhoneAlternate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneAlternate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhoneFax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneFax", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhoneFax", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneFax", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Website", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Website", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Website", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Website", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Ownership", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ownership", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Ownership", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ownership", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Employees", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Employees", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Employees", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Employees", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Industry", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Industry", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Industry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Industry", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_AnnualRevenue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnualRevenue", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AnnualRevenue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnualRevenue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingAddressStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressStreet", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingAddressStreet", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingAddressCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCity", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingAddressCity", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingAddressState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressState", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingAddressState", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressState", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingAddressPostalCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressPostalCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingAddressPostalCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressPostalCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingAddressCountry", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCountry", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingAddressCountry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCountry", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingContactPerson", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPerson", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingContactPerson", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPerson", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingContactPhone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPhone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingContactPhone", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPhone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingAddressStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressStreet", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingAddressStreet", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingAddressCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCity", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingAddressCity", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingAddressState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressState", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingAddressState", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressState", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingAddressPostalCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressPostalCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingAddressPostalCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressPostalCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingAddressCountry", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCountry", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingAddressCountry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCountry", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingContactPerson", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPerson", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingContactPerson", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPerson", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingContactPhone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPhone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingContactPhone", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPhone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EmailAddress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EmailAddress", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EmailAddress", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EmailAddress", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.InsertCommand.Connection = this.Connection;
     this._adapter.InsertCommand.CommandText = "INSERT INTO [Companies] ([Code], [Name], [Type], [Active], [PhoneOffice], [PhoneA" +
         "lternate], [PhoneFax], [Website], [Ownership], [Employees], [Industry], [AnnualR" +
         "evenue], [BillingAddressStreet], [BillingAddressCity], [BillingAddressState], [B" +
         "illingAddressPostalCode], [BillingAddressCountry], [BillingContactPerson], [Bill" +
         "ingContactPhone], [ShippingAddressStreet], [ShippingAddressCity], [ShippingAddre" +
         "ssState], [ShippingAddressPostalCode], [ShippingAddressCountry], [ShippingContac" +
         "tPerson], [ShippingContactPhone], [EmailAddress]) VALUES (@Code, @Name, @Type, @" +
         "Active, @PhoneOffice, @PhoneAlternate, @PhoneFax, @Website, @Ownership, @Employe" +
         "es, @Industry, @AnnualRevenue, @BillingAddressStreet, @BillingAddressCity, @Bill" +
         "ingAddressState, @BillingAddressPostalCode, @BillingAddressCountry, @BillingCont" +
         "actPerson, @BillingContactPhone, @ShippingAddressStreet, @ShippingAddressCity, @" +
         "ShippingAddressState, @ShippingAddressPostalCode, @ShippingAddressCountry, @Ship" +
         "pingContactPerson, @ShippingContactPhone, @EmailAddress);\r\nSELECT ID, Code, Name" +
         ", Type, Active, PhoneOffice, PhoneAlternate, PhoneFax, Website, Ownership, Emplo" +
         "yees, Industry, AnnualRevenue, BillingAddressStreet, BillingAddressCity, Billing" +
         "AddressState, BillingAddressPostalCode, BillingAddressCountry, BillingContactPer" +
         "son, BillingContactPhone, ShippingAddressStreet, ShippingAddressCity, ShippingAd" +
         "dressState, ShippingAddressPostalCode, ShippingAddressCountry, ShippingContactPe" +
         "rson, ShippingContactPhone, EmailAddress FROM Companies WHERE (ID = SCOPE_IDENTI" +
         "TY())";
     this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Type", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhoneOffice", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneOffice", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhoneAlternate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneAlternate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhoneFax", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneFax", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Website", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Website", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ownership", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ownership", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Employees", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Employees", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Industry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Industry", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AnnualRevenue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnualRevenue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingAddressStreet", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressStreet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingAddressCity", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingAddressState", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressState", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingAddressPostalCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressPostalCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingAddressCountry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCountry", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingContactPerson", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPerson", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingContactPhone", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPhone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingAddressStreet", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressStreet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingAddressCity", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingAddressState", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressState", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingAddressPostalCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressPostalCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingAddressCountry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCountry", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingContactPerson", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPerson", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingContactPhone", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPhone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EmailAddress", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EmailAddress", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
     this._adapter.UpdateCommand.Connection = this.Connection;
     this._adapter.UpdateCommand.CommandText = "UPDATE [Companies] SET [Code] = @Code, [Name] = @Name, [Type] = @Type, [Active] =" +
         " @Active, [PhoneOffice] = @PhoneOffice, [PhoneAlternate] = @PhoneAlternate, [Pho" +
         "neFax] = @PhoneFax, [Website] = @Website, [Ownership] = @Ownership, [Employees] " +
         "= @Employees, [Industry] = @Industry, [AnnualRevenue] = @AnnualRevenue, [Billing" +
         "AddressStreet] = @BillingAddressStreet, [BillingAddressCity] = @BillingAddressCi" +
         "ty, [BillingAddressState] = @BillingAddressState, [BillingAddressPostalCode] = @" +
         "BillingAddressPostalCode, [BillingAddressCountry] = @BillingAddressCountry, [Bil" +
         "lingContactPerson] = @BillingContactPerson, [BillingContactPhone] = @BillingCont" +
         "actPhone, [ShippingAddressStreet] = @ShippingAddressStreet, [ShippingAddressCity" +
         "] = @ShippingAddressCity, [ShippingAddressState] = @ShippingAddressState, [Shipp" +
         "ingAddressPostalCode] = @ShippingAddressPostalCode, [ShippingAddressCountry] = @" +
         "ShippingAddressCountry, [ShippingContactPerson] = @ShippingContactPerson, [Shipp" +
         "ingContactPhone] = @ShippingContactPhone, [EmailAddress] = @EmailAddress WHERE (" +
         "([ID] = @Original_ID) AND ([Code] = @Original_Code) AND ([Name] = @Original_Name" +
         ") AND ([Type] = @Original_Type) AND ([Active] = @Original_Active) AND ((@IsNull_" +
         "PhoneOffice = 1 AND [PhoneOffice] IS NULL) OR ([PhoneOffice] = @Original_PhoneOf" +
         "fice)) AND ((@IsNull_PhoneAlternate = 1 AND [PhoneAlternate] IS NULL) OR ([Phone" +
         "Alternate] = @Original_PhoneAlternate)) AND ((@IsNull_PhoneFax = 1 AND [PhoneFax" +
         "] IS NULL) OR ([PhoneFax] = @Original_PhoneFax)) AND ((@IsNull_Website = 1 AND [" +
         "Website] IS NULL) OR ([Website] = @Original_Website)) AND ((@IsNull_Ownership = " +
         "1 AND [Ownership] IS NULL) OR ([Ownership] = @Original_Ownership)) AND ((@IsNull" +
         "_Employees = 1 AND [Employees] IS NULL) OR ([Employees] = @Original_Employees)) " +
         "AND ((@IsNull_Industry = 1 AND [Industry] IS NULL) OR ([Industry] = @Original_In" +
         "dustry)) AND ((@IsNull_AnnualRevenue = 1 AND [AnnualRevenue] IS NULL) OR ([Annua" +
         "lRevenue] = @Original_AnnualRevenue)) AND ((@IsNull_BillingAddressStreet = 1 AND" +
         " [BillingAddressStreet] IS NULL) OR ([BillingAddressStreet] = @Original_BillingA" +
         "ddressStreet)) AND ((@IsNull_BillingAddressCity = 1 AND [BillingAddressCity] IS " +
         "NULL) OR ([BillingAddressCity] = @Original_BillingAddressCity)) AND ((@IsNull_Bi" +
         "llingAddressState = 1 AND [BillingAddressState] IS NULL) OR ([BillingAddressStat" +
         "e] = @Original_BillingAddressState)) AND ((@IsNull_BillingAddressPostalCode = 1 " +
         "AND [BillingAddressPostalCode] IS NULL) OR ([BillingAddressPostalCode] = @Origin" +
         "al_BillingAddressPostalCode)) AND ((@IsNull_BillingAddressCountry = 1 AND [Billi" +
         "ngAddressCountry] IS NULL) OR ([BillingAddressCountry] = @Original_BillingAddres" +
         "sCountry)) AND ((@IsNull_BillingContactPerson = 1 AND [BillingContactPerson] IS " +
         "NULL) OR ([BillingContactPerson] = @Original_BillingContactPerson)) AND ((@IsNul" +
         "l_BillingContactPhone = 1 AND [BillingContactPhone] IS NULL) OR ([BillingContact" +
         "Phone] = @Original_BillingContactPhone)) AND ((@IsNull_ShippingAddressStreet = 1" +
         " AND [ShippingAddressStreet] IS NULL) OR ([ShippingAddressStreet] = @Original_Sh" +
         "ippingAddressStreet)) AND ((@IsNull_ShippingAddressCity = 1 AND [ShippingAddress" +
         "City] IS NULL) OR ([ShippingAddressCity] = @Original_ShippingAddressCity)) AND (" +
         "(@IsNull_ShippingAddressState = 1 AND [ShippingAddressState] IS NULL) OR ([Shipp" +
         "ingAddressState] = @Original_ShippingAddressState)) AND ((@IsNull_ShippingAddres" +
         "sPostalCode = 1 AND [ShippingAddressPostalCode] IS NULL) OR ([ShippingAddressPos" +
         "talCode] = @Original_ShippingAddressPostalCode)) AND ((@IsNull_ShippingAddressCo" +
         "untry = 1 AND [ShippingAddressCountry] IS NULL) OR ([ShippingAddressCountry] = @" +
         "Original_ShippingAddressCountry)) AND ((@IsNull_ShippingContactPerson = 1 AND [S" +
         "hippingContactPerson] IS NULL) OR ([ShippingContactPerson] = @Original_ShippingC" +
         "ontactPerson)) AND ((@IsNull_ShippingContactPhone = 1 AND [ShippingContactPhone]" +
         " IS NULL) OR ([ShippingContactPhone] = @Original_ShippingContactPhone)) AND ((@I" +
         "sNull_EmailAddress = 1 AND [EmailAddress] IS NULL) OR ([EmailAddress] = @Origina" +
         "l_EmailAddress)));\r\nSELECT ID, Code, Name, Type, Active, PhoneOffice, PhoneAlter" +
         "nate, PhoneFax, Website, Ownership, Employees, Industry, AnnualRevenue, BillingA" +
         "ddressStreet, BillingAddressCity, BillingAddressState, BillingAddressPostalCode," +
         " BillingAddressCountry, BillingContactPerson, BillingContactPhone, ShippingAddre" +
         "ssStreet, ShippingAddressCity, ShippingAddressState, ShippingAddressPostalCode, " +
         "ShippingAddressCountry, ShippingContactPerson, ShippingContactPhone, EmailAddres" +
         "s FROM Companies WHERE (ID = @ID)";
     this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Type", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhoneOffice", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneOffice", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhoneAlternate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneAlternate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhoneFax", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneFax", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Website", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Website", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ownership", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ownership", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Employees", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Employees", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Industry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Industry", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AnnualRevenue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnualRevenue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingAddressStreet", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressStreet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingAddressCity", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingAddressState", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressState", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingAddressPostalCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressPostalCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingAddressCountry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCountry", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingContactPerson", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPerson", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BillingContactPhone", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPhone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingAddressStreet", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressStreet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingAddressCity", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingAddressState", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressState", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingAddressPostalCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressPostalCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingAddressCountry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCountry", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingContactPerson", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPerson", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShippingContactPhone", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPhone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EmailAddress", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EmailAddress", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Type", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhoneOffice", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneOffice", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhoneOffice", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneOffice", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhoneAlternate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneAlternate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhoneAlternate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneAlternate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhoneFax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneFax", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhoneFax", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneFax", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Website", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Website", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Website", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Website", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Ownership", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ownership", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Ownership", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ownership", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Employees", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Employees", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Employees", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Employees", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Industry", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Industry", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Industry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Industry", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_AnnualRevenue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnualRevenue", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AnnualRevenue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnualRevenue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingAddressStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressStreet", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingAddressStreet", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingAddressCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCity", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingAddressCity", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingAddressState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressState", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingAddressState", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressState", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingAddressPostalCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressPostalCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingAddressPostalCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressPostalCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingAddressCountry", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCountry", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingAddressCountry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingAddressCountry", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingContactPerson", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPerson", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingContactPerson", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPerson", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BillingContactPhone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPhone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BillingContactPhone", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BillingContactPhone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingAddressStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressStreet", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingAddressStreet", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingAddressCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCity", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingAddressCity", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingAddressState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressState", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingAddressState", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressState", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingAddressPostalCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressPostalCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingAddressPostalCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressPostalCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingAddressCountry", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCountry", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingAddressCountry", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingAddressCountry", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingContactPerson", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPerson", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingContactPerson", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPerson", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ShippingContactPhone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPhone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ShippingContactPhone", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ShippingContactPhone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EmailAddress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EmailAddress", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EmailAddress", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EmailAddress", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
     this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
 }
Beispiel #53
0
 private void InitAdapter() {
     this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
     global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
     tableMapping.SourceTable = "Table";
     tableMapping.DataSetTable = "FreeSchedules";
     tableMapping.ColumnMappings.Add("scheduleId", "scheduleId");
     tableMapping.ColumnMappings.Add("subTitle", "subTitle");
     tableMapping.ColumnMappings.Add("bookCustomers", "bookCustomers");
     tableMapping.ColumnMappings.Add("actualCustomers", "actualCustomers");
     tableMapping.ColumnMappings.Add("priceAdult", "priceAdult");
     tableMapping.ColumnMappings.Add("priceChild", "priceChild");
     tableMapping.ColumnMappings.Add("status", "status");
     tableMapping.ColumnMappings.Add("tourId", "tourId");
     tableMapping.ColumnMappings.Add("TourName", "TourName");
     tableMapping.ColumnMappings.Add("TourName_cn", "TourName_cn");
     this._adapter.TableMappings.Add(tableMapping);
 }
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "ItemInventories";
            tableMapping.ColumnMappings.Add("ItemID", "ItemID");
            tableMapping.ColumnMappings.Add("WarehouseID", "WarehouseID");
            tableMapping.ColumnMappings.Add("Quantity", "Quantity");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ItemInventories] WHERE (([ItemID] = @Original_ItemID) AND ([Wa" +
                "rehouseID] = @Original_WarehouseID) AND ([Quantity] = @Original_Quantity))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_WarehouseID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WarehouseID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ItemInventories] ([ItemID], [WarehouseID], [Quantity]) VALUES " +
                "(@ItemID, @WarehouseID, @Quantity);\r\nSELECT ItemID, WarehouseID, Quantity FROM I" +
                "temInventories WHERE (ItemID = @ItemID) AND (WarehouseID = @WarehouseID)";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@WarehouseID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WarehouseID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ItemInventories] SET [ItemID] = @ItemID, [WarehouseID] = @WarehouseID, [Quantity] = @Quantity WHERE (([ItemID] = @Original_ItemID) AND ([WarehouseID] = @Original_WarehouseID) AND ([Quantity] = @Original_Quantity));
SELECT ItemID, WarehouseID, Quantity FROM ItemInventories WHERE (ItemID = @ItemID) AND (WarehouseID = @WarehouseID)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@WarehouseID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WarehouseID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_WarehouseID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WarehouseID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", 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));
 }
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "OrderDetails";
            tableMapping.ColumnMappings.Add("ID", "ID");
            tableMapping.ColumnMappings.Add("OrderID", "OrderID");
            tableMapping.ColumnMappings.Add("ItemID", "ItemID");
            tableMapping.ColumnMappings.Add("Quantity", "Quantity");
            tableMapping.ColumnMappings.Add("UnitPrice", "UnitPrice");
            tableMapping.ColumnMappings.Add("TaxPct", "TaxPct");
            tableMapping.ColumnMappings.Add("TrxType", "TrxType");
            tableMapping.ColumnMappings.Add("Remarks", "Remarks");
            tableMapping.ColumnMappings.Add("ReferenceID", "ReferenceID");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = @"DELETE FROM [OrderDetails] WHERE (([ID] = @Original_ID) AND ([OrderID] = @Original_OrderID) AND ((@IsNull_ItemID = 1 AND [ItemID] IS NULL) OR ([ItemID] = @Original_ItemID)) AND ([Quantity] = @Original_Quantity) AND ([UnitPrice] = @Original_UnitPrice) AND ([TaxPct] = @Original_TaxPct) AND ((@IsNull_TrxType = 1 AND [TrxType] IS NULL) OR ([TrxType] = @Original_TrxType)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_ReferenceID = 1 AND [ReferenceID] IS NULL) OR ([ReferenceID] = @Original_ReferenceID)))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UnitPrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UnitPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TaxPct", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TaxPct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TrxType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TrxType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TrxType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TrxType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Remarks", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Remarks", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ReferenceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReferenceID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReferenceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReferenceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = @"INSERT INTO [OrderDetails] ([OrderID], [ItemID], [Quantity], [UnitPrice], [TaxPct], [TrxType], [Remarks], [ReferenceID]) VALUES (@OrderID, @ItemID, @Quantity, @UnitPrice, @TaxPct, @TrxType, @Remarks, @ReferenceID);
SELECT ID, OrderID, ItemID, Quantity, UnitPrice, TaxPct, TrxType, Remarks, ReferenceID FROM OrderDetails WHERE (ID = SCOPE_IDENTITY())";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UnitPrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UnitPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TaxPct", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TaxPct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TrxType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TrxType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remarks", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReferenceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReferenceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = @"UPDATE [OrderDetails] SET [OrderID] = @OrderID, [ItemID] = @ItemID, [Quantity] = @Quantity, [UnitPrice] = @UnitPrice, [TaxPct] = @TaxPct, [TrxType] = @TrxType, [Remarks] = @Remarks, [ReferenceID] = @ReferenceID WHERE (([ID] = @Original_ID) AND ([OrderID] = @Original_OrderID) AND ((@IsNull_ItemID = 1 AND [ItemID] IS NULL) OR ([ItemID] = @Original_ItemID)) AND ([Quantity] = @Original_Quantity) AND ([UnitPrice] = @Original_UnitPrice) AND ([TaxPct] = @Original_TaxPct) AND ((@IsNull_TrxType = 1 AND [TrxType] IS NULL) OR ([TrxType] = @Original_TrxType)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_ReferenceID = 1 AND [ReferenceID] IS NULL) OR ([ReferenceID] = @Original_ReferenceID)));
SELECT ID, OrderID, ItemID, Quantity, UnitPrice, TaxPct, TrxType, Remarks, ReferenceID FROM OrderDetails WHERE (ID = @ID)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UnitPrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UnitPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TaxPct", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TaxPct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TrxType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TrxType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remarks", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReferenceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReferenceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UnitPrice", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UnitPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TaxPct", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TaxPct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TrxType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TrxType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TrxType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TrxType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Remarks", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Remarks", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ReferenceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReferenceID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReferenceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReferenceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, 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 = "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));
 }
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "Orders";
            tableMapping.ColumnMappings.Add("ID", "ID");
            tableMapping.ColumnMappings.Add("OrderNo", "OrderNo");
            tableMapping.ColumnMappings.Add("OrderType", "OrderType");
            tableMapping.ColumnMappings.Add("OrderValue", "OrderValue");
            tableMapping.ColumnMappings.Add("OrderDate", "OrderDate");
            tableMapping.ColumnMappings.Add("RequiredDate", "RequiredDate");
            tableMapping.ColumnMappings.Add("DeliveryCost", "DeliveryCost");
            tableMapping.ColumnMappings.Add("Remarks", "Remarks");
            tableMapping.ColumnMappings.Add("CompanyID", "CompanyID");
            tableMapping.ColumnMappings.Add("CurrencyID", "CurrencyID");
            tableMapping.ColumnMappings.Add("ParentID", "ParentID");
            tableMapping.ColumnMappings.Add("DeliveryNumber", "DeliveryNumber");
            tableMapping.ColumnMappings.Add("WarehouseID", "WarehouseID");
            tableMapping.ColumnMappings.Add("PaymentType", "PaymentType");
            tableMapping.ColumnMappings.Add("PaymentValue", "PaymentValue");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Orders] WHERE (([ID] = @Original_ID) AND ([OrderNo] = @Original_OrderNo) AND ([OrderType] = @Original_OrderType) AND ((@IsNull_OrderValue = 1 AND [OrderValue] IS NULL) OR ([OrderValue] = @Original_OrderValue)) AND ((@IsNull_OrderDate = 1 AND [OrderDate] IS NULL) OR ([OrderDate] = @Original_OrderDate)) AND ((@IsNull_RequiredDate = 1 AND [RequiredDate] IS NULL) OR ([RequiredDate] = @Original_RequiredDate)) AND ((@IsNull_DeliveryCost = 1 AND [DeliveryCost] IS NULL) OR ([DeliveryCost] = @Original_DeliveryCost)) AND ((@IsNull_DeliveryNumber = 1 AND [DeliveryNumber] IS NULL) OR ([DeliveryNumber] = @Original_DeliveryNumber)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_ParentID = 1 AND [ParentID] IS NULL) OR ([ParentID] = @Original_ParentID)) AND ((@IsNull_CompanyID = 1 AND [CompanyID] IS NULL) OR ([CompanyID] = @Original_CompanyID)) AND ((@IsNull_CurrencyID = 1 AND [CurrencyID] IS NULL) OR ([CurrencyID] = @Original_CurrencyID)) AND ((@IsNull_WarehouseID = 1 AND [WarehouseID] IS NULL) OR ([WarehouseID] = @Original_WarehouseID)) AND ((@IsNull_PaymentType = 1 AND [PaymentType] IS NULL) OR ([PaymentType] = @Original_PaymentType)) AND ((@IsNull_PaymentValue = 1 AND [PaymentValue] IS NULL) OR ([PaymentValue] = @Original_PaymentValue)))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderType", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderValue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderValue", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderValue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RequiredDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RequiredDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RequiredDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RequiredDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DeliveryCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DeliveryCost", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DeliveryNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DeliveryNumber", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Remarks", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Remarks", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ParentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ParentID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ParentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ParentID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CurrencyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrencyID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CurrencyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrencyID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_WarehouseID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WarehouseID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_WarehouseID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WarehouseID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PaymentType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaymentType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PaymentValue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentValue", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaymentValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentValue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = @"INSERT INTO [Orders] ([OrderNo], [OrderType], [OrderValue], [OrderDate], [RequiredDate], [DeliveryCost], [DeliveryNumber], [Remarks], [ParentID], [CompanyID], [CurrencyID], [WarehouseID], [PaymentType], [PaymentValue]) VALUES (@OrderNo, @OrderType, @OrderValue, @OrderDate, @RequiredDate, @DeliveryCost, @DeliveryNumber, @Remarks, @ParentID, @CompanyID, @CurrencyID, @WarehouseID, @PaymentType, @PaymentValue);
SELECT ID, OrderNo, OrderType, OrderValue, OrderDate, RequiredDate, DeliveryCost, DeliveryNumber, Remarks, ParentID, CompanyID, CurrencyID, WarehouseID, PaymentType, PaymentValue FROM Orders WHERE (ID = SCOPE_IDENTITY())";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderType", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderValue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RequiredDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RequiredDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeliveryCost", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeliveryNumber", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remarks", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ParentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ParentID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrencyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrencyID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@WarehouseID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WarehouseID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaymentType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaymentValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentValue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = "UPDATE [Orders] SET [OrderNo] = @OrderNo, [OrderType] = @OrderType, [OrderValue] " +
                "= @OrderValue, [OrderDate] = @OrderDate, [RequiredDate] = @RequiredDate, [Delive" +
                "ryCost] = @DeliveryCost, [DeliveryNumber] = @DeliveryNumber, [Remarks] = @Remark" +
                "s, [ParentID] = @ParentID, [CompanyID] = @CompanyID, [CurrencyID] = @CurrencyID," +
                " [WarehouseID] = @WarehouseID, [PaymentType] = @PaymentType, [PaymentValue] = @P" +
                "aymentValue WHERE (([ID] = @Original_ID) AND ([OrderNo] = @Original_OrderNo) AND" +
                " ([OrderType] = @Original_OrderType) AND ((@IsNull_OrderValue = 1 AND [OrderValu" +
                "e] IS NULL) OR ([OrderValue] = @Original_OrderValue)) AND ((@IsNull_OrderDate = " +
                "1 AND [OrderDate] IS NULL) OR ([OrderDate] = @Original_OrderDate)) AND ((@IsNull" +
                "_RequiredDate = 1 AND [RequiredDate] IS NULL) OR ([RequiredDate] = @Original_Req" +
                "uiredDate)) AND ((@IsNull_DeliveryCost = 1 AND [DeliveryCost] IS NULL) OR ([Deli" +
                "veryCost] = @Original_DeliveryCost)) AND ((@IsNull_DeliveryNumber = 1 AND [Deliv" +
                "eryNumber] IS NULL) OR ([DeliveryNumber] = @Original_DeliveryNumber)) AND ((@IsN" +
                "ull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND (" +
                "(@IsNull_ParentID = 1 AND [ParentID] IS NULL) OR ([ParentID] = @Original_ParentI" +
                "D)) AND ((@IsNull_CompanyID = 1 AND [CompanyID] IS NULL) OR ([CompanyID] = @Orig" +
                "inal_CompanyID)) AND ((@IsNull_CurrencyID = 1 AND [CurrencyID] IS NULL) OR ([Cur" +
                "rencyID] = @Original_CurrencyID)) AND ((@IsNull_WarehouseID = 1 AND [WarehouseID" +
                "] IS NULL) OR ([WarehouseID] = @Original_WarehouseID)) AND ((@IsNull_PaymentType" +
                " = 1 AND [PaymentType] IS NULL) OR ([PaymentType] = @Original_PaymentType)) AND " +
                "((@IsNull_PaymentValue = 1 AND [PaymentValue] IS NULL) OR ([PaymentValue] = @Ori" +
                "ginal_PaymentValue)));\r\nSELECT ID, OrderNo, OrderType, OrderValue, OrderDate, Re" +
                "quiredDate, DeliveryCost, DeliveryNumber, Remarks, ParentID, CompanyID, Currency" +
                "ID, WarehouseID, PaymentType, PaymentValue FROM Orders WHERE (ID = @ID)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderType", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderValue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RequiredDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RequiredDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeliveryCost", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeliveryNumber", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remarks", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ParentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ParentID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrencyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrencyID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@WarehouseID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WarehouseID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaymentType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaymentValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentValue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderType", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderValue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderValue", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderValue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RequiredDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RequiredDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RequiredDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RequiredDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DeliveryCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DeliveryCost", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DeliveryNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DeliveryNumber", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DeliveryNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Remarks", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Remarks", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remarks", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ParentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ParentID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ParentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ParentID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CompanyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CompanyID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CurrencyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrencyID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CurrencyID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrencyID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_WarehouseID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WarehouseID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_WarehouseID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "WarehouseID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PaymentType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaymentType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PaymentValue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentValue", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaymentValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentValue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, 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));
 }
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "Currencies";
            tableMapping.ColumnMappings.Add("ID", "ID");
            tableMapping.ColumnMappings.Add("Code", "Code");
            tableMapping.ColumnMappings.Add("Name", "Name");
            tableMapping.ColumnMappings.Add("Active", "Active");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Currencies] WHERE (([ID] = @Original_ID) AND ([Code] = @Origin" +
                "al_Code) AND ([Name] = @Original_Name) AND ([Active] = @Original_Active))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Currencies] ([Code], [Name], [Active]) VALUES (@Code, @Name, @" +
                "Active);\r\nSELECT ID, Code, Name, Active FROM Currencies WHERE (ID = SCOPE_IDENTI" +
                "TY())";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Currencies] SET [Code] = @Code, [Name] = @Name, [Active] = @Active WHERE (([ID] = @Original_ID) AND ([Code] = @Original_Code) AND ([Name] = @Original_Name) AND ([Active] = @Original_Active));
SELECT ID, Code, Name, Active FROM Currencies WHERE (ID = @ID)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
        }