⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readerform.cs

📁 windows mobile 2005 上可以运行的资产管理系统
💻 CS
📖 第 1 页 / 共 3 页
字号:
using System;
using System.Windows.Forms;
using System.Data;
using System.IO;
using System.Data.SqlClient;


namespace PDA_test
{
	/// <summary>
	/// CS_ScanSample1 Form class.
	/// </summary>
	public class ReaderForm : System.Windows.Forms.Form
	{
		private PDA_test.Login mF_Form ;

		public ReaderForm(Login myform)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
			this.mF_Form  = myform ;
			// Set the initial keyboard focus to the about button.
			

		}
#if COMPLETE_FRAMEWORK
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			base.Dispose( disposing );
		}
#endif
		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>

		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ReaderForm));
			this.CloseButton = new System.Windows.Forms.Button();
			this.ReaderDataListBox = new System.Windows.Forms.ListBox();
			this.button1 = new System.Windows.Forms.Button();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.timer1 = new System.Windows.Forms.Timer();
			this.nBackSpace = new System.Windows.Forms.Button();
			this.n0 = new System.Windows.Forms.Button();
			this.nClear = new System.Windows.Forms.Button();
			this.n9 = new System.Windows.Forms.Button();
			this.n8 = new System.Windows.Forms.Button();
			this.n7 = new System.Windows.Forms.Button();
			this.n6 = new System.Windows.Forms.Button();
			this.n5 = new System.Windows.Forms.Button();
			this.n4 = new System.Windows.Forms.Button();
			this.n3 = new System.Windows.Forms.Button();
			this.n2 = new System.Windows.Forms.Button();
			this.n1 = new System.Windows.Forms.Button();
			this.label4 = new System.Windows.Forms.Label();
			this.gonghao = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label_name = new System.Windows.Forms.Label();
			this.comboBox1 = new System.Windows.Forms.ComboBox();
			this.label3 = new System.Windows.Forms.Label();
			this.button2 = new System.Windows.Forms.Button();
			// 
			// CloseButton
			// 
			this.CloseButton.Font = new System.Drawing.Font("楷体_GB2312", 18F, System.Drawing.FontStyle.Bold);
			this.CloseButton.Location = new System.Drawing.Point(9, 182);
			this.CloseButton.Size = new System.Drawing.Size(95, 34);
			this.CloseButton.Text = "返 回";
			this.CloseButton.Click += new System.EventHandler(this.CloseButton_Click);
			this.CloseButton.KeyUp += new System.Windows.Forms.KeyEventHandler(this.CloseButton_KeyUp);
			// 
			// ReaderDataListBox
			// 
			this.ReaderDataListBox.Location = new System.Drawing.Point(203, 81);
			this.ReaderDataListBox.Size = new System.Drawing.Size(112, 14);
			this.ReaderDataListBox.Visible = false;
			// 
			// button1
			// 
			this.button1.Font = new System.Drawing.Font("楷体_GB2312", 18F, System.Drawing.FontStyle.Bold);
			this.button1.Location = new System.Drawing.Point(8, 223);
			this.button1.Size = new System.Drawing.Size(224, 41);
			this.button1.Text = "扫 描 / 查 询";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(10, 157);
			this.textBox1.Size = new System.Drawing.Size(95, 21);
			this.textBox1.Text = "";
			// 
			// label2
			// 
			this.label2.Font = new System.Drawing.Font("楷体_GB2312", 18F, System.Drawing.FontStyle.Bold);
			this.label2.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(0)));
			this.label2.Location = new System.Drawing.Point(15, 49);
			this.label2.Size = new System.Drawing.Size(208, 29);
			this.label2.Text = "资产管理移动查询";
			this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(25, 1);
			this.label1.Size = new System.Drawing.Size(192, 16);
			// 
			// timer1
			// 
			this.timer1.Enabled = true;
			this.timer1.Interval = 200;
			this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
			// 
			// nBackSpace
			// 
			this.nBackSpace.Font = new System.Drawing.Font("楷体_GB2312", 9F, System.Drawing.FontStyle.Bold);
			this.nBackSpace.Location = new System.Drawing.Point(192, 184);
			this.nBackSpace.Size = new System.Drawing.Size(40, 32);
			this.nBackSpace.Text = "退格";
			this.nBackSpace.Click += new System.EventHandler(this.nBackSpace_Click);
			// 
			// n0
			// 
			this.n0.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.n0.Location = new System.Drawing.Point(152, 184);
			this.n0.Size = new System.Drawing.Size(40, 32);
			this.n0.Text = "0";
			this.n0.Click += new System.EventHandler(this.n0_Click);
			// 
			// nClear
			// 
			this.nClear.Font = new System.Drawing.Font("楷体_GB2312", 9F, System.Drawing.FontStyle.Bold);
			this.nClear.Location = new System.Drawing.Point(112, 184);
			this.nClear.Size = new System.Drawing.Size(40, 32);
			this.nClear.Text = "清除";
			this.nClear.Click += new System.EventHandler(this.nClear_Click);
			// 
			// n9
			// 
			this.n9.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.n9.Location = new System.Drawing.Point(192, 152);
			this.n9.Size = new System.Drawing.Size(40, 32);
			this.n9.Text = "9";
			this.n9.Click += new System.EventHandler(this.n9_Click);
			// 
			// n8
			// 
			this.n8.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.n8.Location = new System.Drawing.Point(152, 152);
			this.n8.Size = new System.Drawing.Size(40, 32);
			this.n8.Text = "8";
			this.n8.Click += new System.EventHandler(this.n8_Click);
			// 
			// n7
			// 
			this.n7.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.n7.Location = new System.Drawing.Point(112, 152);
			this.n7.Size = new System.Drawing.Size(40, 32);
			this.n7.Text = "7";
			this.n7.Click += new System.EventHandler(this.n7_Click);
			// 
			// n6
			// 
			this.n6.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.n6.Location = new System.Drawing.Point(192, 120);
			this.n6.Size = new System.Drawing.Size(40, 32);
			this.n6.Text = "6";
			this.n6.Click += new System.EventHandler(this.n6_Click);
			// 
			// n5
			// 
			this.n5.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.n5.Location = new System.Drawing.Point(152, 120);
			this.n5.Size = new System.Drawing.Size(40, 32);
			this.n5.Text = "5";
			this.n5.Click += new System.EventHandler(this.n5_Click);
			// 
			// n4
			// 
			this.n4.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.n4.Location = new System.Drawing.Point(112, 120);
			this.n4.Size = new System.Drawing.Size(40, 32);
			this.n4.Text = "4";
			this.n4.Click += new System.EventHandler(this.n4_Click);
			// 
			// n3
			// 
			this.n3.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.n3.Location = new System.Drawing.Point(192, 88);
			this.n3.Size = new System.Drawing.Size(40, 32);
			this.n3.Text = "3";
			this.n3.Click += new System.EventHandler(this.n3_Click);
			// 
			// n2
			// 
			this.n2.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.n2.Location = new System.Drawing.Point(152, 88);
			this.n2.Size = new System.Drawing.Size(40, 32);
			this.n2.Text = "2";
			this.n2.Click += new System.EventHandler(this.n2_Click);
			// 
			// n1
			// 
			this.n1.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.n1.Location = new System.Drawing.Point(112, 88);
			this.n1.Size = new System.Drawing.Size(40, 32);
			this.n1.Text = "1";
			this.n1.Click += new System.EventHandler(this.n1_Click);
			// 
			// label4
			// 
			this.label4.ForeColor = System.Drawing.Color.Blue;
			this.label4.Location = new System.Drawing.Point(8, 24);
			this.label4.Size = new System.Drawing.Size(43, 17);
			this.label4.Text = "工号:";
			// 
			// gonghao
			// 
			this.gonghao.Location = new System.Drawing.Point(48, 24);
			this.gonghao.Size = new System.Drawing.Size(52, 18);
			// 
			// label5
			// 
			this.label5.ForeColor = System.Drawing.Color.Blue;
			this.label5.Location = new System.Drawing.Point(104, 24);
			this.label5.Size = new System.Drawing.Size(43, 17);
			this.label5.Text = "姓名:";
			this.label5.ParentChanged += new System.EventHandler(this.label5_ParentChanged);
			// 
			// label_name
			// 
			this.label_name.Location = new System.Drawing.Point(144, 24);
			this.label_name.Size = new System.Drawing.Size(89, 18);
			// 
			// comboBox1
			// 
			this.comboBox1.Items.Add("A");
			this.comboBox1.Items.Add("B");
			this.comboBox1.Items.Add("C");
			this.comboBox1.Items.Add("D");
			this.comboBox1.Items.Add("E");
			this.comboBox1.Items.Add("F");
			this.comboBox1.Items.Add("G");
			this.comboBox1.Items.Add("H");
			this.comboBox1.Items.Add("I");
			this.comboBox1.Items.Add("J");
			this.comboBox1.Items.Add("K");
			this.comboBox1.Items.Add("L");
			this.comboBox1.Items.Add("M");
			this.comboBox1.Items.Add("N");
			this.comboBox1.Items.Add("O");
			this.comboBox1.Items.Add("P");
			this.comboBox1.Items.Add("Q");
			this.comboBox1.Items.Add("R");
			this.comboBox1.Items.Add("S");
			this.comboBox1.Items.Add("T");
			this.comboBox1.Items.Add("U");
			this.comboBox1.Items.Add("V");
			this.comboBox1.Items.Add("W");
			this.comboBox1.Items.Add("X");
			this.comboBox1.Items.Add("Y");
			this.comboBox1.Items.Add("Z");
			this.comboBox1.Location = new System.Drawing.Point(72, 132);
			this.comboBox1.Size = new System.Drawing.Size(34, 20);
			this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(8, 135);
			this.label3.Size = new System.Drawing.Size(68, 15);
			this.label3.Text = "字母输入:";
			// 
			// button2
			// 
			this.button2.Font = new System.Drawing.Font("楷体_GB2312", 14.25F, System.Drawing.FontStyle.Bold);
			this.button2.Location = new System.Drawing.Point(9, 90);
			this.button2.Size = new System.Drawing.Size(95, 33);
			this.button2.Text = "数据同步";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// ReaderForm
			// 
			this.Controls.Add(this.button2);
			this.Controls.Add(this.label_name);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.gonghao);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.nBackSpace);
			this.Controls.Add(this.n0);
			this.Controls.Add(this.nClear);
			this.Controls.Add(this.n9);
			this.Controls.Add(this.n8);
			this.Controls.Add(this.n7);
			this.Controls.Add(this.n6);
			this.Controls.Add(this.n5);
			this.Controls.Add(this.n4);
			this.Controls.Add(this.n3);
			this.Controls.Add(this.n2);
			this.Controls.Add(this.n1);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.textBox1);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.ReaderDataListBox);
			this.Controls.Add(this.CloseButton);
			this.Controls.Add(this.comboBox1);
			this.Controls.Add(this.label3);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Text = "资产管理查询系统";
			this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ReaderForm_KeyPress);
			this.Load += new System.EventHandler(this.ReaderForm_Load);

		}
		#endregion

		private System.Windows.Forms.Button CloseButton;
		public String sn2=null;
		public Symbol.Barcode.Reader MyReader = null;
		private Symbol.Barcode.ReaderData MyReaderData = null;
		private System.EventHandler MyEventHandler = null;
		private System.Windows.Forms.ListBox ReaderDataListBox;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Timer timer1;
		internal static ReaderForm frm1;
		private System.Windows.Forms.Button nBackSpace;
		private System.Windows.Forms.Button n0;
		private System.Windows.Forms.Button nClear;
		private System.Windows.Forms.Button n9;
		private System.Windows.Forms.Button n8;
		private System.Windows.Forms.Button n7;
		private System.Windows.Forms.Button n6;
		private System.Windows.Forms.Button n5;
		private System.Windows.Forms.Button n4;
		private System.Windows.Forms.Button n3;
		private System.Windows.Forms.Button n2;
		private System.Windows.Forms.Button n1;
		private System.Windows.Forms.Label label4;
		public System.Windows.Forms.Label gonghao;
		private System.Windows.Forms.Label label5;
		private PDA_test.dataSync frm_start;
		private PDA_test.confirm confirm_start;
	//	private Symbol.Keyboard.KeyPad keypd=null;

		public string Sql_string;
		public System.Windows.Forms.Label label_name;
		public string log_name;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -