提交rbac

提交设置右键错位的bug
This commit is contained in:
2025-04-08 15:15:02 +08:00
parent ab38ee029a
commit 9f7c6206ca
139 changed files with 27868 additions and 117 deletions

View File

@ -0,0 +1,706 @@
namespace DH.RBAC.Page.Sys.Organize
{
partial class AddOrganizeForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddOrganizeForm));
this.uiPanel1 = new Sunny.UI.UIPanel();
this.titlePanel = new System.Windows.Forms.Panel();
this.lblTitle = new Sunny.UI.UILabel();
this.btnClose = new Sunny.UI.UISymbolLabel();
this.panel1 = new System.Windows.Forms.Panel();
this.uiLabel14 = new Sunny.UI.UILabel();
this.uiLabel13 = new Sunny.UI.UILabel();
this.uiLabel11 = new Sunny.UI.UILabel();
this.txtAddress = new Sunny.UI.UITextBox();
this.uiLabel10 = new Sunny.UI.UILabel();
this.txtFax = new Sunny.UI.UITextBox();
this.uiLabel9 = new Sunny.UI.UILabel();
this.txtEmail = new Sunny.UI.UITextBox();
this.uiLabel8 = new Sunny.UI.UILabel();
this.txtWeChat = new Sunny.UI.UITextBox();
this.uiLabel6 = new Sunny.UI.UILabel();
this.txtTelePhone = new Sunny.UI.UITextBox();
this.uiLabel5 = new Sunny.UI.UILabel();
this.txtManagerId = new Sunny.UI.UITextBox();
this.uiLabel3 = new Sunny.UI.UILabel();
this.comboType = new Sunny.UI.UIComboBox();
this.txtSortCode = new Sunny.UI.UIIntegerUpDown();
this.btnConfirm = new Sunny.UI.UIButton();
this.uiLabel12 = new Sunny.UI.UILabel();
this.txtRemark = new Sunny.UI.UITextBox();
this.uiLabel7 = new Sunny.UI.UILabel();
this.txtName = new Sunny.UI.UITextBox();
this.uiLabel2 = new Sunny.UI.UILabel();
this.uiLabel4 = new Sunny.UI.UILabel();
this.txtEnCode = new Sunny.UI.UITextBox();
this.uiLabel1 = new Sunny.UI.UILabel();
this.uiPanel1.SuspendLayout();
this.titlePanel.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// uiPanel1
//
this.uiPanel1.Controls.Add(this.titlePanel);
this.uiPanel1.Controls.Add(this.panel1);
this.uiPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.uiPanel1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(241)))), ((int)(((byte)(243)))));
this.uiPanel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiPanel1.Location = new System.Drawing.Point(0, 0);
this.uiPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiPanel1.MinimumSize = new System.Drawing.Size(1, 1);
this.uiPanel1.Name = "uiPanel1";
this.uiPanel1.RectColor = System.Drawing.Color.Silver;
this.uiPanel1.Size = new System.Drawing.Size(686, 530);
this.uiPanel1.Style = Sunny.UI.UIStyle.Custom;
this.uiPanel1.StyleCustomMode = true;
this.uiPanel1.TabIndex = 6;
this.uiPanel1.Text = null;
this.uiPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
//
// titlePanel
//
this.titlePanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.titlePanel.Controls.Add(this.lblTitle);
this.titlePanel.Controls.Add(this.btnClose);
this.titlePanel.Dock = System.Windows.Forms.DockStyle.Top;
this.titlePanel.Location = new System.Drawing.Point(0, 0);
this.titlePanel.Name = "titlePanel";
this.titlePanel.Size = new System.Drawing.Size(686, 43);
this.titlePanel.TabIndex = 7;
this.titlePanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.titlePanel_MouseDown);
this.titlePanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.titlePanel_MouseMove);
//
// lblTitle
//
this.lblTitle.Dock = System.Windows.Forms.DockStyle.Fill;
this.lblTitle.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lblTitle.Location = new System.Drawing.Point(0, 0);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(641, 43);
this.lblTitle.Style = Sunny.UI.UIStyle.Custom;
this.lblTitle.TabIndex = 1;
this.lblTitle.Text = "新增角色";
this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblTitle.MouseDown += new System.Windows.Forms.MouseEventHandler(this.titlePanel_MouseDown);
this.lblTitle.MouseMove += new System.Windows.Forms.MouseEventHandler(this.titlePanel_MouseMove);
//
// btnClose
//
this.btnClose.Dock = System.Windows.Forms.DockStyle.Right;
this.btnClose.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnClose.Location = new System.Drawing.Point(641, 0);
this.btnClose.MinimumSize = new System.Drawing.Size(1, 1);
this.btnClose.Name = "btnClose";
this.btnClose.Padding = new System.Windows.Forms.Padding(64, 0, 0, 0);
this.btnClose.Size = new System.Drawing.Size(45, 43);
this.btnClose.Style = Sunny.UI.UIStyle.Custom;
this.btnClose.Symbol = 77;
this.btnClose.SymbolSize = 60;
this.btnClose.TabIndex = 0;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
this.btnClose.MouseEnter += new System.EventHandler(this.btnClose_MouseEnter);
this.btnClose.MouseLeave += new System.EventHandler(this.btnClose_MouseLeave);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.Controls.Add(this.uiLabel14);
this.panel1.Controls.Add(this.uiLabel13);
this.panel1.Controls.Add(this.uiLabel11);
this.panel1.Controls.Add(this.txtAddress);
this.panel1.Controls.Add(this.uiLabel10);
this.panel1.Controls.Add(this.txtFax);
this.panel1.Controls.Add(this.uiLabel9);
this.panel1.Controls.Add(this.txtEmail);
this.panel1.Controls.Add(this.uiLabel8);
this.panel1.Controls.Add(this.txtWeChat);
this.panel1.Controls.Add(this.uiLabel6);
this.panel1.Controls.Add(this.txtTelePhone);
this.panel1.Controls.Add(this.uiLabel5);
this.panel1.Controls.Add(this.txtManagerId);
this.panel1.Controls.Add(this.uiLabel3);
this.panel1.Controls.Add(this.comboType);
this.panel1.Controls.Add(this.txtSortCode);
this.panel1.Controls.Add(this.btnConfirm);
this.panel1.Controls.Add(this.uiLabel12);
this.panel1.Controls.Add(this.txtRemark);
this.panel1.Controls.Add(this.uiLabel7);
this.panel1.Controls.Add(this.txtName);
this.panel1.Controls.Add(this.uiLabel2);
this.panel1.Controls.Add(this.uiLabel4);
this.panel1.Controls.Add(this.txtEnCode);
this.panel1.Controls.Add(this.uiLabel1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(686, 530);
this.panel1.TabIndex = 6;
//
// uiLabel14
//
this.uiLabel14.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel14.ForeColor = System.Drawing.Color.Red;
this.uiLabel14.Location = new System.Drawing.Point(53, 135);
this.uiLabel14.Name = "uiLabel14";
this.uiLabel14.Size = new System.Drawing.Size(21, 29);
this.uiLabel14.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel14.StyleCustomMode = true;
this.uiLabel14.TabIndex = 59;
this.uiLabel14.Text = "*";
this.uiLabel14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// uiLabel13
//
this.uiLabel13.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel13.ForeColor = System.Drawing.Color.Red;
this.uiLabel13.Location = new System.Drawing.Point(372, 73);
this.uiLabel13.Name = "uiLabel13";
this.uiLabel13.Size = new System.Drawing.Size(21, 29);
this.uiLabel13.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel13.StyleCustomMode = true;
this.uiLabel13.TabIndex = 58;
this.uiLabel13.Text = "*";
this.uiLabel13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// uiLabel11
//
this.uiLabel11.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel11.ForeColor = System.Drawing.Color.Red;
this.uiLabel11.Location = new System.Drawing.Point(53, 73);
this.uiLabel11.Name = "uiLabel11";
this.uiLabel11.Size = new System.Drawing.Size(21, 29);
this.uiLabel11.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel11.StyleCustomMode = true;
this.uiLabel11.TabIndex = 57;
this.uiLabel11.Text = "*";
this.uiLabel11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtAddress
//
this.txtAddress.ButtonFillColor = System.Drawing.Color.White;
this.txtAddress.ButtonFillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtAddress.ButtonFillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtAddress.ButtonForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(98)))), ((int)(((byte)(102)))));
this.txtAddress.ButtonForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.txtAddress.ButtonForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.txtAddress.ButtonRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtAddress.ButtonRectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(222)))), ((int)(((byte)(255)))));
this.txtAddress.ButtonSymbol = 61761;
this.txtAddress.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtAddress.FillColor2 = System.Drawing.Color.White;
this.txtAddress.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtAddress.Location = new System.Drawing.Point(129, 302);
this.txtAddress.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.txtAddress.Maximum = 2147483647D;
this.txtAddress.MaxLength = 20;
this.txtAddress.Minimum = -2147483648D;
this.txtAddress.MinimumSize = new System.Drawing.Size(1, 16);
this.txtAddress.Name = "txtAddress";
this.txtAddress.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtAddress.Size = new System.Drawing.Size(188, 42);
this.txtAddress.StyleCustomMode = true;
this.txtAddress.TabIndex = 9;
this.txtAddress.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
//
// uiLabel10
//
this.uiLabel10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel10.Location = new System.Drawing.Point(57, 309);
this.uiLabel10.Name = "uiLabel10";
this.uiLabel10.Size = new System.Drawing.Size(65, 29);
this.uiLabel10.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel10.TabIndex = 56;
this.uiLabel10.Text = "地址";
this.uiLabel10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtFax
//
this.txtFax.ButtonFillColor = System.Drawing.Color.White;
this.txtFax.ButtonFillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtFax.ButtonFillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtFax.ButtonForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(98)))), ((int)(((byte)(102)))));
this.txtFax.ButtonForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.txtFax.ButtonForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.txtFax.ButtonRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtFax.ButtonRectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(222)))), ((int)(((byte)(255)))));
this.txtFax.ButtonSymbol = 61761;
this.txtFax.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtFax.FillColor2 = System.Drawing.Color.White;
this.txtFax.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtFax.Location = new System.Drawing.Point(444, 239);
this.txtFax.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.txtFax.Maximum = 2147483647D;
this.txtFax.MaxLength = 20;
this.txtFax.Minimum = -2147483648D;
this.txtFax.MinimumSize = new System.Drawing.Size(1, 16);
this.txtFax.Name = "txtFax";
this.txtFax.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtFax.Size = new System.Drawing.Size(188, 42);
this.txtFax.StyleCustomMode = true;
this.txtFax.TabIndex = 8;
this.txtFax.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
//
// uiLabel9
//
this.uiLabel9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel9.Location = new System.Drawing.Point(372, 246);
this.uiLabel9.Name = "uiLabel9";
this.uiLabel9.Size = new System.Drawing.Size(65, 29);
this.uiLabel9.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel9.TabIndex = 56;
this.uiLabel9.Text = "传真";
this.uiLabel9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtEmail
//
this.txtEmail.ButtonFillColor = System.Drawing.Color.White;
this.txtEmail.ButtonFillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtEmail.ButtonFillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtEmail.ButtonForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(98)))), ((int)(((byte)(102)))));
this.txtEmail.ButtonForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.txtEmail.ButtonForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.txtEmail.ButtonRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtEmail.ButtonRectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(222)))), ((int)(((byte)(255)))));
this.txtEmail.ButtonSymbol = 61761;
this.txtEmail.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtEmail.FillColor2 = System.Drawing.Color.White;
this.txtEmail.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtEmail.Location = new System.Drawing.Point(129, 245);
this.txtEmail.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.txtEmail.Maximum = 2147483647D;
this.txtEmail.MaxLength = 20;
this.txtEmail.Minimum = -2147483648D;
this.txtEmail.MinimumSize = new System.Drawing.Size(1, 16);
this.txtEmail.Name = "txtEmail";
this.txtEmail.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtEmail.Size = new System.Drawing.Size(188, 42);
this.txtEmail.StyleCustomMode = true;
this.txtEmail.TabIndex = 7;
this.txtEmail.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
//
// uiLabel8
//
this.uiLabel8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel8.Location = new System.Drawing.Point(57, 252);
this.uiLabel8.Name = "uiLabel8";
this.uiLabel8.Size = new System.Drawing.Size(65, 29);
this.uiLabel8.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel8.TabIndex = 54;
this.uiLabel8.Text = "邮箱";
this.uiLabel8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtWeChat
//
this.txtWeChat.ButtonFillColor = System.Drawing.Color.White;
this.txtWeChat.ButtonFillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtWeChat.ButtonFillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtWeChat.ButtonForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(98)))), ((int)(((byte)(102)))));
this.txtWeChat.ButtonForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.txtWeChat.ButtonForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.txtWeChat.ButtonRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtWeChat.ButtonRectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(222)))), ((int)(((byte)(255)))));
this.txtWeChat.ButtonSymbol = 61761;
this.txtWeChat.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtWeChat.FillColor2 = System.Drawing.Color.White;
this.txtWeChat.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtWeChat.Location = new System.Drawing.Point(444, 184);
this.txtWeChat.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.txtWeChat.Maximum = 2147483647D;
this.txtWeChat.MaxLength = 20;
this.txtWeChat.Minimum = -2147483648D;
this.txtWeChat.MinimumSize = new System.Drawing.Size(1, 16);
this.txtWeChat.Name = "txtWeChat";
this.txtWeChat.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtWeChat.Size = new System.Drawing.Size(188, 42);
this.txtWeChat.StyleCustomMode = true;
this.txtWeChat.TabIndex = 6;
this.txtWeChat.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
//
// uiLabel6
//
this.uiLabel6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel6.Location = new System.Drawing.Point(372, 191);
this.uiLabel6.Name = "uiLabel6";
this.uiLabel6.Size = new System.Drawing.Size(65, 29);
this.uiLabel6.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel6.TabIndex = 52;
this.uiLabel6.Text = "微信";
this.uiLabel6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtTelePhone
//
this.txtTelePhone.ButtonFillColor = System.Drawing.Color.White;
this.txtTelePhone.ButtonFillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtTelePhone.ButtonFillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtTelePhone.ButtonForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(98)))), ((int)(((byte)(102)))));
this.txtTelePhone.ButtonForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.txtTelePhone.ButtonForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.txtTelePhone.ButtonRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtTelePhone.ButtonRectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(222)))), ((int)(((byte)(255)))));
this.txtTelePhone.ButtonSymbol = 61761;
this.txtTelePhone.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtTelePhone.FillColor2 = System.Drawing.Color.White;
this.txtTelePhone.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtTelePhone.Location = new System.Drawing.Point(129, 184);
this.txtTelePhone.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.txtTelePhone.Maximum = 2147483647D;
this.txtTelePhone.MaxLength = 20;
this.txtTelePhone.Minimum = -2147483648D;
this.txtTelePhone.MinimumSize = new System.Drawing.Size(1, 16);
this.txtTelePhone.Name = "txtTelePhone";
this.txtTelePhone.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtTelePhone.Size = new System.Drawing.Size(188, 42);
this.txtTelePhone.StyleCustomMode = true;
this.txtTelePhone.TabIndex = 5;
this.txtTelePhone.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
//
// uiLabel5
//
this.uiLabel5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel5.Location = new System.Drawing.Point(12, 191);
this.uiLabel5.Name = "uiLabel5";
this.uiLabel5.Size = new System.Drawing.Size(110, 29);
this.uiLabel5.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel5.TabIndex = 50;
this.uiLabel5.Text = "联系电话";
this.uiLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtManagerId
//
this.txtManagerId.ButtonFillColor = System.Drawing.Color.White;
this.txtManagerId.ButtonFillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtManagerId.ButtonFillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtManagerId.ButtonForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(98)))), ((int)(((byte)(102)))));
this.txtManagerId.ButtonForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.txtManagerId.ButtonForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.txtManagerId.ButtonRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtManagerId.ButtonRectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(222)))), ((int)(((byte)(255)))));
this.txtManagerId.ButtonSymbol = 61761;
this.txtManagerId.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtManagerId.FillColor2 = System.Drawing.Color.White;
this.txtManagerId.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtManagerId.Location = new System.Drawing.Point(444, 124);
this.txtManagerId.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.txtManagerId.Maximum = 2147483647D;
this.txtManagerId.MaxLength = 20;
this.txtManagerId.Minimum = -2147483648D;
this.txtManagerId.MinimumSize = new System.Drawing.Size(1, 16);
this.txtManagerId.Name = "txtManagerId";
this.txtManagerId.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtManagerId.Size = new System.Drawing.Size(188, 42);
this.txtManagerId.StyleCustomMode = true;
this.txtManagerId.TabIndex = 4;
this.txtManagerId.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
//
// uiLabel3
//
this.uiLabel3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel3.Location = new System.Drawing.Point(372, 131);
this.uiLabel3.Name = "uiLabel3";
this.uiLabel3.Size = new System.Drawing.Size(65, 29);
this.uiLabel3.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel3.TabIndex = 48;
this.uiLabel3.Text = "主管";
this.uiLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// comboType
//
this.comboType.DataSource = null;
this.comboType.FillColor = System.Drawing.Color.White;
this.comboType.FillColor2 = System.Drawing.Color.White;
this.comboType.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.comboType.ItemHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
this.comboType.ItemSelectBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.comboType.ItemSelectForeColor = System.Drawing.Color.White;
this.comboType.Location = new System.Drawing.Point(129, 128);
this.comboType.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.comboType.MinimumSize = new System.Drawing.Size(63, 0);
this.comboType.Name = "comboType";
this.comboType.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2);
this.comboType.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.comboType.Size = new System.Drawing.Size(188, 36);
this.comboType.StyleCustomMode = true;
this.comboType.TabIndex = 3;
this.comboType.Text = "uiComboBox1";
this.comboType.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
//
// txtSortCode
//
this.txtSortCode.FillColor = System.Drawing.Color.White;
this.txtSortCode.FillColor2 = System.Drawing.Color.White;
this.txtSortCode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtSortCode.Location = new System.Drawing.Point(444, 302);
this.txtSortCode.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.txtSortCode.MinimumSize = new System.Drawing.Size(100, 0);
this.txtSortCode.Name = "txtSortCode";
this.txtSortCode.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtSortCode.Size = new System.Drawing.Size(188, 36);
this.txtSortCode.StyleCustomMode = true;
this.txtSortCode.TabIndex = 10;
this.txtSortCode.Text = "txtSortCode";
this.txtSortCode.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
//
// btnConfirm
//
this.btnConfirm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnConfirm.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnConfirm.FillColor = System.Drawing.Color.White;
this.btnConfirm.FillColor2 = System.Drawing.Color.White;
this.btnConfirm.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.btnConfirm.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.btnConfirm.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.btnConfirm.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnConfirm.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(98)))), ((int)(((byte)(102)))));
this.btnConfirm.ForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.btnConfirm.ForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.btnConfirm.ForeSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.btnConfirm.Location = new System.Drawing.Point(549, 474);
this.btnConfirm.MinimumSize = new System.Drawing.Size(1, 1);
this.btnConfirm.Name = "btnConfirm";
this.btnConfirm.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.btnConfirm.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(222)))), ((int)(((byte)(255)))));
this.btnConfirm.Size = new System.Drawing.Size(125, 44);
this.btnConfirm.StyleCustomMode = true;
this.btnConfirm.TabIndex = 12;
this.btnConfirm.Text = "确定";
this.btnConfirm.Click += new System.EventHandler(this.btnConfirm_Click);
//
// uiLabel12
//
this.uiLabel12.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel12.Location = new System.Drawing.Point(330, 308);
this.uiLabel12.Name = "uiLabel12";
this.uiLabel12.Size = new System.Drawing.Size(107, 29);
this.uiLabel12.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel12.TabIndex = 45;
this.uiLabel12.Text = "排序号";
this.uiLabel12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtRemark
//
this.txtRemark.ButtonFillColor = System.Drawing.Color.White;
this.txtRemark.ButtonFillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtRemark.ButtonFillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtRemark.ButtonForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(98)))), ((int)(((byte)(102)))));
this.txtRemark.ButtonForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.txtRemark.ButtonForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.txtRemark.ButtonRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtRemark.ButtonRectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(222)))), ((int)(((byte)(255)))));
this.txtRemark.ButtonSymbol = 61761;
this.txtRemark.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtRemark.FillColor2 = System.Drawing.Color.White;
this.txtRemark.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtRemark.Location = new System.Drawing.Point(129, 373);
this.txtRemark.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.txtRemark.Maximum = 2147483647D;
this.txtRemark.MaxLength = 128;
this.txtRemark.Minimum = -2147483648D;
this.txtRemark.MinimumSize = new System.Drawing.Size(1, 16);
this.txtRemark.Multiline = true;
this.txtRemark.Name = "txtRemark";
this.txtRemark.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtRemark.Size = new System.Drawing.Size(414, 90);
this.txtRemark.StyleCustomMode = true;
this.txtRemark.TabIndex = 11;
this.txtRemark.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.txtRemark.Watermark = "请输入内容 ";
//
// uiLabel7
//
this.uiLabel7.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel7.Location = new System.Drawing.Point(12, 373);
this.uiLabel7.Name = "uiLabel7";
this.uiLabel7.Size = new System.Drawing.Size(110, 29);
this.uiLabel7.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel7.TabIndex = 35;
this.uiLabel7.Text = "备注";
this.uiLabel7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtName
//
this.txtName.ButtonFillColor = System.Drawing.Color.White;
this.txtName.ButtonFillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtName.ButtonFillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtName.ButtonForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(98)))), ((int)(((byte)(102)))));
this.txtName.ButtonForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.txtName.ButtonForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.txtName.ButtonRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtName.ButtonRectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(222)))), ((int)(((byte)(255)))));
this.txtName.ButtonSymbol = 61761;
this.txtName.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtName.FillColor2 = System.Drawing.Color.White;
this.txtName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtName.Location = new System.Drawing.Point(444, 66);
this.txtName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.txtName.Maximum = 2147483647D;
this.txtName.MaxLength = 20;
this.txtName.Minimum = -2147483648D;
this.txtName.MinimumSize = new System.Drawing.Size(1, 16);
this.txtName.Name = "txtName";
this.txtName.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtName.Size = new System.Drawing.Size(188, 42);
this.txtName.StyleCustomMode = true;
this.txtName.TabIndex = 2;
this.txtName.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
//
// uiLabel2
//
this.uiLabel2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel2.Location = new System.Drawing.Point(373, 73);
this.uiLabel2.Name = "uiLabel2";
this.uiLabel2.Size = new System.Drawing.Size(65, 29);
this.uiLabel2.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel2.TabIndex = 23;
this.uiLabel2.Text = "名称";
this.uiLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// uiLabel4
//
this.uiLabel4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel4.Location = new System.Drawing.Point(56, 131);
this.uiLabel4.Name = "uiLabel4";
this.uiLabel4.Size = new System.Drawing.Size(65, 29);
this.uiLabel4.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel4.TabIndex = 25;
this.uiLabel4.Text = "类型";
this.uiLabel4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtEnCode
//
this.txtEnCode.ButtonFillColor = System.Drawing.Color.White;
this.txtEnCode.ButtonFillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtEnCode.ButtonFillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
this.txtEnCode.ButtonForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(98)))), ((int)(((byte)(102)))));
this.txtEnCode.ButtonForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
this.txtEnCode.ButtonForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(74)))), ((int)(((byte)(131)))), ((int)(((byte)(229)))));
this.txtEnCode.ButtonRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtEnCode.ButtonRectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(222)))), ((int)(((byte)(255)))));
this.txtEnCode.ButtonSymbol = 61761;
this.txtEnCode.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtEnCode.FillColor2 = System.Drawing.Color.White;
this.txtEnCode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtEnCode.Location = new System.Drawing.Point(129, 66);
this.txtEnCode.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.txtEnCode.Maximum = 2147483647D;
this.txtEnCode.MaxLength = 20;
this.txtEnCode.Minimum = -2147483648D;
this.txtEnCode.MinimumSize = new System.Drawing.Size(1, 16);
this.txtEnCode.Name = "txtEnCode";
this.txtEnCode.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(219)))), ((int)(((byte)(227)))));
this.txtEnCode.Size = new System.Drawing.Size(188, 42);
this.txtEnCode.StyleCustomMode = true;
this.txtEnCode.TabIndex = 1;
this.txtEnCode.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
//
// uiLabel1
//
this.uiLabel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.uiLabel1.Location = new System.Drawing.Point(57, 73);
this.uiLabel1.Name = "uiLabel1";
this.uiLabel1.Size = new System.Drawing.Size(65, 29);
this.uiLabel1.Style = Sunny.UI.UIStyle.Custom;
this.uiLabel1.TabIndex = 21;
this.uiLabel1.Text = "编码";
this.uiLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// AddOrganizeForm
//
this.AllowShowTitle = false;
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 27F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(686, 530);
this.Controls.Add(this.uiPanel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AddOrganizeForm";
this.Padding = new System.Windows.Forms.Padding(0);
this.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248)))));
this.ShowTitle = false;
this.ShowTitleIcon = true;
this.Style = Sunny.UI.UIStyle.Custom;
this.Text = "新增用户";
this.TitleColor = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248)))));
this.TitleForeColor = System.Drawing.Color.DimGray;
this.TopMost = true;
this.Load += new System.EventHandler(this.AddOrganizeForm_Load);
this.uiPanel1.ResumeLayout(false);
this.titlePanel.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private Sunny.UI.UIPanel uiPanel1;
private System.Windows.Forms.Panel titlePanel;
private Sunny.UI.UILabel lblTitle;
private Sunny.UI.UISymbolLabel btnClose;
private System.Windows.Forms.Panel panel1;
private Sunny.UI.UITextBox txtRemark;
private Sunny.UI.UILabel uiLabel7;
private Sunny.UI.UITextBox txtName;
private Sunny.UI.UILabel uiLabel2;
private Sunny.UI.UITextBox txtEnCode;
private Sunny.UI.UILabel uiLabel1;
private Sunny.UI.UILabel uiLabel12;
private Sunny.UI.UIButton btnConfirm;
private Sunny.UI.UIIntegerUpDown txtSortCode;
private Sunny.UI.UIComboBox comboType;
private Sunny.UI.UILabel uiLabel4;
private Sunny.UI.UITextBox txtManagerId;
private Sunny.UI.UILabel uiLabel3;
private Sunny.UI.UITextBox txtTelePhone;
private Sunny.UI.UILabel uiLabel5;
private Sunny.UI.UITextBox txtWeChat;
private Sunny.UI.UILabel uiLabel6;
private Sunny.UI.UITextBox txtEmail;
private Sunny.UI.UILabel uiLabel8;
private Sunny.UI.UITextBox txtFax;
private Sunny.UI.UILabel uiLabel9;
private Sunny.UI.UITextBox txtAddress;
private Sunny.UI.UILabel uiLabel10;
private Sunny.UI.UILabel uiLabel11;
private Sunny.UI.UILabel uiLabel14;
private Sunny.UI.UILabel uiLabel13;
}
}

View File

@ -0,0 +1,226 @@

using DH.RBAC.Common;
using DH.RBAC.Logic.Sys;
using DH.RBAC.Model.Sys;
using DH.RBAC.Utility.Other;
using Sunny.UI;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace DH.RBAC.Page.Sys.Organize
{
public partial class AddOrganizeForm : UIForm
{
private SysOrganizeLogic organizeLogic;
public AddOrganizeForm()
{
InitializeComponent();
organizeLogic = new SysOrganizeLogic();
}
#region
private void btnClose_Click(object sender, EventArgs e)
{
FormHelper.subForm = null;
ParentPage.btnQuery_Click(null, null);
this.Close();
}
private Point mPoint;
private void titlePanel_MouseDown(object sender, MouseEventArgs e)
{
mPoint = new Point(e.X, e.Y);
}
private void titlePanel_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X - mPoint.X, this.Location.Y + e.Y - mPoint.Y);
}
}
private void btnClose_MouseEnter(object sender, EventArgs e)
{
btnClose.BackColor = Color.FromArgb(231, 231, 231);
}
private void btnClose_MouseLeave(object sender, EventArgs e)
{
btnClose.BackColor = Color.Transparent;
}
#endregion
public OrganizePage ParentPage { get; set; }
public string Id { get; set; }
/// <summary>
/// 画面加载,读取用户信息,显示在界面上
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void AddOrganizeForm_Load(object sender, EventArgs e)
{
comboType.Items.Add("公司");
comboType.Items.Add("部门");
comboType.Items.Add("小组");
comboType.SelectedIndex = 1;
if (StringHelper.IsNullOrEmpty(Id))
{
lblTitle.Text = "新增机构";
txtEnCode.Enabled = true;
}
else
{
lblTitle.Text = "修改机构";
txtEnCode.Enabled = false;
}
//获取部门下拉列表的值
if (StringHelper.IsNullOrEmpty(Id))
{
return;
}
SysOrganize entity = organizeLogic.Get(Id);
if (entity == null)
{
AntdUI.Message.warn(this, "网络或服务器异常,请稍后重试!", autoClose: 3);
btnClose_Click(null, null);
return;
}
//给文本框赋值
txtEnCode.Text = entity.EnCode;
txtName.Text = entity.FullName;
comboType.SelectedIndex = entity.Type.Value;
txtManagerId.Text = entity.ManagerId;
txtTelePhone.Text = entity.TelePhone;
txtWeChat.Text = entity.WeChat;
txtEmail.Text = entity.Email;
txtFax.Text = entity.Fax;
txtAddress.Text = entity.Address;
txtSortCode.Value = entity.SortCode.Value;
txtRemark.Text = entity.Remark;
}
/// <summary>
/// 确定按钮点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnConfirm_Click(object sender, EventArgs e)
{
if (StringHelper.IsNullOrEmpty(Id))
{
DoAdd();
}
else
{
DoUpdate();
}
}
/// <summary>
/// 执行更新操作
/// </summary>
private void DoUpdate()
{
bool flag = ChechEmpty();
if (!flag)
{
return;
}
SysOrganize model = new SysOrganize();
model.Id = Id;
model.EnCode = txtEnCode.Text;
model.FullName = txtName.Text;
model.Type = comboType.SelectedIndex;
model.ManagerId = txtManagerId.Text;
model.TelePhone = txtTelePhone.Text;
model.WeChat = txtWeChat.Text;
model.Email = txtEmail.Text;
model.Fax = txtFax.Text;
model.Address = txtAddress.Text;
model.SortCode = txtSortCode.Value;
model.Remark = txtRemark.Text;
model.ModifyUserId = GlobalConfig.CurrentUser.Id;
int row = organizeLogic.AppUpdate(model, model.ModifyUserId);
if (row == 0)
{
AntdUI.Message.warn(this, "对不起,操作失败!", autoClose: 3);
return;
}
btnClose_Click(null, null);
}
/// <summary>
/// 数据校验
/// </summary>
/// <param name="checkPassword"></param>
/// <returns></returns>
private bool ChechEmpty()
{
if (StringHelper.IsNullOrEmpty(txtEnCode.Text))
{
AntdUI.Message.warn(this, "编码不能为空!", autoClose: 3);
return false;
}
if (StringHelper.IsNullOrEmpty(txtName.Text))
{
AntdUI.Message.warn(this, "名称不能为空!", autoClose: 3);
return false;
}
if (StringHelper.IsNullOrEmpty(comboType.SelectedItem.ToString()))
{
AntdUI.Message.warn(this, "类型不能为空!", autoClose: 3);
return false;
}
return true;
}
/// <summary>
/// 执行新增操作
/// </summary>
private void DoAdd()
{
bool flag = ChechEmpty();
if (!flag)
return;
SysOrganize model = new SysOrganize();
model.EnCode = txtEnCode.Text;
model.FullName = txtName.Text;
model.Type = comboType.SelectedIndex;
model.ManagerId = txtManagerId.Text;
model.TelePhone = txtTelePhone.Text;
model.WeChat = txtWeChat.Text;
model.Email = txtEmail.Text;
model.Fax = txtFax.Text;
model.Address = txtAddress.Text;
model.SortCode = txtSortCode.Value;
model.Remark = txtRemark.Text;
model.CreateUserId = GlobalConfig.CurrentUser.Id;
int row = organizeLogic.AppInsert(model, model.CreateUserId);
if (row == 0)
{
AntdUI.Message.warn(this, "对不起,操作失败!", autoClose: 3);
return;
}
btnClose_Click(null, null);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,424 @@
namespace DH.RBAC.Page.Sys.Organize
{
partial class OrganizePage
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
pagination = new Sunny.UI.UIPagination();
panel5 = new System.Windows.Forms.Panel();
panel1 = new System.Windows.Forms.Panel();
dataGridView = new Sunny.UI.UIDataGridView();
OrganizeId = new System.Windows.Forms.DataGridViewTextBoxColumn();
OrganizeEncode = new System.Windows.Forms.DataGridViewTextBoxColumn();
OrganizeName = new System.Windows.Forms.DataGridViewTextBoxColumn();
OrganizeType = new System.Windows.Forms.DataGridViewTextBoxColumn();
OrganizeRemark = new System.Windows.Forms.DataGridViewTextBoxColumn();
RoleSortCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
panel6 = new System.Windows.Forms.Panel();
btnDelete = new AntdUI.Button();
btnUpdate = new AntdUI.Button();
btnAdd = new AntdUI.Button();
panel7 = new System.Windows.Forms.Panel();
btnQuery = new Sunny.UI.UISymbolButton();
txtKeywords = new Sunny.UI.UITextBox();
panel4 = new System.Windows.Forms.Panel();
panel3 = new System.Windows.Forms.Panel();
panel2 = new System.Windows.Forms.Panel();
panel5.SuspendLayout();
panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
panel6.SuspendLayout();
panel7.SuspendLayout();
panel2.SuspendLayout();
SuspendLayout();
//
// pagination
//
pagination.ButtonFillSelectedColor = System.Drawing.Color.FromArgb(64, 128, 204);
pagination.ButtonStyleInherited = false;
pagination.Dock = System.Windows.Forms.DockStyle.Bottom;
pagination.FillColor = System.Drawing.Color.White;
pagination.FillColor2 = System.Drawing.Color.White;
pagination.Font = new System.Drawing.Font("微软雅黑", 12F);
pagination.Location = new System.Drawing.Point(0, 492);
pagination.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
pagination.MinimumSize = new System.Drawing.Size(1, 1);
pagination.Name = "pagination";
pagination.PagerCount = 5;
pagination.PageSize = 10;
pagination.RectColor = System.Drawing.Color.FromArgb(216, 219, 227);
pagination.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
pagination.ShowText = false;
pagination.Size = new System.Drawing.Size(887, 26);
pagination.StyleCustomMode = true;
pagination.TabIndex = 11;
pagination.Text = "uiPagination1";
pagination.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
pagination.PageChanged += pagination_PageChanged;
//
// panel5
//
panel5.Controls.Add(panel1);
panel5.Controls.Add(panel6);
panel5.Controls.Add(panel4);
panel5.Controls.Add(panel3);
panel5.Dock = System.Windows.Forms.DockStyle.Fill;
panel5.Location = new System.Drawing.Point(0, 0);
panel5.Margin = new System.Windows.Forms.Padding(2);
panel5.Name = "panel5";
panel5.Size = new System.Drawing.Size(923, 568);
panel5.TabIndex = 7;
//
// panel1
//
panel1.Controls.Add(dataGridView);
panel1.Controls.Add(pagination);
panel1.Dock = System.Windows.Forms.DockStyle.Fill;
panel1.Location = new System.Drawing.Point(18, 50);
panel1.Margin = new System.Windows.Forms.Padding(2);
panel1.Name = "panel1";
panel1.Size = new System.Drawing.Size(887, 518);
panel1.TabIndex = 12;
//
// dataGridView
//
dataGridView.AllowUserToAddRows = false;
dataGridView.AllowUserToDeleteRows = false;
dataGridView.AllowUserToResizeRows = false;
dataGridViewCellStyle11.BackColor = System.Drawing.Color.White;
dataGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
dataGridView.BackgroundColor = System.Drawing.Color.White;
dataGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(216, 219, 227);
dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 12F);
dataGridViewCellStyle12.ForeColor = System.Drawing.Color.FromArgb(96, 98, 102);
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(216, 219, 227);
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
dataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
dataGridView.ColumnHeadersHeight = 32;
dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { OrganizeId, OrganizeEncode, OrganizeName, OrganizeType, OrganizeRemark, RoleSortCode });
dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle18.Font = new System.Drawing.Font("微软雅黑", 12F);
dataGridViewCellStyle18.ForeColor = System.Drawing.Color.FromArgb(48, 48, 48);
dataGridViewCellStyle18.SelectionBackColor = System.Drawing.Color.FromArgb(155, 200, 255);
dataGridViewCellStyle18.SelectionForeColor = System.Drawing.Color.FromArgb(48, 48, 48);
dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
dataGridView.DefaultCellStyle = dataGridViewCellStyle18;
dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
dataGridView.EnableHeadersVisualStyles = false;
dataGridView.Font = new System.Drawing.Font("微软雅黑", 12F);
dataGridView.GridColor = System.Drawing.Color.FromArgb(216, 219, 227);
dataGridView.Location = new System.Drawing.Point(0, 0);
dataGridView.Margin = new System.Windows.Forms.Padding(2);
dataGridView.MultiSelect = false;
dataGridView.Name = "dataGridView";
dataGridView.ReadOnly = true;
dataGridView.RectColor = System.Drawing.Color.FromArgb(216, 219, 227);
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle19.BackColor = System.Drawing.Color.White;
dataGridViewCellStyle19.Font = new System.Drawing.Font("微软雅黑", 12F);
dataGridViewCellStyle19.ForeColor = System.Drawing.Color.FromArgb(48, 48, 48);
dataGridViewCellStyle19.SelectionBackColor = System.Drawing.Color.FromArgb(216, 219, 227);
dataGridViewCellStyle19.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
dataGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle19;
dataGridView.RowHeadersVisible = false;
dataGridView.RowHeadersWidth = 51;
dataGridViewCellStyle20.BackColor = System.Drawing.Color.White;
dataGridView.RowsDefaultCellStyle = dataGridViewCellStyle20;
dataGridView.RowTemplate.Height = 29;
dataGridView.SelectedIndex = -1;
dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
dataGridView.Size = new System.Drawing.Size(887, 492);
dataGridView.StripeOddColor = System.Drawing.Color.White;
dataGridView.StyleCustomMode = true;
dataGridView.TabIndex = 12;
//
// OrganizeId
//
OrganizeId.DataPropertyName = "Id";
OrganizeId.HeaderText = "Id";
OrganizeId.MinimumWidth = 6;
OrganizeId.Name = "OrganizeId";
OrganizeId.ReadOnly = true;
OrganizeId.Visible = false;
OrganizeId.Width = 125;
//
// OrganizeEncode
//
OrganizeEncode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
OrganizeEncode.DataPropertyName = "Encode";
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
OrganizeEncode.DefaultCellStyle = dataGridViewCellStyle13;
OrganizeEncode.HeaderText = "编码";
OrganizeEncode.MinimumWidth = 6;
OrganizeEncode.Name = "OrganizeEncode";
OrganizeEncode.ReadOnly = true;
OrganizeEncode.Resizable = System.Windows.Forms.DataGridViewTriState.True;
OrganizeEncode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// OrganizeName
//
OrganizeName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
OrganizeName.DataPropertyName = "FullName";
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
OrganizeName.DefaultCellStyle = dataGridViewCellStyle14;
OrganizeName.HeaderText = "名称";
OrganizeName.MinimumWidth = 6;
OrganizeName.Name = "OrganizeName";
OrganizeName.ReadOnly = true;
OrganizeName.Resizable = System.Windows.Forms.DataGridViewTriState.True;
OrganizeName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// OrganizeType
//
OrganizeType.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
OrganizeType.DataPropertyName = "TypeStr";
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
OrganizeType.DefaultCellStyle = dataGridViewCellStyle15;
OrganizeType.HeaderText = "类型";
OrganizeType.MinimumWidth = 6;
OrganizeType.Name = "OrganizeType";
OrganizeType.ReadOnly = true;
OrganizeType.Resizable = System.Windows.Forms.DataGridViewTriState.True;
OrganizeType.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// OrganizeRemark
//
OrganizeRemark.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
OrganizeRemark.DataPropertyName = "Remark";
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.BottomCenter;
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
OrganizeRemark.DefaultCellStyle = dataGridViewCellStyle16;
OrganizeRemark.HeaderText = "备注";
OrganizeRemark.MinimumWidth = 6;
OrganizeRemark.Name = "OrganizeRemark";
OrganizeRemark.ReadOnly = true;
OrganizeRemark.Resizable = System.Windows.Forms.DataGridViewTriState.True;
OrganizeRemark.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// RoleSortCode
//
RoleSortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
RoleSortCode.DataPropertyName = "SortCode";
dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
RoleSortCode.DefaultCellStyle = dataGridViewCellStyle17;
RoleSortCode.HeaderText = "排序码";
RoleSortCode.MinimumWidth = 6;
RoleSortCode.Name = "RoleSortCode";
RoleSortCode.ReadOnly = true;
RoleSortCode.Resizable = System.Windows.Forms.DataGridViewTriState.True;
RoleSortCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// panel6
//
panel6.Controls.Add(btnDelete);
panel6.Controls.Add(btnUpdate);
panel6.Controls.Add(btnAdd);
panel6.Controls.Add(panel7);
panel6.Dock = System.Windows.Forms.DockStyle.Top;
panel6.Location = new System.Drawing.Point(18, 0);
panel6.Margin = new System.Windows.Forms.Padding(2);
panel6.Name = "panel6";
panel6.Size = new System.Drawing.Size(887, 50);
panel6.TabIndex = 9;
//
// btnDelete
//
btnDelete.Location = new System.Drawing.Point(235, 7);
btnDelete.Name = "btnDelete";
btnDelete.Size = new System.Drawing.Size(98, 38);
btnDelete.TabIndex = 13;
btnDelete.Tag = "org-delete";
btnDelete.Text = "删除机构";
btnDelete.Visible = false;
//
// btnUpdate
//
btnUpdate.Location = new System.Drawing.Point(118, 7);
btnUpdate.Name = "btnUpdate";
btnUpdate.Size = new System.Drawing.Size(98, 38);
btnUpdate.TabIndex = 12;
btnUpdate.Tag = "org-edit";
btnUpdate.Text = "修改机构";
btnUpdate.Visible = false;
//
// btnAdd
//
btnAdd.Location = new System.Drawing.Point(5, 7);
btnAdd.Name = "btnAdd";
btnAdd.Size = new System.Drawing.Size(98, 38);
btnAdd.TabIndex = 11;
btnAdd.Tag = "org-add";
btnAdd.Text = "新增机构";
btnAdd.Visible = false;
//
// panel7
//
panel7.Controls.Add(btnQuery);
panel7.Controls.Add(txtKeywords);
panel7.Dock = System.Windows.Forms.DockStyle.Right;
panel7.Location = new System.Drawing.Point(644, 0);
panel7.Margin = new System.Windows.Forms.Padding(2);
panel7.Name = "panel7";
panel7.Size = new System.Drawing.Size(243, 50);
panel7.TabIndex = 3;
//
// btnQuery
//
btnQuery.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
btnQuery.Cursor = System.Windows.Forms.Cursors.Hand;
btnQuery.Font = new System.Drawing.Font("微软雅黑", 12F);
btnQuery.Location = new System.Drawing.Point(214, 9);
btnQuery.Margin = new System.Windows.Forms.Padding(2);
btnQuery.MinimumSize = new System.Drawing.Size(1, 1);
btnQuery.Name = "btnQuery";
btnQuery.Size = new System.Drawing.Size(25, 36);
btnQuery.StyleCustomMode = true;
btnQuery.Symbol = 61442;
btnQuery.SymbolSize = 30;
btnQuery.TabIndex = 3;
btnQuery.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
//
// txtKeywords
//
txtKeywords.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
txtKeywords.ButtonFillColor = System.Drawing.Color.White;
txtKeywords.ButtonFillHoverColor = System.Drawing.Color.FromArgb(235, 243, 255);
txtKeywords.ButtonFillPressColor = System.Drawing.Color.FromArgb(235, 243, 255);
txtKeywords.ButtonForeColor = System.Drawing.Color.FromArgb(96, 98, 102);
txtKeywords.ButtonForeHoverColor = System.Drawing.Color.FromArgb(80, 160, 255);
txtKeywords.ButtonForePressColor = System.Drawing.Color.FromArgb(74, 131, 229);
txtKeywords.ButtonRectColor = System.Drawing.Color.FromArgb(216, 219, 227);
txtKeywords.ButtonRectHoverColor = System.Drawing.Color.FromArgb(197, 222, 255);
txtKeywords.ButtonStyleInherited = false;
txtKeywords.ButtonSymbol = 61761;
txtKeywords.Cursor = System.Windows.Forms.Cursors.IBeam;
txtKeywords.FillColor2 = System.Drawing.Color.White;
txtKeywords.Font = new System.Drawing.Font("微软雅黑", 12F);
txtKeywords.Location = new System.Drawing.Point(4, 9);
txtKeywords.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
txtKeywords.MinimumSize = new System.Drawing.Size(1, 10);
txtKeywords.Name = "txtKeywords";
txtKeywords.Padding = new System.Windows.Forms.Padding(3);
txtKeywords.RectColor = System.Drawing.Color.FromArgb(216, 219, 227);
txtKeywords.ShowText = false;
txtKeywords.Size = new System.Drawing.Size(206, 36);
txtKeywords.StyleCustomMode = true;
txtKeywords.TabIndex = 0;
txtKeywords.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
txtKeywords.Watermark = "机构名称或编码";
txtKeywords.KeyDown += txtKeywords_KeyDown;
//
// panel4
//
panel4.Dock = System.Windows.Forms.DockStyle.Right;
panel4.Location = new System.Drawing.Point(905, 0);
panel4.Margin = new System.Windows.Forms.Padding(2);
panel4.Name = "panel4";
panel4.Size = new System.Drawing.Size(18, 568);
panel4.TabIndex = 5;
//
// panel3
//
panel3.Dock = System.Windows.Forms.DockStyle.Left;
panel3.Location = new System.Drawing.Point(0, 0);
panel3.Margin = new System.Windows.Forms.Padding(2);
panel3.Name = "panel3";
panel3.Size = new System.Drawing.Size(18, 568);
panel3.TabIndex = 4;
//
// panel2
//
panel2.Controls.Add(panel5);
panel2.Dock = System.Windows.Forms.DockStyle.Fill;
panel2.Location = new System.Drawing.Point(0, 0);
panel2.Margin = new System.Windows.Forms.Padding(2);
panel2.Name = "panel2";
panel2.Size = new System.Drawing.Size(923, 568);
panel2.TabIndex = 5;
//
// OrganizePage
//
AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = System.Drawing.Color.FromArgb(235, 241, 243);
Controls.Add(panel2);
Margin = new System.Windows.Forms.Padding(2);
Name = "OrganizePage";
Size = new System.Drawing.Size(923, 568);
panel5.ResumeLayout(false);
panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
panel6.ResumeLayout(false);
panel7.ResumeLayout(false);
panel2.ResumeLayout(false);
ResumeLayout(false);
}
#endregion
private Sunny.UI.UIPagination pagination;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Panel panel7;
private Sunny.UI.UITextBox txtKeywords;
private System.Windows.Forms.Panel panel2;
private Sunny.UI.UISymbolButton btnQuery;
private System.Windows.Forms.Panel panel1;
private Sunny.UI.UIDataGridView dataGridView;
private System.Windows.Forms.DataGridViewTextBoxColumn OrganizeId;
private System.Windows.Forms.DataGridViewTextBoxColumn OrganizeEncode;
private System.Windows.Forms.DataGridViewTextBoxColumn OrganizeName;
private System.Windows.Forms.DataGridViewTextBoxColumn OrganizeType;
private System.Windows.Forms.DataGridViewTextBoxColumn OrganizeRemark;
private System.Windows.Forms.DataGridViewTextBoxColumn RoleSortCode;
private AntdUI.Button btnDelete;
private AntdUI.Button btnUpdate;
private AntdUI.Button btnAdd;
}
}

View File

@ -0,0 +1,187 @@

using DH.RBAC.Common;
using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DH.RBAC.Logic.Sys;
using DH.RBAC.Model.Sys;
using DH.RBAC.Utility.Other;
using AntdUI;
namespace DH.RBAC.Page.Sys.Organize
{
[PageCode("sys-organize")]
public partial class OrganizePage : MyPage
{
private SysOrganizeLogic organizeLogic;
Window window;
public OrganizePage(Window _window)
{
window= _window;
InitializeComponent();
organizeLogic = new SysOrganizeLogic();
dataGridView.AutoGenerateColumns = false;
Load += OrganizePage_Initialize;
btnQuery.Click += btnQuery_Click;
btnAdd.Click += btnAdd_Click;
btnDelete.Click += btnDelete_Click;
btnUpdate.Click += btnModify_Click;
}
/// <summary>
/// 界面初始化
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OrganizePage_Initialize(object sender, EventArgs e)
{
btnQuery_Click(null, null);
}
/// <summary>
/// 查询按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void btnQuery_Click(object sender, EventArgs e)
{
//调用服务器获得数据
int totalCount = 0;
List<SysOrganize> list = organizeLogic.GetList(pagination.ActivePage, pagination.PageSize, txtKeywords.Text, ref totalCount);
pagination.TotalCount = totalCount;
dataGridView.DataSource = list;
}
/// <summary>
/// 关键字Enter键处理
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void txtKeywords_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
btnQuery_Click(sender, null);
}
/// <summary>
/// 新增组织机构
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnAdd_Click(object sender, EventArgs e)
{
AddOrganizeForm form = new AddOrganizeForm();
form.ParentPage = this;
form.Id = string.Empty;
FormHelper.ShowSubForm(form);
}
/// <summary>
/// 修改组织机构
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnModify_Click(object sender, EventArgs e)
{
if (dataGridView.SelectedRows.Count == 0)
{
AntdUI.Message.warn(window, "请选择一行数据进行修改!", autoClose: 3);
return;
}
int index = dataGridView.SelectedIndex;
if (index < 0)
{
AntdUI.Message.warn(window, "请选择一行数据进行修改!", autoClose: 3);
return;
}
string id = dataGridView.Rows[index].Cells["OrganizeId"].Value.ToString();
AddOrganizeForm form = new AddOrganizeForm();
form.ParentPage = this;
form.Id = id;
FormHelper.ShowSubForm(form);
}
/// <summary>
/// 删除组织机构
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnDelete_Click(object sender, EventArgs e)
{
if (dataGridView.SelectedRows.Count == 0)
{
AntdUI.Message.warn(window, "请选择一行数据进行删除!", autoClose: 3);
return;
}
int index = dataGridView.SelectedIndex;
if (index < 0)
{
AntdUI.Message.warn(window, "请选择一行数据进行删除!", autoClose: 3);
return;
}
string id = dataGridView.Rows[index].Cells["OrganizeId"].Value.ToString();
var result = AntdUI.Modal.open(window, "删除警告!", "您是否确定要删除该机构?", TType.Warn);
if (result == DialogResult.OK)
{
try
{
int row = 0;
int count = organizeLogic.GetChildCount(id);
if (count > 0)
{
AntdUI.Message.warn(window, $"操作失败,请先删除该项的{count}个子级机构。", autoClose: 3);
return;
}
row = organizeLogic.Delete(id);
if (row == 0)
{
AntdUI.Message.warn(window, "对不起,操作失败", autoClose: 3);
return;
}
//重新查询
btnQuery_Click(null, null);
}
catch
{
AntdUI.Message.warn(window, "网络或服务器异常,请稍后再试", autoClose: 3);
}
}
}
/// <summary>
/// 页码发生改变
/// </summary>
/// <param name="sender"></param>
/// <param name="pagingSource"></param>
/// <param name="pageIndex"></param>
/// <param name="count"></param>
private void pagination_PageChanged(object sender, object pagingSource, int pageIndex, int count)
{
btnQuery_Click(null, null);
}
}
}

View File

@ -0,0 +1,138 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="OrganizeId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="OrganizeEncode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="OrganizeName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="OrganizeType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="OrganizeRemark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="RoleSortCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>