📄 saleform.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>
/// SaleForm 的摘要说明。
/// </summary>
public class SaleForm : 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.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 employeeNameTextBox;
private System.Windows.Forms.TextBox goodsNameTextBox;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.RadioButton radioButton1;
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_SaleDataGrid;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.CheckBox checkBox4;
private System.Windows.Forms.TextBox textBox1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public SaleForm()
{
//
// 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.groupBox1 = new System.Windows.Forms.GroupBox();
this.checkBox4 = 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.employeeNameTextBox = 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_SaleDataGrid = new System.Windows.Forms.DataGrid();
this.label9 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.m_SaleDataGrid)).BeginInit();
this.SuspendLayout();
//
// checkBox1
//
this.checkBox1.Location = new System.Drawing.Point(18, 33);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(84, 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, 88);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(86, 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);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.checkBox4);
this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Controls.Add(this.employeeNameTextBox);
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.checkBox3);
this.groupBox1.Location = new System.Drawing.Point(13, 13);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(617, 185);
this.groupBox1.TabIndex = 13;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "销售记录查询条件";
//
// checkBox4
//
this.checkBox4.Location = new System.Drawing.Point(280, 24);
this.checkBox4.Name = "checkBox4";
this.checkBox4.TabIndex = 29;
this.checkBox4.Text = "按日期查询";
this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_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(280, 57);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(328, 108);
this.groupBox2.TabIndex = 28;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "日期查询条件";
//
// radioButton1
//
this.radioButton1.Location = new System.Drawing.Point(20, 64);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(76, 16);
this.radioButton1.TabIndex = 29;
this.radioButton1.Text = "今日销售";
//
// radioButton2
//
this.radioButton2.Location = new System.Drawing.Point(20, 24);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(76, 16);
this.radioButton2.TabIndex = 30;
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, 64);
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, 64);
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 = "起始日期";
//
// employeeNameTextBox
//
this.employeeNameTextBox.Enabled = false;
this.employeeNameTextBox.Location = new System.Drawing.Point(121, 143);
this.employeeNameTextBox.Name = "employeeNameTextBox";
this.employeeNameTextBox.Size = new System.Drawing.Size(123, 21);
this.employeeNameTextBox.TabIndex = 16;
this.employeeNameTextBox.Text = "";
//
// goodsNameTextBox
//
this.goodsNameTextBox.Enabled = false;
this.goodsNameTextBox.Location = new System.Drawing.Point(121, 88);
this.goodsNameTextBox.Name = "goodsNameTextBox";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -