📄 goodsform.cs
字号:
using System;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Data.Odbc;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using SupDataBase;
namespace WindowsApplication1
{
/// <summary>
/// GoodsForm 的摘要说明。
/// </summary>
public class GoodsForm : System.Windows.Forms.Form
{
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.CheckBox checkBox4;
private System.Windows.Forms.CheckBox checkBox5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox goodsCodeTextBox;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox supplierNameTextBox;
private System.Windows.Forms.TextBox goodsNameTextBox;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox salePriceMaxTextBox;
private System.Windows.Forms.TextBox salePriceMinTextBox;
private System.Windows.Forms.TextBox purchasePriceMaxTextBox;
private System.Windows.Forms.TextBox purchasePriceMinTextBox;
private System.Windows.Forms.DataGrid m_GoodsDataGrid;
private System.Windows.Forms.Label label9;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public GoodsForm()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// 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.checkBox1 = new System.Windows.Forms.CheckBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.checkBox5 = new System.Windows.Forms.CheckBox();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label8 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.salePriceMaxTextBox = new System.Windows.Forms.TextBox();
this.salePriceMinTextBox = new System.Windows.Forms.TextBox();
this.purchasePriceMaxTextBox = new System.Windows.Forms.TextBox();
this.purchasePriceMinTextBox = new System.Windows.Forms.TextBox();
this.supplierNameTextBox = new System.Windows.Forms.TextBox();
this.goodsNameTextBox = new System.Windows.Forms.TextBox();
this.goodsCodeTextBox = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.m_GoodsDataGrid = new System.Windows.Forms.DataGrid();
this.label9 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.m_GoodsDataGrid)).BeginInit();
this.SuspendLayout();
//
// checkBox1
//
this.checkBox1.Location = new System.Drawing.Point(18, 33);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(94, 16);
this.checkBox1.TabIndex = 0;
this.checkBox1.Text = "商品条形码";
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// checkBox2
//
this.checkBox2.Location = new System.Drawing.Point(18, 93);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(72, 16);
this.checkBox2.TabIndex = 1;
this.checkBox2.Text = "商品名称";
this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
//
// checkBox3
//
this.checkBox3.Location = new System.Drawing.Point(18, 148);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(84, 16);
this.checkBox3.TabIndex = 2;
this.checkBox3.Text = "供应商名称";
this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged);
//
// checkBox4
//
this.checkBox4.Location = new System.Drawing.Point(341, 31);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(72, 16);
this.checkBox4.TabIndex = 3;
this.checkBox4.Text = "进价范围";
this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_CheckedChanged);
//
// checkBox5
//
this.checkBox5.Location = new System.Drawing.Point(341, 104);
this.checkBox5.Name = "checkBox5";
this.checkBox5.Size = new System.Drawing.Size(72, 16);
this.checkBox5.TabIndex = 4;
this.checkBox5.Text = "售价范围";
this.checkBox5.CheckedChanged += new System.EventHandler(this.checkBox5_CheckedChanged);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(449, 35);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(54, 17);
this.label4.TabIndex = 9;
this.label4.Text = "进价下限";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(449, 69);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(54, 17);
this.label5.TabIndex = 10;
this.label5.Text = "进价上限";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(449, 108);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(54, 17);
this.label6.TabIndex = 11;
this.label6.Text = "售价下限";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(449, 146);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(54, 17);
this.label7.TabIndex = 12;
this.label7.Text = "售价上限";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.salePriceMaxTextBox);
this.groupBox1.Controls.Add(this.salePriceMinTextBox);
this.groupBox1.Controls.Add(this.purchasePriceMaxTextBox);
this.groupBox1.Controls.Add(this.purchasePriceMinTextBox);
this.groupBox1.Controls.Add(this.supplierNameTextBox);
this.groupBox1.Controls.Add(this.goodsNameTextBox);
this.groupBox1.Controls.Add(this.goodsCodeTextBox);
this.groupBox1.Controls.Add(this.checkBox1);
this.groupBox1.Controls.Add(this.checkBox2);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.checkBox3);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.checkBox4);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.checkBox5);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Location = new System.Drawing.Point(13, 13);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(717, 185);
this.groupBox1.TabIndex = 13;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "商品信息查询条件";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(648, 148);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(17, 17);
this.label8.TabIndex = 24;
this.label8.Text = "元";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(648, 108);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(17, 17);
this.label3.TabIndex = 23;
this.label3.Text = "元";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(648, 75);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(17, 17);
this.label2.TabIndex = 22;
this.label2.Text = "元";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(648, 35);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(17, 17);
this.label1.TabIndex = 21;
this.label1.Text = "元";
//
// salePriceMaxTextBox
//
this.salePriceMaxTextBox.Enabled = false;
this.salePriceMaxTextBox.Location = new System.Drawing.Point(519, 143);
this.salePriceMaxTextBox.Name = "salePriceMaxTextBox";
this.salePriceMaxTextBox.Size = new System.Drawing.Size(123, 21);
this.salePriceMaxTextBox.TabIndex = 20;
this.salePriceMaxTextBox.Text = "";
//
// salePriceMinTextBox
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -