📄 银行储蓄系统dataset4.designer.cs
字号:
public 帐号信息RowChangeEvent(帐号信息Row row, System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 帐号信息Row Row {
get {
return this.eventRow;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace Store.银行储蓄系统DataSet4TableAdapters {
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.ComponentModel.ToolboxItem(true)]
[System.ComponentModel.DataObjectAttribute(true)]
[System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class 帐号信息TableAdapter : System.ComponentModel.Component {
private System.Data.SqlClient.SqlDataAdapter _adapter;
private System.Data.SqlClient.SqlConnection _connection;
private System.Data.SqlClient.SqlCommand[] _commandCollection;
private bool _clearBeforeFill;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 帐号信息TableAdapter() {
this.ClearBeforeFill = true;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private System.Data.SqlClient.SqlDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected System.Data.SqlClient.SqlCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitAdapter() {
this._adapter = new System.Data.SqlClient.SqlDataAdapter();
System.Data.Common.DataTableMapping tableMapping = new System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "帐号信息";
tableMapping.ColumnMappings.Add("用户帐号", "用户帐号");
tableMapping.ColumnMappings.Add("类型", "类型");
tableMapping.ColumnMappings.Add("金额", "金额");
tableMapping.ColumnMappings.Add("利率", "利率");
tableMapping.ColumnMappings.Add("期限", "期限");
tableMapping.ColumnMappings.Add("密码", "密码");
tableMapping.ColumnMappings.Add("开户日期", "开户日期");
tableMapping.ColumnMappings.Add("利息", "利息");
tableMapping.ColumnMappings.Add("储户编号", "储户编号");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[帐号信息] WHERE (([用户帐号] = @Original_用户帐号) AND ([类型] = @Original_类型) AND ([金额] = @Original_金额) AND ([利率] = @Original_利率) AND ([期限] = @Original_期限) AND ([密码] = @Original_密码) AND ([开户日期] = @Original_开户日期) AND ([利息] = @Original_利息) AND ([储户编号] = @Original_储户编号))";
this._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_用户帐号", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "用户帐号", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_类型", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "类型", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_金额", System.Data.SqlDbType.Money, 0, System.Data.ParameterDirection.Input, 0, 0, "金额", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_利率", System.Data.SqlDbType.Float, 0, System.Data.ParameterDirection.Input, 0, 0, "利率", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_期限", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "期限", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_密码", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "密码", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_开户日期", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "开户日期", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_利息", System.Data.SqlDbType.Decimal, 0, System.Data.ParameterDirection.Input, 18, 0, "利息", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_储户编号", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "储户编号", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[帐号信息] ([用户帐号], [类型], [金额], [利率], [期限], [密码], [开户日期], [利息], [储户" +
"编号]) VALUES (@用户帐号, @类型, @金额, @利率, @期限, @密码, @开户日期, @利息, @储户编号);\r\nSELECT 用户帐号, 类" +
"型, 金额, 利率, 期限, 密码, 开户日期, 利息, 储户编号 FROM 帐号信息 WHERE (用户帐号 = @用户帐号)";
this._adapter.InsertCommand.CommandType = System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@用户帐号", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "用户帐号", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@类型", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "类型", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@金额", System.Data.SqlDbType.Money, 0, System.Data.ParameterDirection.Input, 0, 0, "金额", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@利率", System.Data.SqlDbType.Float, 0, System.Data.ParameterDirection.Input, 0, 0, "利率", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@期限", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "期限", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@密码", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "密码", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@开户日期", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "开户日期", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@利息", System.Data.SqlDbType.Decimal, 0, System.Data.ParameterDirection.Input, 18, 0, "利息", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@储户编号", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "储户编号", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[帐号信息] SET [用户帐号] = @用户帐号, [类型] = @类型, [金额] = @金额, [利率] = @利率, [期限] = @期限, [密码] = @密码, [开户日期] = @开户日期, [利息] = @利息, [储户编号] = @储户编号 WHERE (([用户帐号] = @Original_用户帐号) AND ([类型] = @Original_类型) AND ([金额] = @Original_金额) AND ([利率] = @Original_利率) AND ([期限] = @Original_期限) AND ([密码] = @Original_密码) AND ([开户日期] = @Original_开户日期) AND ([利息] = @Original_利息) AND ([储户编号] = @Original_储户编号));
SELECT 用户帐号, 类型, 金额, 利率, 期限, 密码, 开户日期, 利息, 储户编号 FROM 帐号信息 WHERE (用户帐号 = @用户帐号)";
this._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@用户帐号", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "用户帐号", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@类型", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "类型", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@金额", System.Data.SqlDbType.Money, 0, System.Data.ParameterDirection.Input, 0, 0, "金额", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@利率", System.Data.SqlDbType.Float, 0, System.Data.ParameterDirection.Input, 0, 0, "利率", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@期限", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "期限", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@密码", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "密码", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@开户日期", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "开户日期", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@利息", System.Data.SqlDbType.Decimal, 0, System.Data.ParameterDirection.Input, 18, 0, "利息", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@储户编号", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "储户编号", System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_用户帐号", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "用户帐号", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_类型", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "类型", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_金额", System.Data.SqlDbType.Money, 0, System.Data.ParameterDirection.Input, 0, 0, "金额", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_利率", System.Data.SqlDbType.Float, 0, System.Data.ParameterDirection.Input, 0, 0, "利率", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_期限", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "期限", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_密码", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "密码", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_开户日期", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "开户日期", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_利息", System.Data.SqlDbType.Decimal, 0, System.Data.ParameterDirection.Input, 18, 0, "利息", System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_储户编号", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, 0, 0, "储户编号", System.Data.DataRowVersion.Original, false, null, "", "", ""));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitConnection() {
this._connection = new System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::Store.Properties.Settings.Default.银行储蓄系统ConnectionString;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
this._commandCollection = new System.Data.SqlClient.SqlCommand[1];
this._commandCollection[0] = new System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT 用户帐号, 类型, 金额, 利率, 期限, 密码, 开户日期, 利息, 储户编号 FROM dbo.帐号信息";
this._commandCollection[0].CommandType = System.Data.CommandType.Text;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(银行储蓄系统DataSet4.帐号信息DataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual 银行储蓄系统DataSet4.帐号信息DataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
银行储蓄系统DataSet4.帐号信息DataTable dataTable = new 银行储蓄系统DataSet4.帐号信息DataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(银行储蓄系统DataSet4.帐号信息DataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -