📄 produceplan.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace 生产管理系统
{
/// <summary>
/// ProducePlan 的摘要说明。
/// </summary>
public class ProducePlan : System.Windows.Forms.Form
{
CurrencyManager cmOrders;
public static string mID,mName;//保存物料编号和名称
public static string sYear,sOrder,sBegin,sEnd;//保存双击选择得到的计划期等信息
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox txt10;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Button btnSearch;
private System.Windows.Forms.TextBox txt9;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox txt8;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.ToolBar toolBar1;
private System.Windows.Forms.ToolBarButton tBtnFirst;
private System.Windows.Forms.ToolBarButton tBtnPre;
private System.Windows.Forms.ToolBarButton tBtnNext;
private System.Windows.Forms.ToolBarButton tBtnLast;
private System.Windows.Forms.ToolBarButton tBtnNew;
private System.Windows.Forms.ToolBarButton tBtnEdit;
private System.Windows.Forms.ToolBarButton tBtnDelete;
private System.Windows.Forms.ToolBarButton tBtnSubmit;
private System.Windows.Forms.ToolBarButton tBtnQuit;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.DataGrid dataGrid1;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.DataGrid dataGrid2;
private System.Windows.Forms.Button selBtn1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
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.Label label14;
private System.Windows.Forms.Button importBtn;
private System.Windows.Forms.Label label15;
private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
private System.Data.SqlClient.SqlCommand sqlSelectCommand2;
private System.Data.SqlClient.SqlConnection sqlConnection1;
private 生产管理系统.DataSet1 dataSet11;
private System.Windows.Forms.RichTextBox txtMemo;
private System.Windows.Forms.TextBox txt2;
private System.Windows.Forms.TextBox txt1;
private System.Windows.Forms.TextBox txt5;
private System.Windows.Forms.TextBox txt4;
private System.Windows.Forms.TextBox txt3;
private System.Windows.Forms.TextBox txt6;
private System.Windows.Forms.TextBox txt11;
private System.Windows.Forms.TextBox txt7;
private System.Windows.Forms.TextBox txt12;
private System.Windows.Forms.TextBox txt13;
private System.Windows.Forms.TextBox txt14;
private System.Data.SqlClient.SqlDataAdapter da1;
private System.Data.SqlClient.SqlCommand sqlSelectCommand3;
private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
private System.Windows.Forms.Button selBtn2;
private System.Data.SqlClient.SqlDataAdapter da2;
private 生产管理系统.DataSet2 dataSet21;
private System.Data.SqlClient.SqlCommand sqlSelectCommand4;
private System.Windows.Forms.ToolBarButton tBtnCancel;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.TextBox txt15;
private System.ComponentModel.IContainer components;
public ProducePlan()
{
//
// 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.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ProducePlan));
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txt10 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.btnSearch = new System.Windows.Forms.Button();
this.txt9 = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.txt8 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.toolBar1 = new System.Windows.Forms.ToolBar();
this.tBtnFirst = new System.Windows.Forms.ToolBarButton();
this.tBtnPre = new System.Windows.Forms.ToolBarButton();
this.tBtnNext = new System.Windows.Forms.ToolBarButton();
this.tBtnLast = new System.Windows.Forms.ToolBarButton();
this.tBtnNew = new System.Windows.Forms.ToolBarButton();
this.tBtnEdit = new System.Windows.Forms.ToolBarButton();
this.tBtnDelete = new System.Windows.Forms.ToolBarButton();
this.tBtnSubmit = new System.Windows.Forms.ToolBarButton();
this.tBtnCancel = new System.Windows.Forms.ToolBarButton();
this.tBtnQuit = new System.Windows.Forms.ToolBarButton();
this.dataGrid1 = new System.Windows.Forms.DataGrid();
this.dataSet11 = new 生产管理系统.DataSet1();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.selBtn2 = new System.Windows.Forms.Button();
this.txtMemo = new System.Windows.Forms.RichTextBox();
this.txt2 = new System.Windows.Forms.TextBox();
this.txt1 = new System.Windows.Forms.TextBox();
this.txt5 = new System.Windows.Forms.TextBox();
this.txt4 = new System.Windows.Forms.TextBox();
this.txt3 = new System.Windows.Forms.TextBox();
this.txt6 = new System.Windows.Forms.TextBox();
this.txt11 = new System.Windows.Forms.TextBox();
this.txt7 = new System.Windows.Forms.TextBox();
this.txt12 = new System.Windows.Forms.TextBox();
this.txt13 = new System.Windows.Forms.TextBox();
this.txt14 = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.selBtn1 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.txt15 = new System.Windows.Forms.TextBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.importBtn = new System.Windows.Forms.Button();
this.dataGrid2 = new System.Windows.Forms.DataGrid();
this.dataSet21 = new 生产管理系统.DataSet2();
this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlSelectCommand2 = new System.Data.SqlClient.SqlCommand();
this.da1 = new System.Data.SqlClient.SqlDataAdapter();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlSelectCommand3 = new System.Data.SqlClient.SqlCommand();
this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
this.da2 = new System.Data.SqlClient.SqlDataAdapter();
this.sqlSelectCommand4 = new System.Data.SqlClient.SqlCommand();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataSet21)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.txt10);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.btnSearch);
this.groupBox1.Controls.Add(this.txt9);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.txt8);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Location = new System.Drawing.Point(0, 40);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(704, 56);
this.groupBox1.TabIndex = 32;
this.groupBox1.TabStop = false;
//
// txt10
//
this.txt10.Location = new System.Drawing.Point(440, 24);
this.txt10.Name = "txt10";
this.txt10.TabIndex = 7;
this.txt10.Text = "";
//
// label6
//
this.label6.Location = new System.Drawing.Point(392, 27);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(48, 16);
this.label6.TabIndex = 5;
this.label6.Text = "计划期";
//
// btnSearch
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -