searchuserdenluhistory.cs

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

CS
191
字号
#region 命名空间...
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
#endregion
namespace WindowsApplication.searchUserHistory
{
	public class searchuserdenluHistory : System.Windows.Forms.Form
	{
		#region 控件集合...
		private System.Windows.Forms.Label TitleLabel;
		private System.Windows.Forms.TextBox textUserName;
		private System.Windows.Forms.CheckBox textCheckUserName;
		private System.Windows.Forms.ComboBox textDate;
		private System.Windows.Forms.CheckBox textCheckDate;
		private System.Windows.Forms.Button btnOk;
		private System.Windows.Forms.Button btnCancel;
		private System.Windows.Forms.ImageList image;
		private System.ComponentModel.IContainer components;
		#endregion
		#region 构造函数...
		public searchuserdenluHistory()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}
		#endregion
		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(searchuserdenluHistory));
			this.TitleLabel = new System.Windows.Forms.Label();
			this.textCheckUserName = new System.Windows.Forms.CheckBox();
			this.textUserName = new System.Windows.Forms.TextBox();
			this.textCheckDate = new System.Windows.Forms.CheckBox();
			this.textDate = new System.Windows.Forms.ComboBox();
			this.btnOk = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			this.image = 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.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.TitleLabel.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.TitleLabel.Location = new System.Drawing.Point(0, 0);
			this.TitleLabel.Name = "TitleLabel";
			this.TitleLabel.Size = new System.Drawing.Size(304, 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, 48);
			this.textCheckUserName.Name = "textCheckUserName";
			this.textCheckUserName.Size = new System.Drawing.Size(72, 24);
			this.textCheckUserName.TabIndex = 2;
			this.textCheckUserName.Text = "登录名:";
			this.textCheckUserName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// textUserName
			// 
			this.textUserName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.textUserName.Cursor = System.Windows.Forms.Cursors.Hand;
			this.textUserName.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.textUserName.Location = new System.Drawing.Point(112, 48);
			this.textUserName.Name = "textUserName";
			this.textUserName.Size = new System.Drawing.Size(144, 21);
			this.textUserName.TabIndex = 3;
			this.textUserName.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, 96);
			this.textCheckDate.Name = "textCheckDate";
			this.textCheckDate.Size = new System.Drawing.Size(56, 24);
			this.textCheckDate.TabIndex = 4;
			this.textCheckDate.Text = "日期:";
			this.textCheckDate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// textDate
			// 
			this.textDate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
			this.textDate.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.textDate.Location = new System.Drawing.Point(112, 96);
			this.textDate.Name = "textDate";
			this.textDate.Size = new System.Drawing.Size(144, 20);
			this.textDate.TabIndex = 5;
			// 
			// 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 = 1;
			this.btnOk.ImageList = this.image;
			this.btnOk.Location = new System.Drawing.Point(40, 136);
			this.btnOk.Name = "btnOk";
			this.btnOk.Size = new System.Drawing.Size(80, 24);
			this.btnOk.TabIndex = 6;
			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 = 0;
			this.btnCancel.ImageList = this.image;
			this.btnCancel.Location = new System.Drawing.Point(176, 136);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(80, 24);
			this.btnCancel.TabIndex = 7;
			this.btnCancel.Text = "取消(&C)";
			this.btnCancel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// image
			// 
			this.image.ImageSize = new System.Drawing.Size(16, 16);
			this.image.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("image.ImageStream")));
			this.image.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// searchuserdenluHistory
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.ClientSize = new System.Drawing.Size(302, 179);
			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.HelpButton = true;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "searchuserdenluHistory";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "searchuserdenluHistory";
			this.ResumeLayout(false);

		}
		#endregion
	}
}

⌨️ 快捷键说明

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