Desktop/HStation.DeskTop.Xhs.Main/GuideMain.cs
@@ -4,10 +4,10 @@ using DevExpress.XtraEditors; using HStation.WinFrmUI; using HStation.WinFrmUI.Auth; using HStation.WinFrmUI.Auth.Core._01_Role; using HStation.WinFrmUI.Basic; using HStation.WinFrmUI.Organize; using HStation.WinFrmUI.Organize.Core._02_Employee; using HStation.WinFrmUI.Organize.Core._04_Menu; using HStation.WinFrmUI.Organize.Core._05_ControlCenter; using HStation.WinFrmUI.Organize.Core._06_MyCenter; using HStation.WinFrmUI.Xhs.PumpProduct; @@ -271,7 +271,7 @@ }; if (!IsExistPage(guid, true)) { var page = new RoleMainPanel(); var page = new RoleMainMgrPanel(); page.PageTitle.Caption = guid.Function; page.PageGuid = guid; CreatePage(page, guid); HStation.Dto.Auth.Core/01-RoleMain/RoleMainDto.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,50 @@ //using System; //using System.Collections.Generic; //using System.Linq; //using System.Text; //using System.Threading.Tasks; //namespace HStation.Dto //{ // public class RoleMainDto // { // public RoleMainDto() // { // } // public RoleMainDto(EmployeeMain rhs) // { // } // /// <summary> // /// 客æ·id // /// </summary> // public string CorpID { get; set; } // /// <summary> // /// åç§° // /// </summary> // public string Name { get; set; } // /// <summary> // /// ç¼ç // /// </summary> // public string Code { get; set; } // /// <summary> // /// 使ç¨ç¶æ // /// </summary> // public int UseStatus { get; set; } // /// <summary> // /// æåºç // /// </summary> // public int SortCode { get; set; } // /// <summary> // /// 说æ // /// </summary> // public string Description { get; set; } // } //} HStation.Dto.Auth.Core/HStation.Dto.Auth.Core.csproj
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,10 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net8.0-windows</TargetFramework> <Nullable>enable</Nullable> <UseWPF>true</UseWPF> <ImplicitUsings>enable</ImplicitUsings> </PropertyGroup> </Project> HStation.Service.Auto.Core/HStation.Service.Auth.Core.csproj
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,14 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net8.0-windows</TargetFramework> <Nullable>enable</Nullable> <UseWPF>true</UseWPF> <ImplicitUsings>enable</ImplicitUsings> </PropertyGroup> <ItemGroup> <Folder Include="01-Model\" /> </ItemGroup> </Project> HStation.Xhs.Desktop.sln
@@ -93,7 +93,11 @@ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yw.BIMFace.SDK.Core", "Component\Yw.BIMFace.SDK.Core\Yw.BIMFace.SDK.Core.csproj", "{2DA24A3A-6D57-46FF-8086-0B6C00E250CE}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HStation.WinFrmUI.Auth.Core", "WinFrmUI\HStation.WinFrmUI.Auth.Core\HStation.WinFrmUI.Auth.Core.csproj", "{8CBF362D-88F3-4B77-9FD2-FFBF4D0FF3A6}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HStation.WinFrmUI.Auth.Core", "WinFrmUI\HStation.WinFrmUI.Auth.Core\HStation.WinFrmUI.Auth.Core.csproj", "{8CBF362D-88F3-4B77-9FD2-FFBF4D0FF3A6}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HStation.Dto.Auth.Core", "HStation.Dto.Auth.Core\HStation.Dto.Auth.Core.csproj", "{B0F170DA-DA10-4AE0-8AF8-991AAF22E086}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HStation.Service.Auth.Core", "HStation.Service.Auto.Core\HStation.Service.Auth.Core.csproj", "{5984C100-85C1-4E2A-8F19-4E711DB4714B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -249,6 +253,14 @@ {8CBF362D-88F3-4B77-9FD2-FFBF4D0FF3A6}.Debug|Any CPU.Build.0 = Debug|Any CPU {8CBF362D-88F3-4B77-9FD2-FFBF4D0FF3A6}.Release|Any CPU.ActiveCfg = Release|Any CPU {8CBF362D-88F3-4B77-9FD2-FFBF4D0FF3A6}.Release|Any CPU.Build.0 = Release|Any CPU {B0F170DA-DA10-4AE0-8AF8-991AAF22E086}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B0F170DA-DA10-4AE0-8AF8-991AAF22E086}.Debug|Any CPU.Build.0 = Debug|Any CPU {B0F170DA-DA10-4AE0-8AF8-991AAF22E086}.Release|Any CPU.ActiveCfg = Release|Any CPU {B0F170DA-DA10-4AE0-8AF8-991AAF22E086}.Release|Any CPU.Build.0 = Release|Any CPU {5984C100-85C1-4E2A-8F19-4E711DB4714B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5984C100-85C1-4E2A-8F19-4E711DB4714B}.Debug|Any CPU.Build.0 = Debug|Any CPU {5984C100-85C1-4E2A-8F19-4E711DB4714B}.Release|Any CPU.ActiveCfg = Release|Any CPU {5984C100-85C1-4E2A-8F19-4E711DB4714B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -290,6 +302,8 @@ {BF7563BE-C9FF-48B9-9268-FC0F1DA96B57} = {D5B088B2-E69E-4B43-838B-080B9F012077} {2DA24A3A-6D57-46FF-8086-0B6C00E250CE} = {6A2A28EE-EEC1-42C1-BADB-F9368252807A} {8CBF362D-88F3-4B77-9FD2-FFBF4D0FF3A6} = {D5B088B2-E69E-4B43-838B-080B9F012077} {B0F170DA-DA10-4AE0-8AF8-991AAF22E086} = {60068812-89D4-4DAB-A41B-0334B8D76A0B} {5984C100-85C1-4E2A-8F19-4E711DB4714B} = {67608112-BE07-493C-8240-E084CF461482} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {E02989A8-9B6F-43E5-AACA-790328215089} Hydro/Yw.EPAcore.Core/Yw.EPAcore.Core.log
¶Ô±ÈÐÂÎļþ @@ -0,0 +1 @@ D:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(839,5): error : The BaseOutputPath/OutputPath property is not set for project 'Yw.EPAcore.Core.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='x64'. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform. WinFrmUI/HStation.WinFrmUI.Auth.Core/00-RoleControl/RoleFrom.Designer.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,343 @@ namespace HStation.WinFrmUI.Auth.Core._00_RoleControl { partial class RoleFrom { /// <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 Component 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() { layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); imageComboBoxEdit1 = new DevExpress.XtraEditors.ImageComboBoxEdit(); checkedComboBoxEditUser = new DevExpress.XtraEditors.CheckedComboBoxEdit(); checkedComboBoxEditRoleMune = new DevExpress.XtraEditors.CheckedComboBoxEdit(); textEditRoleCode = new DevExpress.XtraEditors.TextEdit(); textEditRole = new DevExpress.XtraEditors.TextEdit(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem5 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem6 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem7 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem9 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem8 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem10 = new DevExpress.XtraLayout.EmptySpaceItem(); ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit1.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)checkedComboBoxEditUser.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)checkedComboBoxEditRoleMune.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)textEditRoleCode.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)textEditRole.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem5).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem3).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem5).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem6).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem7).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem9).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem4).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem8).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem10).BeginInit(); SuspendLayout(); // // layoutControl1 // layoutControl1.Controls.Add(imageComboBoxEdit1); layoutControl1.Controls.Add(checkedComboBoxEditUser); layoutControl1.Controls.Add(checkedComboBoxEditRoleMune); layoutControl1.Controls.Add(textEditRoleCode); layoutControl1.Controls.Add(textEditRole); layoutControl1.Dock = DockStyle.Fill; layoutControl1.Location = new Point(0, 0); layoutControl1.Name = "layoutControl1"; layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(1005, 220, 650, 400); layoutControl1.Root = Root; layoutControl1.Size = new Size(556, 143); layoutControl1.TabIndex = 0; layoutControl1.Text = "layoutControl1"; // // imageComboBoxEdit1 // imageComboBoxEdit1.EditValue = "1"; imageComboBoxEdit1.Location = new Point(117, 90); imageComboBoxEdit1.Name = "imageComboBoxEdit1"; imageComboBoxEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); imageComboBoxEdit1.Properties.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] { new DevExpress.XtraEditors.Controls.ImageComboBoxItem("ç¦ç¨", "0", -1), new DevExpress.XtraEditors.Controls.ImageComboBoxItem("å¯ç¨", "1", -1) }); imageComboBoxEdit1.Size = new Size(143, 20); imageComboBoxEdit1.StyleController = layoutControl1; imageComboBoxEdit1.TabIndex = 8; // // checkedComboBoxEditUser // checkedComboBoxEditUser.Location = new Point(353, 56); checkedComboBoxEditUser.Name = "checkedComboBoxEditUser"; checkedComboBoxEditUser.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); checkedComboBoxEditUser.Size = new Size(159, 20); checkedComboBoxEditUser.StyleController = layoutControl1; checkedComboBoxEditUser.TabIndex = 7; // // checkedComboBoxEditRoleMune // checkedComboBoxEditRoleMune.EditValue = ""; checkedComboBoxEditRoleMune.Location = new Point(117, 56); checkedComboBoxEditRoleMune.Name = "checkedComboBoxEditRoleMune"; checkedComboBoxEditRoleMune.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); checkedComboBoxEditRoleMune.Properties.Items.AddRange(new DevExpress.XtraEditors.Controls.CheckedListBoxItem[] { new DevExpress.XtraEditors.Controls.CheckedListBoxItem("0", "èå1", CheckState.Indeterminate), new DevExpress.XtraEditors.Controls.CheckedListBoxItem("1", "èå2", CheckState.Indeterminate) }); checkedComboBoxEditRoleMune.Size = new Size(143, 20); checkedComboBoxEditRoleMune.StyleController = layoutControl1; checkedComboBoxEditRoleMune.TabIndex = 6; // // textEditRoleCode // textEditRoleCode.Location = new Point(353, 22); textEditRoleCode.Name = "textEditRoleCode"; textEditRoleCode.Size = new Size(159, 20); textEditRoleCode.StyleController = layoutControl1; textEditRoleCode.TabIndex = 5; // // textEditRole // textEditRole.Location = new Point(117, 22); textEditRole.Name = "textEditRole"; textEditRole.Size = new Size(143, 20); textEditRole.StyleController = layoutControl1; textEditRole.TabIndex = 4; // // Root // Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; Root.GroupBordersVisible = false; Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, emptySpaceItem1, layoutControlItem2, layoutControlItem3, layoutControlItem4, layoutControlItem5, emptySpaceItem2, emptySpaceItem3, emptySpaceItem5, emptySpaceItem6, emptySpaceItem7, emptySpaceItem9, emptySpaceItem4, emptySpaceItem8, emptySpaceItem10 }); Root.Name = "Root"; Root.Size = new Size(556, 143); Root.TextVisible = false; // // layoutControlItem1 // layoutControlItem1.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem1.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem1.Control = textEditRole; layoutControlItem1.Location = new Point(26, 10); layoutControlItem1.Name = "layoutControlItem1"; layoutControlItem1.Size = new Size(226, 24); layoutControlItem1.Text = "*è§è²åç§°ï¼"; layoutControlItem1.TextSize = new Size(67, 14); // // emptySpaceItem1 // emptySpaceItem1.AllowHotTrack = false; emptySpaceItem1.Location = new Point(26, 112); emptySpaceItem1.Name = "emptySpaceItem1"; emptySpaceItem1.Size = new Size(478, 11); emptySpaceItem1.TextSize = new Size(0, 0); // // layoutControlItem2 // layoutControlItem2.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem2.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem2.Control = textEditRoleCode; layoutControlItem2.Location = new Point(262, 10); layoutControlItem2.Name = "layoutControlItem2"; layoutControlItem2.Size = new Size(242, 24); layoutControlItem2.Text = "*è§è²ç¼å·ï¼"; layoutControlItem2.TextSize = new Size(67, 14); // // layoutControlItem3 // layoutControlItem3.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem3.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem3.Control = checkedComboBoxEditRoleMune; layoutControlItem3.Location = new Point(26, 44); layoutControlItem3.Name = "layoutControlItem3"; layoutControlItem3.Size = new Size(226, 24); layoutControlItem3.Text = "è§è²èåï¼"; layoutControlItem3.TextSize = new Size(67, 14); // // layoutControlItem4 // layoutControlItem4.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem4.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem4.Control = checkedComboBoxEditUser; layoutControlItem4.Location = new Point(262, 44); layoutControlItem4.Name = "layoutControlItem4"; layoutControlItem4.Size = new Size(242, 24); layoutControlItem4.Text = "ç¨æ·ç®¡çï¼"; layoutControlItem4.TextSize = new Size(67, 14); // // layoutControlItem5 // layoutControlItem5.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem5.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem5.Control = imageComboBoxEdit1; layoutControlItem5.Location = new Point(26, 78); layoutControlItem5.Name = "layoutControlItem5"; layoutControlItem5.Size = new Size(226, 24); layoutControlItem5.Text = "ç¶æï¼"; layoutControlItem5.TextSize = new Size(67, 14); // // emptySpaceItem2 // emptySpaceItem2.AllowHotTrack = false; emptySpaceItem2.Location = new Point(26, 0); emptySpaceItem2.Name = "emptySpaceItem2"; emptySpaceItem2.Size = new Size(478, 10); emptySpaceItem2.TextSize = new Size(0, 0); // // emptySpaceItem3 // emptySpaceItem3.AllowHotTrack = false; emptySpaceItem3.Location = new Point(252, 68); emptySpaceItem3.Name = "emptySpaceItem3"; emptySpaceItem3.Size = new Size(252, 34); emptySpaceItem3.TextSize = new Size(0, 0); // // emptySpaceItem5 // emptySpaceItem5.AllowHotTrack = false; emptySpaceItem5.Location = new Point(504, 0); emptySpaceItem5.Name = "emptySpaceItem5"; emptySpaceItem5.Size = new Size(32, 123); emptySpaceItem5.TextSize = new Size(0, 0); // // emptySpaceItem6 // emptySpaceItem6.AllowHotTrack = false; emptySpaceItem6.Location = new Point(0, 0); emptySpaceItem6.Name = "emptySpaceItem6"; emptySpaceItem6.Size = new Size(26, 123); emptySpaceItem6.TextSize = new Size(0, 0); // // emptySpaceItem7 // emptySpaceItem7.AllowHotTrack = false; emptySpaceItem7.Location = new Point(26, 102); emptySpaceItem7.Name = "emptySpaceItem7"; emptySpaceItem7.Size = new Size(478, 10); emptySpaceItem7.TextSize = new Size(0, 0); // // emptySpaceItem9 // emptySpaceItem9.AllowHotTrack = false; emptySpaceItem9.Location = new Point(26, 68); emptySpaceItem9.Name = "emptySpaceItem9"; emptySpaceItem9.Size = new Size(226, 10); emptySpaceItem9.TextSize = new Size(0, 0); // // emptySpaceItem4 // emptySpaceItem4.AllowHotTrack = false; emptySpaceItem4.Location = new Point(26, 34); emptySpaceItem4.Name = "emptySpaceItem4"; emptySpaceItem4.Size = new Size(478, 10); emptySpaceItem4.TextSize = new Size(0, 0); // // emptySpaceItem8 // emptySpaceItem8.AllowHotTrack = false; emptySpaceItem8.Location = new Point(252, 44); emptySpaceItem8.Name = "emptySpaceItem8"; emptySpaceItem8.Size = new Size(10, 24); emptySpaceItem8.TextSize = new Size(0, 0); // // emptySpaceItem10 // emptySpaceItem10.AllowHotTrack = false; emptySpaceItem10.Location = new Point(252, 10); emptySpaceItem10.Name = "emptySpaceItem10"; emptySpaceItem10.Size = new Size(10, 24); emptySpaceItem10.TextSize = new Size(0, 0); // // RoleFrom // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; Controls.Add(layoutControl1); Name = "RoleFrom"; Size = new Size(556, 143); ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit1.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)checkedComboBoxEditUser.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)checkedComboBoxEditRoleMune.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)textEditRoleCode.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)textEditRole.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)Root).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem5).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem3).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem5).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem6).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem7).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem9).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem4).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem8).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem10).EndInit(); ResumeLayout(false); } #endregion private DevExpress.XtraLayout.LayoutControl layoutControl1; private DevExpress.XtraLayout.LayoutControlGroup Root; private DevExpress.XtraEditors.CheckedComboBoxEdit checkedComboBoxEditUser; private DevExpress.XtraEditors.CheckedComboBoxEdit checkedComboBoxEditRoleMune; private DevExpress.XtraEditors.TextEdit textEditRoleCode; private DevExpress.XtraEditors.TextEdit textEditRole; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; private DevExpress.XtraEditors.ImageComboBoxEdit imageComboBoxEdit1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem3; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem5; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem6; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem7; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem9; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem8; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem10; } } WinFrmUI/HStation.WinFrmUI.Auth.Core/00-RoleControl/RoleFrom.cs
ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Organize.Core/00-UserControl/RoleFrom.cs ÐÞ¸Ä @@ -9,17 +9,13 @@ using System.Threading.Tasks; using System.Windows.Forms; namespace HStation.WinFrmUI.Organize.Core._00_UserControl namespace HStation.WinFrmUI.Auth.Core._00_RoleControl { public partial class RoleFrom : DevExpress.XtraEditors.XtraUserControl { public RoleFrom() { InitializeComponent(); } public bool IsValid() { return dxValidationProviderRole.Validate(); } } } WinFrmUI/HStation.WinFrmUI.Auth.Core/00-RoleControl/RoleFrom.resxcopy from WinFrmUI/HStation.WinFrmUI.Organize.Core/03-Role/AddRoleDlg.resx copy to WinFrmUI/HStation.WinFrmUI.Auth.Core/00-RoleControl/RoleFrom.resx
WinFrmUI/HStation.WinFrmUI.Auth.Core/00-RoleControl/UserFrom.Designer.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,208 @@ namespace HStation.WinFrmUI.Auth.Core._00_RoleControl { partial class UserFrom { /// <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 Component 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() { layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); textEditQueRenPassword = new DevExpress.XtraEditors.TextEdit(); textEditPassword = new DevExpress.XtraEditors.TextEdit(); textEditDengLuName = new DevExpress.XtraEditors.TextEdit(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem(); ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)textEditQueRenPassword.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)textEditPassword.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)textEditDengLuName.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem3).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem4).BeginInit(); SuspendLayout(); // // layoutControl1 // layoutControl1.Controls.Add(textEditQueRenPassword); layoutControl1.Controls.Add(textEditPassword); layoutControl1.Controls.Add(textEditDengLuName); layoutControl1.Dock = DockStyle.Fill; layoutControl1.Location = new Point(0, 0); layoutControl1.Name = "layoutControl1"; layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(1056, 213, 650, 400); layoutControl1.Root = Root; layoutControl1.Size = new Size(496, 112); layoutControl1.TabIndex = 0; layoutControl1.Text = "layoutControl1"; // // textEditQueRenPassword // textEditQueRenPassword.Location = new Point(126, 80); textEditQueRenPassword.Name = "textEditQueRenPassword"; textEditQueRenPassword.Size = new Size(337, 20); textEditQueRenPassword.StyleController = layoutControl1; textEditQueRenPassword.TabIndex = 6; // // textEditPassword // textEditPassword.Location = new Point(126, 46); textEditPassword.Name = "textEditPassword"; textEditPassword.Size = new Size(337, 20); textEditPassword.StyleController = layoutControl1; textEditPassword.TabIndex = 5; // // textEditDengLuName // textEditDengLuName.Location = new Point(126, 12); textEditDengLuName.Name = "textEditDengLuName"; textEditDengLuName.Size = new Size(337, 20); textEditDengLuName.StyleController = layoutControl1; textEditDengLuName.TabIndex = 4; // // Root // Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; Root.GroupBordersVisible = false; Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, layoutControlItem2, layoutControlItem3, emptySpaceItem1, emptySpaceItem2, emptySpaceItem3, emptySpaceItem4 }); Root.Name = "Root"; Root.Size = new Size(496, 112); Root.TextVisible = false; // // layoutControlItem1 // layoutControlItem1.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem1.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem1.Control = textEditDengLuName; layoutControlItem1.Location = new Point(23, 0); layoutControlItem1.Name = "layoutControlItem1"; layoutControlItem1.Size = new Size(432, 24); layoutControlItem1.Text = "*ç»å½ç¨æ·åï¼"; layoutControlItem1.TextSize = new Size(79, 14); // // layoutControlItem2 // layoutControlItem2.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem2.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem2.Control = textEditPassword; layoutControlItem2.Location = new Point(23, 34); layoutControlItem2.Name = "layoutControlItem2"; layoutControlItem2.Size = new Size(432, 24); layoutControlItem2.Text = "*å¯ç ï¼"; layoutControlItem2.TextSize = new Size(79, 14); // // layoutControlItem3 // layoutControlItem3.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem3.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem3.Control = textEditQueRenPassword; layoutControlItem3.Location = new Point(23, 68); layoutControlItem3.Name = "layoutControlItem3"; layoutControlItem3.Size = new Size(432, 24); layoutControlItem3.Text = "*确认å¯ç ï¼"; layoutControlItem3.TextSize = new Size(79, 14); // // emptySpaceItem1 // emptySpaceItem1.AllowHotTrack = false; emptySpaceItem1.Location = new Point(455, 0); emptySpaceItem1.Name = "emptySpaceItem1"; emptySpaceItem1.Size = new Size(21, 92); emptySpaceItem1.TextSize = new Size(0, 0); // // emptySpaceItem2 // emptySpaceItem2.AllowHotTrack = false; emptySpaceItem2.Location = new Point(0, 0); emptySpaceItem2.Name = "emptySpaceItem2"; emptySpaceItem2.Size = new Size(23, 92); emptySpaceItem2.TextSize = new Size(0, 0); // // emptySpaceItem3 // emptySpaceItem3.AllowHotTrack = false; emptySpaceItem3.Location = new Point(23, 24); emptySpaceItem3.Name = "emptySpaceItem3"; emptySpaceItem3.Size = new Size(432, 10); emptySpaceItem3.TextSize = new Size(0, 0); // // emptySpaceItem4 // emptySpaceItem4.AllowHotTrack = false; emptySpaceItem4.Location = new Point(23, 58); emptySpaceItem4.Name = "emptySpaceItem4"; emptySpaceItem4.Size = new Size(432, 10); emptySpaceItem4.TextSize = new Size(0, 0); // // UserFrom // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; Controls.Add(layoutControl1); Name = "UserFrom"; Size = new Size(496, 112); ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)textEditQueRenPassword.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)textEditPassword.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)textEditDengLuName.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)Root).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem3).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem4).EndInit(); ResumeLayout(false); } #endregion private DevExpress.XtraLayout.LayoutControl layoutControl1; private DevExpress.XtraEditors.TextEdit textEditQueRenPassword; private DevExpress.XtraEditors.TextEdit textEditPassword; private DevExpress.XtraEditors.TextEdit textEditDengLuName; private DevExpress.XtraLayout.LayoutControlGroup Root; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem3; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4; } } WinFrmUI/HStation.WinFrmUI.Auth.Core/00-RoleControl/UserFrom.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,21 @@ using DevExpress.XtraEditors; 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; namespace HStation.WinFrmUI.Auth.Core._00_RoleControl { public partial class UserFrom : DevExpress.XtraEditors.XtraUserControl { public UserFrom() { InitializeComponent(); } } } WinFrmUI/HStation.WinFrmUI.Auth.Core/00-RoleControl/UserFrom.resxcopy from WinFrmUI/HStation.WinFrmUI.Organize.Core/03-Role/AddRoleDlg.resx copy to WinFrmUI/HStation.WinFrmUI.Auth.Core/00-RoleControl/UserFrom.resx
WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/AddRoleDlg.Designer.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,83 @@ namespace HStation.WinFrmUI.Auth.Core._01_Role { partial class AddRoleDlg { /// <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() { roleFrom1 = new _00_RoleControl.RoleFrom(); simpleButtonQueDing = new DevExpress.XtraEditors.SimpleButton(); simpleButtonQuXiao = new DevExpress.XtraEditors.SimpleButton(); SuspendLayout(); // // roleFrom1 // roleFrom1.Dock = DockStyle.Top; roleFrom1.Location = new Point(0, 0); roleFrom1.Name = "roleFrom1"; roleFrom1.Size = new Size(597, 144); roleFrom1.TabIndex = 0; // // simpleButtonQueDing // simpleButtonQueDing.Location = new Point(313, 150); simpleButtonQueDing.Name = "simpleButtonQueDing"; simpleButtonQueDing.Size = new Size(96, 23); simpleButtonQueDing.TabIndex = 1; simpleButtonQueDing.Text = "ç¡®å®"; simpleButtonQueDing.Click += simpleButtonQueDing_Click; // // simpleButtonQuXiao // simpleButtonQuXiao.Location = new Point(432, 150); simpleButtonQuXiao.Name = "simpleButtonQuXiao"; simpleButtonQuXiao.Size = new Size(100, 23); simpleButtonQuXiao.TabIndex = 2; simpleButtonQuXiao.Text = "åæ¶"; simpleButtonQuXiao.Click += simpleButtonQuXiao_Click; // // AddRoleDlg // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(597, 194); Controls.Add(simpleButtonQuXiao); Controls.Add(simpleButtonQueDing); Controls.Add(roleFrom1); MaximizeBox = false; Name = "AddRoleDlg"; StartPosition = FormStartPosition.CenterScreen; Text = "æ·»å è§è²"; ResumeLayout(false); } #endregion private _00_RoleControl.RoleFrom roleFrom1; private DevExpress.XtraEditors.SimpleButton simpleButtonQueDing; private DevExpress.XtraEditors.SimpleButton simpleButtonQuXiao; } } WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/AddRoleDlg.cscopy from WinFrmUI/HStation.WinFrmUI.Organize.Core/04-User/AddUserDlg.cs copy to WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/AddRoleDlg.cs
Îļþ´Ó WinFrmUI/HStation.WinFrmUI.Organize.Core/04-User/AddUserDlg.cs ¸´ÖÆ @@ -9,28 +9,26 @@ using System.Threading.Tasks; using System.Windows.Forms; namespace HStation.WinFrmUI.Organize.Core._04_User namespace HStation.WinFrmUI.Auth.Core._01_Role { public partial class AddUserDlg : DevExpress.XtraEditors.XtraForm public partial class AddRoleDlg : DevExpress.XtraEditors.XtraForm { public AddUserDlg() public AddRoleDlg() { InitializeComponent(); } //ç¡®å® private void simpleButtonQueDing_Click(object sender, EventArgs e) { if (e == null) { return; } this.Close(); } //åæ¶ private void simpleButtonQuXiao_Click(object sender, EventArgs e) { if (e == null) { return; WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/AddRoleDlg.resx
WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/RoleMainMgrPanel.Designer.cs
ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Organize.Core/03-Role/RoleMainMgrPanel.Designer.cs ÐÞ¸Ä @@ -1,4 +1,4 @@ namespace HStation.WinFrmUI.Organize.Core._02_Employee namespace HStation.WinFrmUI.Auth.Core._01_Role { partial class RoleMainMgrPanel { @@ -59,7 +59,7 @@ ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; ribbonControl1.ShowPageHeadersInFormCaption = DevExpress.Utils.DefaultBoolean.True; ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; ribbonControl1.Size = new Size(735, 104); ribbonControl1.Size = new Size(712, 104); ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; // // RoleEdit @@ -107,8 +107,8 @@ gridControl1.MainView = gridView1; gridControl1.MenuManager = ribbonControl1; gridControl1.Name = "gridControl1"; gridControl1.Size = new Size(735, 404); gridControl1.TabIndex = 1; gridControl1.Size = new Size(712, 342); gridControl1.TabIndex = 2; gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); // // gridView1 @@ -143,7 +143,7 @@ Controls.Add(gridControl1); Controls.Add(ribbonControl1); Name = "RoleMainMgrPanel"; Size = new Size(735, 508); Size = new Size(712, 446); ((System.ComponentModel.ISupportInitialize)ribbonControl1).EndInit(); ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); ((System.ComponentModel.ISupportInitialize)gridView1).EndInit(); WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/RoleMainMgrPanel.cs
ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Organize.Core/03-Role/RoleMainMgrPanel.cs ÐÞ¸Ä @@ -1,7 +1,4 @@ using DevExpress.XtraEditors; using DevExpress.XtraGrid.Extensions; using HStation.WinFrmUI.Organize.Core._03_Role; using HStation.WinFrmUI.Organize.Core._04_Role; using System; using System.Collections.Generic; using System.ComponentModel; @@ -13,30 +10,29 @@ using System.Windows.Forms; using Yw.WinFrmUI; namespace HStation.WinFrmUI.Organize.Core._02_Employee namespace HStation.WinFrmUI.Auth.Core._01_Role { public partial class RoleMainMgrPanel : DocumentPage { public partial class RoleMainMgrPanel : DocumentPage { public RoleMainMgrPanel() { InitializeComponent(); } //å é¤è§è² private void RoleDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //ç´æ¥é䏿°æ®è¡ ç¹å»è¿è¡å é¤ } //ç¼è¾è§è² private void RoleEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var dlg = new UpdateRoleDlg(); dlg.ShowDialog(); } //æ·»å è§è² private void RoleAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var dlg = new AddRoleDlg(); dlg.ShowDialog(); } //ä¿®æ¹è§è² private void RoleEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var dlg = new UpdateRoleDlg(); dlg.ShowDialog(); } //å é¤è§è² private void RoleDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { } } WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/RoleMainMgrPanel.resx
WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/UpdateRoleDlg.Designer.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,83 @@ namespace HStation.WinFrmUI.Auth.Core._01_Role { partial class UpdateRoleDlg { /// <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() { roleFrom1 = new _00_RoleControl.RoleFrom(); simpleButtonQuXiao = new DevExpress.XtraEditors.SimpleButton(); simpleButtonQueDing = new DevExpress.XtraEditors.SimpleButton(); SuspendLayout(); // // roleFrom1 // roleFrom1.Dock = DockStyle.Top; roleFrom1.Location = new Point(0, 0); roleFrom1.Name = "roleFrom1"; roleFrom1.Size = new Size(597, 143); roleFrom1.TabIndex = 0; // // simpleButtonQuXiao // simpleButtonQuXiao.Location = new Point(432, 149); simpleButtonQuXiao.Name = "simpleButtonQuXiao"; simpleButtonQuXiao.Size = new Size(100, 23); simpleButtonQuXiao.TabIndex = 4; simpleButtonQuXiao.Text = "åæ¶"; simpleButtonQuXiao.Click += simpleButtonQuXiao_Click; // // simpleButtonQueDing // simpleButtonQueDing.Location = new Point(313, 149); simpleButtonQueDing.Name = "simpleButtonQueDing"; simpleButtonQueDing.Size = new Size(96, 23); simpleButtonQueDing.TabIndex = 3; simpleButtonQueDing.Text = "ç¡®å®"; simpleButtonQueDing.Click += simpleButtonQueDing_Click; // // UpdateRoleDlg // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(597, 194); Controls.Add(simpleButtonQuXiao); Controls.Add(simpleButtonQueDing); Controls.Add(roleFrom1); MaximizeBox = false; Name = "UpdateRoleDlg"; StartPosition = FormStartPosition.CenterScreen; Text = "ä¿®æ¹ç¨æ·"; ResumeLayout(false); } #endregion private _00_RoleControl.RoleFrom roleFrom1; private DevExpress.XtraEditors.SimpleButton simpleButtonQuXiao; private DevExpress.XtraEditors.SimpleButton simpleButtonQueDing; } } WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/UpdateRoleDlg.cscopy from WinFrmUI/HStation.WinFrmUI.Organize.Core/04-User/AddUserDlg.cs copy to WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/UpdateRoleDlg.cs
Îļþ´Ó WinFrmUI/HStation.WinFrmUI.Organize.Core/04-User/AddUserDlg.cs ¸´ÖÆ @@ -9,28 +9,26 @@ using System.Threading.Tasks; using System.Windows.Forms; namespace HStation.WinFrmUI.Organize.Core._04_User namespace HStation.WinFrmUI.Auth.Core._01_Role { public partial class AddUserDlg : DevExpress.XtraEditors.XtraForm public partial class UpdateRoleDlg : DevExpress.XtraEditors.XtraForm { public AddUserDlg() public UpdateRoleDlg() { InitializeComponent(); } //ç¡®å® private void simpleButtonQueDing_Click(object sender, EventArgs e) { if (e == null) { return; } this.Close(); } //åæ¶ private void simpleButtonQuXiao_Click(object sender, EventArgs e) { if (e == null) { return; WinFrmUI/HStation.WinFrmUI.Auth.Core/01-Role/UpdateRoleDlg.resx
WinFrmUI/HStation.WinFrmUI.Auth.Core/02-User/AddUserDlg.Designer.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,269 @@ namespace HStation.WinFrmUI.Auth.Core._02_User { partial class AddUserDlg { /// <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() { groupControl1 = new DevExpress.XtraEditors.GroupControl(); userFrom1 = new _00_RoleControl.UserFrom(); groupControl2 = new DevExpress.XtraEditors.GroupControl(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); imageComboBoxEdit1 = new DevExpress.XtraEditors.ImageComboBoxEdit(); layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); layoutControlItemUserRole = new DevExpress.XtraLayout.LayoutControlItem(); imageComboBoxEdit2 = new DevExpress.XtraEditors.ImageComboBoxEdit(); layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); simpleButtonQuXiao = new DevExpress.XtraEditors.SimpleButton(); simpleButtonQueDing = new DevExpress.XtraEditors.SimpleButton(); ((System.ComponentModel.ISupportInitialize)groupControl1).BeginInit(); groupControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)groupControl2).BeginInit(); groupControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit1.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlGroup1).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItemUserRole).BeginInit(); ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit2.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit(); SuspendLayout(); // // groupControl1 // groupControl1.Controls.Add(userFrom1); groupControl1.Location = new Point(2, 5); groupControl1.Name = "groupControl1"; groupControl1.Size = new Size(391, 144); groupControl1.TabIndex = 0; groupControl1.Text = "ç¨æ·ä¿¡æ¯"; // // userFrom1 // userFrom1.Dock = DockStyle.Fill; userFrom1.Location = new Point(2, 23); userFrom1.Name = "userFrom1"; userFrom1.Size = new Size(387, 119); userFrom1.TabIndex = 0; // // groupControl2 // groupControl2.Controls.Add(layoutControl1); groupControl2.Location = new Point(4, 155); groupControl2.Name = "groupControl2"; groupControl2.Size = new Size(389, 79); groupControl2.TabIndex = 1; groupControl2.Text = "ç¶æåæé"; // // layoutControl1 // layoutControl1.Controls.Add(imageComboBoxEdit2); layoutControl1.Controls.Add(imageComboBoxEdit1); layoutControl1.Dock = DockStyle.Fill; layoutControl1.Location = new Point(2, 23); layoutControl1.Name = "layoutControl1"; layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(709, 0, 650, 400); layoutControl1.Root = layoutControlGroup1; layoutControl1.Size = new Size(385, 54); layoutControl1.TabIndex = 0; layoutControl1.Text = "layoutControl1"; // // imageComboBoxEdit1 // imageComboBoxEdit1.EditValue = "1"; imageComboBoxEdit1.Location = new Point(84, 12); imageComboBoxEdit1.Name = "imageComboBoxEdit1"; imageComboBoxEdit1.Properties.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] { new DevExpress.XtraEditors.Controls.ImageComboBoxItem("ç¦ç¨", "0", -1), new DevExpress.XtraEditors.Controls.ImageComboBoxItem("å¯ç¨", "1", -1) }); imageComboBoxEdit1.Size = new Size(106, 20); imageComboBoxEdit1.StyleController = layoutControl1; imageComboBoxEdit1.TabIndex = 6; // // layoutControlGroup1 // layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; layoutControlGroup1.GroupBordersVisible = false; layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2, emptySpaceItem2, layoutControlItem3 }); layoutControlGroup1.Name = "Root"; layoutControlGroup1.Size = new Size(385, 54); layoutControlGroup1.TextVisible = false; // // layoutControlItem2 // layoutControlItem2.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem2.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem2.Control = imageComboBoxEdit1; layoutControlItem2.Location = new Point(0, 0); layoutControlItem2.Name = "layoutControlItem2"; layoutControlItem2.Size = new Size(182, 24); layoutControlItem2.Text = "è´¦å·ç¶æï¼"; layoutControlItem2.TextSize = new Size(60, 14); // // emptySpaceItem2 // emptySpaceItem2.AllowHotTrack = false; emptySpaceItem2.Location = new Point(0, 24); emptySpaceItem2.Name = "emptySpaceItem2"; emptySpaceItem2.Size = new Size(365, 10); emptySpaceItem2.TextSize = new Size(0, 0); // // Root // Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; Root.GroupBordersVisible = false; Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, emptySpaceItem1, layoutControlItemUserRole }); Root.Location = new Point(0, 0); Root.Name = "Root"; Root.Size = new Size(441, 58); Root.TextVisible = false; // // layoutControlItem1 // layoutControlItem1.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem1.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem1.Location = new Point(0, 0); layoutControlItem1.Name = "layoutControlItem1"; layoutControlItem1.Size = new Size(210, 24); layoutControlItem1.Text = "ç¨æ·ç¶æ:"; layoutControlItem1.TextSize = new Size(52, 14); // // emptySpaceItem1 // emptySpaceItem1.AllowHotTrack = false; emptySpaceItem1.Location = new Point(0, 24); emptySpaceItem1.Name = "emptySpaceItem1"; emptySpaceItem1.Size = new Size(421, 14); emptySpaceItem1.TextSize = new Size(0, 0); // // layoutControlItemUserRole // layoutControlItemUserRole.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItemUserRole.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItemUserRole.Location = new Point(210, 0); layoutControlItemUserRole.Name = "layoutControlItemUserRole"; layoutControlItemUserRole.Size = new Size(211, 24); layoutControlItemUserRole.Text = "è§è²ï¼"; layoutControlItemUserRole.TextSize = new Size(52, 14); // // imageComboBoxEdit2 // imageComboBoxEdit2.Location = new Point(266, 12); imageComboBoxEdit2.Name = "imageComboBoxEdit2"; imageComboBoxEdit2.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); imageComboBoxEdit2.Size = new Size(107, 20); imageComboBoxEdit2.StyleController = layoutControl1; imageComboBoxEdit2.TabIndex = 7; // // layoutControlItem3 // layoutControlItem3.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem3.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem3.Control = imageComboBoxEdit2; layoutControlItem3.Location = new Point(182, 0); layoutControlItem3.Name = "layoutControlItem3"; layoutControlItem3.Size = new Size(183, 24); layoutControlItem3.Text = "è§è²ï¼"; layoutControlItem3.TextSize = new Size(60, 14); // // simpleButtonQuXiao // simpleButtonQuXiao.Location = new Point(263, 251); simpleButtonQuXiao.Name = "simpleButtonQuXiao"; simpleButtonQuXiao.Size = new Size(100, 23); simpleButtonQuXiao.TabIndex = 4; simpleButtonQuXiao.Text = "åæ¶"; simpleButtonQuXiao.Click += simpleButtonQuXiao_Click; // // simpleButtonQueDing // simpleButtonQueDing.Location = new Point(144, 251); simpleButtonQueDing.Name = "simpleButtonQueDing"; simpleButtonQueDing.Size = new Size(96, 23); simpleButtonQueDing.TabIndex = 3; simpleButtonQueDing.Text = "ç¡®å®"; simpleButtonQueDing.Click += simpleButtonQueDing_Click; // // AddUserDlg // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(396, 291); Controls.Add(simpleButtonQuXiao); Controls.Add(simpleButtonQueDing); Controls.Add(groupControl2); Controls.Add(groupControl1); MaximizeBox = false; Name = "AddUserDlg"; StartPosition = FormStartPosition.CenterScreen; Text = "æ·»å ç¨æ·"; ((System.ComponentModel.ISupportInitialize)groupControl1).EndInit(); groupControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)groupControl2).EndInit(); groupControl2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit1.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlGroup1).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)Root).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItemUserRole).EndInit(); ((System.ComponentModel.ISupportInitialize)imageComboBoxEdit2.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit(); ResumeLayout(false); } #endregion private DevExpress.XtraEditors.GroupControl groupControl1; private _00_RoleControl.UserFrom userFrom1; private DevExpress.XtraEditors.GroupControl groupControl2; private DevExpress.XtraLayout.LayoutControlGroup Root; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItemUserRole; private DevExpress.XtraLayout.LayoutControl layoutControl1; private DevExpress.XtraEditors.ImageComboBoxEdit imageComboBoxEdit1; private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2; private DevExpress.XtraEditors.ImageComboBoxEdit imageComboBoxEdit2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private DevExpress.XtraEditors.SimpleButton simpleButtonQuXiao; private DevExpress.XtraEditors.SimpleButton simpleButtonQueDing; } } WinFrmUI/HStation.WinFrmUI.Auth.Core/02-User/AddUserDlg.cs
ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Organize.Core/04-User/AddUserDlg.cs ÐÞ¸Ä @@ -9,7 +9,7 @@ using System.Threading.Tasks; using System.Windows.Forms; namespace HStation.WinFrmUI.Organize.Core._04_User namespace HStation.WinFrmUI.Auth.Core._02_User { public partial class AddUserDlg : DevExpress.XtraEditors.XtraForm { @@ -20,7 +20,6 @@ private void simpleButtonQueDing_Click(object sender, EventArgs e) { if (e == null) { return; @@ -30,7 +29,6 @@ private void simpleButtonQuXiao_Click(object sender, EventArgs e) { if (e == null) { return; WinFrmUI/HStation.WinFrmUI.Auth.Core/02-User/AddUserDlg.resx
WinFrmUI/HStation.WinFrmUI.Auth.Core/02-User/UpdateUserDlg.Designer.cs
ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Organize.Core/04-User/UpdateUserDlg.Designer.cs ÐÞ¸Ä @@ -1,4 +1,4 @@ namespace HStation.WinFrmUI.Organize.Core._04_User namespace HStation.WinFrmUI.Auth.Core._02_User { partial class UpdateUserDlg { @@ -28,6 +28,16 @@ /// </summary> private void InitializeComponent() { groupControl2 = new DevExpress.XtraEditors.GroupControl(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); checkedComboBoxEditUserRole = new DevExpress.XtraEditors.CheckedComboBoxEdit(); imageComboBoxEditUserStatus = new DevExpress.XtraEditors.ImageComboBoxEdit(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); layoutControlItemUserRole = new DevExpress.XtraLayout.LayoutControlItem(); checkEditChongZHiPass = new DevExpress.XtraEditors.CheckEdit(); checkEditXiuGaiPass = new DevExpress.XtraEditors.CheckEdit(); groupControl1 = new DevExpress.XtraEditors.GroupControl(); layoutControl2 = new DevExpress.XtraLayout.LayoutControl(); textEditQueRenPass = new DevExpress.XtraEditors.TextEdit(); @@ -39,18 +49,20 @@ emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem5 = new DevExpress.XtraLayout.EmptySpaceItem(); groupControl2 = new DevExpress.XtraEditors.GroupControl(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); checkedComboBoxEditUserRole = new DevExpress.XtraEditors.CheckedComboBoxEdit(); imageComboBoxEditUserStatus = new DevExpress.XtraEditors.ImageComboBoxEdit(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); layoutControlItemUserRole = new DevExpress.XtraLayout.LayoutControlItem(); checkEditXiuGaiPass = new DevExpress.XtraEditors.CheckEdit(); checkEditChongZHiPass = new DevExpress.XtraEditors.CheckEdit(); simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); ((System.ComponentModel.ISupportInitialize)groupControl2).BeginInit(); groupControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)checkedComboBoxEditUserRole.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)imageComboBoxEditUserStatus.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItemUserRole).BeginInit(); ((System.ComponentModel.ISupportInitialize)checkEditChongZHiPass.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)checkEditXiuGaiPass.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)groupControl1).BeginInit(); groupControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)layoutControl2).BeginInit(); @@ -64,128 +76,15 @@ ((System.ComponentModel.ISupportInitialize)emptySpaceItem3).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem4).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem5).BeginInit(); ((System.ComponentModel.ISupportInitialize)groupControl2).BeginInit(); groupControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)checkedComboBoxEditUserRole.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)imageComboBoxEditUserStatus.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItemUserRole).BeginInit(); ((System.ComponentModel.ISupportInitialize)checkEditXiuGaiPass.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)checkEditChongZHiPass.Properties).BeginInit(); SuspendLayout(); // // groupControl1 // groupControl1.Controls.Add(layoutControl2); groupControl1.Location = new Point(12, 119); groupControl1.Name = "groupControl1"; groupControl1.Size = new Size(436, 113); groupControl1.TabIndex = 0; groupControl1.Text = "ä¿®æ¹å¯ç "; // // layoutControl2 // layoutControl2.Controls.Add(textEditQueRenPass); layoutControl2.Controls.Add(textEditNewPass); layoutControl2.Dock = DockStyle.Fill; layoutControl2.Location = new Point(2, 23); layoutControl2.Name = "layoutControl2"; layoutControl2.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(764, 52, 650, 400); layoutControl2.Root = layoutControlGroup1; layoutControl2.Size = new Size(432, 88); layoutControl2.TabIndex = 0; layoutControl2.Text = "layoutControl2"; // // textEditQueRenPass // textEditQueRenPass.Enabled = false; textEditQueRenPass.Location = new Point(161, 46); textEditQueRenPass.Name = "textEditQueRenPass"; textEditQueRenPass.Size = new Size(175, 20); textEditQueRenPass.StyleController = layoutControl2; textEditQueRenPass.TabIndex = 5; // // textEditNewPass // textEditNewPass.Enabled = false; textEditNewPass.Location = new Point(161, 12); textEditNewPass.Name = "textEditNewPass"; textEditNewPass.Size = new Size(175, 20); textEditNewPass.StyleController = layoutControl2; textEditNewPass.TabIndex = 4; // // layoutControlGroup1 // layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; layoutControlGroup1.GroupBordersVisible = false; layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2, emptySpaceItem2, layoutControlItem3, emptySpaceItem3, emptySpaceItem4, emptySpaceItem5 }); layoutControlGroup1.Name = "Root"; layoutControlGroup1.Size = new Size(432, 88); layoutControlGroup1.TextVisible = false; // // layoutControlItem2 // layoutControlItem2.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem2.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem2.Control = textEditNewPass; layoutControlItem2.Location = new Point(77, 0); layoutControlItem2.Name = "layoutControlItem2"; layoutControlItem2.Size = new Size(251, 24); layoutControlItem2.Text = "æ°å¯ç ï¼"; layoutControlItem2.TextSize = new Size(60, 14); // // emptySpaceItem2 // emptySpaceItem2.AllowHotTrack = false; emptySpaceItem2.Location = new Point(77, 58); emptySpaceItem2.Name = "emptySpaceItem2"; emptySpaceItem2.Size = new Size(251, 10); emptySpaceItem2.TextSize = new Size(0, 0); // // layoutControlItem3 // layoutControlItem3.Control = textEditQueRenPass; layoutControlItem3.Location = new Point(77, 34); layoutControlItem3.Name = "layoutControlItem3"; layoutControlItem3.Size = new Size(251, 24); layoutControlItem3.Text = "确认å¯ç ï¼"; layoutControlItem3.TextSize = new Size(60, 14); // // emptySpaceItem3 // emptySpaceItem3.AllowHotTrack = false; emptySpaceItem3.Location = new Point(77, 24); emptySpaceItem3.Name = "emptySpaceItem3"; emptySpaceItem3.Size = new Size(251, 10); emptySpaceItem3.TextSize = new Size(0, 0); // // emptySpaceItem4 // emptySpaceItem4.AllowHotTrack = false; emptySpaceItem4.Location = new Point(0, 0); emptySpaceItem4.Name = "emptySpaceItem4"; emptySpaceItem4.Size = new Size(77, 68); emptySpaceItem4.TextSize = new Size(0, 0); // // emptySpaceItem5 // emptySpaceItem5.AllowHotTrack = false; emptySpaceItem5.Location = new Point(328, 0); emptySpaceItem5.Name = "emptySpaceItem5"; emptySpaceItem5.Size = new Size(84, 68); emptySpaceItem5.TextSize = new Size(0, 0); // // groupControl2 // groupControl2.Controls.Add(layoutControl1); groupControl2.Location = new Point(12, 3); groupControl2.Location = new Point(12, 12); groupControl2.Name = "groupControl2"; groupControl2.Size = new Size(436, 80); groupControl2.TabIndex = 1; groupControl2.TabIndex = 2; groupControl2.Text = "ç¨æ·ç¶æåæé"; // // layoutControl1 @@ -259,56 +158,167 @@ layoutControlItemUserRole.Text = "è§è²ï¼"; layoutControlItemUserRole.TextSize = new Size(52, 14); // // checkEditXiuGaiPass // checkEditXiuGaiPass.Location = new Point(12, 93); checkEditXiuGaiPass.Name = "checkEditXiuGaiPass"; checkEditXiuGaiPass.Properties.Caption = "ä¿®æ¹å¯ç "; checkEditXiuGaiPass.Size = new Size(75, 20); checkEditXiuGaiPass.TabIndex = 2; checkEditXiuGaiPass.CheckedChanged += checkEditXiuGaiPass_CheckedChanged; // // checkEditChongZHiPass // checkEditChongZHiPass.Location = new Point(116, 93); checkEditChongZHiPass.Location = new Point(116, 99); checkEditChongZHiPass.Name = "checkEditChongZHiPass"; checkEditChongZHiPass.Properties.Caption = "éç½®å¯ç "; checkEditChongZHiPass.Size = new Size(75, 20); checkEditChongZHiPass.TabIndex = 3; checkEditChongZHiPass.TabIndex = 6; // // simpleButton1 // checkEditXiuGaiPass // simpleButton1.Location = new Point(251, 251); simpleButton1.Name = "simpleButton1"; simpleButton1.Size = new Size(75, 23); simpleButton1.TabIndex = 4; simpleButton1.Text = "确认"; simpleButton1.Click += simpleButton1_Click; checkEditXiuGaiPass.Location = new Point(12, 99); checkEditXiuGaiPass.Name = "checkEditXiuGaiPass"; checkEditXiuGaiPass.Properties.Caption = "ä¿®æ¹å¯ç "; checkEditXiuGaiPass.Size = new Size(75, 20); checkEditXiuGaiPass.TabIndex = 5; checkEditXiuGaiPass.CheckedChanged += checkEditXiuGaiPass_CheckedChanged; // // groupControl1 // groupControl1.Controls.Add(layoutControl2); groupControl1.Location = new Point(12, 125); groupControl1.Name = "groupControl1"; groupControl1.Size = new Size(436, 113); groupControl1.TabIndex = 4; groupControl1.Text = "ä¿®æ¹å¯ç "; // // layoutControl2 // layoutControl2.Controls.Add(textEditQueRenPass); layoutControl2.Controls.Add(textEditNewPass); layoutControl2.Dock = DockStyle.Fill; layoutControl2.Location = new Point(2, 23); layoutControl2.Name = "layoutControl2"; layoutControl2.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(764, 52, 650, 400); layoutControl2.Root = layoutControlGroup1; layoutControl2.Size = new Size(432, 88); layoutControl2.TabIndex = 0; layoutControl2.Text = "layoutControl2"; // // textEditQueRenPass // textEditQueRenPass.Enabled = false; textEditQueRenPass.Location = new Point(168, 46); textEditQueRenPass.Name = "textEditQueRenPass"; textEditQueRenPass.Size = new Size(168, 20); textEditQueRenPass.StyleController = layoutControl2; textEditQueRenPass.TabIndex = 5; // // textEditNewPass // textEditNewPass.Enabled = false; textEditNewPass.Location = new Point(168, 12); textEditNewPass.Name = "textEditNewPass"; textEditNewPass.Size = new Size(168, 20); textEditNewPass.StyleController = layoutControl2; textEditNewPass.TabIndex = 4; // // layoutControlGroup1 // layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; layoutControlGroup1.GroupBordersVisible = false; layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2, emptySpaceItem2, layoutControlItem3, emptySpaceItem3, emptySpaceItem4, emptySpaceItem5 }); layoutControlGroup1.Name = "Root"; layoutControlGroup1.Size = new Size(432, 88); layoutControlGroup1.TextVisible = false; // // layoutControlItem2 // layoutControlItem2.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem2.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem2.Control = textEditNewPass; layoutControlItem2.Location = new Point(77, 0); layoutControlItem2.Name = "layoutControlItem2"; layoutControlItem2.Size = new Size(251, 24); layoutControlItem2.Text = "*æ°å¯ç ï¼"; layoutControlItem2.TextSize = new Size(67, 14); // // emptySpaceItem2 // emptySpaceItem2.AllowHotTrack = false; emptySpaceItem2.Location = new Point(77, 58); emptySpaceItem2.Name = "emptySpaceItem2"; emptySpaceItem2.Size = new Size(251, 10); emptySpaceItem2.TextSize = new Size(0, 0); // // layoutControlItem3 // layoutControlItem3.Control = textEditQueRenPass; layoutControlItem3.Location = new Point(77, 34); layoutControlItem3.Name = "layoutControlItem3"; layoutControlItem3.Size = new Size(251, 24); layoutControlItem3.Text = "*确认å¯ç ï¼"; layoutControlItem3.TextSize = new Size(67, 14); // // emptySpaceItem3 // emptySpaceItem3.AllowHotTrack = false; emptySpaceItem3.Location = new Point(77, 24); emptySpaceItem3.Name = "emptySpaceItem3"; emptySpaceItem3.Size = new Size(251, 10); emptySpaceItem3.TextSize = new Size(0, 0); // // emptySpaceItem4 // emptySpaceItem4.AllowHotTrack = false; emptySpaceItem4.Location = new Point(0, 0); emptySpaceItem4.Name = "emptySpaceItem4"; emptySpaceItem4.Size = new Size(77, 68); emptySpaceItem4.TextSize = new Size(0, 0); // // emptySpaceItem5 // emptySpaceItem5.AllowHotTrack = false; emptySpaceItem5.Location = new Point(328, 0); emptySpaceItem5.Name = "emptySpaceItem5"; emptySpaceItem5.Size = new Size(84, 68); emptySpaceItem5.TextSize = new Size(0, 0); // // simpleButton2 // simpleButton2.Location = new Point(359, 251); simpleButton2.Location = new Point(333, 257); simpleButton2.Name = "simpleButton2"; simpleButton2.Size = new Size(75, 23); simpleButton2.TabIndex = 5; simpleButton2.TabIndex = 8; simpleButton2.Text = "åæ¶"; simpleButton2.Click += simpleButton2_Click; // // simpleButton1 // simpleButton1.Location = new Point(225, 257); simpleButton1.Name = "simpleButton1"; simpleButton1.Size = new Size(75, 23); simpleButton1.TabIndex = 7; simpleButton1.Text = "确认"; simpleButton1.Click += simpleButton1_Click; // // UpdateUserDlg // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(460, 293); ClientSize = new Size(456, 297); Controls.Add(simpleButton2); Controls.Add(simpleButton1); Controls.Add(checkEditChongZHiPass); Controls.Add(checkEditXiuGaiPass); Controls.Add(groupControl2); Controls.Add(groupControl1); MaximizeBox = false; Controls.Add(groupControl2); Name = "UpdateUserDlg"; StartPosition = FormStartPosition.CenterScreen; Text = "ç¼è¾ç¨æ·"; Text = "ä¿®æ¹ç¨æ·"; ((System.ComponentModel.ISupportInitialize)groupControl2).EndInit(); groupControl2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)checkedComboBoxEditUserRole.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)imageComboBoxEditUserStatus.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)Root).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItemUserRole).EndInit(); ((System.ComponentModel.ISupportInitialize)checkEditChongZHiPass.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)checkEditXiuGaiPass.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)groupControl1).EndInit(); groupControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)layoutControl2).EndInit(); @@ -322,24 +332,11 @@ ((System.ComponentModel.ISupportInitialize)emptySpaceItem3).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem4).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem5).EndInit(); ((System.ComponentModel.ISupportInitialize)groupControl2).EndInit(); groupControl2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)checkedComboBoxEditUserRole.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)imageComboBoxEditUserStatus.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)Root).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItemUserRole).EndInit(); ((System.ComponentModel.ISupportInitialize)checkEditXiuGaiPass.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)checkEditChongZHiPass.Properties).EndInit(); ResumeLayout(false); } #endregion private DevExpress.XtraEditors.GroupControl groupControl1; private DevExpress.XtraEditors.GroupControl groupControl2; private DevExpress.XtraLayout.LayoutControl layoutControl1; private DevExpress.XtraEditors.CheckedComboBoxEdit checkedComboBoxEditUserRole; @@ -348,8 +345,9 @@ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItemUserRole; private DevExpress.XtraEditors.CheckEdit checkEditXiuGaiPass; private DevExpress.XtraEditors.CheckEdit checkEditChongZHiPass; private DevExpress.XtraEditors.CheckEdit checkEditXiuGaiPass; private DevExpress.XtraEditors.GroupControl groupControl1; private DevExpress.XtraLayout.LayoutControl layoutControl2; private DevExpress.XtraEditors.TextEdit textEditQueRenPass; private DevExpress.XtraEditors.TextEdit textEditNewPass; @@ -360,7 +358,7 @@ private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem3; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem5; private DevExpress.XtraEditors.SimpleButton simpleButton1; private DevExpress.XtraEditors.SimpleButton simpleButton2; private DevExpress.XtraEditors.SimpleButton simpleButton1; } } WinFrmUI/HStation.WinFrmUI.Auth.Core/02-User/UpdateUserDlg.cs
ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Organize.Core/04-User/UpdateUserDlg.cs ÐÞ¸Ä @@ -9,7 +9,7 @@ using System.Threading.Tasks; using System.Windows.Forms; namespace HStation.WinFrmUI.Organize.Core._04_User namespace HStation.WinFrmUI.Auth.Core._02_User { public partial class UpdateUserDlg : DevExpress.XtraEditors.XtraForm { @@ -34,7 +34,6 @@ private void simpleButton1_Click(object sender, EventArgs e) { if (e == null) { return; @@ -44,7 +43,6 @@ private void simpleButton2_Click(object sender, EventArgs e) { if (e == null) { return; WinFrmUI/HStation.WinFrmUI.Auth.Core/02-User/UpdateUserDlg.resx
WinFrmUI/HStation.WinFrmUI.Auth.Core/02-User/UserMgrMainPanel.Designer.cs
ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Organize.Core/04-User/UserMgrMainPanel.Designer.cs ÐÞ¸Ä @@ -1,4 +1,4 @@ namespace HStation.WinFrmUI.Organize.Core._04_Menu namespace HStation.WinFrmUI.Auth.Core._02_User { partial class UserMgrMainPanel { @@ -40,9 +40,15 @@ gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); gridSplitContainer1 = new DevExpress.XtraGrid.GridSplitContainer(); ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit(); ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit(); ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit(); ((System.ComponentModel.ISupportInitialize)gridSplitContainer1).BeginInit(); ((System.ComponentModel.ISupportInitialize)gridSplitContainer1.Panel1).BeginInit(); gridSplitContainer1.Panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)gridSplitContainer1.Panel2).BeginInit(); gridSplitContainer1.SuspendLayout(); SuspendLayout(); // // ribbonControl1 @@ -59,7 +65,7 @@ ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; ribbonControl1.ShowPageHeadersInFormCaption = DevExpress.Utils.DefaultBoolean.True; ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; ribbonControl1.Size = new Size(850, 104); ribbonControl1.Size = new Size(728, 104); ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; // // UserEdit @@ -103,11 +109,11 @@ // gridControl1 // gridControl1.Dock = DockStyle.Fill; gridControl1.Location = new Point(0, 104); gridControl1.Location = new Point(0, 0); gridControl1.MainView = gridView1; gridControl1.MenuManager = ribbonControl1; gridControl1.Name = "gridControl1"; gridControl1.Size = new Size(850, 382); gridControl1.Size = new Size(728, 327); gridControl1.TabIndex = 2; gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); // @@ -136,17 +142,35 @@ gridColumn3.Visible = true; gridColumn3.VisibleIndex = 2; // // gridSplitContainer1 // gridSplitContainer1.Dock = DockStyle.Fill; gridSplitContainer1.Grid = gridControl1; gridSplitContainer1.Location = new Point(0, 104); gridSplitContainer1.Name = "gridSplitContainer1"; // // gridSplitContainer1.Panel1 // gridSplitContainer1.Panel1.Controls.Add(gridControl1); gridSplitContainer1.Size = new Size(728, 327); gridSplitContainer1.TabIndex = 2; // // UserMgrMainPanel // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; Controls.Add(gridControl1); Controls.Add(gridSplitContainer1); Controls.Add(ribbonControl1); Name = "UserMgrMainPanel"; Size = new Size(850, 486); Size = new Size(728, 431); ((System.ComponentModel.ISupportInitialize)ribbonControl1).EndInit(); ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); ((System.ComponentModel.ISupportInitialize)gridView1).EndInit(); ((System.ComponentModel.ISupportInitialize)gridSplitContainer1.Panel1).EndInit(); gridSplitContainer1.Panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)gridSplitContainer1.Panel2).EndInit(); ((System.ComponentModel.ISupportInitialize)gridSplitContainer1).EndInit(); gridSplitContainer1.ResumeLayout(false); ResumeLayout(false); PerformLayout(); } @@ -164,5 +188,6 @@ private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; private DevExpress.XtraGrid.Columns.GridColumn gridColumn2; private DevExpress.XtraGrid.Columns.GridColumn gridColumn3; private DevExpress.XtraGrid.GridSplitContainer gridSplitContainer1; } } WinFrmUI/HStation.WinFrmUI.Auth.Core/02-User/UserMgrMainPanel.cs
ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Organize.Core/04-User/UserMgrMainPanel.cs ÐÞ¸Ä @@ -1,5 +1,4 @@ using DevExpress.XtraEditors; using HStation.WinFrmUI.Organize.Core._04_User; using System; using System.Collections.Generic; using System.ComponentModel; @@ -11,7 +10,7 @@ using System.Windows.Forms; using Yw.WinFrmUI; namespace HStation.WinFrmUI.Organize.Core._04_Menu namespace HStation.WinFrmUI.Auth.Core._02_User { public partial class UserMgrMainPanel : DocumentPage { @@ -19,23 +18,22 @@ { InitializeComponent(); } //æ·»å ç¨æ· //æ·»å private void UserAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var dlg = new AddUserDlg(); dlg.ShowDialog(); } //ç¼è¾ç¨æ· //ä¿®æ¹ç¨æ· private void UserEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var dlg= new UpdateUserDlg(); var dlg = new UpdateUserDlg(); dlg.ShowDialog(); } //å é¤ç¨æ· //å é¤ private void UserDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { } } } WinFrmUI/HStation.WinFrmUI.Auth.Core/02-User/UserMgrMainPanel.resx
WinFrmUI/HStation.WinFrmUI.Auth.Core/04-RoleViewModel/RoleViewModel.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,14 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HStation.WinFrmUI.Auth.Core._04_RoleViewModel { public class RoleViewModel { public RoleViewModel() { } } } WinFrmUI/HStation.WinFrmUI.Auth.Core/04-RoleViewModel/UserViewModel.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,12 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HStation.WinFrmUI.Auth.Core._04_RoleViewModel { public class UserViewModel { } } WinFrmUI/HStation.WinFrmUI.Auth.Core/HStation.WinFrmUI.Auth.Core.csproj.user
@@ -2,6 +2,30 @@ <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup /> <ItemGroup> <Compile Update="00-RoleControl\RoleFrom.cs"> <SubType>UserControl</SubType> </Compile> <Compile Update="00-RoleControl\UserFrom.cs"> <SubType>UserControl</SubType> </Compile> <Compile Update="01-Role\AddRoleDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="01-Role\RoleMainMgrPanel.cs"> <SubType>UserControl</SubType> </Compile> <Compile Update="01-Role\UpdateRoleDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="02-User\AddUserDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="02-User\UpdateUserDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="02-User\UserMgrMainPanel.cs"> <SubType>UserControl</SubType> </Compile> <Compile Update="RoleMainPanel.cs"> <SubType>UserControl</SubType> </Compile> WinFrmUI/HStation.WinFrmUI.Organize.Core/00-UserControl/EmloyeeFrom.cs
@@ -1,4 +1,6 @@ namespace HStation.WinFrmUI.Organize.Core._00_UserControl using System.Text.RegularExpressions; namespace HStation.WinFrmUI.Organize.Core._00_UserControl { public partial class emloyeeFrom : UserControl { @@ -9,12 +11,13 @@ } public void ErpCodeNoUpdate() { textEditBianHao.Enabled = false; } public bool IsValid() public bool IsValid() { return dxValidationProviderBianHao.Validate(); } @@ -91,21 +94,23 @@ } /// <summary> /// 设置çµåç¾åå¾çä½ç½®å¹¶å±ç¤º /// 设置ç¾å /// </summary> /// <param name="filePath"></param> public void SetDrawSignal(string filePath) { QianMingpictureEdit.Image = Image.FromFile(filePath); //TouXiangpictureEdit.Image = Image.FromFile(filePath); textEditQianMing.Text = filePath; } /// <summary> /// è·åçµåç¾åå¾ççä½ç½® /// è·åç¾å /// </summary> /// <returns></returns> public string GetDrawSignal() { return QianMingopenFileDialog.FileName; //return QianMingopenFileDialog.FileName; return textEditQianMing.Text; } /// <summary> @@ -114,6 +119,7 @@ /// <param name="text"></param> public void SetEmail(string text) { YouXiangtextEdit.Text = text; } @@ -122,7 +128,8 @@ /// </summary> /// <returns></returns> public string GetEmail() { { return YouXiangtextEdit.Text; } /// <summary> @@ -175,11 +182,13 @@ { return EnglishNametextEdit.Text; } private void QianMingpictureEdit_EditValueChanged(object sender, EventArgs e) private void TouXiangpictureEdit_Click(object sender, EventArgs e) { if (QianMingopenFileDialog.ShowDialog() != DialogResult.OK) { @@ -190,7 +199,7 @@ { return; } QianMingpictureEdit.Image = Image.FromFile(QianMingfilePath); TouXiangpictureEdit.Image = Image.FromFile(QianMingfilePath); } } } WinFrmUI/HStation.WinFrmUI.Organize.Core/00-UserControl/RoleFrom.Designer.cs
ÎļþÒÑɾ³ý WinFrmUI/HStation.WinFrmUI.Organize.Core/00-UserControl/RoleFrom.resx
ÎļþÒÑɾ³ý WinFrmUI/HStation.WinFrmUI.Organize.Core/00-UserControl/emloyeeFrom.Designer.cs
@@ -36,6 +36,7 @@ DevExpress.XtraEditors.DXErrorProvider.ConditionValidationRule conditionValidationRule5 = new DevExpress.XtraEditors.DXErrorProvider.ConditionValidationRule(); DevExpress.XtraEditors.DXErrorProvider.ConditionValidationRule conditionValidationRule6 = new DevExpress.XtraEditors.DXErrorProvider.ConditionValidationRule(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); textEditQianMing = new DevExpress.XtraEditors.TextEdit(); EnglishNametextEdit = new DevExpress.XtraEditors.TextEdit(); ChongZhiimageComboBoxEdit = new DevExpress.XtraEditors.ImageComboBoxEdit(); ZhuangTaiimageComboBoxEdit = new DevExpress.XtraEditors.ImageComboBoxEdit(); @@ -45,7 +46,7 @@ ZhuangTaicheckedComboBoxEdit = new DevExpress.XtraEditors.CheckedComboBoxEdit(); ChongZhicomboBoxEdit = new DevExpress.XtraEditors.ComboBoxEdit(); textEdit1 = new DevExpress.XtraEditors.TextEdit(); QianMingpictureEdit = new DevExpress.XtraEditors.PictureEdit(); TouXiangpictureEdit = new DevExpress.XtraEditors.PictureEdit(); ZhiWutextEdit = new DevExpress.XtraEditors.TextEdit(); YouXiangtextEdit = new DevExpress.XtraEditors.TextEdit(); DianHuatextEdit = new DevExpress.XtraEditors.TextEdit(); @@ -59,19 +60,25 @@ layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem5 = new DevExpress.XtraLayout.EmptySpaceItem(); layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); QianMingopenFileDialog = new OpenFileDialog(); dxValidationProviderBianHao = new DevExpress.XtraEditors.DXErrorProvider.DXValidationProvider(components); ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)textEditQianMing.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)EnglishNametextEdit.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)ChongZhiimageComboBoxEdit.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)ZhuangTaiimageComboBoxEdit.Properties).BeginInit(); @@ -81,7 +88,7 @@ ((System.ComponentModel.ISupportInitialize)ZhuangTaicheckedComboBoxEdit.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)ChongZhicomboBoxEdit.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)textEdit1.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)QianMingpictureEdit.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)TouXiangpictureEdit.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)ZhiWutextEdit.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)YouXiangtextEdit.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize)DianHuatextEdit.Properties).BeginInit(); @@ -95,20 +102,26 @@ ((System.ComponentModel.ISupportInitialize)layoutControlItem10).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem16).BeginInit(); ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem6).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem5).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem14).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem17).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem7).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem6).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem14).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem17).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem4).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem5).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem15).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)dxValidationProviderBianHao).BeginInit(); SuspendLayout(); // // layoutControl1 // layoutControl1.Controls.Add(textEditQianMing); layoutControl1.Controls.Add(EnglishNametextEdit); layoutControl1.Controls.Add(ChongZhiimageComboBoxEdit); layoutControl1.Controls.Add(ZhuangTaiimageComboBoxEdit); @@ -118,7 +131,7 @@ layoutControl1.Controls.Add(ZhuangTaicheckedComboBoxEdit); layoutControl1.Controls.Add(ChongZhicomboBoxEdit); layoutControl1.Controls.Add(textEdit1); layoutControl1.Controls.Add(QianMingpictureEdit); layoutControl1.Controls.Add(TouXiangpictureEdit); layoutControl1.Controls.Add(ZhiWutextEdit); layoutControl1.Controls.Add(YouXiangtextEdit); layoutControl1.Controls.Add(DianHuatextEdit); @@ -128,45 +141,57 @@ layoutControl1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem8, layoutControlItem11, layoutControlItem12, layoutControlItem13, layoutControlItem9, layoutControlItem10, layoutControlItem16 }); layoutControl1.Location = new Point(0, 0); layoutControl1.Name = "layoutControl1"; layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(624, 420, 650, 400); layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(452, 344, 650, 400); layoutControl1.Root = Root; layoutControl1.Size = new Size(598, 193); layoutControl1.Size = new Size(598, 216); layoutControl1.TabIndex = 1; layoutControl1.Text = "layoutControl1"; // // textEditQianMing // textEditQianMing.Location = new Point(392, 60); textEditQianMing.Name = "textEditQianMing"; textEditQianMing.Size = new Size(184, 20); textEditQianMing.StyleController = layoutControl1; textEditQianMing.TabIndex = 9; conditionValidationRule1.ConditionOperator = DevExpress.XtraEditors.DXErrorProvider.ConditionOperator.IsNotBlank; conditionValidationRule1.ErrorText = "This value is not valid"; conditionValidationRule1.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information; dxValidationProviderBianHao.SetValidationRule(textEditQianMing, conditionValidationRule1); // // EnglishNametextEdit // EnglishNametextEdit.Location = new Point(393, 36); EnglishNametextEdit.Location = new Point(392, 36); EnglishNametextEdit.Name = "EnglishNametextEdit"; EnglishNametextEdit.Size = new Size(193, 20); EnglishNametextEdit.Size = new Size(184, 20); EnglishNametextEdit.StyleController = layoutControl1; EnglishNametextEdit.TabIndex = 9; EnglishNametextEdit.TabIndex = 3; // // ChongZhiimageComboBoxEdit // ChongZhiimageComboBoxEdit.EditValue = "0"; ChongZhiimageComboBoxEdit.Location = new Point(393, 60); ChongZhiimageComboBoxEdit.Location = new Point(392, 132); ChongZhiimageComboBoxEdit.Name = "ChongZhiimageComboBoxEdit"; ChongZhiimageComboBoxEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); ChongZhiimageComboBoxEdit.Properties.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] { new DevExpress.XtraEditors.Controls.ImageComboBoxItem("å¦", "0", -1), new DevExpress.XtraEditors.Controls.ImageComboBoxItem("æ¯", "1", -1) }); ChongZhiimageComboBoxEdit.Size = new Size(193, 20); ChongZhiimageComboBoxEdit.Size = new Size(50, 20); ChongZhiimageComboBoxEdit.StyleController = layoutControl1; ChongZhiimageComboBoxEdit.TabIndex = 5; ChongZhiimageComboBoxEdit.TabIndex = 8; // // ZhuangTaiimageComboBoxEdit // ZhuangTaiimageComboBoxEdit.EditValue = "1"; ZhuangTaiimageComboBoxEdit.Location = new Point(393, 84); ZhuangTaiimageComboBoxEdit.Location = new Point(104, 132); ZhuangTaiimageComboBoxEdit.Name = "ZhuangTaiimageComboBoxEdit"; ZhuangTaiimageComboBoxEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); ZhuangTaiimageComboBoxEdit.Properties.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] { new DevExpress.XtraEditors.Controls.ImageComboBoxItem("离è", "0", -1), new DevExpress.XtraEditors.Controls.ImageComboBoxItem("å¨è", "1", -1) }); ZhuangTaiimageComboBoxEdit.Size = new Size(193, 20); ZhuangTaiimageComboBoxEdit.Size = new Size(50, 20); ZhuangTaiimageComboBoxEdit.StyleController = layoutControl1; ZhuangTaiimageComboBoxEdit.TabIndex = 7; conditionValidationRule1.ConditionOperator = DevExpress.XtraEditors.DXErrorProvider.ConditionOperator.IsNotBlank; conditionValidationRule1.ErrorText = "This value is not valid"; conditionValidationRule1.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information; dxValidationProviderBianHao.SetValidationRule(ZhuangTaiimageComboBoxEdit, conditionValidationRule1); conditionValidationRule2.ConditionOperator = DevExpress.XtraEditors.DXErrorProvider.ConditionOperator.IsNotBlank; conditionValidationRule2.ErrorText = "This value is not valid"; conditionValidationRule2.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information; dxValidationProviderBianHao.SetValidationRule(ZhuangTaiimageComboBoxEdit, conditionValidationRule2); // // comboBoxEdit1 // @@ -223,27 +248,24 @@ textEdit1.StyleController = layoutControl1; textEdit1.TabIndex = 1; // // QianMingpictureEdit // TouXiangpictureEdit // QianMingpictureEdit.Location = new Point(104, 108); QianMingpictureEdit.Name = "QianMingpictureEdit"; QianMingpictureEdit.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto; QianMingpictureEdit.Size = new Size(482, 73); QianMingpictureEdit.StyleController = layoutControl1; QianMingpictureEdit.TabIndex = 1; conditionValidationRule2.ConditionOperator = DevExpress.XtraEditors.DXErrorProvider.ConditionOperator.IsNotBlank; conditionValidationRule2.ErrorText = "This value is not valid"; conditionValidationRule2.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information; dxValidationProviderBianHao.SetValidationRule(QianMingpictureEdit, conditionValidationRule2); QianMingpictureEdit.DoubleClick += QianMingpictureEdit_EditValueChanged; TouXiangpictureEdit.Location = new Point(104, 156); TouXiangpictureEdit.Name = "TouXiangpictureEdit"; TouXiangpictureEdit.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; TouXiangpictureEdit.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto; TouXiangpictureEdit.Size = new Size(472, 48); TouXiangpictureEdit.StyleController = layoutControl1; TouXiangpictureEdit.TabIndex = 1; TouXiangpictureEdit.Click += TouXiangpictureEdit_Click; // // ZhiWutextEdit // ZhiWutextEdit.Location = new Point(104, 36); ZhiWutextEdit.Location = new Point(104, 84); ZhiWutextEdit.Name = "ZhiWutextEdit"; ZhiWutextEdit.Size = new Size(193, 20); ZhiWutextEdit.Size = new Size(472, 20); ZhiWutextEdit.StyleController = layoutControl1; ZhiWutextEdit.TabIndex = 2; ZhiWutextEdit.TabIndex = 5; conditionValidationRule3.ConditionOperator = DevExpress.XtraEditors.DXErrorProvider.ConditionOperator.IsNotBlank; conditionValidationRule3.ErrorText = "This value is not valid"; conditionValidationRule3.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information; @@ -251,9 +273,9 @@ // // YouXiangtextEdit // YouXiangtextEdit.Location = new Point(104, 84); YouXiangtextEdit.Location = new Point(104, 108); YouXiangtextEdit.Name = "YouXiangtextEdit"; YouXiangtextEdit.Size = new Size(193, 20); YouXiangtextEdit.Size = new Size(472, 20); YouXiangtextEdit.StyleController = layoutControl1; YouXiangtextEdit.TabIndex = 6; // @@ -261,9 +283,9 @@ // DianHuatextEdit.Location = new Point(104, 60); DianHuatextEdit.Name = "DianHuatextEdit"; DianHuatextEdit.Size = new Size(193, 20); DianHuatextEdit.Size = new Size(192, 20); DianHuatextEdit.StyleController = layoutControl1; DianHuatextEdit.TabIndex = 3; DianHuatextEdit.TabIndex = 4; conditionValidationRule4.ConditionOperator = DevExpress.XtraEditors.DXErrorProvider.ConditionOperator.IsNotBlank; conditionValidationRule4.ErrorText = "This value is not valid"; conditionValidationRule4.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information; @@ -275,9 +297,9 @@ textEditBianHao.Name = "textEditBianHao"; textEditBianHao.Properties.Appearance.ForeColor = Color.Black; textEditBianHao.Properties.Appearance.Options.UseForeColor = true; textEditBianHao.Size = new Size(193, 20); textEditBianHao.Size = new Size(248, 20); textEditBianHao.StyleController = layoutControl1; textEditBianHao.TabIndex = 8; textEditBianHao.TabIndex = 0; conditionValidationRule5.ConditionOperator = DevExpress.XtraEditors.DXErrorProvider.ConditionOperator.IsNotBlank; conditionValidationRule5.ErrorText = "This value is not valid"; conditionValidationRule5.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information; @@ -287,11 +309,11 @@ // NametextEdit.AllowHtmlTextInToolTip = DevExpress.Utils.DefaultBoolean.True; NametextEdit.EditValue = ""; NametextEdit.Location = new Point(393, 12); NametextEdit.Location = new Point(104, 36); NametextEdit.Name = "NametextEdit"; NametextEdit.Size = new Size(193, 20); NametextEdit.Size = new Size(192, 20); NametextEdit.StyleController = layoutControl1; NametextEdit.TabIndex = 0; NametextEdit.TabIndex = 2; conditionValidationRule6.ConditionOperator = DevExpress.XtraEditors.DXErrorProvider.ConditionOperator.IsNotBlank; conditionValidationRule6.ErrorText = "This value is not valid"; conditionValidationRule6.ErrorType = DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information; @@ -360,21 +382,10 @@ // Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; Root.GroupBordersVisible = false; Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem6, layoutControlItem4, layoutControlItem5, layoutControlItem14, layoutControlItem17, layoutControlItem7, layoutControlItem1, layoutControlItem2, layoutControlItem3 }); Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem4, layoutControlItem5, layoutControlItem7, layoutControlItem1, layoutControlItem6, layoutControlItem14, layoutControlItem17, layoutControlItem2, layoutControlItem3, emptySpaceItem4, emptySpaceItem5, layoutControlItem15, emptySpaceItem1, emptySpaceItem2 }); Root.Name = "Root"; Root.Size = new Size(598, 193); Root.Size = new Size(598, 216); Root.TextVisible = false; // // layoutControlItem6 // layoutControlItem6.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem6.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem6.Control = ZhiWutextEdit; layoutControlItem6.Location = new Point(0, 24); layoutControlItem6.Name = "layoutControlItem6"; layoutControlItem6.Size = new Size(289, 24); layoutControlItem6.Text = "*è å¡:"; layoutControlItem6.TextSize = new Size(80, 14); // // layoutControlItem4 // @@ -383,7 +394,7 @@ layoutControlItem4.Control = DianHuatextEdit; layoutControlItem4.Location = new Point(0, 48); layoutControlItem4.Name = "layoutControlItem4"; layoutControlItem4.Size = new Size(289, 24); layoutControlItem4.Size = new Size(288, 24); layoutControlItem4.Text = "*çµ è¯:"; layoutControlItem4.TextSize = new Size(80, 14); // @@ -392,44 +403,22 @@ layoutControlItem5.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem5.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem5.Control = YouXiangtextEdit; layoutControlItem5.Location = new Point(0, 72); layoutControlItem5.Location = new Point(0, 96); layoutControlItem5.Name = "layoutControlItem5"; layoutControlItem5.Size = new Size(289, 24); layoutControlItem5.Size = new Size(568, 24); layoutControlItem5.Text = "é® ç®±:"; layoutControlItem5.TextSize = new Size(80, 14); // // layoutControlItem14 // layoutControlItem14.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem14.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem14.Control = ZhuangTaiimageComboBoxEdit; layoutControlItem14.Location = new Point(289, 72); layoutControlItem14.Name = "layoutControlItem14"; layoutControlItem14.Size = new Size(289, 24); layoutControlItem14.Text = "*å¨èç¶æ:"; layoutControlItem14.TextSize = new Size(80, 14); // // layoutControlItem17 // layoutControlItem17.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem17.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem17.Control = ChongZhiimageComboBoxEdit; layoutControlItem17.Location = new Point(289, 48); layoutControlItem17.Name = "layoutControlItem17"; layoutControlItem17.Size = new Size(289, 24); layoutControlItem17.Text = " ç»å½éç½®å¯ç :"; layoutControlItem17.TextSize = new Size(80, 14); // // layoutControlItem7 // layoutControlItem7.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem7.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem7.AppearanceItemCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; layoutControlItem7.Control = QianMingpictureEdit; layoutControlItem7.Location = new Point(0, 96); layoutControlItem7.Control = TouXiangpictureEdit; layoutControlItem7.Location = new Point(0, 144); layoutControlItem7.Name = "layoutControlItem7"; layoutControlItem7.Size = new Size(578, 77); layoutControlItem7.Text = "*ç¾åé¢è§:"; layoutControlItem7.Size = new Size(568, 52); layoutControlItem7.Text = "头 å:"; layoutControlItem7.TextSize = new Size(80, 14); // // layoutControlItem1 @@ -440,24 +429,53 @@ layoutControlItem1.ImageOptions.AllowGlyphSkinning = DevExpress.Utils.DefaultBoolean.True; layoutControlItem1.Location = new Point(0, 0); layoutControlItem1.Name = "layoutControlItem1"; layoutControlItem1.Size = new Size(289, 24); layoutControlItem1.Size = new Size(344, 24); layoutControlItem1.Text = "*ç¼ å·:"; layoutControlItem1.TextSize = new Size(80, 14); // // layoutControlItem6 // layoutControlItem6.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem6.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem6.Control = ZhiWutextEdit; layoutControlItem6.Location = new Point(0, 72); layoutControlItem6.Name = "layoutControlItem6"; layoutControlItem6.Size = new Size(568, 24); layoutControlItem6.Text = "*è å¡:"; layoutControlItem6.TextSize = new Size(80, 14); // // layoutControlItem14 // layoutControlItem14.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem14.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem14.Control = ZhuangTaiimageComboBoxEdit; layoutControlItem14.Location = new Point(0, 120); layoutControlItem14.Name = "layoutControlItem14"; layoutControlItem14.Size = new Size(146, 24); layoutControlItem14.Text = "å¨èç¶æ:"; layoutControlItem14.TextSize = new Size(80, 14); // // layoutControlItem17 // layoutControlItem17.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem17.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem17.Control = ChongZhiimageComboBoxEdit; layoutControlItem17.Location = new Point(288, 120); layoutControlItem17.Name = "layoutControlItem17"; layoutControlItem17.Size = new Size(146, 24); layoutControlItem17.Text = " ç»å½éç½®å¯ç :"; layoutControlItem17.TextSize = new Size(80, 14); // // layoutControlItem2 // layoutControlItem2.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem2.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem2.AppearanceItemCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; layoutControlItem2.AppearanceItemCaptionDisabled.Options.UseTextOptions = true; layoutControlItem2.AppearanceItemCaptionDisabled.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem2.AppearanceItemCaptionDisabled.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Bottom; layoutControlItem2.Control = NametextEdit; layoutControlItem2.Location = new Point(289, 0); layoutControlItem2.Location = new Point(0, 24); layoutControlItem2.MaxSize = new Size(0, 24); layoutControlItem2.MinSize = new Size(150, 24); layoutControlItem2.Name = "layoutControlItem2"; layoutControlItem2.Size = new Size(289, 24); layoutControlItem2.Size = new Size(288, 24); layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem2.Text = "*å§ å:"; layoutControlItem2.TextSize = new Size(80, 14); @@ -467,16 +485,63 @@ layoutControlItem3.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem3.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem3.Control = EnglishNametextEdit; layoutControlItem3.Location = new Point(289, 24); layoutControlItem3.Location = new Point(288, 24); layoutControlItem3.Name = "layoutControlItem3"; layoutControlItem3.Size = new Size(289, 24); layoutControlItem3.Text = "å§å(è±æ):"; layoutControlItem3.Size = new Size(280, 24); layoutControlItem3.Text = "LastNameï¼"; layoutControlItem3.TextSize = new Size(80, 14); // // emptySpaceItem4 // emptySpaceItem4.AllowHotTrack = false; emptySpaceItem4.Location = new Point(568, 0); emptySpaceItem4.Name = "emptySpaceItem4"; emptySpaceItem4.Size = new Size(10, 196); emptySpaceItem4.TextSize = new Size(0, 0); // // emptySpaceItem5 // emptySpaceItem5.AllowHotTrack = false; emptySpaceItem5.Location = new Point(344, 0); emptySpaceItem5.Name = "emptySpaceItem5"; emptySpaceItem5.Size = new Size(224, 24); emptySpaceItem5.TextSize = new Size(0, 0); // // layoutControlItem15 // layoutControlItem15.AppearanceItemCaption.Options.UseTextOptions = true; layoutControlItem15.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; layoutControlItem15.AppearanceItemCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; layoutControlItem15.AppearanceItemCaptionDisabled.Options.UseTextOptions = true; layoutControlItem15.AppearanceItemCaptionDisabled.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; layoutControlItem15.AppearanceItemCaptionDisabled.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; layoutControlItem15.Control = textEditQianMing; layoutControlItem15.Location = new Point(288, 48); layoutControlItem15.Name = "layoutControlItem15"; layoutControlItem15.Size = new Size(280, 24); layoutControlItem15.Text = "*ç¾ åï¼"; layoutControlItem15.TextSize = new Size(80, 14); // // emptySpaceItem1 // emptySpaceItem1.AllowHotTrack = false; emptySpaceItem1.Location = new Point(434, 120); emptySpaceItem1.Name = "emptySpaceItem1"; emptySpaceItem1.Size = new Size(134, 24); emptySpaceItem1.TextSize = new Size(0, 0); // // emptySpaceItem2 // emptySpaceItem2.AllowHotTrack = false; emptySpaceItem2.Location = new Point(146, 120); emptySpaceItem2.Name = "emptySpaceItem2"; emptySpaceItem2.Size = new Size(142, 24); emptySpaceItem2.TextSize = new Size(0, 0); // // QianMingopenFileDialog // QianMingopenFileDialog.FileName = "QianMingopenFileDialog"; QianMingopenFileDialog.Filter = "(\"*.jpg\"|\"*.JPG\"|\"*.png\"|\"*.PNG\"|\"*.jpeg\"|\"*.JPEG\")"; QianMingopenFileDialog.Filter = "(*.jpg|*.JPG|*.png|*.PNG|*.jpeg|*.JPEG)"; // // emloyeeFrom // @@ -484,9 +549,10 @@ AutoScaleMode = AutoScaleMode.Font; Controls.Add(layoutControl1); Name = "emloyeeFrom"; Size = new Size(598, 193); Size = new Size(598, 216); ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)textEditQianMing.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)EnglishNametextEdit.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)ChongZhiimageComboBoxEdit.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)ZhuangTaiimageComboBoxEdit.Properties).EndInit(); @@ -496,7 +562,7 @@ ((System.ComponentModel.ISupportInitialize)ZhuangTaicheckedComboBoxEdit.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)ChongZhicomboBoxEdit.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)textEdit1.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)QianMingpictureEdit.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)TouXiangpictureEdit.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)ZhiWutextEdit.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)YouXiangtextEdit.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize)DianHuatextEdit.Properties).EndInit(); @@ -510,15 +576,20 @@ ((System.ComponentModel.ISupportInitialize)layoutControlItem10).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem16).EndInit(); ((System.ComponentModel.ISupportInitialize)Root).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem6).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem5).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem14).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem17).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem7).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem6).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem14).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem17).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem4).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem5).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem15).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); ((System.ComponentModel.ISupportInitialize)emptySpaceItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)dxValidationProviderBianHao).EndInit(); ResumeLayout(false); } @@ -538,7 +609,7 @@ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; private OpenFileDialog QianMingopenFileDialog; private DevExpress.XtraEditors.PictureEdit QianMingpictureEdit; private DevExpress.XtraEditors.PictureEdit TouXiangpictureEdit; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; private DevExpress.XtraEditors.TextEdit textEdit1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; @@ -563,5 +634,10 @@ private DevExpress.XtraEditors.TextEdit EnglishNametextEdit; private DevExpress.XtraEditors.DXErrorProvider.DXValidationProvider dxValidationProviderBianHao; public DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private DevExpress.XtraEditors.TextEdit textEditQianMing; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem5; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2; } } WinFrmUI/HStation.WinFrmUI.Organize.Core/02-Employee/AddEmployeeDlg.Designer.cs
@@ -44,11 +44,11 @@ // // groupControl1 // groupControl1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; groupControl1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; groupControl1.Controls.Add(emloyeeInfoCtrl); groupControl1.Location = new Point(8, 6); groupControl1.Name = "groupControl1"; groupControl1.Size = new Size(463, 188); groupControl1.Size = new Size(463, 235); groupControl1.TabIndex = 0; groupControl1.Text = "å工信æ¯"; // @@ -58,12 +58,12 @@ emloyeeInfoCtrl.Location = new Point(2, 23); emloyeeInfoCtrl.Margin = new Padding(3, 2, 3, 2); emloyeeInfoCtrl.Name = "emloyeeInfoCtrl"; emloyeeInfoCtrl.Size = new Size(459, 163); emloyeeInfoCtrl.Size = new Size(459, 210); emloyeeInfoCtrl.TabIndex = 1; // // CreateLogincheckEdit // CreateLogincheckEdit.Location = new Point(8, 200); CreateLogincheckEdit.Location = new Point(8, 252); CreateLogincheckEdit.Name = "CreateLogincheckEdit"; CreateLogincheckEdit.Properties.Caption = "åå»ºç¨æ·"; CreateLogincheckEdit.Size = new Size(75, 20); @@ -72,11 +72,11 @@ // // groupControl2 // groupControl2.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; groupControl2.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; groupControl2.Controls.Add(loginUserForm); groupControl2.Location = new Point(8, 226); groupControl2.Location = new Point(8, 278); groupControl2.Name = "groupControl2"; groupControl2.Size = new Size(463, 142); groupControl2.Size = new Size(463, 133); groupControl2.TabIndex = 2; groupControl2.Text = "ç¨æ·ä¿¡æ¯"; // @@ -85,13 +85,13 @@ loginUserForm.Dock = DockStyle.Fill; loginUserForm.Location = new Point(2, 23); loginUserForm.Name = "loginUserForm"; loginUserForm.Size = new Size(459, 117); loginUserForm.Size = new Size(459, 108); loginUserForm.TabIndex = 0; loginUserForm.UseWaitCursor = true; // // QueDingsimpleButton // QueDingsimpleButton.Location = new Point(267, 374); QueDingsimpleButton.Location = new Point(271, 417); QueDingsimpleButton.Name = "QueDingsimpleButton"; QueDingsimpleButton.Size = new Size(75, 23); QueDingsimpleButton.TabIndex = 3; @@ -100,7 +100,7 @@ // // QuXiaosimpleButton // QuXiaosimpleButton.Location = new Point(374, 374); QuXiaosimpleButton.Location = new Point(379, 417); QuXiaosimpleButton.Name = "QuXiaosimpleButton"; QuXiaosimpleButton.Size = new Size(75, 23); QuXiaosimpleButton.TabIndex = 4; @@ -111,7 +111,7 @@ // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(483, 409); ClientSize = new Size(483, 450); Controls.Add(QuXiaosimpleButton); Controls.Add(QueDingsimpleButton); Controls.Add(groupControl2); WinFrmUI/HStation.WinFrmUI.Organize.Core/02-Employee/AddEmployeeDlg.cs
@@ -10,6 +10,7 @@ using System.Drawing; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Forms; using Yw.DAL.Basic; @@ -27,7 +28,7 @@ private readonly HStation.Service.LoginUserMain _service = new(); long _emloyeeId; bool AddSuccessfully; private async void AddEmloyeeUse(object sender, EventArgs e) private async void AddEmloyeeUse() { var bll = new BLL.EmployeeMain(); @@ -51,7 +52,7 @@ }, new Dto.AddLoginUserMainDto { LoginName = loginUserForm.GetLoginName(), PassWord = loginUserForm.GetPassWord(), CreateTime = DateTime.Now }); AddSuccessfully = false; } private async void AddEmloyee(object sender, EventArgs e) private async void AddEmloyee() { //List<Model.LoginUserMain> all = _service.GetAll(); var bll = new BLL.EmployeeMain(); @@ -63,7 +64,7 @@ FirstName = emloyeeInfoCtrl.GetName(), LastName = emloyeeInfoCtrl.GetEnglishNametextEdit(), Telephone = emloyeeInfoCtrl.GetTelephone(), DrawSignal = emloyeeInfoCtrl.GetDrawSignal(),//ç¾åç®ååªæ¯éæ©æ¬å°æä»¶ 并没æå°æä»¶è¿è¡ä¿åå°æä¸åºå®çä½ç½® åç»è®°å¾æ´æ° DrawSignal = emloyeeInfoCtrl.GetDrawSignal(), Email = emloyeeInfoCtrl.GetEmail(), StaffStatus = emloyeeInfoCtrl.GetZhuangTai(), RequirePasswordReset = emloyeeInfoCtrl.GetChongZhi(), @@ -85,15 +86,22 @@ { return AddSuccessfully; } // @"^[^@\s]+@[^@\s]+\.[^@\s]+$" private bool IsValidEmail(string email) { return Regex.IsMatch(email, @"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$"); } private async void QueDingsimpleButton_Click(object sender, EventArgs e) { emloyeeInfoCtrl.IsValid(); if (!IsValidEmail(emloyeeInfoCtrl.GetEmail())&& !String.IsNullOrEmpty(emloyeeInfoCtrl.GetEmail())) { MessageBox.Show("é®ç®±æ ¼å¼é误ï¼"); return; } if (loginUserForm.GetPassWord() != loginUserForm.GetQueRenPassWord()) { MessageBox.Show("两次è¾å ¥å¯ç ä¸ä¸è´ãè¯·éæ°è¾å ¥ï¼"); @@ -121,8 +129,8 @@ loginUserForm.IsValid(); } //String.IsNullOrEmpty(emloyeeFrom.GetChongZhiText()) || String.IsNullOrEmpty(emloyeeFrom.GetZhuangTaiText()) || if (String.IsNullOrEmpty(emloyeeInfoCtrl.GetErpCode()) || String.IsNullOrEmpty(emloyeeInfoCtrl.GetPositonName()) || String.IsNullOrEmpty(emloyeeInfoCtrl.GetName()) || String.IsNullOrEmpty(emloyeeInfoCtrl.GetTelephone()) || String.IsNullOrEmpty(emloyeeInfoCtrl.GetDrawSignal())) //String.IsNullOrEmpty(emloyeeFrom.GetChongZhiText()) || String.IsNullOrEmpty(emloyeeFrom.GetZhuangTaiText()) || if (String.IsNullOrEmpty(emloyeeInfoCtrl.GetDrawSignal())||String.IsNullOrEmpty(emloyeeInfoCtrl.GetErpCode()) || String.IsNullOrEmpty(emloyeeInfoCtrl.GetPositonName()) || String.IsNullOrEmpty(emloyeeInfoCtrl.GetName()) || String.IsNullOrEmpty(emloyeeInfoCtrl.GetTelephone()) || String.IsNullOrEmpty(emloyeeInfoCtrl.GetDrawSignal())) { MessageBox.Show("åºæ¬ä¿¡æ¯ä¸è½é¨å为空ï¼"); AddSuccessfully = false; @@ -135,18 +143,18 @@ AddSuccessfully = false; return; } if (emloyeeInfoCtrl.GetZhuangTai() != 0 && emloyeeInfoCtrl.GetZhuangTai() != 1) { MessageBox.Show("å¨èç¶æè¯·éæ©'离è'æ'å¨è'ï¼"); AddSuccessfully = false; return; } if (emloyeeInfoCtrl.GetChongZhi() != 0 && emloyeeInfoCtrl.GetChongZhi() != 1) { MessageBox.Show("æ¯å¦ç»å½éç½®è¯·éæ©'æ¯'æ'å¦'ï¼"); AddSuccessfully = false; return; } //if (emloyeeInfoCtrl.GetZhuangTai() != 0 && emloyeeInfoCtrl.GetZhuangTai() != 1) //{ // MessageBox.Show("å¨èç¶æè¯·éæ©'离è'æ'å¨è'ï¼"); // AddSuccessfully = false; // return; //} //if (emloyeeInfoCtrl.GetChongZhi() != 0 && emloyeeInfoCtrl.GetChongZhi() != 1) //{ // MessageBox.Show("æ¯å¦ç»å½éç½®è¯·éæ©'æ¯'æ'å¦'ï¼"); // AddSuccessfully = false; // return; //} if (CreateLogincheckEdit.Checked == true) { if (String.IsNullOrEmpty(loginUserForm.GetLoginName()) || String.IsNullOrEmpty(loginUserForm.GetPassWord())) @@ -155,11 +163,11 @@ AddSuccessfully = false; return; } AddEmloyeeUse(sender, e); AddEmloyeeUse(); } else { AddEmloyee(sender, e); AddEmloyee(); } MessageBox.Show("æ·»å æåï¼"); AddSuccessfully = true; WinFrmUI/HStation.WinFrmUI.Organize.Core/02-Employee/EmployeeMgrMainPanel.Designer.cs
@@ -35,7 +35,6 @@ ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); barBtnEdit = new DevExpress.XtraBars.BarButtonItem(); BtnAdd = new DevExpress.XtraBars.BarButtonItem(); BtnDelete = new DevExpress.XtraBars.BarButtonItem(); barEditItem1 = new DevExpress.XtraBars.BarEditItem(); barEditItem2 = new DevExpress.XtraBars.BarEditItem(); ribbonPageCategory1 = new DevExpress.XtraBars.Ribbon.RibbonPageCategory(); @@ -91,9 +90,9 @@ ribbonControl1.DrawGroupsBorderMode = DevExpress.Utils.DefaultBoolean.False; ribbonControl1.ExpandCollapseItem.Id = 0; ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic; ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnEdit, BtnAdd, BtnDelete, barEditItem1, barEditItem2 }); ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnEdit, BtnAdd, barEditItem1, barEditItem2 }); ribbonControl1.Location = new Point(0, 0); ribbonControl1.MaxItemId = 25; ribbonControl1.MaxItemId = 26; ribbonControl1.Name = "ribbonControl1"; ribbonControl1.PageCategories.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageCategory[] { ribbonPageCategory1 }); ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 }); @@ -119,11 +118,6 @@ BtnAdd.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnAdd.ImageOptions.SvgImage"); BtnAdd.Name = "BtnAdd"; BtnAdd.ItemClick += BtnAdd_ItemClick; // // BtnDelete // BtnDelete.Id = 21; BtnDelete.Name = "BtnDelete"; // // barEditItem1 // @@ -152,7 +146,6 @@ // ribbonPageGroup.ItemLinks.Add(BtnAdd); ribbonPageGroup.ItemLinks.Add(barBtnEdit); ribbonPageGroup.ItemLinks.Add(BtnDelete); ribbonPageGroup.ItemLinks.Add(barEditItem1); ribbonPageGroup.ItemLinks.Add(barEditItem2); ribbonPageGroup.Name = "ribbonPageGroup"; @@ -466,7 +459,6 @@ private DevExpress.XtraBars.Ribbon.RibbonControl ribbonControl1; private DevExpress.XtraBars.BarButtonItem barBtnEdit; private DevExpress.XtraBars.BarButtonItem BtnAdd; private DevExpress.XtraBars.BarButtonItem BtnDelete; private DevExpress.XtraBars.Ribbon.RibbonPage ribbonPage1; private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup; private BindingSource employeeViewModelBindingSource; WinFrmUI/HStation.WinFrmUI.Organize.Core/02-Employee/EmployeeMgrMainPanel.cs
@@ -16,13 +16,13 @@ public EmployeeMgrMainPanel() { InitializeComponent(); DateChanged(); DateShow(); //ShowEmloyee(); } List<EmployeeViewModel> _AllEmployee = new List<EmployeeViewModel>(); private void DateChanged() private void DateShow() { HStation.Service.EmployeeMain _service = new(); _AllEmployee.Clear(); @@ -80,33 +80,33 @@ } dlg.SetDate(currentVm.ID); dlg.ShowDialog(); DateChanged(); DateShow(); this.employeeViewModelBindingSource.ResetBindings(false); } //å é¤ private async void BtnDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var bll = new BLL.EmployeeMain(); var currentVm = this.gridView1.GetCurrentViewModel(_AllEmployee); if (currentVm == null) { MessageBox.Show("è¯·éæ©æ°æ®è¡ï¼"); } else { ////å é¤ //private async void BtnDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) //{ // var bll = new BLL.EmployeeMain(); // var currentVm = this.gridView1.GetCurrentViewModel(_AllEmployee); // if (currentVm == null) // { // MessageBox.Show("è¯·éæ©æ°æ®è¡ï¼"); // } // else // { if (MessageBox.Show("确认å é¤åå·¥" + currentVm.ID + "åï¼", "å é¤", MessageBoxButtons.OKCancel) == DialogResult.Cancel) { return; } if (await bll.DeleteByID(currentVm.ID)) { _AllEmployee.Remove(currentVm); this.employeeViewModelBindingSource.ResetBindings(false); MessageBox.Show("å 餿å!"); } } } // if (MessageBox.Show("确认å é¤åå·¥" + currentVm.ID + "åï¼", "å é¤", MessageBoxButtons.OKCancel) == DialogResult.Cancel) // { // return; // } // if (await bll.DeleteByID(currentVm.ID)) // { // _AllEmployee.Remove(currentVm); // this.employeeViewModelBindingSource.ResetBindings(false); // MessageBox.Show("å 餿å!"); // } // } //} } } WinFrmUI/HStation.WinFrmUI.Organize.Core/02-Employee/UpdateEmployeeDlg.Designer.cs
@@ -38,12 +38,12 @@ emloyeeFrom.Location = new Point(12, 11); emloyeeFrom.Margin = new Padding(3, 2, 3, 2); emloyeeFrom.Name = "emloyeeFrom"; emloyeeFrom.Size = new Size(477, 159); emloyeeFrom.Size = new Size(477, 190); emloyeeFrom.TabIndex = 0; // // QueRensimpleButton // QueRensimpleButton.Location = new Point(262, 198); QueRensimpleButton.Location = new Point(262, 207); QueRensimpleButton.Name = "QueRensimpleButton"; QueRensimpleButton.Size = new Size(88, 24); QueRensimpleButton.TabIndex = 1; @@ -52,11 +52,12 @@ // // QuXiaosimpleButton // QuXiaosimpleButton.Location = new Point(376, 198); QuXiaosimpleButton.Location = new Point(376, 207); QuXiaosimpleButton.Name = "QuXiaosimpleButton"; QuXiaosimpleButton.Size = new Size(88, 24); QuXiaosimpleButton.TabIndex = 2; QuXiaosimpleButton.Text = "åæ¶"; QuXiaosimpleButton.Click += QuXiaosimpleButton_Click; // // UpdateEmployeeDlg // WinFrmUI/HStation.WinFrmUI.Organize.Core/02-Employee/UpdateEmployeeDlg.cs
@@ -11,6 +11,7 @@ using System.Drawing; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Forms; @@ -22,15 +23,21 @@ { InitializeComponent(); } String time; int ID; long UpdataEmloyeeID; private async void UpdataEmloyeeUse(object sender, EventArgs e) { var bll = new BLL.EmployeeMain(); EmployeeMainDto employeeDate = await bll.GetByID(UpdataEmloyeeID); time = employeeDate.AddTime.ToString(); ID = employeeDate.SortCode; await bll.Update(new Dto.Assets.UpdateEmployeeMainDto { LastModifyTime = DateTime.Now.ToString(), ID = UpdataEmloyeeID, ErpCode = emloyeeFrom.GetErpCode(), @@ -38,11 +45,18 @@ FirstName = emloyeeFrom.GetName(), Telephone = emloyeeFrom.GetTelephone(), DrawSignal = emloyeeFrom.GetDrawSignal(), LastName= emloyeeFrom.GetEnglishNametextEdit(), LastName = emloyeeFrom.GetEnglishNametextEdit(), Email = emloyeeFrom.GetEmail(), StaffStatus = emloyeeFrom.GetZhuangTai(), RequirePasswordReset = emloyeeFrom.GetChongZhi() }); employeeDate = await bll.GetByID(UpdataEmloyeeID); time = employeeDate.AddTime.ToString(); ID = employeeDate.SortCode; MessageBox.Show("ä¿®æ¹æåï¼"); } public async void SetDate(long EmloyeeId) @@ -51,6 +65,12 @@ emloyeeFrom.ErpCodeNoUpdate(); UpdataEmloyeeID = EmloyeeId; EmployeeMainDto employeeDate = await bll.GetByID(EmloyeeId); time = employeeDate.AddTime.ToString(); ID = employeeDate.SortCode; if (String.IsNullOrEmpty(employeeDate.LastName)) { emloyeeFrom.SetEnglishNametextEdit("ææ "); @@ -60,24 +80,33 @@ emloyeeFrom.SetPositonName(employeeDate.PositonName.ToString()); emloyeeFrom.SetTelephone(employeeDate.Telephone.ToString()); emloyeeFrom.SetEnglishNametextEdit(employeeDate.LastName.ToString()); //emloyeeFrom.SetDrawSignal(employeeDate.DrawSignal.ToString()); emloyeeFrom.SetDrawSignal(employeeDate.DrawSignal.ToString()); emloyeeFrom.SetEmail(employeeDate.Email.ToString()); emloyeeFrom.SetZhuangTai(employeeDate.StaffStatus); emloyeeFrom.SetChongZhi(employeeDate.RequirePasswordReset); } private void QueRensimpleButton_Click(object sender, EventArgs e) //@"^[^@\s]+@[^@\s]+\.[^@\s]+$" private bool IsValidEmail(string email) { return Regex.IsMatch(email, @"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$"); } private void QueRensimpleButton_Click(object sender, EventArgs e) { if (e == null) { return; } emloyeeFrom.IsValid(); if (String.IsNullOrEmpty(emloyeeFrom.GetErpCode()) || String.IsNullOrEmpty(emloyeeFrom.GetPositonName()) || String.IsNullOrEmpty(emloyeeFrom.GetName()) || String.IsNullOrEmpty(emloyeeFrom.GetTelephone()) || String.IsNullOrEmpty(emloyeeFrom.GetDrawSignal()) ) if (!IsValidEmail(emloyeeFrom.GetEmail()) && !String.IsNullOrEmpty(emloyeeFrom.GetEmail())) { MessageBox.Show("é®ç®±æ ¼å¼é误ï¼"); return; } if (String.IsNullOrEmpty(emloyeeFrom.GetDrawSignal())||String.IsNullOrEmpty(emloyeeFrom.GetErpCode()) || String.IsNullOrEmpty(emloyeeFrom.GetPositonName()) || String.IsNullOrEmpty(emloyeeFrom.GetName()) || String.IsNullOrEmpty(emloyeeFrom.GetTelephone()) || String.IsNullOrEmpty(emloyeeFrom.GetDrawSignal())) { MessageBox.Show("åºæ¬ä¿¡æ¯ä¸è½é¨å为空ï¼"); return; @@ -87,7 +116,7 @@ MessageBox.Show("请è¾å ¥æ£ç¡®æ ¼å¼ççµè¯å·ï¼"); return; } //if (emloyeeFrom.GetZhuangTai() != 0 && emloyeeFrom.GetZhuangTai() != 1) //{ @@ -105,5 +134,14 @@ this.Close(); } private void QuXiaosimpleButton_Click(object sender, EventArgs e) { if (e == null) { return; } this.Close(); } } } WinFrmUI/HStation.WinFrmUI.Organize.Core/03-Role/AddRoleDlg.Designer.cs
ÎļþÒÑɾ³ý WinFrmUI/HStation.WinFrmUI.Organize.Core/03-Role/AddRoleDlg.cs
ÎļþÒÑɾ³ý WinFrmUI/HStation.WinFrmUI.Organize.Core/03-Role/UpdateRoleDlg.Designer.cs
ÎļþÒÑɾ³ý WinFrmUI/HStation.WinFrmUI.Organize.Core/03-Role/UpdateRoleDlg.cs
ÎļþÒÑɾ³ý WinFrmUI/HStation.WinFrmUI.Organize.Core/04-User/AddUserDlg.Designer.cs
ÎļþÒÑɾ³ý WinFrmUI/HStation.WinFrmUI.Organize.Core/HStation.WinFrmUI.Organize.Core.csproj.user
@@ -5,9 +5,6 @@ <Compile Update="00-UserControl\InterfationFrom.cs"> <SubType>UserControl</SubType> </Compile> <Compile Update="00-UserControl\RoleFrom.cs"> <SubType>UserControl</SubType> </Compile> <Compile Update="00-UserControl\EmloyeeFrom.cs"> <SubType>UserControl</SubType> </Compile> @@ -22,24 +19,6 @@ </Compile> <Compile Update="02-Employee\UpdateEmployeeDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="03-Role\AddRoleDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="03-Role\RoleMainMgrPanel.cs"> <SubType>UserControl</SubType> </Compile> <Compile Update="03-Role\UpdateRoleDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="04-User\AddUserDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="04-User\UpdateUserDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="04-User\UserMgrMainPanel.cs"> <SubType>UserControl</SubType> </Compile> <Compile Update="05-AccessLog\AccessLogrMgrMainPanel.cs"> <SubType>UserControl</SubType>