searchuserzhuchehistory.cs

来自「独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 」· CS 代码 · 共 184 行

CS
184
字号
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace WindowsApplication.searchUserHistory
{
	public class searchUserzhucheHistory : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label TitleLabel;
		private System.Windows.Forms.ImageList imageList1;
		private System.Windows.Forms.CheckBox textCheckUserName;
		private System.Windows.Forms.TextBox textUserName;
		private System.Windows.Forms.TextBox textDate;
		private System.Windows.Forms.CheckBox textCheckDate;
		private System.Windows.Forms.Button btnOk;
		private System.Windows.Forms.Button btnCancel;
		private System.ComponentModel.IContainer components;

		public searchUserzhucheHistory()
		{
			//
			// 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(searchUserzhucheHistory));
			this.TitleLabel = new System.Windows.Forms.Label();
			this.textCheckUserName = new System.Windows.Forms.CheckBox();
			this.textUserName = new System.Windows.Forms.TextBox();
			this.textDate = new System.Windows.Forms.TextBox();
			this.textCheckDate = new System.Windows.Forms.CheckBox();
			this.btnOk = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.SuspendLayout();
			// 
			// TitleLabel
			// 
			this.TitleLabel.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.TitleLabel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.TitleLabel.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.TitleLabel.ForeColor = System.Drawing.Color.White;
			this.TitleLabel.Location = new System.Drawing.Point(0, 0);
			this.TitleLabel.Name = "TitleLabel";
			this.TitleLabel.Size = new System.Drawing.Size(328, 32);
			this.TitleLabel.TabIndex = 0;
			this.TitleLabel.Text = "查询用户注册历史";
			this.TitleLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// textCheckUserName
			// 
			this.textCheckUserName.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.textCheckUserName.ForeColor = System.Drawing.Color.Blue;
			this.textCheckUserName.Location = new System.Drawing.Point(40, 64);
			this.textCheckUserName.Name = "textCheckUserName";
			this.textCheckUserName.Size = new System.Drawing.Size(72, 24);
			this.textCheckUserName.TabIndex = 1;
			this.textCheckUserName.Text = "登录名:";
			this.textCheckUserName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// textUserName
			// 
			this.textUserName.ForeColor = System.Drawing.Color.Blue;
			this.textUserName.Location = new System.Drawing.Point(128, 64);
			this.textUserName.Name = "textUserName";
			this.textUserName.Size = new System.Drawing.Size(152, 21);
			this.textUserName.TabIndex = 2;
			this.textUserName.Text = "";
			// 
			// textDate
			// 
			this.textDate.ForeColor = System.Drawing.Color.Blue;
			this.textDate.Location = new System.Drawing.Point(128, 119);
			this.textDate.Name = "textDate";
			this.textDate.Size = new System.Drawing.Size(152, 21);
			this.textDate.TabIndex = 4;
			this.textDate.Text = "";
			// 
			// textCheckDate
			// 
			this.textCheckDate.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.textCheckDate.ForeColor = System.Drawing.Color.Blue;
			this.textCheckDate.Location = new System.Drawing.Point(40, 119);
			this.textCheckDate.Name = "textCheckDate";
			this.textCheckDate.Size = new System.Drawing.Size(72, 24);
			this.textCheckDate.TabIndex = 3;
			this.textCheckDate.Text = "日期:";
			this.textCheckDate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// btnOk
			// 
			this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnOk.ForeColor = System.Drawing.Color.Blue;
			this.btnOk.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnOk.ImageIndex = 0;
			this.btnOk.ImageList = this.imageList1;
			this.btnOk.Location = new System.Drawing.Point(80, 168);
			this.btnOk.Name = "btnOk";
			this.btnOk.Size = new System.Drawing.Size(80, 24);
			this.btnOk.TabIndex = 5;
			this.btnOk.Text = "查询(&S)";
			this.btnOk.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// btnCancel
			// 
			this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnCancel.ForeColor = System.Drawing.Color.Blue;
			this.btnCancel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnCancel.ImageIndex = 1;
			this.btnCancel.ImageList = this.imageList1;
			this.btnCancel.Location = new System.Drawing.Point(200, 168);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(80, 24);
			this.btnCancel.TabIndex = 6;
			this.btnCancel.Text = "取消(&C)";
			this.btnCancel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// searchUserzhucheHistory
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.CancelButton = this.btnOk;
			this.ClientSize = new System.Drawing.Size(326, 211);
			this.Controls.Add(this.btnCancel);
			this.Controls.Add(this.btnOk);
			this.Controls.Add(this.textDate);
			this.Controls.Add(this.textCheckDate);
			this.Controls.Add(this.textUserName);
			this.Controls.Add(this.textCheckUserName);
			this.Controls.Add(this.TitleLabel);
			this.Cursor = System.Windows.Forms.Cursors.Hand;
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "searchUserzhucheHistory";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "searchUserzhucheHistory";
			this.ResumeLayout(false);

		}
		#endregion
	}
}

⌨️ 快捷键说明

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