📄 purchaseform.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>
/// PurchaseForm 的摘要说明。
/// </summary>
public class PurchaseForm : System.Windows.Forms.Form
{
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox3;
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 purchaserNameTextBox;
private System.Windows.Forms.TextBox goodsNameTextBox;
private System.Windows.Forms.TextBox supplierNameTextBox;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.DateTimePicker endDateTimePicker;
private System.Windows.Forms.DateTimePicker startDateTimePicker;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.DataGrid m_PurchaseDataGrid;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox checkBox6;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.CheckBox checkBox4;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public PurchaseForm()
{
//
// 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.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.checkBox6 = new System.Windows.Forms.CheckBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.endDateTimePicker = new System.Windows.Forms.DateTimePicker();
this.startDateTimePicker = new System.Windows.Forms.DateTimePicker();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.supplierNameTextBox = new System.Windows.Forms.TextBox();
this.purchaserNameTextBox = 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_PurchaseDataGrid = new System.Windows.Forms.DataGrid();
this.label9 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.m_PurchaseDataGrid)).BeginInit();
this.SuspendLayout();
//
// 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, 159);
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);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.checkBox4);
this.groupBox1.Controls.Add(this.checkBox6);
this.groupBox1.Controls.Add(this.checkBox1);
this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Controls.Add(this.supplierNameTextBox);
this.groupBox1.Controls.Add(this.purchaserNameTextBox);
this.groupBox1.Controls.Add(this.goodsNameTextBox);
this.groupBox1.Controls.Add(this.goodsCodeTextBox);
this.groupBox1.Controls.Add(this.checkBox2);
this.groupBox1.Controls.Add(this.checkBox3);
this.groupBox1.Location = new System.Drawing.Point(13, 13);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(617, 222);
this.groupBox1.TabIndex = 13;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "进货记录查询条件";
//
// checkBox4
//
this.checkBox4.Location = new System.Drawing.Point(288, 64);
this.checkBox4.Name = "checkBox4";
this.checkBox4.TabIndex = 29;
this.checkBox4.Text = "按日期查询";
this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_CheckedChanged);
//
// checkBox6
//
this.checkBox6.Location = new System.Drawing.Point(288, 32);
this.checkBox6.Name = "checkBox6";
this.checkBox6.Size = new System.Drawing.Size(88, 24);
this.checkBox6.TabIndex = 28;
this.checkBox6.Text = "供应商民称";
this.checkBox6.CheckedChanged += new System.EventHandler(this.checkBox6_CheckedChanged);
//
// checkBox1
//
this.checkBox1.Location = new System.Drawing.Point(16, 32);
this.checkBox1.Name = "checkBox1";
this.checkBox1.TabIndex = 27;
this.checkBox1.Text = "商品条形码";
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.radioButton1);
this.groupBox2.Controls.Add(this.radioButton2);
this.groupBox2.Controls.Add(this.endDateTimePicker);
this.groupBox2.Controls.Add(this.startDateTimePicker);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Enabled = false;
this.groupBox2.Location = new System.Drawing.Point(289, 97);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(322, 108);
this.groupBox2.TabIndex = 26;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "日期查询条件";
//
// radioButton1
//
this.radioButton1.Location = new System.Drawing.Point(8, 56);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(96, 24);
this.radioButton1.TabIndex = 30;
this.radioButton1.Text = "今日进货";
this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
//
// radioButton2
//
this.radioButton2.Location = new System.Drawing.Point(8, 24);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(88, 24);
this.radioButton2.TabIndex = 29;
this.radioButton2.Text = "日期范围";
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
//
// endDateTimePicker
//
this.endDateTimePicker.Enabled = false;
this.endDateTimePicker.Location = new System.Drawing.Point(183, 54);
this.endDateTimePicker.Name = "endDateTimePicker";
this.endDateTimePicker.Size = new System.Drawing.Size(120, 21);
this.endDateTimePicker.TabIndex = 28;
this.endDateTimePicker.Value = new System.DateTime(2005, 12, 10, 0, 0, 0, 0);
//
// startDateTimePicker
//
this.startDateTimePicker.Enabled = false;
this.startDateTimePicker.Location = new System.Drawing.Point(183, 19);
this.startDateTimePicker.Name = "startDateTimePicker";
this.startDateTimePicker.Size = new System.Drawing.Size(120, 21);
this.startDateTimePicker.TabIndex = 27;
this.startDateTimePicker.Value = new System.DateTime(2005, 12, 10, 0, 0, 0, 0);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(112, 60);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(54, 17);
this.label5.TabIndex = 26;
this.label5.Text = "截止日期";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(112, 25);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(54, 17);
this.label4.TabIndex = 25;
this.label4.Text = "起始日期";
//
// supplierNameTextBox
//
this.supplierNameTextBox.Enabled = false;
this.supplierNameTextBox.Location = new System.Drawing.Point(383, 28);
this.supplierNameTextBox.Name = "supplierNameTextBox";
this.supplierNameTextBox.Size = new System.Drawing.Size(209, 21);
this.supplierNameTextBox.TabIndex = 22;
this.supplierNameTextBox.Text = "";
//
// purchaserNameTextBox
//
this.purchaserNameTextBox.Enabled = false;
this.purchaserNameTextBox.Location = new System.Drawing.Point(121, 154);
this.purchaserNameTextBox.Name = "purchaserNameTextBox";
this.purchaserNameTextBox.Size = new System.Drawing.Size(123, 21);
this.purchaserNameTextBox.TabIndex = 16;
this.purchaserNameTextBox.Text = "";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -