📄 searchform.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
namespace bookmanager
{
/// <summary>
/// Summary description for SearchForm.
/// </summary>
public class SearchForm : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.ComboBox comboBox3;
private System.Windows.Forms.ComboBox comboBox4;
private System.Windows.Forms.ComboBox comboBox5;
private System.Windows.Forms.ComboBox comboBox6;
private System.Windows.Forms.ComboBox comboBox7;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.ComboBox comboBox8;
private System.Windows.Forms.DateTimePicker dtp1;
private System.Windows.Forms.DateTimePicker dtp2;
private System.Windows.Forms.ComboBox comboBox9;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public SearchForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
LoadSelectItem();
LoadOffer();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.comboBox9 = new System.Windows.Forms.ComboBox();
this.comboBox8 = new System.Windows.Forms.ComboBox();
this.label13 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.comboBox7 = new System.Windows.Forms.ComboBox();
this.comboBox6 = new System.Windows.Forms.ComboBox();
this.comboBox5 = new System.Windows.Forms.ComboBox();
this.comboBox4 = new System.Windows.Forms.ComboBox();
this.comboBox3 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label9 = new System.Windows.Forms.Label();
this.textBox6 = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.dtp2 = new System.Windows.Forms.DateTimePicker();
this.dtp1 = new System.Windows.Forms.DateTimePicker();
this.textBox5 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.comboBox9);
this.groupBox1.Controls.Add(this.comboBox8);
this.groupBox1.Controls.Add(this.label13);
this.groupBox1.Controls.Add(this.label12);
this.groupBox1.Controls.Add(this.label11);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.comboBox7);
this.groupBox1.Controls.Add(this.comboBox6);
this.groupBox1.Controls.Add(this.comboBox5);
this.groupBox1.Controls.Add(this.comboBox4);
this.groupBox1.Controls.Add(this.comboBox3);
this.groupBox1.Controls.Add(this.comboBox2);
this.groupBox1.Controls.Add(this.comboBox1);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.textBox6);
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.dtp2);
this.groupBox1.Controls.Add(this.dtp1);
this.groupBox1.Controls.Add(this.textBox5);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.textBox4);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.textBox3);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.textBox2);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(496, 390);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "查询名称";
//
// button2
//
this.button2.Location = new System.Drawing.Point(352, 360);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(72, 24);
this.button2.TabIndex = 31;
this.button2.Text = "取消";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(256, 360);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(72, 24);
this.button1.TabIndex = 30;
this.button1.Text = "查询";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// comboBox9
//
this.comboBox9.Items.AddRange(new object[] {
"不作判断",
"范围从"});
this.comboBox9.Location = new System.Drawing.Point(160, 200);
this.comboBox9.Name = "comboBox9";
this.comboBox9.Size = new System.Drawing.Size(112, 20);
this.comboBox9.TabIndex = 29;
this.comboBox9.SelectedIndexChanged += new System.EventHandler(this.comboBox9_SelectedIndexChanged);
//
// comboBox8
//
this.comboBox8.Items.AddRange(new object[] {
"不作判断",
"等于"});
this.comboBox8.Location = new System.Drawing.Point(160, 328);
this.comboBox8.Name = "comboBox8";
this.comboBox8.Size = new System.Drawing.Size(112, 20);
this.comboBox8.TabIndex = 28;
this.comboBox8.SelectedIndexChanged += new System.EventHandler(this.comboBox8_SelectedIndexChanged);
//
// label13
//
this.label13.Location = new System.Drawing.Point(32, 56);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(416, 16);
this.label13.TabIndex = 27;
this.label13.Text = "=================================================================";
//
// label12
//
this.label12.Location = new System.Drawing.Point(344, 32);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(72, 16);
this.label12.TabIndex = 26;
this.label12.Text = "关键值:";
//
// label11
//
this.label11.Location = new System.Drawing.Point(176, 32);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(72, 16);
this.label11.TabIndex = 25;
this.label11.Text = "判断条件:";
//
// label10
//
this.label10.Location = new System.Drawing.Point(56, 32);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(72, 16);
this.label10.TabIndex = 24;
this.label10.Text = "查询名称:";
//
// comboBox7
//
this.comboBox7.Location = new System.Drawing.Point(312, 328);
this.comboBox7.Name = "comboBox7";
this.comboBox7.Size = new System.Drawing.Size(112, 20);
this.comboBox7.TabIndex = 23;
//
// comboBox6
//
this.comboBox6.Items.AddRange(new object[] {
"不作判断",
"等于",
"大于",
"等于或大于",
"小于",
"等于或小于"});
this.comboBox6.Location = new System.Drawing.Point(160, 264);
this.comboBox6.Name = "comboBox6";
this.comboBox6.Size = new System.Drawing.Size(112, 20);
this.comboBox6.TabIndex = 22;
this.comboBox6.SelectedIndexChanged += new System.EventHandler(this.comboBox6_SelectedIndexChanged);
//
// comboBox5
//
this.comboBox5.Items.AddRange(new object[] {
"等于",
"包涵于",
"不包涵"});
this.comboBox5.Location = new System.Drawing.Point(160, 296);
this.comboBox5.Name = "comboBox5";
this.comboBox5.Size = new System.Drawing.Size(112, 20);
this.comboBox5.TabIndex = 21;
//
// comboBox4
//
this.comboBox4.Items.AddRange(new object[] {
"等于",
"包涵于",
"不包涵"});
this.comboBox4.Location = new System.Drawing.Point(160, 168);
this.comboBox4.Name = "comboBox4";
this.comboBox4.Size = new System.Drawing.Size(112, 20);
this.comboBox4.TabIndex = 20;
//
// comboBox3
//
this.comboBox3.Items.AddRange(new object[] {
"等于",
"包涵于",
"不包涵"});
this.comboBox3.Location = new System.Drawing.Point(160, 136);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(112, 20);
this.comboBox3.TabIndex = 19;
//
// comboBox2
//
this.comboBox2.Items.AddRange(new object[] {
"等于",
"包涵于",
"不包涵"});
this.comboBox2.Location = new System.Drawing.Point(160, 104);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(112, 20);
this.comboBox2.TabIndex = 18;
//
// comboBox1
//
this.comboBox1.Items.AddRange(new object[] {
"等于",
"包涵于",
"不包涵"});
this.comboBox1.Location = new System.Drawing.Point(160, 72);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(112, 20);
this.comboBox1.TabIndex = 17;
//
// label9
//
this.label9.Location = new System.Drawing.Point(56, 328);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(64, 16);
this.label9.TabIndex = 16;
this.label9.Text = "图书类别";
//
// textBox6
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -