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

📄 childmgrlogin.cs

📁 报刊广告管理系统。CSharp编写
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;namespace WWAM.Forms.Child{	public class ChildMgrLogin : WWAM.Forms.Child.ChdBase	{
		#region ChildMgrLogin
		private DevExpress.XtraGrid.GridControl gcLogin;
		private DevExpress.XtraGrid.Views.Grid.GridView gvLogin;
		private WWAM.BLL.NavBarBtns nbbUser;
		private System.Windows.Forms.Label label1;
		private WWAM.DBA.WWAMDS wwamds1;
		private DevExpress.XtraGrid.Columns.GridColumn colLoginTime;
		private DevExpress.XtraGrid.Columns.GridColumn colLastActTime;
		private DevExpress.XtraGrid.Columns.GridColumn colLogoutTime;
		private DevExpress.XtraGrid.Columns.GridColumn colUserCode;
		private DevExpress.XtraGrid.Columns.GridColumn colIsValid;
		private DevExpress.XtraGrid.Columns.GridColumn colIPAddress;
		private DevExpress.XtraGrid.Columns.GridColumn colDescribe;
		private DevExpress.XtraGrid.Columns.GridColumn colIsAlive;
		private DevExpress.XtraEditors.DateEdit ftxtDate1;
		private DevExpress.XtraEditors.DateEdit ftxtDate2;		private System.ComponentModel.IContainer components = null;		public ChildMgrLogin()		{			// 该调用是 Windows 窗体设计器所必需的。			InitializeComponent();			// TODO: 在 InitializeComponent 调用后添加任何初始化		}		public ChildMgrLogin(DevExpress.XtraNavBar.NavBarItem item):base(item)		{			// 该调用是 Windows 窗体设计器所必需的。			InitializeComponent();			// TODO: 在 InitializeComponent 调用后添加任何初始化		}		/// <summary>		/// 清理所有正在使用的资源。		/// </summary>		protected override void Dispose( bool disposing )		{			if( disposing )			{				if (components != null) 				{					components.Dispose();				}			}			base.Dispose( disposing );		}		#region 设计器生成的代码		/// <summary>		/// 设计器支持所需的方法 - 不要使用代码编辑器修改		/// 此方法的内容。		/// </summary>		private void InitializeComponent()		{			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ChildMgrLogin));
			this.gcLogin = new DevExpress.XtraGrid.GridControl();
			this.wwamds1 = new WWAM.DBA.WWAMDS();
			this.gvLogin = new DevExpress.XtraGrid.Views.Grid.GridView();
			this.colIsAlive = new DevExpress.XtraGrid.Columns.GridColumn();
			this.colUserCode = new DevExpress.XtraGrid.Columns.GridColumn();
			this.colLoginTime = new DevExpress.XtraGrid.Columns.GridColumn();
			this.colIPAddress = new DevExpress.XtraGrid.Columns.GridColumn();
			this.colIsValid = new DevExpress.XtraGrid.Columns.GridColumn();
			this.colLastActTime = new DevExpress.XtraGrid.Columns.GridColumn();
			this.colLogoutTime = new DevExpress.XtraGrid.Columns.GridColumn();
			this.colDescribe = new DevExpress.XtraGrid.Columns.GridColumn();
			this.nbbUser = new WWAM.BLL.NavBarBtns();
			this.ftxtDate1 = new DevExpress.XtraEditors.DateEdit();
			this.ftxtDate2 = new DevExpress.XtraEditors.DateEdit();
			this.label1 = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.gcLogin)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.wwamds1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.gvLogin)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.ftxtDate1.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.ftxtDate2.Properties)).BeginInit();
			this.SuspendLayout();
			// 
			// btnClose
			// 
			this.btnClose.Name = "btnClose";
			// 
			// gcLogin
			// 
			this.gcLogin.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.gcLogin.DataSource = this.wwamds1.lLogin;
			// 
			// gcLogin.EmbeddedNavigator
			// 
			this.gcLogin.EmbeddedNavigator.Buttons.Append.Visible = false;
			this.gcLogin.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
			this.gcLogin.EmbeddedNavigator.Buttons.Edit.Visible = false;
			this.gcLogin.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
			this.gcLogin.EmbeddedNavigator.Buttons.NextPage.Visible = false;
			this.gcLogin.EmbeddedNavigator.Buttons.PrevPage.Visible = false;
			this.gcLogin.EmbeddedNavigator.Buttons.Remove.Visible = false;
			this.gcLogin.EmbeddedNavigator.Name = "";
			this.gcLogin.EmbeddedNavigator.TextStringFormat = "第 {0} 条 / 共 {1} 条";
			this.gcLogin.Location = new System.Drawing.Point(8, 40);
			this.gcLogin.MainView = this.gvLogin;
			this.gcLogin.Name = "gcLogin";
			this.gcLogin.Size = new System.Drawing.Size(536, 336);
			this.gcLogin.TabIndex = 7;
			this.gcLogin.UseEmbeddedNavigator = true;
			this.gcLogin.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
																								   this.gvLogin});
			// 
			// wwamds1
			// 
			this.wwamds1.DataSetName = "WWAMDS";
			this.wwamds1.Locale = new System.Globalization.CultureInfo("en-US");
			// 
			// gvLogin
			// 
			this.gvLogin.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
																						   this.colIsAlive,
																						   this.colUserCode,
																						   this.colLoginTime,
																						   this.colIPAddress,
																						   this.colIsValid,
																						   this.colLastActTime,
																						   this.colLogoutTime,
																						   this.colDescribe});
			this.gvLogin.GridControl = this.gcLogin;
			this.gvLogin.GroupSummary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
																							 new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Count, "Loginid", null, "(次数: {0})")});
			this.gvLogin.Name = "gvLogin";
			this.gvLogin.OptionsBehavior.Editable = false;
			this.gvLogin.OptionsCustomization.AllowFilter = false;
			this.gvLogin.OptionsMenu.EnableFooterMenu = false;
			this.gvLogin.OptionsMenu.EnableGroupPanelMenu = false;
			this.gvLogin.OptionsView.ColumnAutoWidth = false;
			this.gvLogin.OptionsView.ShowGroupPanel = false;
			this.gvLogin.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] {
																									new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.colLoginTime, DevExpress.Data.ColumnSortOrder.Descending)});
			this.gvLogin.Layout += new System.EventHandler(this.View_Layout);
			// 
			// colIsAlive
			// 
			this.colIsAlive.Caption = "在线";
			this.colIsAlive.FieldName = "IsAlive";
			this.colIsAlive.Name = "colIsAlive";
			this.colIsAlive.Visible = true;
			this.colIsAlive.VisibleIndex = 0;
			this.colIsAlive.Width = 55;
			// 
			// colUserCode
			// 
			this.colUserCode.Caption = "登录帐号";
			this.colUserCode.FieldName = "UserCode";
			this.colUserCode.Name = "colUserCode";
			this.colUserCode.Visible = true;
			this.colUserCode.VisibleIndex = 1;
			this.colUserCode.Width = 88;
			// 
			// colLoginTime
			// 
			this.colLoginTime.Caption = "登录时间";
			this.colLoginTime.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss";
			this.colLoginTime.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
			this.colLoginTime.FieldName = "LoginTime";
			this.colLoginTime.Name = "colLoginTime";
			this.colLoginTime.Visible = true;
			this.colLoginTime.VisibleIndex = 2;
			this.colLoginTime.Width = 124;
			// 
			// colIPAddress
			// 
			this.colIPAddress.Caption = "登录IP";
			this.colIPAddress.FieldName = "IPAddress";
			this.colIPAddress.Name = "colIPAddress";
			this.colIPAddress.Visible = true;
			this.colIPAddress.VisibleIndex = 3;
			this.colIPAddress.Width = 119;
			// 

⌨️ 快捷键说明

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