📄 kfyd.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace bggl.fm
{
/// <summary>
/// kfyd 的摘要说明。
/// </summary>
public class kfyd : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.ColumnHeader columnHeader4;
private System.Windows.Forms.ColumnHeader columnHeader5;
private System.Windows.Forms.ColumnHeader columnHeader6;
private System.Windows.Forms.ColumnHeader columnHeader7;
private System.Windows.Forms.ColumnHeader columnHeader8;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.DateTimePicker dateTimePicker3;
string zhi="";
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.DateTimePicker dateTimePicker2;//存放单击lv后的值
ListView lv;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.TextBox comboBox1;
string fjh="";
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public kfyd(ListView lvv)
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
lv=lvv;
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
public kfyd(string fj,ListView lvv)
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
fjh=fj;
lv=lvv;
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button6 = new System.Windows.Forms.Button();
this.textBox5 = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.label1 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
this.button5 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
this.button7 = new System.Windows.Forms.Button();
this.textBox4 = new System.Windows.Forms.TextBox();
this.dateTimePicker3 = new System.Windows.Forms.DateTimePicker();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.button8 = new System.Windows.Forms.Button();
this.comboBox1 = new System.Windows.Forms.TextBox();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.button6);
this.groupBox1.Controls.Add(this.textBox5);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.dateTimePicker1);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Location = new System.Drawing.Point(8, 16);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(744, 48);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "查询";
//
// button6
//
this.button6.Location = new System.Drawing.Point(560, 16);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(64, 24);
this.button6.TabIndex = 4;
this.button6.Text = "查询";
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(400, 16);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(128, 21);
this.textBox5.TabIndex = 3;
this.textBox5.Text = "";
//
// label9
//
this.label9.Location = new System.Drawing.Point(320, 24);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(80, 16);
this.label9.TabIndex = 2;
this.label9.Text = "按姓名查询";
//
// dateTimePicker1
//
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.dateTimePicker1.Location = new System.Drawing.Point(120, 16);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(136, 21);
this.dateTimePicker1.TabIndex = 1;
this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged);
//
// label1
//
this.label1.Location = new System.Drawing.Point(16, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(96, 16);
this.label1.TabIndex = 0;
this.label1.Text = "按到达日期查询";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.listView1);
this.groupBox2.Location = new System.Drawing.Point(8, 72);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(744, 240);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "信息";
//
// listView1
//
this.listView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2,
this.columnHeader3,
this.columnHeader4,
this.columnHeader5,
this.columnHeader6,
this.columnHeader7,
this.columnHeader8});
this.listView1.FullRowSelect = true;
this.listView1.GridLines = true;
this.listView1.Location = new System.Drawing.Point(8, 24);
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size(728, 208);
this.listView1.TabIndex = 0;
this.listView1.View = System.Windows.Forms.View.Details;
this.listView1.Click += new System.EventHandler(this.listView1_Click);
this.listView1.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
//
// columnHeader1
//
this.columnHeader1.Text = "预定ID";
//
// columnHeader2
//
this.columnHeader2.Text = "预定人姓名";
this.columnHeader2.Width = 100;
//
// columnHeader3
//
this.columnHeader3.Text = "预定房间";
//
// columnHeader4
//
this.columnHeader4.Text = "预定时间";
this.columnHeader4.Width = 100;
//
// columnHeader5
//
this.columnHeader5.Text = "预定人电话";
this.columnHeader5.Width = 100;
//
// columnHeader6
//
this.columnHeader6.Text = "到达时间";
this.columnHeader6.Width = 120;
//
// columnHeader7
//
this.columnHeader7.Text = "会员号";
this.columnHeader7.Width = 100;
//
// columnHeader8
//
this.columnHeader8.Text = "注释";
this.columnHeader8.Width = 200;
//
// button5
//
this.button5.Location = new System.Drawing.Point(16, 184);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(88, 24);
this.button5.TabIndex = 5;
this.button5.Text = "关闭";
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// button4
//
this.button4.Enabled = false;
this.button4.Location = new System.Drawing.Point(16, 104);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(88, 24);
this.button4.TabIndex = 4;
this.button4.Text = "删除预定";
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button3
//
this.button3.Enabled = false;
this.button3.Location = new System.Drawing.Point(16, 64);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(88, 24);
this.button3.TabIndex = 3;
this.button3.Text = "修改预定";
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(16, 24);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(88, 24);
this.button2.TabIndex = 2;
this.button2.Text = "添加预定";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(16, 144);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(88, 24);
this.button1.TabIndex = 1;
this.button1.Text = "刷新";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// groupBox3
//
this.groupBox3.Controls.Add(this.button8);
this.groupBox3.Controls.Add(this.comboBox1);
this.groupBox3.Controls.Add(this.dateTimePicker2);
this.groupBox3.Controls.Add(this.button7);
this.groupBox3.Controls.Add(this.textBox4);
this.groupBox3.Controls.Add(this.dateTimePicker3);
this.groupBox3.Controls.Add(this.label8);
this.groupBox3.Controls.Add(this.label7);
this.groupBox3.Controls.Add(this.textBox3);
this.groupBox3.Controls.Add(this.label6);
this.groupBox3.Controls.Add(this.textBox2);
this.groupBox3.Controls.Add(this.label5);
this.groupBox3.Controls.Add(this.label3);
this.groupBox3.Controls.Add(this.textBox1);
this.groupBox3.Controls.Add(this.label2);
this.groupBox3.Location = new System.Drawing.Point(8, 320);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(616, 224);
this.groupBox3.TabIndex = 2;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "输入";
//
// dateTimePicker2
//
this.dateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.Time;
this.dateTimePicker2.Location = new System.Drawing.Point(384, 104);
this.dateTimePicker2.Name = "dateTimePicker2";
this.dateTimePicker2.Size = new System.Drawing.Size(128, 21);
this.dateTimePicker2.TabIndex = 21;
//
// button7
//
this.button7.Location = new System.Drawing.Point(224, 32);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(24, 21);
this.button7.TabIndex = 20;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(112, 112);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(136, 21);
this.textBox4.TabIndex = 14;
this.textBox4.Text = "";
//
// dateTimePicker3
//
this.dateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.dateTimePicker3.Location = new System.Drawing.Point(384, 72);
this.dateTimePicker3.Name = "dateTimePicker3";
this.dateTimePicker3.Size = new System.Drawing.Size(128, 21);
this.dateTimePicker3.TabIndex = 13;
//
// label8
//
this.label8.Location = new System.Drawing.Point(24, 152);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(32, 16);
this.label8.TabIndex = 12;
this.label8.Text = "备注";
//
// label7
//
this.label7.Location = new System.Drawing.Point(32, 112);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(72, 16);
this.label7.TabIndex = 10;
this.label7.Text = "会员号";
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(112, 152);
this.textBox3.Multiline = true;
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(408, 56);
this.textBox3.TabIndex = 9;
this.textBox3.Text = "";
//
// label6
//
this.label6.Location = new System.Drawing.Point(304, 72);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(64, 16);
this.label6.TabIndex = 8;
this.label6.Text = "到达时间";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(112, 72);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(136, 21);
this.textBox2.TabIndex = 7;
this.textBox2.Text = "";
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
this.textBox2.Leave += new System.EventHandler(this.textBox2_Leave);
//
// label5
//
this.label5.Location = new System.Drawing.Point(24, 72);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(72, 16);
this.label5.TabIndex = 6;
this.label5.Text = "预定人电话";
//
// label3
//
this.label3.Location = new System.Drawing.Point(304, 32);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(72, 16);
this.label3.TabIndex = 2;
this.label3.Text = "预定房间";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(112, 32);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(104, 21);
this.textBox1.TabIndex = 1;
this.textBox1.Text = "";
//
// label2
//
this.label2.Location = new System.Drawing.Point(24, 32);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(72, 16);
this.label2.TabIndex = 0;
this.label2.Text = "预定人姓名";
//
// groupBox4
//
this.groupBox4.Controls.Add(this.button1);
this.groupBox4.Controls.Add(this.button2);
this.groupBox4.Controls.Add(this.button3);
this.groupBox4.Controls.Add(this.button4);
this.groupBox4.Controls.Add(this.button5);
this.groupBox4.Location = new System.Drawing.Point(632, 320);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(120, 224);
this.groupBox4.TabIndex = 3;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "操作";
this.groupBox4.Enter += new System.EventHandler(this.groupBox4_Enter);
//
// button8
//
this.button8.Location = new System.Drawing.Point(496, 32);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -