|
|
|
@ -32,26 +32,26 @@ namespace HighWayIot.Winform.UserControlPages
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
|
|
|
|
this.UserInfoDataGridView = new System.Windows.Forms.DataGridView();
|
|
|
|
|
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.UserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.Password = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.UserRole = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.LastLoginTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.AddUser = new System.Windows.Forms.Button();
|
|
|
|
|
this.UpdateUser = new System.Windows.Forms.Button();
|
|
|
|
|
this.DeleteUser = new System.Windows.Forms.Button();
|
|
|
|
|
this.ButtonPanel = new System.Windows.Forms.Panel();
|
|
|
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
|
|
|
this.SelectUser = new System.Windows.Forms.Button();
|
|
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
|
|
this.SelectUserName = new System.Windows.Forms.TextBox();
|
|
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
|
|
this.SelectUserRole = new System.Windows.Forms.ComboBox();
|
|
|
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
|
|
|
this.IsCheckByLoginTime = new System.Windows.Forms.CheckBox();
|
|
|
|
|
this.SelectUserLoginBeginTime = new System.Windows.Forms.DateTimePicker();
|
|
|
|
|
this.SelectUserLoginEndTime = new System.Windows.Forms.DateTimePicker();
|
|
|
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
|
|
|
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.UserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.Password = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.UserRole = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.LastLoginTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.SelectUserLoginEndTime = new System.Windows.Forms.DateTimePicker();
|
|
|
|
|
this.SelectUserLoginBeginTime = new System.Windows.Forms.DateTimePicker();
|
|
|
|
|
this.IsCheckByLoginTime = new System.Windows.Forms.CheckBox();
|
|
|
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
|
|
|
this.SelectUserRole = new System.Windows.Forms.ComboBox();
|
|
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
|
|
this.SelectUserName = new System.Windows.Forms.TextBox();
|
|
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
|
|
this.SelectUser = new System.Windows.Forms.Button();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.UserInfoDataGridView)).BeginInit();
|
|
|
|
|
this.ButtonPanel.SuspendLayout();
|
|
|
|
|
this.groupBox1.SuspendLayout();
|
|
|
|
@ -78,6 +78,46 @@ namespace HighWayIot.Winform.UserControlPages
|
|
|
|
|
this.UserInfoDataGridView.Size = new System.Drawing.Size(1188, 869);
|
|
|
|
|
this.UserInfoDataGridView.TabIndex = 0;
|
|
|
|
|
//
|
|
|
|
|
// Id
|
|
|
|
|
//
|
|
|
|
|
this.Id.DataPropertyName = "Id";
|
|
|
|
|
this.Id.HeaderText = "ID";
|
|
|
|
|
this.Id.Name = "Id";
|
|
|
|
|
this.Id.ReadOnly = true;
|
|
|
|
|
this.Id.Width = 50;
|
|
|
|
|
//
|
|
|
|
|
// UserName
|
|
|
|
|
//
|
|
|
|
|
this.UserName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.UserName.DataPropertyName = "UserName";
|
|
|
|
|
this.UserName.HeaderText = "用户名";
|
|
|
|
|
this.UserName.Name = "UserName";
|
|
|
|
|
this.UserName.ReadOnly = true;
|
|
|
|
|
//
|
|
|
|
|
// Password
|
|
|
|
|
//
|
|
|
|
|
this.Password.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.Password.DataPropertyName = "Password";
|
|
|
|
|
this.Password.HeaderText = "用户密码";
|
|
|
|
|
this.Password.Name = "Password";
|
|
|
|
|
this.Password.ReadOnly = true;
|
|
|
|
|
//
|
|
|
|
|
// UserRole
|
|
|
|
|
//
|
|
|
|
|
this.UserRole.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.UserRole.DataPropertyName = "UserRole";
|
|
|
|
|
this.UserRole.HeaderText = "用户角色";
|
|
|
|
|
this.UserRole.Name = "UserRole";
|
|
|
|
|
this.UserRole.ReadOnly = true;
|
|
|
|
|
//
|
|
|
|
|
// LastLoginTime
|
|
|
|
|
//
|
|
|
|
|
this.LastLoginTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.LastLoginTime.DataPropertyName = "LastLoginTime";
|
|
|
|
|
this.LastLoginTime.HeaderText = "上次登录时间";
|
|
|
|
|
this.LastLoginTime.Name = "LastLoginTime";
|
|
|
|
|
this.LastLoginTime.ReadOnly = true;
|
|
|
|
|
//
|
|
|
|
|
// AddUser
|
|
|
|
|
//
|
|
|
|
|
this.AddUser.Location = new System.Drawing.Point(11, 11);
|
|
|
|
@ -146,58 +186,33 @@ namespace HighWayIot.Winform.UserControlPages
|
|
|
|
|
this.groupBox1.TabStop = false;
|
|
|
|
|
this.groupBox1.Text = "条件查询,某项为空则不判断该项";
|
|
|
|
|
//
|
|
|
|
|
// SelectUser
|
|
|
|
|
//
|
|
|
|
|
this.SelectUser.Location = new System.Drawing.Point(6, 19);
|
|
|
|
|
this.SelectUser.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
|
|
this.SelectUser.Name = "SelectUser";
|
|
|
|
|
this.SelectUser.Size = new System.Drawing.Size(67, 28);
|
|
|
|
|
this.SelectUser.TabIndex = 4;
|
|
|
|
|
this.SelectUser.Text = "查询";
|
|
|
|
|
this.SelectUser.UseVisualStyleBackColor = true;
|
|
|
|
|
this.SelectUser.Click += new System.EventHandler(this.SelectUser_Click);
|
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
this.label1.AutoSize = true;
|
|
|
|
|
this.label1.Location = new System.Drawing.Point(79, 12);
|
|
|
|
|
this.label1.Name = "label1";
|
|
|
|
|
this.label1.Size = new System.Drawing.Size(53, 12);
|
|
|
|
|
this.label1.TabIndex = 5;
|
|
|
|
|
this.label1.Text = "用户名:";
|
|
|
|
|
//
|
|
|
|
|
// SelectUserName
|
|
|
|
|
//
|
|
|
|
|
this.SelectUserName.Location = new System.Drawing.Point(81, 28);
|
|
|
|
|
this.SelectUserName.Name = "SelectUserName";
|
|
|
|
|
this.SelectUserName.Size = new System.Drawing.Size(100, 21);
|
|
|
|
|
this.SelectUserName.TabIndex = 6;
|
|
|
|
|
//
|
|
|
|
|
// label2
|
|
|
|
|
// label4
|
|
|
|
|
//
|
|
|
|
|
this.label2.AutoSize = true;
|
|
|
|
|
this.label2.Location = new System.Drawing.Point(185, 12);
|
|
|
|
|
this.label2.Name = "label2";
|
|
|
|
|
this.label2.Size = new System.Drawing.Size(41, 12);
|
|
|
|
|
this.label2.TabIndex = 7;
|
|
|
|
|
this.label2.Text = "角色:";
|
|
|
|
|
this.label4.AutoSize = true;
|
|
|
|
|
this.label4.Location = new System.Drawing.Point(484, 31);
|
|
|
|
|
this.label4.Name = "label4";
|
|
|
|
|
this.label4.Size = new System.Drawing.Size(17, 12);
|
|
|
|
|
this.label4.TabIndex = 13;
|
|
|
|
|
this.label4.Text = "到";
|
|
|
|
|
//
|
|
|
|
|
// SelectUserRole
|
|
|
|
|
// SelectUserLoginEndTime
|
|
|
|
|
//
|
|
|
|
|
this.SelectUserRole.FormattingEnabled = true;
|
|
|
|
|
this.SelectUserRole.Location = new System.Drawing.Point(187, 28);
|
|
|
|
|
this.SelectUserRole.Name = "SelectUserRole";
|
|
|
|
|
this.SelectUserRole.Size = new System.Drawing.Size(100, 20);
|
|
|
|
|
this.SelectUserRole.TabIndex = 8;
|
|
|
|
|
this.SelectUserLoginEndTime.CustomFormat = "yyyy年MM月dd日 HH:mm:ss";
|
|
|
|
|
this.SelectUserLoginEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
|
|
|
|
this.SelectUserLoginEndTime.Location = new System.Drawing.Point(507, 28);
|
|
|
|
|
this.SelectUserLoginEndTime.Name = "SelectUserLoginEndTime";
|
|
|
|
|
this.SelectUserLoginEndTime.Size = new System.Drawing.Size(185, 21);
|
|
|
|
|
this.SelectUserLoginEndTime.TabIndex = 12;
|
|
|
|
|
//
|
|
|
|
|
// label3
|
|
|
|
|
// SelectUserLoginBeginTime
|
|
|
|
|
//
|
|
|
|
|
this.label3.AutoSize = true;
|
|
|
|
|
this.label3.Location = new System.Drawing.Point(291, 12);
|
|
|
|
|
this.label3.Name = "label3";
|
|
|
|
|
this.label3.Size = new System.Drawing.Size(65, 12);
|
|
|
|
|
this.label3.TabIndex = 9;
|
|
|
|
|
this.label3.Text = "登陆时间:";
|
|
|
|
|
this.SelectUserLoginBeginTime.CustomFormat = "yyyy年MM月dd日 HH:mm:ss";
|
|
|
|
|
this.SelectUserLoginBeginTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
|
|
|
|
this.SelectUserLoginBeginTime.Location = new System.Drawing.Point(293, 28);
|
|
|
|
|
this.SelectUserLoginBeginTime.Name = "SelectUserLoginBeginTime";
|
|
|
|
|
this.SelectUserLoginBeginTime.Size = new System.Drawing.Size(185, 21);
|
|
|
|
|
this.SelectUserLoginBeginTime.TabIndex = 11;
|
|
|
|
|
this.SelectUserLoginBeginTime.Value = new System.DateTime(2024, 11, 26, 13, 36, 9, 0);
|
|
|
|
|
//
|
|
|
|
|
// IsCheckByLoginTime
|
|
|
|
|
//
|
|
|
|
@ -209,68 +224,58 @@ namespace HighWayIot.Winform.UserControlPages
|
|
|
|
|
this.IsCheckByLoginTime.Text = "是否根据时间判断";
|
|
|
|
|
this.IsCheckByLoginTime.UseVisualStyleBackColor = true;
|
|
|
|
|
//
|
|
|
|
|
// SelectUserLoginBeginTime
|
|
|
|
|
//
|
|
|
|
|
this.SelectUserLoginBeginTime.Location = new System.Drawing.Point(293, 28);
|
|
|
|
|
this.SelectUserLoginBeginTime.Name = "SelectUserLoginBeginTime";
|
|
|
|
|
this.SelectUserLoginBeginTime.Size = new System.Drawing.Size(102, 21);
|
|
|
|
|
this.SelectUserLoginBeginTime.TabIndex = 11;
|
|
|
|
|
//
|
|
|
|
|
// SelectUserLoginEndTime
|
|
|
|
|
//
|
|
|
|
|
this.SelectUserLoginEndTime.Location = new System.Drawing.Point(424, 28);
|
|
|
|
|
this.SelectUserLoginEndTime.Name = "SelectUserLoginEndTime";
|
|
|
|
|
this.SelectUserLoginEndTime.Size = new System.Drawing.Size(102, 21);
|
|
|
|
|
this.SelectUserLoginEndTime.TabIndex = 12;
|
|
|
|
|
//
|
|
|
|
|
// label4
|
|
|
|
|
// label3
|
|
|
|
|
//
|
|
|
|
|
this.label4.AutoSize = true;
|
|
|
|
|
this.label4.Location = new System.Drawing.Point(401, 31);
|
|
|
|
|
this.label4.Name = "label4";
|
|
|
|
|
this.label4.Size = new System.Drawing.Size(17, 12);
|
|
|
|
|
this.label4.TabIndex = 13;
|
|
|
|
|
this.label4.Text = "到";
|
|
|
|
|
this.label3.AutoSize = true;
|
|
|
|
|
this.label3.Location = new System.Drawing.Point(291, 12);
|
|
|
|
|
this.label3.Name = "label3";
|
|
|
|
|
this.label3.Size = new System.Drawing.Size(65, 12);
|
|
|
|
|
this.label3.TabIndex = 9;
|
|
|
|
|
this.label3.Text = "登陆时间:";
|
|
|
|
|
//
|
|
|
|
|
// Id
|
|
|
|
|
// SelectUserRole
|
|
|
|
|
//
|
|
|
|
|
this.Id.DataPropertyName = "Id";
|
|
|
|
|
this.Id.HeaderText = "ID";
|
|
|
|
|
this.Id.Name = "Id";
|
|
|
|
|
this.Id.ReadOnly = true;
|
|
|
|
|
this.Id.Width = 50;
|
|
|
|
|
this.SelectUserRole.FormattingEnabled = true;
|
|
|
|
|
this.SelectUserRole.Location = new System.Drawing.Point(187, 28);
|
|
|
|
|
this.SelectUserRole.Name = "SelectUserRole";
|
|
|
|
|
this.SelectUserRole.Size = new System.Drawing.Size(100, 20);
|
|
|
|
|
this.SelectUserRole.TabIndex = 8;
|
|
|
|
|
//
|
|
|
|
|
// UserName
|
|
|
|
|
// label2
|
|
|
|
|
//
|
|
|
|
|
this.UserName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.UserName.DataPropertyName = "UserName";
|
|
|
|
|
this.UserName.HeaderText = "用户名";
|
|
|
|
|
this.UserName.Name = "UserName";
|
|
|
|
|
this.UserName.ReadOnly = true;
|
|
|
|
|
this.label2.AutoSize = true;
|
|
|
|
|
this.label2.Location = new System.Drawing.Point(185, 12);
|
|
|
|
|
this.label2.Name = "label2";
|
|
|
|
|
this.label2.Size = new System.Drawing.Size(41, 12);
|
|
|
|
|
this.label2.TabIndex = 7;
|
|
|
|
|
this.label2.Text = "角色:";
|
|
|
|
|
//
|
|
|
|
|
// Password
|
|
|
|
|
// SelectUserName
|
|
|
|
|
//
|
|
|
|
|
this.Password.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.Password.DataPropertyName = "Password";
|
|
|
|
|
this.Password.HeaderText = "用户密码";
|
|
|
|
|
this.Password.Name = "Password";
|
|
|
|
|
this.Password.ReadOnly = true;
|
|
|
|
|
this.SelectUserName.Location = new System.Drawing.Point(81, 28);
|
|
|
|
|
this.SelectUserName.Name = "SelectUserName";
|
|
|
|
|
this.SelectUserName.Size = new System.Drawing.Size(100, 21);
|
|
|
|
|
this.SelectUserName.TabIndex = 6;
|
|
|
|
|
//
|
|
|
|
|
// UserRole
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
this.UserRole.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.UserRole.DataPropertyName = "UserRole";
|
|
|
|
|
this.UserRole.HeaderText = "用户角色";
|
|
|
|
|
this.UserRole.Name = "UserRole";
|
|
|
|
|
this.UserRole.ReadOnly = true;
|
|
|
|
|
this.label1.AutoSize = true;
|
|
|
|
|
this.label1.Location = new System.Drawing.Point(79, 12);
|
|
|
|
|
this.label1.Name = "label1";
|
|
|
|
|
this.label1.Size = new System.Drawing.Size(53, 12);
|
|
|
|
|
this.label1.TabIndex = 5;
|
|
|
|
|
this.label1.Text = "用户名:";
|
|
|
|
|
//
|
|
|
|
|
// LastLoginTime
|
|
|
|
|
// SelectUser
|
|
|
|
|
//
|
|
|
|
|
this.LastLoginTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.LastLoginTime.DataPropertyName = "LastLoginTime";
|
|
|
|
|
this.LastLoginTime.HeaderText = "上次登录时间";
|
|
|
|
|
this.LastLoginTime.Name = "LastLoginTime";
|
|
|
|
|
this.LastLoginTime.ReadOnly = true;
|
|
|
|
|
this.SelectUser.Location = new System.Drawing.Point(6, 19);
|
|
|
|
|
this.SelectUser.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
|
|
this.SelectUser.Name = "SelectUser";
|
|
|
|
|
this.SelectUser.Size = new System.Drawing.Size(67, 28);
|
|
|
|
|
this.SelectUser.TabIndex = 4;
|
|
|
|
|
this.SelectUser.Text = "查询";
|
|
|
|
|
this.SelectUser.UseVisualStyleBackColor = true;
|
|
|
|
|
this.SelectUser.Click += new System.EventHandler(this.SelectUser_Click);
|
|
|
|
|
//
|
|
|
|
|
// UserConfigPage
|
|
|
|
|
//
|
|
|
|
|