| | |
| | | uiFlowLayoutPanel1 = new FlowLayoutPanel(); |
| | | tableLayoutPanel1 = new TableLayoutPanel(); |
| | | tableLayoutPanel2 = new TableLayoutPanel(); |
| | | tableLayoutPanel3 = new TableLayoutPanel(); |
| | | textBoxEmployeeID = new TextBox(); |
| | | labelEmployeeID = new Label(); |
| | | textBoxName = new TextBox(); |
| | | labelName = new Label(); |
| | | labelPermission = new Label(); |
| | | textBoxPassword = new TextBox(); |
| | | labelPassword = new Label(); |
| | | labelUsername = new Label(); |
| | | textBoxUsername = new TextBox(); |
| | | comboBoxPermission = new ComboBox(); |
| | | dataGridViewUM = new DataGridView(); |
| | | tableLayoutPanel4 = new TableLayoutPanel(); |
| | | btnEdit = new HopeButton(); |
| | | btnFind = new HopeButton(); |
| | | btnDel = new HopeButton(); |
| | | btnAdd = new ForeverButton(); |
| | | grpSetting.SuspendLayout(); |
| | | tableLayoutPanel1.SuspendLayout(); |
| | | tableLayoutPanel2.SuspendLayout(); |
| | | SuspendLayout(); |
| | |
| | | tableLayoutPanel1.Controls.Add(uiFlowLayoutPanel1, 0, 0); |
| | | tableLayoutPanel1.Controls.Add(tableLayoutPanel2, 0, 1); |
| | | tableLayoutPanel1.Dock = DockStyle.Fill; |
| | | tableLayoutPanel1.Location = new Point(0, 0); |
| | | tableLayoutPanel1.Location = new Point(3, 22); |
| | | tableLayoutPanel1.Name = "tableLayoutPanel1"; |
| | | tableLayoutPanel1.RowCount = 2; |
| | | tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); |
| | | tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 50F)); |
| | | tableLayoutPanel1.Size = new Size(607, 353); |
| | | tableLayoutPanel1.TabIndex = 13; |
| | | tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 45F)); |
| | | tableLayoutPanel1.Size = new Size(860, 555); |
| | | tableLayoutPanel1.TabIndex = 1; |
| | | // |
| | | // tableLayoutPanel2 |
| | | // |
| | | tableLayoutPanel2.ColumnCount = 6; |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.666666F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.666666F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.666666F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.666666F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.666666F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.666666F)); |
| | | tableLayoutPanel2.Controls.Add(btn_Add, 5, 0); |
| | | tableLayoutPanel2.Controls.Add(btn_Clear, 4, 0); |
| | | tableLayoutPanel2.ColumnCount = 2; |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 340F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); |
| | | tableLayoutPanel2.Controls.Add(tableLayoutPanel3, 0, 0); |
| | | tableLayoutPanel2.Controls.Add(dataGridViewUM, 1, 0); |
| | | tableLayoutPanel2.Dock = DockStyle.Fill; |
| | | tableLayoutPanel2.Location = new Point(3, 306); |
| | | tableLayoutPanel2.Name = "tableLayoutPanel2"; |
| | | tableLayoutPanel2.RowCount = 1; |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); |
| | | tableLayoutPanel2.Size = new Size(601, 44); |
| | | tableLayoutPanel2.TabIndex = 11; |
| | | tableLayoutPanel2.Size = new Size(854, 504); |
| | | tableLayoutPanel2.TabIndex = 0; |
| | | // |
| | | // tableLayoutPanel3 |
| | | // |
| | | tableLayoutPanel3.ColumnCount = 2; |
| | | tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 100F)); |
| | | tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); |
| | | tableLayoutPanel3.Controls.Add(textBoxEmployeeID, 1, 4); |
| | | tableLayoutPanel3.Controls.Add(labelEmployeeID, 0, 4); |
| | | tableLayoutPanel3.Controls.Add(textBoxName, 1, 3); |
| | | tableLayoutPanel3.Controls.Add(labelName, 0, 3); |
| | | tableLayoutPanel3.Controls.Add(labelPermission, 0, 2); |
| | | tableLayoutPanel3.Controls.Add(textBoxPassword, 1, 1); |
| | | tableLayoutPanel3.Controls.Add(labelPassword, 0, 1); |
| | | tableLayoutPanel3.Controls.Add(labelUsername, 0, 0); |
| | | tableLayoutPanel3.Controls.Add(textBoxUsername, 1, 0); |
| | | tableLayoutPanel3.Controls.Add(comboBoxPermission, 1, 2); |
| | | tableLayoutPanel3.Location = new Point(3, 3); |
| | | tableLayoutPanel3.Name = "tableLayoutPanel3"; |
| | | tableLayoutPanel3.RowCount = 5; |
| | | tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 20F)); |
| | | tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 20F)); |
| | | tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 20F)); |
| | | tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 20F)); |
| | | tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 20F)); |
| | | tableLayoutPanel3.Size = new Size(333, 225); |
| | | tableLayoutPanel3.TabIndex = 0; |
| | | // |
| | | // textBoxEmployeeID |
| | | // |
| | | textBoxEmployeeID.Location = new Point(107, 187); |
| | | textBoxEmployeeID.Margin = new Padding(7); |
| | | textBoxEmployeeID.Name = "textBoxEmployeeID"; |
| | | textBoxEmployeeID.Size = new Size(219, 26); |
| | | textBoxEmployeeID.TabIndex = 9; |
| | | // |
| | | // labelEmployeeID |
| | | // |
| | | labelEmployeeID.AutoSize = true; |
| | | labelEmployeeID.Dock = DockStyle.Fill; |
| | | labelEmployeeID.ForeColor = Color.White; |
| | | labelEmployeeID.Location = new Point(3, 180); |
| | | labelEmployeeID.Name = "labelEmployeeID"; |
| | | labelEmployeeID.Size = new Size(94, 45); |
| | | labelEmployeeID.TabIndex = 8; |
| | | labelEmployeeID.Text = "员工编号"; |
| | | labelEmployeeID.TextAlign = ContentAlignment.MiddleLeft; |
| | | // |
| | | // textBoxName |
| | | // |
| | | textBoxName.Location = new Point(107, 142); |
| | | textBoxName.Margin = new Padding(7); |
| | | textBoxName.Name = "textBoxName"; |
| | | textBoxName.Size = new Size(219, 26); |
| | | textBoxName.TabIndex = 7; |
| | | // |
| | | // labelName |
| | | // |
| | | labelName.AutoSize = true; |
| | | labelName.Dock = DockStyle.Fill; |
| | | labelName.ForeColor = Color.White; |
| | | labelName.Location = new Point(3, 135); |
| | | labelName.Name = "labelName"; |
| | | labelName.Size = new Size(94, 45); |
| | | labelName.TabIndex = 6; |
| | | labelName.Text = "姓名"; |
| | | labelName.TextAlign = ContentAlignment.MiddleLeft; |
| | | // |
| | | // labelPermission |
| | | // |
| | | labelPermission.AutoSize = true; |
| | | labelPermission.Dock = DockStyle.Fill; |
| | | labelPermission.ForeColor = Color.White; |
| | | labelPermission.Location = new Point(3, 90); |
| | | labelPermission.Name = "labelPermission"; |
| | | labelPermission.Size = new Size(94, 45); |
| | | labelPermission.TabIndex = 4; |
| | | labelPermission.Text = "权限"; |
| | | labelPermission.TextAlign = ContentAlignment.MiddleLeft; |
| | | // |
| | | // textBoxPassword |
| | | // |
| | | textBoxPassword.Location = new Point(107, 52); |
| | | textBoxPassword.Margin = new Padding(7); |
| | | textBoxPassword.Name = "textBoxPassword"; |
| | | textBoxPassword.Size = new Size(219, 26); |
| | | textBoxPassword.TabIndex = 3; |
| | | // |
| | | // labelPassword |
| | | // |
| | | labelPassword.AutoSize = true; |
| | | labelPassword.Dock = DockStyle.Fill; |
| | | labelPassword.ForeColor = Color.White; |
| | | labelPassword.Location = new Point(3, 45); |
| | | labelPassword.Name = "labelPassword"; |
| | | labelPassword.Size = new Size(94, 45); |
| | | labelPassword.TabIndex = 2; |
| | | labelPassword.Text = "密码"; |
| | | labelPassword.TextAlign = ContentAlignment.MiddleLeft; |
| | | // |
| | | // labelUsername |
| | | // |
| | | labelUsername.AutoSize = true; |
| | | labelUsername.Dock = DockStyle.Fill; |
| | | labelUsername.ForeColor = Color.White; |
| | | labelUsername.Location = new Point(3, 0); |
| | | labelUsername.Name = "labelUsername"; |
| | | labelUsername.Size = new Size(94, 45); |
| | | labelUsername.TabIndex = 0; |
| | | labelUsername.Text = "用户名"; |
| | | labelUsername.TextAlign = ContentAlignment.MiddleLeft; |
| | | // |
| | | // textBoxUsername |
| | | // |
| | | textBoxUsername.Location = new Point(107, 7); |
| | | textBoxUsername.Margin = new Padding(7); |
| | | textBoxUsername.Name = "textBoxUsername"; |
| | | textBoxUsername.Size = new Size(219, 26); |
| | | textBoxUsername.TabIndex = 1; |
| | | // |
| | | // comboBoxPermission |
| | | // |
| | | comboBoxPermission.DropDownStyle = ComboBoxStyle.DropDownList; |
| | | comboBoxPermission.FormattingEnabled = true; |
| | | comboBoxPermission.Location = new Point(107, 97); |
| | | comboBoxPermission.Margin = new Padding(7); |
| | | comboBoxPermission.Name = "comboBoxPermission"; |
| | | comboBoxPermission.Size = new Size(219, 24); |
| | | comboBoxPermission.TabIndex = 5; |
| | | // |
| | | // dataGridViewUM |
| | | // |
| | | dataGridViewUM.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | dataGridViewUM.Dock = DockStyle.Fill; |
| | | dataGridViewUM.Location = new Point(343, 3); |
| | | dataGridViewUM.Name = "dataGridViewUM"; |
| | | dataGridViewUM.RowHeadersWidth = 51; |
| | | dataGridViewUM.Size = new Size(508, 498); |
| | | dataGridViewUM.TabIndex = 1; |
| | | // |
| | | // tableLayoutPanel4 |
| | | // |
| | | tableLayoutPanel4.Anchor = AnchorStyles.Top | AnchorStyles.Right; |
| | | tableLayoutPanel4.ColumnCount = 4; |
| | | tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); |
| | | tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); |
| | | tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); |
| | | tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); |
| | | tableLayoutPanel4.Controls.Add(btnEdit, 1, 0); |
| | | tableLayoutPanel4.Controls.Add(btnFind, 0, 0); |
| | | tableLayoutPanel4.Controls.Add(btnDel, 3, 0); |
| | | tableLayoutPanel4.Controls.Add(btnAdd, 2, 0); |
| | | tableLayoutPanel4.Location = new Point(457, 513); |
| | | tableLayoutPanel4.Name = "tableLayoutPanel4"; |
| | | tableLayoutPanel4.RowCount = 1; |
| | | tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); |
| | | tableLayoutPanel4.Size = new Size(400, 39); |
| | | tableLayoutPanel4.TabIndex = 1; |
| | | // |
| | | // btnEdit |
| | | // |
| | | btnEdit.BorderColor = Color.FromArgb(220, 223, 230); |
| | | btnEdit.ButtonType = ReaLTaiizor.Util.HopeButtonType.Primary; |
| | | btnEdit.DangerColor = Color.FromArgb(245, 108, 108); |
| | | btnEdit.DefaultColor = Color.FromArgb(255, 255, 255); |
| | | btnEdit.Font = new Font("Segoe UI", 12F); |
| | | btnEdit.HoverTextColor = Color.FromArgb(48, 49, 51); |
| | | btnEdit.InfoColor = Color.FromArgb(144, 147, 153); |
| | | btnEdit.Location = new Point(103, 3); |
| | | btnEdit.Name = "btnEdit"; |
| | | btnEdit.PrimaryColor = Color.FromArgb(64, 158, 255); |
| | | btnEdit.Size = new Size(94, 33); |
| | | btnEdit.SuccessColor = Color.FromArgb(103, 194, 58); |
| | | btnEdit.TabIndex = 2; |
| | | btnEdit.Text = "修改"; |
| | | btnEdit.TextColor = Color.White; |
| | | btnEdit.WarningColor = Color.FromArgb(230, 162, 60); |
| | | // |
| | | // btnFind |
| | | // |
| | | btnFind.BorderColor = Color.FromArgb(220, 223, 230); |
| | | btnFind.ButtonType = ReaLTaiizor.Util.HopeButtonType.Primary; |
| | | btnFind.DangerColor = Color.FromArgb(245, 108, 108); |
| | | btnFind.DefaultColor = Color.FromArgb(255, 255, 255); |
| | | btnFind.Font = new Font("Segoe UI", 12F); |
| | | btnFind.HoverTextColor = Color.FromArgb(48, 49, 51); |
| | | btnFind.InfoColor = Color.FromArgb(144, 147, 153); |
| | | btnFind.Location = new Point(3, 3); |
| | | btnFind.Name = "btnFind"; |
| | | btnFind.PrimaryColor = Color.FromArgb(64, 158, 255); |
| | | btnFind.Size = new Size(94, 33); |
| | | btnFind.SuccessColor = Color.FromArgb(103, 194, 58); |
| | | btnFind.TabIndex = 1; |
| | | btnFind.Text = "查询"; |
| | | btnFind.TextColor = Color.White; |
| | | btnFind.WarningColor = Color.FromArgb(230, 162, 60); |
| | | // |
| | | // btnDel |
| | | // |
| | | btnDel.BorderColor = Color.FromArgb(220, 223, 230); |
| | | btnDel.ButtonType = ReaLTaiizor.Util.HopeButtonType.Primary; |
| | | btnDel.DangerColor = Color.FromArgb(245, 108, 108); |
| | | btnDel.DefaultColor = Color.FromArgb(255, 255, 255); |
| | | btnDel.Font = new Font("Segoe UI", 12F); |
| | | btnDel.HoverTextColor = Color.FromArgb(48, 49, 51); |
| | | btnDel.InfoColor = Color.FromArgb(144, 147, 153); |
| | | btnDel.Location = new Point(303, 3); |
| | | btnDel.Name = "btnDel"; |
| | | btnDel.PrimaryColor = Color.FromArgb(64, 158, 255); |
| | | btnDel.Size = new Size(94, 33); |
| | | btnDel.SuccessColor = Color.FromArgb(103, 194, 58); |
| | | btnDel.TabIndex = 3; |
| | | btnDel.Text = "删除"; |
| | | btnDel.TextColor = Color.White; |
| | | btnDel.WarningColor = Color.FromArgb(230, 162, 60); |
| | | btnDel.Click += btnDel_Click; |
| | | // |
| | | // btnAdd |
| | | // |
| | | btnAdd.BackColor = Color.Transparent; |
| | | btnAdd.BaseColor = Color.FromArgb(35, 168, 109); |
| | | btnAdd.Font = new Font("Segoe UI", 12F); |
| | | btnAdd.Location = new Point(203, 3); |
| | | btnAdd.Name = "btnAdd"; |
| | | btnAdd.Rounded = false; |
| | | btnAdd.Size = new Size(94, 33); |
| | | btnAdd.TabIndex = 4; |
| | | btnAdd.Text = "添加"; |
| | | btnAdd.TextColor = Color.FromArgb(243, 243, 243); |
| | | btnAdd.Click += btnAdd_Click; |
| | | // |
| | | // UserManagementEditPage |
| | | // |
| | | AutoScaleDimensions = new SizeF(96F, 96F); |
| | | AutoScaleMode = AutoScaleMode.Dpi; |
| | | BackColor = Color.FromArgb(32, 41, 50); |
| | | Controls.Add(tableLayoutPanel1); |
| | | ForeColor = SystemColors.Control; |