📄 formmain.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data.SqlServerCe;
using System.Text;
using System.IO;
using System.Data;
using System.Data.SqlClient ;
using System.Threading;
namespace SmartDeviceApplication5
{
/// <summary>
/// Formmain 的摘要说明。
/// </summary>
public class Formmain : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label15;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.Label label29;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label23;
private System.Windows.Forms.Label label24;
private System.Windows.Forms.Label label25;
private System.Windows.Forms.Label label26;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.Label label28;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.Label label30;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.Label label32;
private System.Windows.Forms.Label label33;
Client client;
private System.Windows.Forms.TextBox tb_rq;
private System.Windows.Forms.TextBox tb_kgsj;
private System.Windows.Forms.TextBox tb_user;
private System.Windows.Forms.ComboBox tb_cz;
private System.Windows.Forms.TextBox tb_ch;
private System.Windows.Forms.TextBox tb_dw;
private System.Windows.Forms.TextBox tb_yjrq;
private System.Windows.Forms.ComboBox tb_tsbj;
private System.Windows.Forms.ComboBox tb_zx;
string mypreff ="f301";
bool bind2 =false;
private System.Windows.Forms.ComboBox cb_szdj;
private System.Windows.Forms.ComboBox cb_zdg;
private System.Windows.Forms.ComboBox cb_fx;
private System.Windows.Forms.ComboBox cb_cgxh;
private System.Windows.Forms.ComboBox cb_ztq;
private System.Windows.Forms.ComboBox cb_kzxh;
private System.Windows.Forms.ComboBox cb_hcq1;
private System.Windows.Forms.ComboBox cb_hcq2;
private System.Windows.Forms.ComboBox cb_cxdw;
private System.Windows.Forms.ComboBox cb_fxdw;
private System.Windows.Forms.ComboBox cb_dxdw;
protected System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label34;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Label label35;
private System.Windows.Forms.Label label36;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label37;
private System.Windows.Forms.ComboBox cb_xz;
private System.Windows.Forms.TextBox tb_gcljb;
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.ComboBox tb_zdl;
private System.Windows.Forms.ComboBox tb_zxj;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.MenuItem menuItem4;
private System.Windows.Forms.MenuItem menuItem5;
private System.Windows.Forms.TextBox tb_fxrq;
private System.Windows.Forms.TextBox tb_dxrq;
private System.Windows.Forms.TextBox tb_cxrq;
private System.Windows.Forms.TextBox tb_zj;
private System.Windows.Forms.TextBox tb_zaiz;
private System.Windows.Forms.TextBox tb_zz;
private System.Windows.Forms.TextBox tb_hc;
private System.Windows.Forms.TextBox tb_rj;
private System.Windows.Forms.TextBox tb_rxcs;
private System.Windows.Forms.Label label38;
private System.Windows.Forms.ComboBox tb_xc;
private System.Windows.Forms.MenuItem menuItem6;
private System.Windows.Forms.MenuItem menuItem7;
bool bind3 =false;
public Formmain()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.label15 = new System.Windows.Forms.Label();
this.tb_tsbj = new System.Windows.Forms.ComboBox();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.tb_zdl = new System.Windows.Forms.ComboBox();
this.tb_zxj = new System.Windows.Forms.ComboBox();
this.label14 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.cb_ztq = new System.Windows.Forms.ComboBox();
this.cb_hcq2 = new System.Windows.Forms.ComboBox();
this.label16 = new System.Windows.Forms.Label();
this.cb_cgxh = new System.Windows.Forms.ComboBox();
this.cb_fx = new System.Windows.Forms.ComboBox();
this.cb_zdg = new System.Windows.Forms.ComboBox();
this.cb_szdj = new System.Windows.Forms.ComboBox();
this.cb_hcq1 = new System.Windows.Forms.ComboBox();
this.cb_kzxh = new System.Windows.Forms.ComboBox();
this.label19 = new System.Windows.Forms.Label();
this.label23 = new System.Windows.Forms.Label();
this.label24 = new System.Windows.Forms.Label();
this.label25 = new System.Windows.Forms.Label();
this.label26 = new System.Windows.Forms.Label();
this.label27 = new System.Windows.Forms.Label();
this.label28 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.label32 = new System.Windows.Forms.Label();
this.cb_cxdw = new System.Windows.Forms.ComboBox();
this.cb_fxdw = new System.Windows.Forms.ComboBox();
this.cb_dxdw = new System.Windows.Forms.ComboBox();
this.tb_fxrq = new System.Windows.Forms.TextBox();
this.tb_dxrq = new System.Windows.Forms.TextBox();
this.tb_cxrq = new System.Windows.Forms.TextBox();
this.label20 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.label30 = new System.Windows.Forms.Label();
this.label31 = new System.Windows.Forms.Label();
this.tb_zx = new System.Windows.Forms.ComboBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tb_xc = new System.Windows.Forms.ComboBox();
this.label38 = new System.Windows.Forms.Label();
this.tb_zj = new System.Windows.Forms.TextBox();
this.label18 = new System.Windows.Forms.Label();
this.tb_gcljb = new System.Windows.Forms.TextBox();
this.tb_hc = new System.Windows.Forms.TextBox();
this.label33 = new System.Windows.Forms.Label();
this.tb_kgsj = new System.Windows.Forms.TextBox();
this.label29 = new System.Windows.Forms.Label();
this.tb_user = new System.Windows.Forms.TextBox();
this.tb_cz = new System.Windows.Forms.ComboBox();
this.tb_rj = new System.Windows.Forms.TextBox();
this.tb_zaiz = new System.Windows.Forms.TextBox();
this.tb_zz = new System.Windows.Forms.TextBox();
this.tb_rxcs = new System.Windows.Forms.TextBox();
this.tb_ch = new System.Windows.Forms.TextBox();
this.tb_dw = new System.Windows.Forms.TextBox();
this.tb_rq = new System.Windows.Forms.TextBox();
this.tb_yjrq = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.panel1 = new System.Windows.Forms.Panel();
this.label37 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.label36 = new System.Windows.Forms.Label();
this.label35 = new System.Windows.Forms.Label();
this.listBox1 = new System.Windows.Forms.ListBox();
this.cb_xz = new System.Windows.Forms.ComboBox();
this.label34 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
//
// label15
//
this.label15.Location = new System.Drawing.Point(4, 64);
this.label15.Size = new System.Drawing.Size(56, 16);
this.label15.Text = "入线次数";
//
// tb_tsbj
//
this.tb_tsbj.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular);
this.tb_tsbj.Location = new System.Drawing.Point(64, 172);
this.tb_tsbj.Size = new System.Drawing.Size(80, 20);
//
// tabPage2
//
this.tabPage2.Controls.Add(this.tb_zdl);
this.tabPage2.Controls.Add(this.tb_zxj);
this.tabPage2.Controls.Add(this.label14);
this.tabPage2.Controls.Add(this.label12);
this.tabPage2.Controls.Add(this.cb_ztq);
this.tabPage2.Controls.Add(this.cb_hcq2);
this.tabPage2.Controls.Add(this.label16);
this.tabPage2.Controls.Add(this.cb_cgxh);
this.tabPage2.Controls.Add(this.cb_fx);
this.tabPage2.Controls.Add(this.cb_zdg);
this.tabPage2.Controls.Add(this.cb_szdj);
this.tabPage2.Controls.Add(this.cb_hcq1);
this.tabPage2.Controls.Add(this.cb_kzxh);
this.tabPage2.Controls.Add(this.label19);
this.tabPage2.Controls.Add(this.label23);
this.tabPage2.Controls.Add(this.label24);
this.tabPage2.Controls.Add(this.label25);
this.tabPage2.Controls.Add(this.label26);
this.tabPage2.Controls.Add(this.label27);
this.tabPage2.Controls.Add(this.label28);
this.tabPage2.Location = new System.Drawing.Point(4, 4);
this.tabPage2.Size = new System.Drawing.Size(232, 247);
this.tabPage2.Text = "配件信息";
//
// tb_zdl
//
this.tb_zdl.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular);
this.tb_zdl.Location = new System.Drawing.Point(96, 80);
this.tb_zdl.Size = new System.Drawing.Size(120, 20);
//
// tb_zxj
//
this.tb_zxj.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular);
this.tb_zxj.Location = new System.Drawing.Point(96, 56);
this.tb_zxj.Size = new System.Drawing.Size(120, 20);
//
// label14
//
this.label14.Location = new System.Drawing.Point(16, 80);
this.label14.Size = new System.Drawing.Size(56, 12);
this.label14.Text = "制动梁";
//
// label12
//
this.label12.Location = new System.Drawing.Point(16, 56);
this.label12.Size = new System.Drawing.Size(48, 16);
this.label12.Text = "转向架";
//
// cb_ztq
//
this.cb_ztq.Location = new System.Drawing.Point(96, 152);
this.cb_ztq.Size = new System.Drawing.Size(120, 20);
//
// cb_hcq2
//
this.cb_hcq2.Location = new System.Drawing.Point(96, 224);
this.cb_hcq2.Size = new System.Drawing.Size(120, 20);
//
// label16
//
this.label16.Location = new System.Drawing.Point(16, 224);
this.label16.Size = new System.Drawing.Size(96, 16);
this.label16.Text = "缓冲器型号2";
//
// cb_cgxh
//
this.cb_cgxh.Location = new System.Drawing.Point(96, 128);
this.cb_cgxh.Size = new System.Drawing.Size(120, 20);
//
// cb_fx
//
this.cb_fx.Location = new System.Drawing.Point(96, 104);
this.cb_fx.Size = new System.Drawing.Size(120, 20);
//
// cb_zdg
//
this.cb_zdg.Location = new System.Drawing.Point(96, 32);
this.cb_zdg.Size = new System.Drawing.Size(120, 20);
//
// cb_szdj
//
this.cb_szdj.Location = new System.Drawing.Point(96, 8);
this.cb_szdj.Size = new System.Drawing.Size(120, 20);
//
// cb_hcq1
//
this.cb_hcq1.Location = new System.Drawing.Point(96, 200);
this.cb_hcq1.Size = new System.Drawing.Size(120, 20);
//
// cb_kzxh
//
this.cb_kzxh.Location = new System.Drawing.Point(96, 176);
this.cb_kzxh.Size = new System.Drawing.Size(120, 20);
//
// label19
//
this.label19.Location = new System.Drawing.Point(16, 200);
this.label19.Size = new System.Drawing.Size(96, 16);
this.label19.Text = "缓冲器型号1";
//
// label23
//
this.label23.Location = new System.Drawing.Point(16, 176);
this.label23.Size = new System.Drawing.Size(96, 16);
this.label23.Text = "空重调整型号";
//
// label24
//
this.label24.Location = new System.Drawing.Point(16, 152);
this.label24.Size = new System.Drawing.Size(96, 16);
this.label24.Text = "闸调器";
//
// label25
//
this.label25.Location = new System.Drawing.Point(16, 128);
this.label25.Size = new System.Drawing.Size(96, 16);
this.label25.Text = "车钩型号";
//
// label26
//
this.label26.Location = new System.Drawing.Point(16, 104);
this.label26.Size = new System.Drawing.Size(96, 16);
this.label26.Text = "阀型";
//
// label27
//
this.label27.Location = new System.Drawing.Point(16, 32);
this.label27.Size = new System.Drawing.Size(96, 16);
this.label27.Text = "制动缸型别";
//
// label28
//
this.label28.Location = new System.Drawing.Point(16, 8);
this.label28.Size = new System.Drawing.Size(96, 16);
this.label28.Text = "手制动机型号";
//
// label13
//
this.label13.Location = new System.Drawing.Point(128, 92);
this.label13.Size = new System.Drawing.Size(32, 16);
this.label13.Text = "轴型";
//
// tabPage3
//
this.tabPage3.Controls.Add(this.label32);
this.tabPage3.Controls.Add(this.cb_cxdw);
this.tabPage3.Controls.Add(this.cb_fxdw);
this.tabPage3.Controls.Add(this.cb_dxdw);
this.tabPage3.Controls.Add(this.tb_fxrq);
this.tabPage3.Controls.Add(this.tb_dxrq);
this.tabPage3.Controls.Add(this.tb_cxrq);
this.tabPage3.Controls.Add(this.label20);
this.tabPage3.Controls.Add(this.label21);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -