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

📄 parentframe.cs

📁 独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 
💻 CS
📖 第 1 页 / 共 2 页
字号:
#region 命名空间...
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using WindowsApplication.dealTime;
using WindowsApplication.UserHistoryFrame;
using WindowsApplication.searchUserHistory;
#endregion
namespace WindowsApplication.ParentMDiFrame
{
	public class ParentFrame : System.Windows.Forms.Form
	{
		#region 控件集合...
		protected SqlDataAdapter dataAdapter=null;
		protected DataSet ds=new DataSet();
		protected System.Windows.Forms.CurrencyManager cmOrders=null;
		protected System.Windows.Forms.ToolBar tool;
		protected System.Windows.Forms.ToolBarButton tFrist;
		protected System.Windows.Forms.ToolBarButton toolbar;
		protected System.Windows.Forms.ToolBarButton tLast;
		protected System.Windows.Forms.ToolBarButton toolbarA;
		protected System.Windows.Forms.ToolBarButton tNext;
		protected System.Windows.Forms.ToolBarButton toolBarB;
		protected System.Windows.Forms.ToolBarButton tEnd;
		protected System.Windows.Forms.ToolBarButton toolBarButton2;
		protected System.Windows.Forms.ToolBarButton tDelete;
		protected System.Windows.Forms.ToolBarButton toolBarButton4;
		protected System.Windows.Forms.ImageList image;
		protected System.Windows.Forms.Label TitleLabel;
		protected System.Windows.Forms.StatusBar status;
		protected System.Windows.Forms.StatusBarPanel stStauts;
		protected System.Windows.Forms.StatusBarPanel stUserOperator;
		protected System.Windows.Forms.StatusBarPanel stDateText;
		protected System.Windows.Forms.StatusBarPanel stTimeText;
		protected System.Windows.Forms.StatusBarPanel stState;
		protected System.Windows.Forms.Timer currentTime;
		protected System.Windows.Forms.ToolBarButton tSearch;
		protected System.Windows.Forms.DataGrid dataGridSource;
		protected string tablename=null;
		private System.Windows.Forms.ContextMenu contextMenu;
		private System.Windows.Forms.MenuItem searchUserDengluHistory;
		private System.Windows.Forms.MenuItem searchUserZhuCheHistory;
		private System.Windows.Forms.MenuItem searchUserManagerHistory;
		private System.Windows.Forms.ToolBarButton tDeleteHistory;
		private System.Windows.Forms.ToolBarButton toolBarButton1;
		private System.Windows.Forms.ToolBarButton tExit;
		private System.ComponentModel.IContainer components;
		#endregion
		#region 构造函数...
		public ParentFrame()
		{
			//
			// 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(ParentFrame));
			this.tool = new System.Windows.Forms.ToolBar();
			this.tFrist = new System.Windows.Forms.ToolBarButton();
			this.toolbar = new System.Windows.Forms.ToolBarButton();
			this.tLast = new System.Windows.Forms.ToolBarButton();
			this.toolbarA = new System.Windows.Forms.ToolBarButton();
			this.tNext = new System.Windows.Forms.ToolBarButton();
			this.toolBarB = new System.Windows.Forms.ToolBarButton();
			this.tEnd = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
			this.tDelete = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
			this.tSearch = new System.Windows.Forms.ToolBarButton();
			this.contextMenu = new System.Windows.Forms.ContextMenu();
			this.searchUserDengluHistory = new System.Windows.Forms.MenuItem();
			this.searchUserZhuCheHistory = new System.Windows.Forms.MenuItem();
			this.searchUserManagerHistory = new System.Windows.Forms.MenuItem();
			this.tDeleteHistory = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
			this.tExit = new System.Windows.Forms.ToolBarButton();
			this.image = new System.Windows.Forms.ImageList(this.components);
			this.TitleLabel = new System.Windows.Forms.Label();
			this.status = new System.Windows.Forms.StatusBar();
			this.stStauts = new System.Windows.Forms.StatusBarPanel();
			this.stUserOperator = new System.Windows.Forms.StatusBarPanel();
			this.stDateText = new System.Windows.Forms.StatusBarPanel();
			this.stTimeText = new System.Windows.Forms.StatusBarPanel();
			this.stState = new System.Windows.Forms.StatusBarPanel();
			this.dataGridSource = new System.Windows.Forms.DataGrid();
			this.currentTime = new System.Windows.Forms.Timer(this.components);
			((System.ComponentModel.ISupportInitialize)(this.stStauts)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.stUserOperator)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.stDateText)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.stTimeText)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.stState)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dataGridSource)).BeginInit();
			this.SuspendLayout();
			// 
			// tool
			// 
			this.tool.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
			this.tool.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tool.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																					this.tFrist,
																					this.toolbar,
																					this.tLast,
																					this.toolbarA,
																					this.tNext,
																					this.toolBarB,
																					this.tEnd,
																					this.toolBarButton2,
																					this.tDelete,
																					this.toolBarButton4,
																					this.tSearch,
																					this.tDeleteHistory,
																					this.toolBarButton1,
																					this.tExit});
			this.tool.ButtonSize = new System.Drawing.Size(90, 40);
			this.tool.Divider = false;
			this.tool.DropDownArrows = true;
			this.tool.ImageList = this.image;
			this.tool.Location = new System.Drawing.Point(0, 0);
			this.tool.Name = "tool";
			this.tool.ShowToolTips = true;
			this.tool.Size = new System.Drawing.Size(862, 40);
			this.tool.TabIndex = 0;
			this.tool.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tool_ButtonClick);
			// 
			// tFrist
			// 
			this.tFrist.ImageIndex = 2;
			this.tFrist.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
			this.tFrist.Text = "首记录(&F)";
			this.tFrist.ToolTipText = "首记录";
			// 
			// toolbar
			// 
			this.toolbar.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			// 
			// tLast
			// 
			this.tLast.ImageIndex = 0;
			this.tLast.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
			this.tLast.Text = "上一条记录(&L)";
			this.tLast.ToolTipText = "上一条记录";
			// 
			// toolbarA
			// 
			this.toolbarA.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			// 
			// tNext
			// 
			this.tNext.ImageIndex = 1;
			this.tNext.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
			this.tNext.Text = "下一条记录(&N)";
			this.tNext.ToolTipText = "下一条记录";
			// 
			// toolBarB
			// 
			this.toolBarB.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			// 
			// tEnd
			// 
			this.tEnd.ImageIndex = 3;
			this.tEnd.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
			this.tEnd.Text = "尾记录(&E)";
			this.tEnd.ToolTipText = "尾记录";
			// 
			// toolBarButton2
			// 
			this.toolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			// 
			// tDelete
			// 
			this.tDelete.ImageIndex = 4;
			this.tDelete.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
			this.tDelete.Text = "删除历史(&D)";
			this.tDelete.ToolTipText = "删除历史";
			// 
			// toolBarButton4
			// 
			this.toolBarButton4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			// 
			// tSearch
			// 
			this.tSearch.DropDownMenu = this.contextMenu;
			this.tSearch.ImageIndex = 7;
			this.tSearch.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
			this.tSearch.Text = "查询(&S)";
			this.tSearch.ToolTipText = "查询";
			// 
			// contextMenu
			// 
			this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						this.searchUserDengluHistory,
																						this.searchUserZhuCheHistory,
																						this.searchUserManagerHistory});
			// 
			// searchUserDengluHistory
			// 
			this.searchUserDengluHistory.Index = 0;
			this.searchUserDengluHistory.Text = "查询用户登录历史(&U)";
			this.searchUserDengluHistory.Click += new System.EventHandler(this.searchUserDengluHistory_Click);
			// 
			// searchUserZhuCheHistory
			// 
			this.searchUserZhuCheHistory.Index = 1;
			this.searchUserZhuCheHistory.Text = "查询用户注册历史(&Z)";
			this.searchUserZhuCheHistory.Click += new System.EventHandler(this.searchUserZhuCheHistory_Click);
			// 
			// searchUserManagerHistory
			// 
			this.searchUserManagerHistory.Index = 2;
			this.searchUserManagerHistory.Text = "查询用户管理历史(&V)";
			this.searchUserManagerHistory.Click += new System.EventHandler(this.searchUserManagerHistory_Click);
			// 
			// tDeleteHistory
			// 
			this.tDeleteHistory.ImageIndex = 8;
			this.tDeleteHistory.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
			this.tDeleteHistory.Text = "删除(&E)";
			this.tDeleteHistory.ToolTipText = "删除";
			// 
			// toolBarButton1
			// 
			this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			// 
			// tExit
			// 
			this.tExit.ImageIndex = 6;
			this.tExit.Text = "退出(&X)";
			this.tExit.ToolTipText = "退出";
			// 
			// 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;
			// 
			// TitleLabel
			// 
			this.TitleLabel.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.TitleLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			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.SystemColors.ActiveCaptionText;
			this.TitleLabel.Location = new System.Drawing.Point(0, 40);
			this.TitleLabel.Name = "TitleLabel";
			this.TitleLabel.Size = new System.Drawing.Size(864, 40);
			this.TitleLabel.TabIndex = 1;
			this.TitleLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// status
			// 
			this.status.Location = new System.Drawing.Point(0, 427);
			this.status.Name = "status";
			this.status.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
																					  this.stStauts,
																					  this.stUserOperator,
																					  this.stDateText,
																					  this.stTimeText,
																					  this.stState});
			this.status.ShowPanels = true;

⌨️ 快捷键说明

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