Compare commits

...

17 Commits

Author SHA1 Message Date
nodyang@aliyun.com 183b162c7a 1022 1 month ago
nodyang@aliyun.com 4b9e751d03 临时版本 1 month ago
nodyang@aliyun.com 1ce3abb24b 1 month ago
nodyang@aliyun.com e064b5c4fb 用户注册 1 month ago
nodyang@aliyun.com 6a45794965 1021 代码提交 1 month ago
nodyang@aliyun.com 22f0da3ef4 下午4点的版本 1 month ago
nodyang@aliyun.com 3f6f8c18aa 信版本 1 month ago
nodyang@aliyun.com 7374518afa 222 1 month ago
nodyang@aliyun.com 17cfa5bcca 12 1 month ago
nodyang@aliyun.com 1077c0cf75 更新hsl 空间 2 months ago
nodyang@aliyun.com 634ea6f62b demo 2 months ago
nodyang@aliyun.com 9fbb4ad5d9 Db整理 2 months ago
nodyang@aliyun.com 66869df649 整理代码 2 months ago
nodyang@aliyun.com 6f72742434 资源 2 months ago
锄头 cc536e8170 2 3 months ago
锄头 8af01e7ac8 nodyang@#hd 3 months ago
锄头 6cf187bb6a 更新代码 3 months ago

@ -32,13 +32,13 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Chloe">
<Version>5.33.0</Version>
<Version>5.38.0</Version>
</PackageReference>
<PackageReference Include="Chloe.Extension">
<Version>5.33.0</Version>
<Version>5.38.0</Version>
</PackageReference>
<PackageReference Include="Chloe.PostgreSQL">
<Version>5.33.0</Version>
<Version>5.38.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces">
<Version>8.0.0</Version>
@ -47,13 +47,13 @@
<Version>1.1.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions">
<Version>8.0.0</Version>
<Version>8.0.2</Version>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions">
<Version>8.0.0</Version>
<Version>8.0.2</Version>
</PackageReference>
<PackageReference Include="Npgsql">
<Version>8.0.3</Version>
<Version>8.0.5</Version>
</PackageReference>
<Reference Include="System" />
<PackageReference Include="System.Buffers">
@ -64,7 +64,7 @@
</PackageReference>
<Reference Include="System.Core" />
<PackageReference Include="System.Diagnostics.DiagnosticSource">
<Version>8.0.0</Version>
<Version>8.0.1</Version>
</PackageReference>
<PackageReference Include="System.Memory">
<Version>4.5.5</Version>
@ -80,7 +80,7 @@
<Version>8.0.0</Version>
</PackageReference>
<PackageReference Include="System.Text.Json">
<Version>8.0.0</Version>
<Version>8.0.5</Version>
</PackageReference>
<PackageReference Include="System.Threading.Channels">
<Version>8.0.0</Version>
@ -101,16 +101,24 @@
<ItemGroup>
<Compile Include="DbCommandInterceptor.cs" />
<Compile Include="DbFactory.cs" />
<Compile Include="Dto\UserDto.cs" />
<Compile Include="Entity\Function.cs" />
<Compile Include="Entity\Log.cs" />
<Compile Include="Entity\Point.cs" />
<Compile Include="Entity\Role.cs" />
<Compile Include="Entity\UpdateLog.cs" />
<Compile Include="Entity\User.cs" />
<Compile Include="MappingHelper.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Service\UserService.cs" />
<Compile Include="SystemEntityTypeBuilder.cs" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<ProjectReference Include="..\Tool\Tool.csproj">
<Project>{a49bc7e3-39b7-4f68-8780-fb4da3461aff}</Project>
<Name>Tool</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

@ -23,7 +23,7 @@ namespace DB
return conn;
});
context.Options.ConvertToLowercase = false;
context.Options.ConvertToLowercase = true;
return context;
}
}

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DB.Dto
{
public class UserDto
{
public long Id{ get; set; }
public string UserName { get; set; }
public string RoleName { get; set; }
public long RoleId { get; set; }
public short RoleLevel { get; set; }
}
}

@ -0,0 +1,23 @@
namespace DB.Entity
{
/// <summary>
/// 页面编码 手动界面,参数界面,主界面
/// code 对应页面的名称 fromMain
/// </summary>
public class Function:BaseChimsDb
{
public string FunctionName { get; set; }
public string FunctionCode { get; set; }
}
public class FunctionMapper : SystemEntityTypeBuilder<Function>
{
public FunctionMapper() : base("Function")
{
}
}
}

@ -0,0 +1,25 @@
namespace DB.Entity
{
public class Log:BaseChimsDb
{
public string LogLevel { get; set; }
public string Msg { get; set; }
/// <summary>
/// 1到100 系统功能日志
/// 400 系统错误日志
///
/// </summary>
public short LogType { get; set; }
}
public class LogMapper : SystemEntityTypeBuilder<Log>
{
public LogMapper() : base("Log")
{
this.Property(x => x.Msg).HasSize(500);
this.Property(x => x.LogLevel).HasSize(10);
}
}
}

@ -0,0 +1,27 @@
namespace DB.Entity
{
public class Point:BaseChimsDb
{
/// <summary>
/// plc 点位名称
/// </summary>
public string PointName { get; set; }
/// <summary>
/// plc 点位地址
/// </summary>
public string PointAddress { get; set; }
/// <summary>
/// plc 数据类型 bool float int bit
/// </summary>
public string DataType { get; set; }
}
public class PointMapper : SystemEntityTypeBuilder<Point>
{
public PointMapper() : base("Point")
{
}
}
}

@ -0,0 +1,19 @@
namespace DB.Entity
{
public class Role:BaseChimsDb
{
public string RoleName { get; set; }
public short RoleLevel { get; set; }
}
public class RoleMapper : SystemEntityTypeBuilder<Role>
{
public RoleMapper() : base("role")
{
}
}
}

@ -0,0 +1,30 @@
namespace DB.Entity
{
public class UpdateLog:BaseChimsDb
{
/// <summary>
/// 旧的value
/// </summary>
public string OldValue { get; set; }
/// <summary>
/// 新的value
/// </summary>
public string NewValue { get; set; }
/// <summary>
/// 页面的Id
/// </summary>
public long FunctionId { get; set; }
}
public class UpdateMapper : SystemEntityTypeBuilder<UpdateLog>
{
public UpdateMapper() : base("UpdateLog")
{
this.Property(x => x.OldValue).HasSize(500);
this.Property(x => x.NewValue).HasSize(500);
}
}
}

@ -0,0 +1,17 @@
namespace DB.Entity
{
public class UserInfo:BaseChimsDb
{
public string UserName { get; set; }
public string Pwd { get; set; }
public long RoleId { get; set; }
}
public class UserMapper : SystemEntityTypeBuilder<UserInfo>
{
public UserMapper() : base("userInfo")
{
}
}
}

@ -0,0 +1,258 @@
using Chloe;
using DB.Dto;
using DB.Entity;
using NewLife.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using Tool;
namespace DB.Service
{
public class UserService
{
RoleService roleService=new RoleService();
public UserService()
{
}
public void Add(UserInfo useInfo)
{
using (var dbContext = DbFactory.GetContext)
{
dbContext.Insert(useInfo);
}
}
public UserInfo Query(long id)
{
using (var dbContext = DbFactory.GetContext)
{
var queryByKey = dbContext.QueryByKey<UserInfo>(id);
return queryByKey;
}
}
public void Update(UserInfo useInfo)
{
using (var dbContext = DbFactory.GetContext)
{
dbContext.Update(useInfo);
}
}
public void UpdateDel(IReadOnlyCollection<long> lsLongs)
{
using (var dbContext = DbFactory.GetContext)
{
foreach (var lsLong in lsLongs)
{
dbContext.Update<UserInfo>(a => a.ID == lsLong, a => new UserInfo()
{
IsDelete = 1
});
}
}
}
public PagedList<UserDto> GetPagedList(int pageIndex, int pageSize, string key)
{
var roleList = roleService.GetList();
List<UserDto> ls = new List<UserDto>();
PagingResult<UserInfo> userInfoPage;
using (var dbContext = DbFactory.GetContext)
{
userInfoPage = dbContext.Query<UserInfo>()
.WhereIfNotNull(key, x => x.UserName.Contains(key))
.OrderBy(x=>x.RoleId)
.Paging(pageIndex, pageSize);
foreach (var userInfo in userInfoPage.DataList)
{
var first = roleList.First(x => x.ID == userInfo.RoleId);
UserDto user = new UserDto
{
Id = userInfo.ID,
UserName = userInfo.UserName,
RoleId = first.ID,
RoleName = first.RoleName,
RoleLevel = first.RoleLevel
};
ls.Add(user);
}
}
PagedList<UserDto> paged = new PagedList<UserDto>(ls, userInfoPage.Totals.ToInt(),pageIndex,pageSize);
return paged;
}
public PagedList<UserDto> GetPagedList(int pageIndex, int pageSize, string key, List<int> lsLevel)
{
var roleList = roleService.GetList();
List<UserDto> ls = new List<UserDto>();
PagingResult<UserInfo> userInfoPage;
using (var dbContext = DbFactory.GetContext)
{
userInfoPage = dbContext.Query<UserInfo>()
.LeftJoin<Role>(((userinfo, role) => userinfo.RoleId == role.ID))
.Select((userinfo, role) => new
{
UserInfo = userinfo,
Role = role
}).WhereIf(!string.IsNullOrEmpty(key), x => x.UserInfo.UserName.Contains(key))
.Where(x=>lsLevel.Contains(x.Role.RoleLevel))
.OrderBy(x => x.Role.RoleLevel)
.Select(x => x.UserInfo)
.Paging(pageIndex, pageSize);
foreach (var userInfo in userInfoPage.DataList)
{
var first = roleList.First(x => x.ID == userInfo.RoleId);
UserDto user = new UserDto
{
Id = userInfo.ID,
UserName = userInfo.UserName,
RoleId = first.ID,
RoleName = first.RoleName,
RoleLevel = first.RoleLevel
};
ls.Add(user);
}
}
PagedList<UserDto> paged = new PagedList<UserDto>(ls, userInfoPage.Totals.ToInt(), pageIndex, pageSize);
return paged;
}
public UserDto GetOne(string name, string pwd)
{
using (var dbContext = DbFactory.GetContext)
{
var userInfo= dbContext.Query<UserInfo>()
.Where(x => x.UserName == name)
.Where(x => x.Pwd == pwd)
.FirstOrDefault();
if (userInfo != null)
{
var first = roleService.GetList().First(x => x.ID == userInfo.RoleId);
UserDto user = new UserDto
{
Id = userInfo.ID,
UserName = userInfo.UserName,
RoleId = first.ID,
RoleName = first.RoleName,
RoleLevel = first.RoleLevel
};
return user;
}
}
return null;
}
public UserDto GetOne(string name)
{
using (var dbContext = DbFactory.GetContext)
{
var userInfo = dbContext.Query<UserInfo>().
Where(x => x.UserName == name)
.FirstOrDefault();
if (userInfo != null)
{
var first = roleService.GetList().First(x => x.ID == userInfo.RoleId);
UserDto user = new UserDto
{
Id = userInfo.ID,
UserName = userInfo.UserName,
RoleId = first.ID,
RoleName = first.RoleName,
RoleLevel = first.RoleLevel
};
return user;
}
}
return null;
}
public UserDto GetOne(string name,long id)
{
using (var dbContext = DbFactory.GetContext)
{
var userInfo = dbContext.Query<UserInfo>().
Where(x => x.UserName == name)
.WhereIf(id>0,x=>x.ID!=id)
.FirstOrDefault();
if (userInfo != null)
{
var first = roleService.GetList().First(x => x.ID == userInfo.RoleId);
UserDto user = new UserDto
{
Id = userInfo.ID,
UserName = userInfo.UserName,
RoleId = first.ID,
RoleName = first.RoleName,
RoleLevel = first.RoleLevel
};
return user;
}
}
return null;
}
public List<string> GetAllName()
{
using (var dbContext = DbFactory.GetContext)
{
return dbContext.Query<UserInfo>()
.Select(x => x.UserName).ToList();
}
}
}
public class RoleService
{
public RoleService()
{
}
public IReadOnlyCollection<Role> GetList()
{
using (var dbContext = DbFactory.GetContext)
{
return dbContext.Query<Role>().ToList();
}
}
}
}

@ -17,6 +17,12 @@ namespace DB
this.MapTo(tableName);
this.Property(a => a.ID).IsAutoIncrement(false).IsPrimaryKey();
this.UpdateIgnore(x => x.CreateUserId);
this.Property(x => x.CreateUserId).HasSize(19);
this.Property(x => x.LastModifyUserId).HasSize(19);
this.Property(x => x.CreateUserName).HasSize(10);
this.Property(x => x.LastModifyUserName).HasSize(10);
this.Property(x => x.IsEnable).HasSize(1);
this.Property(x => x.IsDelete).HasSize(1);
this.UpdateIgnore(x => x.CreateDate);
this.UpdateIgnore(x => x.CreateUserName);
HasQueryFilter(x => x.IsDelete == 0 && x.IsEnable == 1);
@ -34,11 +40,11 @@ namespace DB
/// <summary>
/// </summary>
public int IsEnable { get; set; } = 1;
public short IsEnable { get; set; } = 1;
/// <summary>
/// </summary>
public int IsDelete { get; set; } = 0;
public short IsDelete { get; set; } = 0;
@ -50,11 +56,13 @@ namespace DB
/// <summary>
/// </summary>
[UpdateIgnore]
public string CreateUserId { get; set; } = "";
/// <summary>
/// </summary>
[UpdateIgnore]
public string CreateUserName { get; set; } = "";
/// <summary>
@ -69,6 +77,6 @@ namespace DB
/// </summary>
public string LastModifyUserName { get; set; } = "";
public int SortCode { get; set; } = 0;
}
}

@ -77,6 +77,7 @@ namespace HZH_Controls.Controls
this.btnFirst.ConerRadius = 5;
this.btnFirst.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnFirst.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnFirst.EnabledMouseEffect = false;
this.btnFirst.FillColor = System.Drawing.Color.White;
this.btnFirst.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnFirst.IsRadius = true;
@ -90,6 +91,7 @@ namespace HZH_Controls.Controls
this.btnFirst.Size = new System.Drawing.Size(30, 30);
this.btnFirst.TabIndex = 0;
this.btnFirst.TabStop = false;
this.btnFirst.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.btnFirst.TipsText = "";
this.btnFirst.BtnClick += new System.EventHandler(this.btnFirst_BtnClick);
//
@ -103,6 +105,7 @@ namespace HZH_Controls.Controls
this.btnPrevious.ConerRadius = 5;
this.btnPrevious.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnPrevious.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnPrevious.EnabledMouseEffect = false;
this.btnPrevious.FillColor = System.Drawing.Color.White;
this.btnPrevious.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnPrevious.IsRadius = true;
@ -116,6 +119,7 @@ namespace HZH_Controls.Controls
this.btnPrevious.Size = new System.Drawing.Size(30, 30);
this.btnPrevious.TabIndex = 1;
this.btnPrevious.TabStop = false;
this.btnPrevious.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.btnPrevious.TipsText = "";
this.btnPrevious.BtnClick += new System.EventHandler(this.btnPrevious_BtnClick);
//
@ -170,6 +174,7 @@ namespace HZH_Controls.Controls
this.p9.ConerRadius = 5;
this.p9.Cursor = System.Windows.Forms.Cursors.Hand;
this.p9.Dock = System.Windows.Forms.DockStyle.Fill;
this.p9.EnabledMouseEffect = false;
this.p9.FillColor = System.Drawing.Color.White;
this.p9.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.p9.IsRadius = true;
@ -183,6 +188,7 @@ namespace HZH_Controls.Controls
this.p9.Size = new System.Drawing.Size(36, 30);
this.p9.TabIndex = 17;
this.p9.TabStop = false;
this.p9.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.p9.TipsText = "";
this.p9.BtnClick += new System.EventHandler(this.page_BtnClick);
//
@ -196,6 +202,7 @@ namespace HZH_Controls.Controls
this.p1.ConerRadius = 5;
this.p1.Cursor = System.Windows.Forms.Cursors.Hand;
this.p1.Dock = System.Windows.Forms.DockStyle.Fill;
this.p1.EnabledMouseEffect = false;
this.p1.FillColor = System.Drawing.Color.White;
this.p1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.p1.IsRadius = true;
@ -209,6 +216,7 @@ namespace HZH_Controls.Controls
this.p1.Size = new System.Drawing.Size(36, 30);
this.p1.TabIndex = 16;
this.p1.TabStop = false;
this.p1.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.p1.TipsText = "";
this.p1.BtnClick += new System.EventHandler(this.page_BtnClick);
//
@ -222,6 +230,7 @@ namespace HZH_Controls.Controls
this.btnToPage.ConerRadius = 5;
this.btnToPage.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnToPage.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnToPage.EnabledMouseEffect = false;
this.btnToPage.FillColor = System.Drawing.Color.White;
this.btnToPage.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnToPage.IsRadius = true;
@ -235,6 +244,7 @@ namespace HZH_Controls.Controls
this.btnToPage.Size = new System.Drawing.Size(62, 30);
this.btnToPage.TabIndex = 15;
this.btnToPage.TabStop = false;
this.btnToPage.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.btnToPage.TipsText = "";
this.btnToPage.BtnClick += new System.EventHandler(this.btnToPage_BtnClick);
//
@ -248,6 +258,7 @@ namespace HZH_Controls.Controls
this.btnEnd.ConerRadius = 5;
this.btnEnd.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnEnd.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnEnd.EnabledMouseEffect = false;
this.btnEnd.FillColor = System.Drawing.Color.White;
this.btnEnd.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnEnd.IsRadius = true;
@ -261,6 +272,7 @@ namespace HZH_Controls.Controls
this.btnEnd.Size = new System.Drawing.Size(30, 30);
this.btnEnd.TabIndex = 13;
this.btnEnd.TabStop = false;
this.btnEnd.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.btnEnd.TipsText = "";
this.btnEnd.BtnClick += new System.EventHandler(this.btnEnd_BtnClick);
//
@ -274,6 +286,7 @@ namespace HZH_Controls.Controls
this.btnNext.ConerRadius = 5;
this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnNext.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnNext.EnabledMouseEffect = false;
this.btnNext.FillColor = System.Drawing.Color.White;
this.btnNext.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnNext.IsRadius = true;
@ -287,6 +300,7 @@ namespace HZH_Controls.Controls
this.btnNext.Size = new System.Drawing.Size(30, 30);
this.btnNext.TabIndex = 12;
this.btnNext.TabStop = false;
this.btnNext.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.btnNext.TipsText = "";
this.btnNext.BtnClick += new System.EventHandler(this.btnNext_BtnClick);
//
@ -300,6 +314,7 @@ namespace HZH_Controls.Controls
this.p8.ConerRadius = 5;
this.p8.Cursor = System.Windows.Forms.Cursors.Hand;
this.p8.Dock = System.Windows.Forms.DockStyle.Fill;
this.p8.EnabledMouseEffect = false;
this.p8.FillColor = System.Drawing.Color.White;
this.p8.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.p8.IsRadius = true;
@ -313,6 +328,7 @@ namespace HZH_Controls.Controls
this.p8.Size = new System.Drawing.Size(36, 30);
this.p8.TabIndex = 8;
this.p8.TabStop = false;
this.p8.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.p8.TipsText = "";
this.p8.BtnClick += new System.EventHandler(this.page_BtnClick);
//
@ -326,6 +342,7 @@ namespace HZH_Controls.Controls
this.p7.ConerRadius = 5;
this.p7.Cursor = System.Windows.Forms.Cursors.Hand;
this.p7.Dock = System.Windows.Forms.DockStyle.Fill;
this.p7.EnabledMouseEffect = false;
this.p7.FillColor = System.Drawing.Color.White;
this.p7.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.p7.IsRadius = true;
@ -339,6 +356,7 @@ namespace HZH_Controls.Controls
this.p7.Size = new System.Drawing.Size(36, 30);
this.p7.TabIndex = 7;
this.p7.TabStop = false;
this.p7.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.p7.TipsText = "";
this.p7.BtnClick += new System.EventHandler(this.page_BtnClick);
//
@ -352,6 +370,7 @@ namespace HZH_Controls.Controls
this.p6.ConerRadius = 5;
this.p6.Cursor = System.Windows.Forms.Cursors.Hand;
this.p6.Dock = System.Windows.Forms.DockStyle.Fill;
this.p6.EnabledMouseEffect = false;
this.p6.FillColor = System.Drawing.Color.White;
this.p6.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.p6.IsRadius = true;
@ -365,6 +384,7 @@ namespace HZH_Controls.Controls
this.p6.Size = new System.Drawing.Size(36, 30);
this.p6.TabIndex = 6;
this.p6.TabStop = false;
this.p6.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.p6.TipsText = "";
this.p6.BtnClick += new System.EventHandler(this.page_BtnClick);
//
@ -378,6 +398,7 @@ namespace HZH_Controls.Controls
this.p5.ConerRadius = 5;
this.p5.Cursor = System.Windows.Forms.Cursors.Hand;
this.p5.Dock = System.Windows.Forms.DockStyle.Fill;
this.p5.EnabledMouseEffect = false;
this.p5.FillColor = System.Drawing.Color.White;
this.p5.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.p5.IsRadius = true;
@ -391,6 +412,7 @@ namespace HZH_Controls.Controls
this.p5.Size = new System.Drawing.Size(36, 30);
this.p5.TabIndex = 5;
this.p5.TabStop = false;
this.p5.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.p5.TipsText = "";
this.p5.BtnClick += new System.EventHandler(this.page_BtnClick);
//
@ -404,6 +426,7 @@ namespace HZH_Controls.Controls
this.p4.ConerRadius = 5;
this.p4.Cursor = System.Windows.Forms.Cursors.Hand;
this.p4.Dock = System.Windows.Forms.DockStyle.Fill;
this.p4.EnabledMouseEffect = false;
this.p4.FillColor = System.Drawing.Color.White;
this.p4.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.p4.IsRadius = true;
@ -417,6 +440,7 @@ namespace HZH_Controls.Controls
this.p4.Size = new System.Drawing.Size(36, 30);
this.p4.TabIndex = 4;
this.p4.TabStop = false;
this.p4.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.p4.TipsText = "";
this.p4.BtnClick += new System.EventHandler(this.page_BtnClick);
//
@ -430,6 +454,7 @@ namespace HZH_Controls.Controls
this.p3.ConerRadius = 5;
this.p3.Cursor = System.Windows.Forms.Cursors.Hand;
this.p3.Dock = System.Windows.Forms.DockStyle.Fill;
this.p3.EnabledMouseEffect = false;
this.p3.FillColor = System.Drawing.Color.White;
this.p3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.p3.IsRadius = true;
@ -443,6 +468,7 @@ namespace HZH_Controls.Controls
this.p3.Size = new System.Drawing.Size(36, 30);
this.p3.TabIndex = 3;
this.p3.TabStop = false;
this.p3.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.p3.TipsText = "";
this.p3.BtnClick += new System.EventHandler(this.page_BtnClick);
//
@ -456,6 +482,7 @@ namespace HZH_Controls.Controls
this.p2.ConerRadius = 5;
this.p2.Cursor = System.Windows.Forms.Cursors.Hand;
this.p2.Dock = System.Windows.Forms.DockStyle.Fill;
this.p2.EnabledMouseEffect = false;
this.p2.FillColor = System.Drawing.Color.White;
this.p2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.p2.IsRadius = true;
@ -469,6 +496,7 @@ namespace HZH_Controls.Controls
this.p2.Size = new System.Drawing.Size(36, 30);
this.p2.TabIndex = 2;
this.p2.TabStop = false;
this.p2.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.p2.TipsText = "";
this.p2.BtnClick += new System.EventHandler(this.page_BtnClick);
//
@ -479,11 +507,12 @@ namespace HZH_Controls.Controls
this.txtPage.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtPage.DecLength = 2;
this.txtPage.FillColor = System.Drawing.Color.Empty;
this.txtPage.FocusBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.txtPage.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.txtPage.ForeColor = System.Drawing.Color.Gray;
this.txtPage.InputText = "";
this.txtPage.InputType = HZH_Controls.TextInputType.PositiveInteger;
this.txtPage.IsFocusColor = true;
this.txtPage.IsFouceShowKey = false;
this.txtPage.IsRadius = true;
this.txtPage.IsShowClearBtn = false;
this.txtPage.IsShowKeyboard = false;
@ -504,6 +533,7 @@ namespace HZH_Controls.Controls
-2147483648});
this.txtPage.Name = "txtPage";
this.txtPage.Padding = new System.Windows.Forms.Padding(5);
this.txtPage.PasswordChar = '\0';
this.txtPage.PromptColor = System.Drawing.Color.Silver;
this.txtPage.PromptFont = new System.Drawing.Font("微软雅黑", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.txtPage.PromptText = "页码";
@ -512,6 +542,7 @@ namespace HZH_Controls.Controls
this.txtPage.RegexPattern = "";
this.txtPage.Size = new System.Drawing.Size(62, 30);
this.txtPage.TabIndex = 14;
this.txtPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
//
// UCPagerControl2
//
@ -519,6 +550,7 @@ namespace HZH_Controls.Controls
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.tableLayoutPanel1);
this.Name = "UCPagerControl2";
this.PageModel = HZH_Controls.Controls.PageModel.PageCount;
this.Size = new System.Drawing.Size(921, 41);
this.tableLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false);

@ -111,6 +111,7 @@ namespace HZH_Controls.Forms
this.btnCancel.ConerRadius = 5;
this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnCancel.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnCancel.EnabledMouseEffect = false;
this.btnCancel.FillColor = System.Drawing.Color.White;
this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnCancel.IsRadius = false;
@ -149,6 +150,7 @@ namespace HZH_Controls.Forms
this.btnOK.ConerRadius = 5;
this.btnOK.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnOK.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnOK.EnabledMouseEffect = false;
this.btnOK.FillColor = System.Drawing.Color.White;
this.btnOK.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnOK.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
@ -178,6 +180,7 @@ namespace HZH_Controls.Forms
this.lblMsg.Size = new System.Drawing.Size(427, 218);
this.lblMsg.TabIndex = 2;
this.lblMsg.Text = "这是一个提示信息。";
this.lblMsg.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// lblTitle
//

@ -68,6 +68,7 @@ namespace HZH_Controls.Forms
this.btnOK.ConerRadius = 5;
this.btnOK.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnOK.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnOK.EnabledMouseEffect = false;
this.btnOK.FillColor = System.Drawing.Color.White;
this.btnOK.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnOK.IsRadius = false;
@ -95,6 +96,7 @@ namespace HZH_Controls.Forms
this.btnCancel.ConerRadius = 5;
this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnCancel.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnCancel.EnabledMouseEffect = false;
this.btnCancel.FillColor = System.Drawing.Color.White;
this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnCancel.IsRadius = false;

@ -48,6 +48,8 @@ namespace HZH_Controls.Forms
lblTitle.Text = value;
}
}
/// <summary>
/// The is show close BTN
/// </summary>

@ -1,73 +0,0 @@
namespace RfidWeb
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.hslButton1 = new HslControls.HslButton();
this.hslAgvCar1 = new HslControls.HslAgvCar();
this.SuspendLayout();
//
// hslButton1
//
this.hslButton1.CustomerInformation = null;
this.hslButton1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslButton1.Location = new System.Drawing.Point(323, 199);
this.hslButton1.Name = "hslButton1";
this.hslButton1.Size = new System.Drawing.Size(114, 46);
this.hslButton1.TabIndex = 0;
this.hslButton1.Text = "hslButton1";
//
// hslAgvCar1
//
this.hslAgvCar1.BackColor = System.Drawing.Color.Transparent;
this.hslAgvCar1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslAgvCar1.Location = new System.Drawing.Point(245, 352);
this.hslAgvCar1.Name = "hslAgvCar1";
this.hslAgvCar1.Size = new System.Drawing.Size(353, 106);
this.hslAgvCar1.TabIndex = 1;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1035, 632);
this.Controls.Add(this.hslAgvCar1);
this.Controls.Add(this.hslButton1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
private HslControls.HslButton hslButton1;
private HslControls.HslAgvCar hslAgvCar1;
}
}

@ -1,30 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Tool;
namespace RfidWeb
{
public partial class Form1 : Form
{
public Form1()
{
if (!HslCommunication.Authorization.SetAuthorizationCode(RfidSetting.Current.HslKey))
{
Console.WriteLine("Authorization failed! The current program can only be used for 8 hours!");
return; // 激活失败应该退出系统
}
InitializeComponent();
}
}
}

@ -0,0 +1,195 @@
namespace RfidWeb
{
partial class FormLogin
{
/// <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()
{
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.comboPwd = new HZH_Controls.Controls.TextBoxEx();
this.comboUser = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(878, 428);
this.panel1.TabIndex = 0;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Controls.Add(this.pictureBox1);
this.panel2.Controls.Add(this.button2);
this.panel2.Controls.Add(this.button1);
this.panel2.Controls.Add(this.label1);
this.panel2.Controls.Add(this.comboPwd);
this.panel2.Controls.Add(this.comboUser);
this.panel2.Controls.Add(this.label2);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(878, 428);
this.panel2.TabIndex = 2;
this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
//
// pictureBox1
//
this.pictureBox1.Image = global::RfidWeb.Properties.Resources.;
this.pictureBox1.Location = new System.Drawing.Point(40, 39);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(404, 350);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 6;
this.pictureBox1.TabStop = false;
//
// button2
//
this.button2.Location = new System.Drawing.Point(688, 274);
this.button2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(134, 66);
this.button2.TabIndex = 5;
this.button2.Text = "取消";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(501, 274);
this.button1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(136, 66);
this.button1.TabIndex = 4;
this.button1.Text = "登录";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(486, 104);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(118, 24);
this.label1.TabIndex = 0;
this.label1.Text = "登录用户:";
//
// comboPwd
//
this.comboPwd.DecLength = 2;
this.comboPwd.InputType = HZH_Controls.TextInputType.NotControl;
this.comboPwd.Location = new System.Drawing.Point(614, 189);
this.comboPwd.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.comboPwd.MaxValue = new decimal(new int[] {
20,
0,
0,
0});
this.comboPwd.MinValue = new decimal(new int[] {
1000000,
0,
0,
-2147483648});
this.comboPwd.MyRectangle = new System.Drawing.Rectangle(0, 0, 0, 0);
this.comboPwd.Name = "comboPwd";
this.comboPwd.OldText = null;
this.comboPwd.PasswordChar = '*';
this.comboPwd.PromptColor = System.Drawing.Color.Gray;
this.comboPwd.PromptFont = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.comboPwd.PromptText = "";
this.comboPwd.RegexPattern = "";
this.comboPwd.Size = new System.Drawing.Size(206, 28);
this.comboPwd.TabIndex = 3;
this.comboPwd.KeyDown += new System.Windows.Forms.KeyEventHandler(this.comboPwd_KeyDown);
//
// comboUser
//
this.comboUser.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.comboUser.FormattingEnabled = true;
this.comboUser.Location = new System.Drawing.Point(614, 99);
this.comboUser.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.comboUser.Name = "comboUser";
this.comboUser.Size = new System.Drawing.Size(206, 32);
this.comboUser.TabIndex = 1;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(486, 189);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(118, 24);
this.label2.TabIndex = 2;
this.label2.Text = "登录密码:";
//
// FormLogin
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(878, 428);
this.Controls.Add(this.panel1);
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "FormLogin";
this.Text = "登录窗口";
this.panel1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox comboUser;
private HZH_Controls.Controls.TextBoxEx comboPwd;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.PictureBox pictureBox1;
}
}

@ -0,0 +1,87 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DB.Service;
using HZH_Controls.Forms;
using NewLife;
using NewLife.Caching;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel;
namespace RfidWeb
{
public partial class FormLogin : Form
{
private UserService userService = new UserService();
public FormLogin()
{
InitializeComponent();
comboUser.Items.AddRange(userService.GetAllName().ToArray());
if (comboUser.Items.Count > 0)
{
comboUser.SelectedIndex = 0;
}
comboPwd.Text = "123456";
comboPwd.Focus();
}
private void button2_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
var userName = this.comboUser.Text;
var pwd=this.comboPwd.Text;
if (pwd.Trim().Length == 0)
{
FrmDialog.ShowDialog(this, "请输入密码?", "警告窗体", false);
return;
}
pwd = Aes.Create().Encrypt(pwd.GetBytes(), "nodyang".GetBytes()).ToBase64();
var one= userService.GetOne(userName, pwd);
if (one == null)
{
FrmDialog.ShowDialog(this, "用户和密码错误 请核对?", "警告窗体", false);
this.comboPwd.Text = "";
return;
}
UserManager.Add(one);
this.DialogResult = DialogResult.No;
this.Close();
}
private void comboPwd_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
button1.PerformClick(); // 触发按钮点击事件
e.Handled = true; // 阻止默认的按键处理
e.SuppressKeyPress = true; // 防止"叮"声
}
}
private void panel2_Paint(object sender, PaintEventArgs e)
{
}
}
}

@ -0,0 +1,361 @@
namespace RfidWeb
{
partial class FormMain
{
/// <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()
{
this.panel1 = new System.Windows.Forms.Panel();
this.panel6 = new System.Windows.Forms.Panel();
this.panel7 = new System.Windows.Forms.Panel();
this.panContent = new System.Windows.Forms.Panel();
this.panel9 = new System.Windows.Forms.Panel();
this.panel8 = new System.Windows.Forms.Panel();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.btnMes = new System.Windows.Forms.Button();
this.btnAccount = new System.Windows.Forms.Button();
this.btnAlarm = new System.Windows.Forms.Button();
this.btnExit = new System.Windows.Forms.Button();
this.btnArgument = new System.Windows.Forms.Button();
this.btnMain = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.panel5 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel6.SuspendLayout();
this.panel7.SuspendLayout();
this.panel8.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel5.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BackgroundImage = global::RfidWeb.Properties.Resources.frmBei;
this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel1.Controls.Add(this.panel6);
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1280, 1024);
this.panel1.TabIndex = 0;
//
// panel6
//
this.panel6.BackColor = System.Drawing.Color.Transparent;
this.panel6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel6.Controls.Add(this.panel7);
this.panel6.Controls.Add(this.panel8);
this.panel6.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel6.Location = new System.Drawing.Point(0, 68);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(1280, 956);
this.panel6.TabIndex = 1;
//
// panel7
//
this.panel7.Controls.Add(this.panContent);
this.panel7.Controls.Add(this.panel9);
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(370, 0);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(910, 956);
this.panel7.TabIndex = 4;
//
// panContent
//
this.panContent.Dock = System.Windows.Forms.DockStyle.Fill;
this.panContent.Location = new System.Drawing.Point(0, 14);
this.panContent.Name = "panContent";
this.panContent.Size = new System.Drawing.Size(910, 942);
this.panContent.TabIndex = 1;
//
// panel9
//
this.panel9.Dock = System.Windows.Forms.DockStyle.Top;
this.panel9.Location = new System.Drawing.Point(0, 0);
this.panel9.Name = "panel9";
this.panel9.Size = new System.Drawing.Size(910, 14);
this.panel9.TabIndex = 0;
//
// panel8
//
this.panel8.BackColor = System.Drawing.Color.Transparent;
this.panel8.Controls.Add(this.button4);
this.panel8.Controls.Add(this.button3);
this.panel8.Controls.Add(this.btnMes);
this.panel8.Controls.Add(this.btnAccount);
this.panel8.Controls.Add(this.btnAlarm);
this.panel8.Controls.Add(this.btnExit);
this.panel8.Controls.Add(this.btnArgument);
this.panel8.Controls.Add(this.btnMain);
this.panel8.Dock = System.Windows.Forms.DockStyle.Left;
this.panel8.Location = new System.Drawing.Point(0, 0);
this.panel8.Margin = new System.Windows.Forms.Padding(4);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(370, 956);
this.panel8.TabIndex = 3;
//
// button4
//
this.button4.BackgroundImage = global::RfidWeb.Properties.Resources.;
this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button4.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button4.Location = new System.Drawing.Point(84, 590);
this.button4.Margin = new System.Windows.Forms.Padding(4);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(146, 159);
this.button4.TabIndex = 6;
this.button4.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.BackgroundImage = global::RfidWeb.Properties.Resources.;
this.button3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button3.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button3.Location = new System.Drawing.Point(22, 495);
this.button3.Margin = new System.Windows.Forms.Padding(4);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(300, 87);
this.button3.TabIndex = 5;
this.button3.UseVisualStyleBackColor = true;
//
// btnMes
//
this.btnMes.BackgroundImage = global::RfidWeb.Properties.Resources.btn;
this.btnMes.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnMes.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMes.Location = new System.Drawing.Point(22, 400);
this.btnMes.Margin = new System.Windows.Forms.Padding(4);
this.btnMes.Name = "btnMes";
this.btnMes.Size = new System.Drawing.Size(300, 87);
this.btnMes.TabIndex = 4;
this.btnMes.Text = "生产计划";
this.btnMes.UseVisualStyleBackColor = true;
//
// btnAccount
//
this.btnAccount.BackgroundImage = global::RfidWeb.Properties.Resources.btn;
this.btnAccount.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnAccount.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAccount.Location = new System.Drawing.Point(22, 305);
this.btnAccount.Margin = new System.Windows.Forms.Padding(4);
this.btnAccount.Name = "btnAccount";
this.btnAccount.Size = new System.Drawing.Size(300, 87);
this.btnAccount.TabIndex = 3;
this.btnAccount.Text = "账户管理";
this.btnAccount.UseVisualStyleBackColor = true;
this.btnAccount.Click += new System.EventHandler(this.btnAccount_Click);
//
// btnAlarm
//
this.btnAlarm.BackgroundImage = global::RfidWeb.Properties.Resources.btn;
this.btnAlarm.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnAlarm.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAlarm.Location = new System.Drawing.Point(22, 210);
this.btnAlarm.Margin = new System.Windows.Forms.Padding(4);
this.btnAlarm.Name = "btnAlarm";
this.btnAlarm.Size = new System.Drawing.Size(300, 87);
this.btnAlarm.TabIndex = 3;
this.btnAlarm.Text = "报警记录";
this.btnAlarm.UseVisualStyleBackColor = true;
this.btnAlarm.Click += new System.EventHandler(this.btnAlarm_Click);
//
// btnExit
//
this.btnExit.BackgroundImage = global::RfidWeb.Properties.Resources.btn;
this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnExit.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnExit.Location = new System.Drawing.Point(22, 812);
this.btnExit.Margin = new System.Windows.Forms.Padding(4);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new System.Drawing.Size(291, 87);
this.btnExit.TabIndex = 2;
this.btnExit.Text = "退出";
this.btnExit.UseVisualStyleBackColor = true;
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
//
// btnArgument
//
this.btnArgument.BackgroundImage = global::RfidWeb.Properties.Resources.btn;
this.btnArgument.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnArgument.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnArgument.Location = new System.Drawing.Point(22, 115);
this.btnArgument.Margin = new System.Windows.Forms.Padding(4);
this.btnArgument.Name = "btnArgument";
this.btnArgument.Size = new System.Drawing.Size(300, 87);
this.btnArgument.TabIndex = 1;
this.btnArgument.Text = "参数界面";
this.btnArgument.UseVisualStyleBackColor = true;
this.btnArgument.Click += new System.EventHandler(this.btnArgument_Click);
//
// btnMain
//
this.btnMain.BackgroundImage = global::RfidWeb.Properties.Resources.btn_sel1;
this.btnMain.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btnMain.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMain.Location = new System.Drawing.Point(22, 17);
this.btnMain.Margin = new System.Windows.Forms.Padding(4);
this.btnMain.Name = "btnMain";
this.btnMain.Size = new System.Drawing.Size(300, 90);
this.btnMain.TabIndex = 0;
this.btnMain.Text = "首页";
this.btnMain.UseVisualStyleBackColor = true;
this.btnMain.Click += new System.EventHandler(this.btnMain_Click);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.Transparent;
this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel2.Controls.Add(this.panel4);
this.panel2.Controls.Add(this.panel3);
this.panel2.Controls.Add(this.panel5);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1280, 68);
this.panel2.TabIndex = 0;
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.Transparent;
this.panel4.BackgroundImage = global::RfidWeb.Properties.Resources.frm21;
this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(370, 0);
this.panel4.Margin = new System.Windows.Forms.Padding(4);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(471, 68);
this.panel4.TabIndex = 4;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.Transparent;
this.panel3.Controls.Add(this.pictureBox1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Margin = new System.Windows.Forms.Padding(4);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(370, 68);
this.panel3.TabIndex = 1;
//
// pictureBox1
//
this.pictureBox1.Image = global::RfidWeb.Properties.Resources.log;
this.pictureBox1.Location = new System.Drawing.Point(22, 14);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(4);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(340, 40);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// panel5
//
this.panel5.BackColor = System.Drawing.Color.Transparent;
this.panel5.Controls.Add(this.label1);
this.panel5.Controls.Add(this.label2);
this.panel5.Dock = System.Windows.Forms.DockStyle.Right;
this.panel5.Location = new System.Drawing.Point(841, 0);
this.panel5.Margin = new System.Windows.Forms.Padding(4);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(439, 68);
this.panel5.TabIndex = 3;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(116, 12);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(217, 40);
this.label1.TabIndex = 0;
this.label1.Text = "2024/10/25";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(276, 12);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(177, 40);
this.label2.TabIndex = 1;
this.label2.Text = "10:25:01";
//
// FormMain
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1280, 1024);
this.Controls.Add(this.panel1);
this.Name = "FormMain";
this.Text = "FormMain";
this.panel1.ResumeLayout(false);
this.panel6.ResumeLayout(false);
this.panel7.ResumeLayout(false);
this.panel8.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button btnMes;
private System.Windows.Forms.Button btnAccount;
private System.Windows.Forms.Button btnAlarm;
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.Button btnArgument;
private System.Windows.Forms.Button btnMain;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.Panel panContent;
private System.Windows.Forms.Panel panel9;
}
}

@ -0,0 +1,156 @@
using HslCommunication.LogNet;
using HZH_Controls.Forms;
using NewLife.Threading;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using RfidWeb.Frm;
using Tool;
using System.Security.Principal;
using DB.Entity;
using DB;
namespace RfidWeb
{
public partial class FormMain : Form
{
private ILogNet logNet = ILogNetFactory.GetLogNet;
TimerX _timer;
public FormMain()
{
DbInfo.Init(typeof(UserInfo).Assembly);
InitializeComponent();
//if (this.FormBorderStyle == FormBorderStyle.None)
//{
// this.FormBorderStyle = FormBorderStyle.FixedSingle;
// this.WindowState = FormWindowState.Normal;
//}
//else
//{
// this.FormBorderStyle = FormBorderStyle.None;
// this.WindowState = FormWindowState.Maximized;
//}
Init();
}
private void Init()
{
_timer = new TimerX(TimeState, null, 10, 1000);
// 如果所有的日志在记录之前需要在控制台显示出来
logNet.BeforeSaveToFile += (object sender, HslEventArgs e) =>
{
Console.WriteLine(e.HslMessage.ToString());
};
logNet.ConsoleOutput = true;
logNet.WriteInfo("nihao");
this.panContent.Controls.Clear();
this.panContent.Controls.Add(new UserMain());
}
/// <summary>移除过期的缓存项</summary>
void TimeState(Object state)
{
var dataTime = DateTime.Now;
this.Invoke(() =>
{
label1.Text = dataTime.ToString("yyyy'/'MM'/'dd");
label2.Text = dataTime.ToString("HH:mm:ss");
});
}
private void btnExit_Click(object sender, EventArgs e)
{
if (FrmDialog.ShowDialog(this, "是否退出系统?", "提示窗体", true)
== System.Windows.Forms.DialogResult.OK)
{
Application.Exit();
}
}
private void SetBackGroupImage(Button button)
{
var imageOld = Properties.Resources.btn;
List<Button> ls = new List<Button>()
{
btnMain,
btnArgument,
btnAlarm,
btnAccount,
btnMes
};
foreach (var bt in ls)
{
if (bt.BackgroundImage != imageOld)
{
bt.BackgroundImage=imageOld;
}
}
var imageNew = Properties.Resources.btn_sel1;
if (button != null)
{
button.BackgroundImage = imageNew;
}
}
private void btnMain_Click(object sender, EventArgs e)
{
panContent.Controls.Clear();
panContent.Controls.Add(new UserMain());
SetBackGroupImage(sender as Button);
}
private void btnArgument_Click(object sender, EventArgs e)
{
SetBackGroupImage(sender as Button);
}
private void btnAlarm_Click(object sender, EventArgs e)
{
SetBackGroupImage(sender as Button);
}
/// <summary>
/// 帐号管理
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnAccount_Click(object sender, EventArgs e)
{
bool isLogin = UserManager.IsExit();
if (!isLogin)
{
FormLogin loigLogin = new FormLogin();
loigLogin.StartPosition = FormStartPosition.CenterScreen; // 设置窗口显示在屏幕中央
loigLogin.ShowDialog();
}
isLogin = UserManager.IsExit();
if (isLogin)
{
panContent.Controls.Clear();
panContent.Controls.Add(new FormAccount());
SetBackGroupImage(sender as Button);
}
}
}
}

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

@ -0,0 +1,277 @@
namespace RfidWeb.Frm
{
partial class FormAccount
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAccount));
this.panelTop = new System.Windows.Forms.Panel();
this.ucBtnDel = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnUpdate = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnAdd = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnSelect = new HZH_Controls.Controls.UCBtnExt();
this.textBoxSel = new HZH_Controls.Controls.TextBoxEx();
this.panelBottom = new System.Windows.Forms.Panel();
this.ucPagerControl21 = new HZH_Controls.Controls.UCPagerControl2();
this.panel1 = new System.Windows.Forms.Panel();
this.ucDataGridViewContent = new HZH_Controls.Controls.UCDataGridView();
this.panelTop.SuspendLayout();
this.panelBottom.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// panelTop
//
this.panelTop.Controls.Add(this.ucBtnDel);
this.panelTop.Controls.Add(this.ucBtnUpdate);
this.panelTop.Controls.Add(this.ucBtnAdd);
this.panelTop.Controls.Add(this.ucBtnSelect);
this.panelTop.Controls.Add(this.textBoxSel);
this.panelTop.Dock = System.Windows.Forms.DockStyle.Top;
this.panelTop.Location = new System.Drawing.Point(0, 0);
this.panelTop.Name = "panelTop";
this.panelTop.Size = new System.Drawing.Size(910, 80);
this.panelTop.TabIndex = 0;
//
// ucBtnDel
//
this.ucBtnDel.BackColor = System.Drawing.Color.White;
this.ucBtnDel.BtnBackColor = System.Drawing.Color.White;
this.ucBtnDel.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnDel.BtnForeColor = System.Drawing.Color.White;
this.ucBtnDel.BtnText = "删除 ";
this.ucBtnDel.ConerRadius = 5;
this.ucBtnDel.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnDel.EnabledMouseEffect = false;
this.ucBtnDel.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnDel.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnDel.IsRadius = true;
this.ucBtnDel.IsShowRect = true;
this.ucBtnDel.IsShowTips = false;
this.ucBtnDel.Location = new System.Drawing.Point(654, 26);
this.ucBtnDel.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnDel.Name = "ucBtnDel";
this.ucBtnDel.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(83)))), ((int)(((byte)(171)))));
this.ucBtnDel.RectWidth = 1;
this.ucBtnDel.Size = new System.Drawing.Size(121, 28);
this.ucBtnDel.TabIndex = 5;
this.ucBtnDel.TabStop = false;
this.ucBtnDel.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnDel.TipsText = "";
this.ucBtnDel.BtnClick += new System.EventHandler(this.ucBtnDel_BtnClick);
//
// ucBtnUpdate
//
this.ucBtnUpdate.BackColor = System.Drawing.Color.White;
this.ucBtnUpdate.BtnBackColor = System.Drawing.Color.White;
this.ucBtnUpdate.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnUpdate.BtnForeColor = System.Drawing.Color.White;
this.ucBtnUpdate.BtnText = "修改";
this.ucBtnUpdate.ConerRadius = 5;
this.ucBtnUpdate.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnUpdate.EnabledMouseEffect = false;
this.ucBtnUpdate.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnUpdate.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnUpdate.IsRadius = true;
this.ucBtnUpdate.IsShowRect = true;
this.ucBtnUpdate.IsShowTips = false;
this.ucBtnUpdate.Location = new System.Drawing.Point(514, 26);
this.ucBtnUpdate.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnUpdate.Name = "ucBtnUpdate";
this.ucBtnUpdate.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(83)))), ((int)(((byte)(171)))));
this.ucBtnUpdate.RectWidth = 1;
this.ucBtnUpdate.Size = new System.Drawing.Size(121, 28);
this.ucBtnUpdate.TabIndex = 4;
this.ucBtnUpdate.TabStop = false;
this.ucBtnUpdate.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnUpdate.TipsText = "";
this.ucBtnUpdate.BtnClick += new System.EventHandler(this.ucBtnUpdate_BtnClick);
//
// ucBtnAdd
//
this.ucBtnAdd.BackColor = System.Drawing.Color.White;
this.ucBtnAdd.BtnBackColor = System.Drawing.Color.White;
this.ucBtnAdd.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnAdd.BtnForeColor = System.Drawing.Color.White;
this.ucBtnAdd.BtnText = "添加";
this.ucBtnAdd.ConerRadius = 5;
this.ucBtnAdd.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnAdd.EnabledMouseEffect = false;
this.ucBtnAdd.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnAdd.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnAdd.IsRadius = true;
this.ucBtnAdd.IsShowRect = true;
this.ucBtnAdd.IsShowTips = false;
this.ucBtnAdd.Location = new System.Drawing.Point(375, 26);
this.ucBtnAdd.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnAdd.Name = "ucBtnAdd";
this.ucBtnAdd.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(83)))), ((int)(((byte)(171)))));
this.ucBtnAdd.RectWidth = 1;
this.ucBtnAdd.Size = new System.Drawing.Size(121, 28);
this.ucBtnAdd.TabIndex = 3;
this.ucBtnAdd.TabStop = false;
this.ucBtnAdd.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnAdd.TipsText = "";
this.ucBtnAdd.BtnClick += new System.EventHandler(this.ucBtnAdd_BtnClick);
//
// ucBtnSelect
//
this.ucBtnSelect.BackColor = System.Drawing.Color.White;
this.ucBtnSelect.BtnBackColor = System.Drawing.Color.White;
this.ucBtnSelect.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnSelect.BtnForeColor = System.Drawing.Color.White;
this.ucBtnSelect.BtnText = "查询";
this.ucBtnSelect.ConerRadius = 5;
this.ucBtnSelect.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnSelect.EnabledMouseEffect = false;
this.ucBtnSelect.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnSelect.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnSelect.IsRadius = true;
this.ucBtnSelect.IsShowRect = true;
this.ucBtnSelect.IsShowTips = false;
this.ucBtnSelect.Location = new System.Drawing.Point(226, 26);
this.ucBtnSelect.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnSelect.Name = "ucBtnSelect";
this.ucBtnSelect.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(83)))), ((int)(((byte)(171)))));
this.ucBtnSelect.RectWidth = 1;
this.ucBtnSelect.Size = new System.Drawing.Size(121, 28);
this.ucBtnSelect.TabIndex = 2;
this.ucBtnSelect.TabStop = false;
this.ucBtnSelect.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnSelect.TipsText = "";
this.ucBtnSelect.BtnClick += new System.EventHandler(this.ucBtnSelect_BtnClick);
//
// textBoxSel
//
this.textBoxSel.DecLength = 2;
this.textBoxSel.InputType = HZH_Controls.TextInputType.NotControl;
this.textBoxSel.Location = new System.Drawing.Point(33, 26);
this.textBoxSel.MaxValue = new decimal(new int[] {
1000000,
0,
0,
0});
this.textBoxSel.MinValue = new decimal(new int[] {
1000000,
0,
0,
-2147483648});
this.textBoxSel.MyRectangle = new System.Drawing.Rectangle(0, 0, 0, 0);
this.textBoxSel.Name = "textBoxSel";
this.textBoxSel.OldText = null;
this.textBoxSel.PromptColor = System.Drawing.Color.Gray;
this.textBoxSel.PromptFont = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.textBoxSel.PromptText = "";
this.textBoxSel.RegexPattern = "";
this.textBoxSel.Size = new System.Drawing.Size(158, 28);
this.textBoxSel.TabIndex = 0;
//
// panelBottom
//
this.panelBottom.Controls.Add(this.ucPagerControl21);
this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelBottom.Location = new System.Drawing.Point(0, 894);
this.panelBottom.Name = "panelBottom";
this.panelBottom.Size = new System.Drawing.Size(910, 41);
this.panelBottom.TabIndex = 1;
//
// ucPagerControl21
//
this.ucPagerControl21.BackColor = System.Drawing.Color.White;
this.ucPagerControl21.DataSource = ((System.Collections.Generic.List<object>)(resources.GetObject("ucPagerControl21.DataSource")));
this.ucPagerControl21.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucPagerControl21.Location = new System.Drawing.Point(0, 0);
this.ucPagerControl21.Name = "ucPagerControl21";
this.ucPagerControl21.PageCount = 0;
this.ucPagerControl21.PageIndex = 1;
this.ucPagerControl21.PageModel = HZH_Controls.Controls.PageModel.Soure;
this.ucPagerControl21.PageSize = 10;
this.ucPagerControl21.Size = new System.Drawing.Size(910, 41);
this.ucPagerControl21.StartIndex = 0;
this.ucPagerControl21.TabIndex = 0;
this.ucPagerControl21.ShowSourceChanged += new HZH_Controls.Controls.PageControlEventHandler(this.ucPagerControl21_ShowSourceChanged);
//
// panel1
//
this.panel1.Controls.Add(this.ucDataGridViewContent);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 80);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(910, 814);
this.panel1.TabIndex = 4;
//
// ucDataGridViewContent
//
this.ucDataGridViewContent.BackColor = System.Drawing.Color.White;
this.ucDataGridViewContent.Columns = null;
this.ucDataGridViewContent.DataSource = null;
this.ucDataGridViewContent.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucDataGridViewContent.HeadFont = new System.Drawing.Font("微软雅黑", 12F);
this.ucDataGridViewContent.HeadHeight = 40;
this.ucDataGridViewContent.HeadPadingLeft = 0;
this.ucDataGridViewContent.HeadTextColor = System.Drawing.Color.Black;
this.ucDataGridViewContent.IsShowCheckBox = false;
this.ucDataGridViewContent.IsShowHead = true;
this.ucDataGridViewContent.Location = new System.Drawing.Point(0, 0);
this.ucDataGridViewContent.Name = "ucDataGridViewContent";
this.ucDataGridViewContent.Padding = new System.Windows.Forms.Padding(0, 40, 0, 0);
this.ucDataGridViewContent.RowHeight = 40;
this.ucDataGridViewContent.RowType = typeof(HZH_Controls.Controls.UCDataGridViewRow);
this.ucDataGridViewContent.Size = new System.Drawing.Size(910, 814);
this.ucDataGridViewContent.TabIndex = 0;
//
// FormAccount
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.Transparent;
this.Controls.Add(this.panel1);
this.Controls.Add(this.panelBottom);
this.Controls.Add(this.panelTop);
this.Name = "FormAccount";
this.Size = new System.Drawing.Size(910, 935);
this.panelTop.ResumeLayout(false);
this.panelTop.PerformLayout();
this.panelBottom.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panelTop;
private System.Windows.Forms.Panel panelBottom;
private HZH_Controls.Controls.TextBoxEx textBoxSel;
private HZH_Controls.Controls.UCBtnExt ucBtnSelect;
private HZH_Controls.Controls.UCBtnExt ucBtnAdd;
private HZH_Controls.Controls.UCBtnExt ucBtnUpdate;
private HZH_Controls.Controls.UCBtnExt ucBtnDel;
private System.Windows.Forms.Panel panel1;
private HZH_Controls.Controls.UCPagerControl2 ucPagerControl21;
private HZH_Controls.Controls.UCDataGridView ucDataGridViewContent;
}
}

@ -0,0 +1,158 @@
using HZH_Controls.Controls;
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.Web;
using System.Windows.Forms;
using DB.Dto;
using DB.Service;
using HZH_Controls.Forms;
namespace RfidWeb.Frm
{
public partial class FormAccount : UserControl
{
private UserService userService = new UserService();
private UserDto OlduserDto;
public FormAccount()
{
InitializeComponent();
OlduserDto= UserManager.GetUser();
Init();
}
private void Init()
{
List<DataGridViewColumnEntity> lstCulumns = new List<DataGridViewColumnEntity>
{
new DataGridViewColumnEntity() { DataField = "Id", HeadText = "编号", Width = 100, WidthType = SizeType.Absolute },
new DataGridViewColumnEntity() { DataField = "UserName", HeadText = "姓名", Width = 50, WidthType = SizeType.Percent },
new DataGridViewColumnEntity() { DataField = "RoleName", HeadText = "权限名称", Width = 50, WidthType = SizeType.Percent }
};
this.ucDataGridViewContent.Columns = lstCulumns;
this.ucDataGridViewContent.IsShowCheckBox = true;
ucPagerControl21.PageModel = PageModel.PageCount;
ucPagerControl21.PageIndex = 1;
ucPagerControl21.PageSize = 20;
// ucPagerControl21_ShowSourceChanged(new object());
}
private void ucPagerControl21_ShowSourceChanged(object currentSource)
{
string key = this.textBoxSel.Text.Trim();
var index = ucPagerControl21.PageIndex;
List<int> lsInts = new List<int>();
if (OlduserDto != null)
{
switch (OlduserDto.RoleLevel)
{
case 1:
lsInts.AddRange(new[] { 1, 2, 3 });
break;
case 2:
lsInts.AddRange(new[] { 2, 3 });
break;
case 3:
lsInts.Add(3);
break;
}
}
var page = userService.GetPagedList(index, ucPagerControl21.PageSize, key,lsInts);
ucPagerControl21.PageCount = page.TotalPages;
this.ucDataGridViewContent.IsShowCheckBox = true;
// this.ucDataGridViewContent.DataSource = null;
this.ucDataGridViewContent.DataSource = page.Items;
}
private void ucBtnSelect_BtnClick(object sender, EventArgs e)
{
ucPagerControl21_ShowSourceChanged(new object());
}
private void ucBtnAdd_BtnClick(object sender, EventArgs e)
{
var user = UserManager.GetUser();
if (user != null)
{
FormRegister formRegis = new FormRegister(user);
formRegis.StartPosition = FormStartPosition.CenterScreen; // 设置窗口显示在屏幕中央
formRegis.ShowDialog();
}
else
{
FormLogin fromLogin=new FormLogin();
fromLogin.ShowDialog();
}
}
private void ucBtnDel_BtnClick(object sender, EventArgs e)
{
var dataGridViewRows = ucDataGridViewContent.SelectRows;
if (dataGridViewRows.Count == 0)
{
FrmDialog.ShowDialog(this, "请勾选相关信息", "警告窗体");
return;
}
List<long> ls = new List<long>();
foreach (var dr in dataGridViewRows)
{
var dto = dr.DataSource as UserDto;
if (dto != null)
{
ls.Add(dto.Id);
}
}
if (ls.Any())
{
userService.UpdateDel(ls);
ucPagerControl21.PageIndex = 1;
this.ucDataGridViewContent.IsShowCheckBox = false;
ucPagerControl21_ShowSourceChanged(new object());
}
}
private void ucBtnUpdate_BtnClick(object sender, EventArgs e)
{
var dataGridViewRows = ucDataGridViewContent.SelectRows;
if (dataGridViewRows.Count!=1)
{
FrmDialog.ShowDialog(this, "只能修改一条", "警告窗体");
return;
}
var dto = dataGridViewRows.First().DataSource as UserDto;
FormRegister formRegis = new FormRegister(dto.Id, OlduserDto);
formRegis.StartPosition = FormStartPosition.CenterScreen; // 设置窗口显示在屏幕中央
formRegis.ShowDialog();
ucPagerControl21.PageIndex = 1;
this.ucDataGridViewContent.IsShowCheckBox = false;
ucPagerControl21_ShowSourceChanged(new object());
}
}
}

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

@ -0,0 +1,350 @@
namespace RfidWeb.Frm
{
partial class FormRegister
{
/// <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()
{
this.lblTitle = new System.Windows.Forms.Label();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.btnCancel = new HZH_Controls.Controls.UCBtnExt();
this.btnOK = new HZH_Controls.Controls.UCBtnExt();
this.panel1 = new System.Windows.Forms.Panel();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.ucCombox1 = new HZH_Controls.Controls.UCCombox();
this.ucTextBoxPwd = new HZH_Controls.Controls.UCTextBoxEx();
this.ucTextBoxUser = new HZH_Controls.Controls.UCTextBoxEx();
this.tableLayoutPanel1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// lblTitle
//
this.lblTitle.BackColor = System.Drawing.Color.Transparent;
this.lblTitle.Dock = System.Windows.Forms.DockStyle.Top;
this.lblTitle.Font = new System.Drawing.Font("微软雅黑", 17F);
this.lblTitle.Location = new System.Drawing.Point(0, 0);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(835, 60);
this.lblTitle.TabIndex = 6;
this.lblTitle.Text = "注册页面";
this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.btnCancel, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.btnOK, 0, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 458);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 101F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(835, 101);
this.tableLayoutPanel1.TabIndex = 7;
//
// btnCancel
//
this.btnCancel.BackColor = System.Drawing.Color.Transparent;
this.btnCancel.BtnBackColor = System.Drawing.Color.Transparent;
this.btnCancel.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCancel.BtnForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.btnCancel.BtnText = "取消";
this.btnCancel.ConerRadius = 5;
this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnCancel.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnCancel.EnabledMouseEffect = false;
this.btnCancel.FillColor = System.Drawing.SystemColors.Control;
this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnCancel.IsRadius = false;
this.btnCancel.IsShowRect = false;
this.btnCancel.IsShowTips = false;
this.btnCancel.Location = new System.Drawing.Point(417, 0);
this.btnCancel.Margin = new System.Windows.Forms.Padding(0);
this.btnCancel.Name = "btnCancel";
this.btnCancel.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.btnCancel.RectWidth = 1;
this.btnCancel.Size = new System.Drawing.Size(418, 101);
this.btnCancel.TabIndex = 2;
this.btnCancel.TabStop = false;
this.btnCancel.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.btnCancel.TipsText = "";
this.btnCancel.BtnClick += new System.EventHandler(this.btnCancel_BtnClick);
//
// btnOK
//
this.btnOK.BackColor = System.Drawing.Color.Transparent;
this.btnOK.BtnBackColor = System.Drawing.Color.Transparent;
this.btnOK.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOK.BtnForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(85)))), ((int)(((byte)(51)))));
this.btnOK.BtnText = "确定";
this.btnOK.ConerRadius = 5;
this.btnOK.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnOK.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnOK.EnabledMouseEffect = false;
this.btnOK.FillColor = System.Drawing.SystemColors.Control;
this.btnOK.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.btnOK.IsRadius = false;
this.btnOK.IsShowRect = false;
this.btnOK.IsShowTips = false;
this.btnOK.Location = new System.Drawing.Point(0, 0);
this.btnOK.Margin = new System.Windows.Forms.Padding(0);
this.btnOK.Name = "btnOK";
this.btnOK.RectColor = System.Drawing.SystemColors.Control;
this.btnOK.RectWidth = 1;
this.btnOK.Size = new System.Drawing.Size(417, 101);
this.btnOK.TabIndex = 1;
this.btnOK.TabStop = false;
this.btnOK.TipsColor = System.Drawing.SystemColors.Control;
this.btnOK.TipsText = "";
this.btnOK.BtnClick += new System.EventHandler(this.btnOK_BtnClick);
//
// panel1
//
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.ucCombox1);
this.panel1.Controls.Add(this.ucTextBoxPwd);
this.panel1.Controls.Add(this.ucTextBoxUser);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 60);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(835, 398);
this.panel1.TabIndex = 8;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.Location = new System.Drawing.Point(199, 218);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(99, 41);
this.label5.TabIndex = 12;
this.label5.Text = "级 别:";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.ForeColor = System.Drawing.Color.OrangeRed;
this.label4.Location = new System.Drawing.Point(678, 133);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(122, 41);
this.label4.TabIndex = 11;
this.label4.Text = "用户名:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.ForeColor = System.Drawing.Color.OrangeRed;
this.label3.Location = new System.Drawing.Point(679, 59);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(122, 41);
this.label3.TabIndex = 10;
this.label3.Text = "用户名:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(199, 133);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(99, 41);
this.label2.TabIndex = 9;
this.label2.Text = "密 码:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(199, 59);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(122, 41);
this.label1.TabIndex = 8;
this.label1.Text = "用户名:";
//
// ucCombox1
//
this.ucCombox1.BackColor = System.Drawing.Color.Transparent;
this.ucCombox1.BackColorExt = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
this.ucCombox1.BoxStyle = System.Windows.Forms.ComboBoxStyle.DropDown;
this.ucCombox1.ConerRadius = 5;
this.ucCombox1.DropPanelHeight = -1;
this.ucCombox1.FillColor = System.Drawing.Color.White;
this.ucCombox1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucCombox1.IsRadius = true;
this.ucCombox1.IsShowRect = true;
this.ucCombox1.ItemHeight = 35;
this.ucCombox1.ItemWidth = 70;
this.ucCombox1.Location = new System.Drawing.Point(352, 220);
this.ucCombox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucCombox1.Name = "ucCombox1";
this.ucCombox1.Padding = new System.Windows.Forms.Padding(2);
this.ucCombox1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucCombox1.RectWidth = 1;
this.ucCombox1.SelectedIndex = -1;
this.ucCombox1.SelectedValue = "";
this.ucCombox1.SelectItemColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.ucCombox1.SelectItemForeColor = System.Drawing.Color.White;
this.ucCombox1.Size = new System.Drawing.Size(322, 44);
this.ucCombox1.Source = null;
this.ucCombox1.TabIndex = 7;
this.ucCombox1.TextValue = null;
this.ucCombox1.TriangleColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
//
// ucTextBoxPwd
//
this.ucTextBoxPwd.BackColor = System.Drawing.Color.Transparent;
this.ucTextBoxPwd.ConerRadius = 5;
this.ucTextBoxPwd.Cursor = System.Windows.Forms.Cursors.IBeam;
this.ucTextBoxPwd.DecLength = 2;
this.ucTextBoxPwd.FillColor = System.Drawing.Color.Empty;
this.ucTextBoxPwd.FocusBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucTextBoxPwd.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucTextBoxPwd.InputText = "";
this.ucTextBoxPwd.InputType = HZH_Controls.TextInputType.NotControl;
this.ucTextBoxPwd.IsFocusColor = true;
this.ucTextBoxPwd.IsFouceShowKey = false;
this.ucTextBoxPwd.IsRadius = true;
this.ucTextBoxPwd.IsShowClearBtn = true;
this.ucTextBoxPwd.IsShowKeyboard = false;
this.ucTextBoxPwd.IsShowRect = true;
this.ucTextBoxPwd.IsShowSearchBtn = false;
this.ucTextBoxPwd.KeyBoardType = HZH_Controls.Controls.KeyBoardType.UCKeyBorderAll_EN;
this.ucTextBoxPwd.Location = new System.Drawing.Point(352, 133);
this.ucTextBoxPwd.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucTextBoxPwd.MaxValue = new decimal(new int[] {
1000000,
0,
0,
0});
this.ucTextBoxPwd.MinValue = new decimal(new int[] {
1000000,
0,
0,
-2147483648});
this.ucTextBoxPwd.Name = "ucTextBoxPwd";
this.ucTextBoxPwd.Padding = new System.Windows.Forms.Padding(5);
this.ucTextBoxPwd.PasswordChar = '*';
this.ucTextBoxPwd.PromptColor = System.Drawing.Color.Gray;
this.ucTextBoxPwd.PromptFont = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucTextBoxPwd.PromptText = "";
this.ucTextBoxPwd.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucTextBoxPwd.RectWidth = 1;
this.ucTextBoxPwd.RegexPattern = "";
this.ucTextBoxPwd.Size = new System.Drawing.Size(322, 42);
this.ucTextBoxPwd.TabIndex = 6;
this.ucTextBoxPwd.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
//
// ucTextBoxUser
//
this.ucTextBoxUser.BackColor = System.Drawing.Color.Transparent;
this.ucTextBoxUser.ConerRadius = 5;
this.ucTextBoxUser.Cursor = System.Windows.Forms.Cursors.IBeam;
this.ucTextBoxUser.DecLength = 2;
this.ucTextBoxUser.FillColor = System.Drawing.Color.Empty;
this.ucTextBoxUser.FocusBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucTextBoxUser.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucTextBoxUser.InputText = "";
this.ucTextBoxUser.InputType = HZH_Controls.TextInputType.NotControl;
this.ucTextBoxUser.IsFocusColor = true;
this.ucTextBoxUser.IsFouceShowKey = false;
this.ucTextBoxUser.IsRadius = true;
this.ucTextBoxUser.IsShowClearBtn = true;
this.ucTextBoxUser.IsShowKeyboard = false;
this.ucTextBoxUser.IsShowRect = true;
this.ucTextBoxUser.IsShowSearchBtn = false;
this.ucTextBoxUser.KeyBoardType = HZH_Controls.Controls.KeyBoardType.UCKeyBorderAll_EN;
this.ucTextBoxUser.Location = new System.Drawing.Point(352, 59);
this.ucTextBoxUser.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucTextBoxUser.MaxValue = new decimal(new int[] {
1000000,
0,
0,
0});
this.ucTextBoxUser.MinValue = new decimal(new int[] {
1000000,
0,
0,
-2147483648});
this.ucTextBoxUser.Name = "ucTextBoxUser";
this.ucTextBoxUser.Padding = new System.Windows.Forms.Padding(5);
this.ucTextBoxUser.PasswordChar = '\0';
this.ucTextBoxUser.PromptColor = System.Drawing.Color.Gray;
this.ucTextBoxUser.PromptFont = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucTextBoxUser.PromptText = "";
this.ucTextBoxUser.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucTextBoxUser.RectWidth = 1;
this.ucTextBoxUser.RegexPattern = "";
this.ucTextBoxUser.Size = new System.Drawing.Size(322, 42);
this.ucTextBoxUser.TabIndex = 5;
this.ucTextBoxUser.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
//
// FormRegister
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(835, 559);
this.Controls.Add(this.panel1);
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.lblTitle);
this.Name = "FormRegister";
this.Text = "注册页面";
this.tableLayoutPanel1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label lblTitle;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private HZH_Controls.Controls.UCBtnExt btnOK;
private HZH_Controls.Controls.UCBtnExt btnCancel;
private System.Windows.Forms.Panel panel1;
private HZH_Controls.Controls.UCCombox ucCombox1;
private HZH_Controls.Controls.UCTextBoxEx ucTextBoxPwd;
private HZH_Controls.Controls.UCTextBoxEx ucTextBoxUser;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label5;
}
}

@ -0,0 +1,139 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DB.Dto;
using DB.Entity;
using DB.Service;
using NewLife;
using NewLife.Data;
using Tool;
namespace RfidWeb.Frm
{
public partial class FormRegister : Form
{
private readonly string Kes = "nodyang";
private RoleService roleService = new RoleService();
private UserService userService = new UserService();
private long id = 0;
private UserDto OlduserDto;
public FormRegister()
{
InitializeComponent();
label3.Text = "";
label4.Text = "";
FillCbo();
ucCombox1.SelectedIndex = 0;
}
public void FillCbo()
{
var list = roleService.GetList();
List<KeyValuePair<string, string>> key = new List<KeyValuePair<string, string>>();
foreach (var role in list)
{
key.Add(new KeyValuePair<string, string>(role.ID.ToString(), role.RoleName));
}
ucCombox1.Source = key;
}
public FormRegister(UserDto userDto):this()
{
this.OlduserDto = userDto;
}
public FormRegister(long id,UserDto userDto)
{
InitializeComponent();
this.OlduserDto = userDto;
this.id = id;
var info = userService.Query(id);
this.ucTextBoxUser.InputText = info.UserName;
this.ucTextBoxPwd.InputText = Aes.Create().Decrypt(info.Pwd.ToBase64(), Kes.GetBytes()).ToStr();
label3.Text = "";
label4.Text = "";
FillCbo();
ucCombox1.SelectedValue =info.RoleId.ToString();
}
private void btnCancel_BtnClick(object sender, EventArgs e)
{
this.Close();
}
private void btnOK_BtnClick(object sender, EventArgs e)
{
label3.Text = "";
label4.Text = "";
long roleId = ucCombox1.SelectedValue.ToLong();
string user = ucTextBoxUser.InputText;
string pwd=ucTextBoxPwd.InputText;
if (string.IsNullOrEmpty(user))
{
label3.Text = "*";
return;
}
if (string.IsNullOrEmpty(pwd))
{
label4.Text = "*";
return;
}
var userDto = userService.GetOne(user,id);
if (userDto != null)
{
this.label3.Text = "已经存在";
return;
}
if (id == 0)
{
UserInfo userInfo = new UserInfo
{
ID = SnowflakeFactory.NewId,
UserName = user,
Pwd = Aes.Create().Encrypt(pwd.GetBytes(), Kes.GetBytes()).ToBase64(),
RoleId = roleId,
CreateUserId = OlduserDto.Id.ToString(),
CreateUserName = OlduserDto.UserName,
CreateDate = DateTime.Now,
LastModifyUserId = OlduserDto.Id.ToString(),
LastModifyUserName = OlduserDto.UserName,
LastModifyDate = DateTime.Now
};
userService.Add(userInfo);
}
else
{
var info = userService.Query(id);
info.UserName = user;
info.Pwd = Aes.Create().Encrypt(pwd.GetBytes(), Kes.GetBytes()).ToBase64();
info.RoleId=roleId;
info.LastModifyUserId = OlduserDto.Id.ToString();
info.LastModifyUserName = OlduserDto.UserName;
info.LastModifyDate = DateTime.Now;
userService.Update(info);
}
this.Close();
}
}
}

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

@ -0,0 +1,801 @@
namespace RfidWeb.Frm
{
partial class UserMain
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.panel2 = new System.Windows.Forms.Panel();
this.ucBtnExt15 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt14 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt13 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt12 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt11 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt10 = new HZH_Controls.Controls.UCBtnExt();
this.label15 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.ucBtnExt1 = new HZH_Controls.Controls.UCBtnExt();
this.label7 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.ucBtnExt3 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt2 = new HZH_Controls.Controls.UCBtnExt();
this.panel4 = new System.Windows.Forms.Panel();
this.ucBtnExt9 = new HZH_Controls.Controls.UCBtnExt();
this.label9 = new System.Windows.Forms.Label();
this.ucBtnLogin = new HZH_Controls.Controls.UCBtnExt();
this.panel5 = new System.Windows.Forms.Panel();
this.panel7 = new System.Windows.Forms.Panel();
this.label13 = new System.Windows.Forms.Label();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.ucBtnExt7 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt5 = new HZH_Controls.Controls.UCBtnExt();
this.panel6 = new System.Windows.Forms.Panel();
this.label18 = new System.Windows.Forms.Label();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.ucBtnExt6 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt8 = new HZH_Controls.Controls.UCBtnExt();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.hslMoveTxt = new HslControls.HslMoveText();
this.panel2.SuspendLayout();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
this.panel4.SuspendLayout();
this.panel5.SuspendLayout();
this.panel7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.panel6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(243)))), ((int)(((byte)(248)))));
this.panel2.Controls.Add(this.ucBtnExt15);
this.panel2.Controls.Add(this.ucBtnExt14);
this.panel2.Controls.Add(this.ucBtnExt13);
this.panel2.Controls.Add(this.ucBtnExt12);
this.panel2.Controls.Add(this.ucBtnExt11);
this.panel2.Controls.Add(this.ucBtnExt10);
this.panel2.Controls.Add(this.label15);
this.panel2.Controls.Add(this.label16);
this.panel2.Controls.Add(this.label14);
this.panel2.Controls.Add(this.label12);
this.panel2.Controls.Add(this.label10);
this.panel2.Controls.Add(this.label6);
this.panel2.Controls.Add(this.label8);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0);
this.panel2.Size = new System.Drawing.Size(910, 197);
this.panel2.TabIndex = 5;
//
// ucBtnExt15
//
this.ucBtnExt15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt15.BtnBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt15.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt15.BtnForeColor = System.Drawing.Color.Black;
this.ucBtnExt15.BtnText = "0";
this.ucBtnExt15.ConerRadius = 5;
this.ucBtnExt15.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt15.EnabledMouseEffect = false;
this.ucBtnExt15.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(248)))));
this.ucBtnExt15.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt15.IsRadius = true;
this.ucBtnExt15.IsShowRect = true;
this.ucBtnExt15.IsShowTips = false;
this.ucBtnExt15.Location = new System.Drawing.Point(724, 78);
this.ucBtnExt15.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt15.Name = "ucBtnExt15";
this.ucBtnExt15.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(242)))), ((int)(((byte)(247)))));
this.ucBtnExt15.RectWidth = 1;
this.ucBtnExt15.Size = new System.Drawing.Size(98, 49);
this.ucBtnExt15.TabIndex = 24;
this.ucBtnExt15.TabStop = false;
this.ucBtnExt15.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt15.TipsText = "";
//
// ucBtnExt14
//
this.ucBtnExt14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt14.BtnBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt14.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt14.BtnForeColor = System.Drawing.Color.Black;
this.ucBtnExt14.BtnText = "0";
this.ucBtnExt14.ConerRadius = 5;
this.ucBtnExt14.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt14.EnabledMouseEffect = false;
this.ucBtnExt14.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(248)))));
this.ucBtnExt14.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt14.IsRadius = true;
this.ucBtnExt14.IsShowRect = true;
this.ucBtnExt14.IsShowTips = false;
this.ucBtnExt14.Location = new System.Drawing.Point(551, 78);
this.ucBtnExt14.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt14.Name = "ucBtnExt14";
this.ucBtnExt14.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(242)))), ((int)(((byte)(247)))));
this.ucBtnExt14.RectWidth = 1;
this.ucBtnExt14.Size = new System.Drawing.Size(98, 49);
this.ucBtnExt14.TabIndex = 23;
this.ucBtnExt14.TabStop = false;
this.ucBtnExt14.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt14.TipsText = "";
//
// ucBtnExt13
//
this.ucBtnExt13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt13.BtnBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt13.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt13.BtnForeColor = System.Drawing.Color.Black;
this.ucBtnExt13.BtnText = "0";
this.ucBtnExt13.ConerRadius = 5;
this.ucBtnExt13.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt13.EnabledMouseEffect = false;
this.ucBtnExt13.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(248)))));
this.ucBtnExt13.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt13.IsRadius = true;
this.ucBtnExt13.IsShowRect = true;
this.ucBtnExt13.IsShowTips = false;
this.ucBtnExt13.Location = new System.Drawing.Point(407, 78);
this.ucBtnExt13.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt13.Name = "ucBtnExt13";
this.ucBtnExt13.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(242)))), ((int)(((byte)(247)))));
this.ucBtnExt13.RectWidth = 1;
this.ucBtnExt13.Size = new System.Drawing.Size(98, 49);
this.ucBtnExt13.TabIndex = 22;
this.ucBtnExt13.TabStop = false;
this.ucBtnExt13.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt13.TipsText = "";
//
// ucBtnExt12
//
this.ucBtnExt12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt12.BtnBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt12.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt12.BtnForeColor = System.Drawing.Color.Black;
this.ucBtnExt12.BtnText = "0";
this.ucBtnExt12.ConerRadius = 5;
this.ucBtnExt12.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt12.EnabledMouseEffect = false;
this.ucBtnExt12.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(248)))));
this.ucBtnExt12.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt12.IsRadius = true;
this.ucBtnExt12.IsShowRect = true;
this.ucBtnExt12.IsShowTips = false;
this.ucBtnExt12.Location = new System.Drawing.Point(272, 78);
this.ucBtnExt12.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt12.Name = "ucBtnExt12";
this.ucBtnExt12.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(242)))), ((int)(((byte)(247)))));
this.ucBtnExt12.RectWidth = 1;
this.ucBtnExt12.Size = new System.Drawing.Size(98, 49);
this.ucBtnExt12.TabIndex = 21;
this.ucBtnExt12.TabStop = false;
this.ucBtnExt12.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt12.TipsText = "";
//
// ucBtnExt11
//
this.ucBtnExt11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt11.BtnBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt11.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt11.BtnForeColor = System.Drawing.Color.Black;
this.ucBtnExt11.BtnText = "0";
this.ucBtnExt11.ConerRadius = 5;
this.ucBtnExt11.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt11.EnabledMouseEffect = false;
this.ucBtnExt11.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(248)))));
this.ucBtnExt11.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt11.IsRadius = true;
this.ucBtnExt11.IsShowRect = true;
this.ucBtnExt11.IsShowTips = false;
this.ucBtnExt11.Location = new System.Drawing.Point(144, 78);
this.ucBtnExt11.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt11.Name = "ucBtnExt11";
this.ucBtnExt11.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(242)))), ((int)(((byte)(247)))));
this.ucBtnExt11.RectWidth = 1;
this.ucBtnExt11.Size = new System.Drawing.Size(98, 49);
this.ucBtnExt11.TabIndex = 20;
this.ucBtnExt11.TabStop = false;
this.ucBtnExt11.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt11.TipsText = "";
//
// ucBtnExt10
//
this.ucBtnExt10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt10.BtnBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
this.ucBtnExt10.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt10.BtnForeColor = System.Drawing.Color.Black;
this.ucBtnExt10.BtnText = "0";
this.ucBtnExt10.ConerRadius = 5;
this.ucBtnExt10.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt10.EnabledMouseEffect = false;
this.ucBtnExt10.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(240)))), ((int)(((byte)(248)))));
this.ucBtnExt10.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt10.IsRadius = true;
this.ucBtnExt10.IsShowRect = true;
this.ucBtnExt10.IsShowTips = false;
this.ucBtnExt10.Location = new System.Drawing.Point(10, 78);
this.ucBtnExt10.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt10.Name = "ucBtnExt10";
this.ucBtnExt10.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(242)))), ((int)(((byte)(247)))));
this.ucBtnExt10.RectWidth = 1;
this.ucBtnExt10.Size = new System.Drawing.Size(98, 49);
this.ucBtnExt10.TabIndex = 19;
this.ucBtnExt10.TabStop = false;
this.ucBtnExt10.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt10.TipsText = "";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label15.Location = new System.Drawing.Point(974, 108);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(31, 33);
this.label15.TabIndex = 11;
this.label15.Text = "0";
this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label16.Location = new System.Drawing.Point(720, 36);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(175, 33);
this.label16.TabIndex = 10;
this.label16.Text = "2#裁刀温度";
this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label14
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.Location = new System.Drawing.Point(547, 36);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(175, 33);
this.label14.TabIndex = 8;
this.label14.Text = "1#裁刀温度";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.Location = new System.Drawing.Point(407, 36);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(143, 33);
this.label12.TabIndex = 6;
this.label12.Text = "2#收料轴";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.Location = new System.Drawing.Point(268, 36);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(143, 33);
this.label10.TabIndex = 4;
this.label10.Text = "1#收料轴";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(144, 36);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(143, 33);
this.label6.TabIndex = 2;
this.label6.Text = "裁切数量";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.Location = new System.Drawing.Point(10, 36);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(143, 33);
this.label8.TabIndex = 0;
this.label8.Text = "层合数量";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(243)))), ((int)(((byte)(248)))));
this.panel1.Controls.Add(this.ucBtnExt1);
this.panel1.Controls.Add(this.label7);
this.panel1.Location = new System.Drawing.Point(0, 210);
this.panel1.Margin = new System.Windows.Forms.Padding(3, 10, 3, 3);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(910, 103);
this.panel1.TabIndex = 6;
//
// ucBtnExt1
//
this.ucBtnExt1.BackColor = System.Drawing.Color.White;
this.ucBtnExt1.BtnBackColor = System.Drawing.Color.White;
this.ucBtnExt1.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt1.BtnForeColor = System.Drawing.Color.White;
this.ucBtnExt1.BtnText = "手动操作";
this.ucBtnExt1.ConerRadius = 5;
this.ucBtnExt1.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt1.EnabledMouseEffect = false;
this.ucBtnExt1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(151)))), ((int)(((byte)(79)))));
this.ucBtnExt1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt1.IsRadius = true;
this.ucBtnExt1.IsShowRect = true;
this.ucBtnExt1.IsShowTips = false;
this.ucBtnExt1.Location = new System.Drawing.Point(163, 21);
this.ucBtnExt1.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt1.Name = "ucBtnExt1";
this.ucBtnExt1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(151)))), ((int)(((byte)(79)))));
this.ucBtnExt1.RectWidth = 1;
this.ucBtnExt1.Size = new System.Drawing.Size(698, 64);
this.ucBtnExt1.TabIndex = 1;
this.ucBtnExt1.TabStop = false;
this.ucBtnExt1.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.ucBtnExt1.TipsText = "";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(17, 45);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(143, 33);
this.label7.TabIndex = 0;
this.label7.Text = "设备状态";
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(243)))), ((int)(((byte)(248)))));
this.panel3.Controls.Add(this.ucBtnExt3);
this.panel3.Controls.Add(this.ucBtnExt2);
this.panel3.Location = new System.Drawing.Point(551, 465);
this.panel3.Margin = new System.Windows.Forms.Padding(3, 10, 3, 3);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(359, 164);
this.panel3.TabIndex = 7;
//
// ucBtnExt3
//
this.ucBtnExt3.BackColor = System.Drawing.Color.White;
this.ucBtnExt3.BtnBackColor = System.Drawing.Color.White;
this.ucBtnExt3.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt3.BtnForeColor = System.Drawing.Color.White;
this.ucBtnExt3.BtnText = "屏蔽裁刀2#";
this.ucBtnExt3.ConerRadius = 5;
this.ucBtnExt3.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt3.EnabledMouseEffect = false;
this.ucBtnExt3.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt3.IsRadius = true;
this.ucBtnExt3.IsShowRect = true;
this.ucBtnExt3.IsShowTips = false;
this.ucBtnExt3.Location = new System.Drawing.Point(79, 96);
this.ucBtnExt3.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt3.Name = "ucBtnExt3";
this.ucBtnExt3.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(83)))), ((int)(((byte)(171)))));
this.ucBtnExt3.RectWidth = 1;
this.ucBtnExt3.Size = new System.Drawing.Size(184, 52);
this.ucBtnExt3.TabIndex = 1;
this.ucBtnExt3.TabStop = false;
this.ucBtnExt3.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt3.TipsText = "";
//
// ucBtnExt2
//
this.ucBtnExt2.BackColor = System.Drawing.Color.White;
this.ucBtnExt2.BtnBackColor = System.Drawing.Color.White;
this.ucBtnExt2.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt2.BtnForeColor = System.Drawing.Color.White;
this.ucBtnExt2.BtnText = "屏蔽裁刀1#";
this.ucBtnExt2.ConerRadius = 5;
this.ucBtnExt2.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt2.EnabledMouseEffect = false;
this.ucBtnExt2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt2.IsRadius = true;
this.ucBtnExt2.IsShowRect = true;
this.ucBtnExt2.IsShowTips = false;
this.ucBtnExt2.Location = new System.Drawing.Point(79, 21);
this.ucBtnExt2.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt2.Name = "ucBtnExt2";
this.ucBtnExt2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(83)))), ((int)(((byte)(171)))));
this.ucBtnExt2.RectWidth = 1;
this.ucBtnExt2.Size = new System.Drawing.Size(184, 52);
this.ucBtnExt2.TabIndex = 0;
this.ucBtnExt2.TabStop = false;
this.ucBtnExt2.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt2.TipsText = "";
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(243)))), ((int)(((byte)(248)))));
this.panel4.Controls.Add(this.ucBtnExt9);
this.panel4.Controls.Add(this.label9);
this.panel4.Controls.Add(this.ucBtnLogin);
this.panel4.Location = new System.Drawing.Point(0, 465);
this.panel4.Margin = new System.Windows.Forms.Padding(3, 10, 3, 3);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(545, 164);
this.panel4.TabIndex = 8;
//
// ucBtnExt9
//
this.ucBtnExt9.BackColor = System.Drawing.Color.White;
this.ucBtnExt9.BtnBackColor = System.Drawing.Color.White;
this.ucBtnExt9.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt9.BtnForeColor = System.Drawing.Color.White;
this.ucBtnExt9.BtnText = "登录";
this.ucBtnExt9.ConerRadius = 5;
this.ucBtnExt9.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt9.EnabledMouseEffect = false;
this.ucBtnExt9.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt9.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt9.IsRadius = true;
this.ucBtnExt9.IsShowRect = true;
this.ucBtnExt9.IsShowTips = false;
this.ucBtnExt9.Location = new System.Drawing.Point(309, 51);
this.ucBtnExt9.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt9.Name = "ucBtnExt9";
this.ucBtnExt9.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(83)))), ((int)(((byte)(171)))));
this.ucBtnExt9.RectWidth = 1;
this.ucBtnExt9.Size = new System.Drawing.Size(121, 52);
this.ucBtnExt9.TabIndex = 18;
this.ucBtnExt9.TabStop = false;
this.ucBtnExt9.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt9.TipsText = "";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(177, 64);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(79, 33);
this.label9.TabIndex = 2;
this.label9.Text = "等级";
//
// ucBtnLogin
//
this.ucBtnLogin.BackColor = System.Drawing.Color.White;
this.ucBtnLogin.BtnBackColor = System.Drawing.Color.White;
this.ucBtnLogin.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnLogin.BtnForeColor = System.Drawing.Color.White;
this.ucBtnLogin.BtnText = "登录";
this.ucBtnLogin.ConerRadius = 5;
this.ucBtnLogin.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnLogin.EnabledMouseEffect = false;
this.ucBtnLogin.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnLogin.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnLogin.IsRadius = true;
this.ucBtnLogin.IsShowRect = true;
this.ucBtnLogin.IsShowTips = false;
this.ucBtnLogin.Location = new System.Drawing.Point(11, 51);
this.ucBtnLogin.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnLogin.Name = "ucBtnLogin";
this.ucBtnLogin.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(83)))), ((int)(((byte)(171)))));
this.ucBtnLogin.RectWidth = 1;
this.ucBtnLogin.Size = new System.Drawing.Size(121, 52);
this.ucBtnLogin.TabIndex = 1;
this.ucBtnLogin.TabStop = false;
this.ucBtnLogin.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnLogin.TipsText = "";
this.ucBtnLogin.BtnClick += new System.EventHandler(this.ucBtnLogin_BtnClick);
//
// panel5
//
this.panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(243)))), ((int)(((byte)(248)))));
this.panel5.Controls.Add(this.panel7);
this.panel5.Controls.Add(this.ucBtnExt7);
this.panel5.Controls.Add(this.ucBtnExt5);
this.panel5.Location = new System.Drawing.Point(0, 680);
this.panel5.Margin = new System.Windows.Forms.Padding(3, 10, 3, 3);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(430, 211);
this.panel5.TabIndex = 9;
//
// panel7
//
this.panel7.Controls.Add(this.label13);
this.panel7.Controls.Add(this.pictureBox2);
this.panel7.Dock = System.Windows.Forms.DockStyle.Top;
this.panel7.Location = new System.Drawing.Point(0, 0);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(430, 44);
this.panel7.TabIndex = 3;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label13.Location = new System.Drawing.Point(127, 6);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(143, 33);
this.label13.TabIndex = 1;
this.label13.Text = "裁切工位";
//
// pictureBox2
//
this.pictureBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox2.Image = global::RfidWeb.Properties.Resources.;
this.pictureBox2.Location = new System.Drawing.Point(0, 0);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(430, 44);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox2.TabIndex = 0;
this.pictureBox2.TabStop = false;
//
// ucBtnExt7
//
this.ucBtnExt7.BackColor = System.Drawing.Color.White;
this.ucBtnExt7.BtnBackColor = System.Drawing.Color.White;
this.ucBtnExt7.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt7.BtnForeColor = System.Drawing.Color.White;
this.ucBtnExt7.BtnText = "回零";
this.ucBtnExt7.ConerRadius = 5;
this.ucBtnExt7.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt7.EnabledMouseEffect = false;
this.ucBtnExt7.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(79)))), ((int)(((byte)(13)))));
this.ucBtnExt7.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt7.IsRadius = true;
this.ucBtnExt7.IsShowRect = true;
this.ucBtnExt7.IsShowTips = false;
this.ucBtnExt7.Location = new System.Drawing.Point(10, 133);
this.ucBtnExt7.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt7.Name = "ucBtnExt7";
this.ucBtnExt7.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(79)))), ((int)(((byte)(13)))));
this.ucBtnExt7.RectWidth = 1;
this.ucBtnExt7.Size = new System.Drawing.Size(270, 55);
this.ucBtnExt7.TabIndex = 2;
this.ucBtnExt7.TabStop = false;
this.ucBtnExt7.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt7.TipsText = "";
//
// ucBtnExt5
//
this.ucBtnExt5.BackColor = System.Drawing.Color.White;
this.ucBtnExt5.BtnBackColor = System.Drawing.Color.White;
this.ucBtnExt5.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt5.BtnForeColor = System.Drawing.Color.White;
this.ucBtnExt5.BtnText = "启动";
this.ucBtnExt5.ConerRadius = 5;
this.ucBtnExt5.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt5.EnabledMouseEffect = false;
this.ucBtnExt5.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt5.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt5.IsRadius = true;
this.ucBtnExt5.IsShowRect = true;
this.ucBtnExt5.IsShowTips = false;
this.ucBtnExt5.Location = new System.Drawing.Point(10, 71);
this.ucBtnExt5.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt5.Name = "ucBtnExt5";
this.ucBtnExt5.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(83)))), ((int)(((byte)(171)))));
this.ucBtnExt5.RectWidth = 1;
this.ucBtnExt5.Size = new System.Drawing.Size(270, 55);
this.ucBtnExt5.TabIndex = 1;
this.ucBtnExt5.TabStop = false;
this.ucBtnExt5.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt5.TipsText = "";
this.ucBtnExt5.BtnClick += new System.EventHandler(this.ucBtnExt5_BtnClick);
//
// panel6
//
this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(243)))), ((int)(((byte)(248)))));
this.panel6.Controls.Add(this.label18);
this.panel6.Controls.Add(this.pictureBox3);
this.panel6.Controls.Add(this.ucBtnExt6);
this.panel6.Controls.Add(this.ucBtnExt8);
this.panel6.Location = new System.Drawing.Point(478, 680);
this.panel6.Margin = new System.Windows.Forms.Padding(3, 10, 3, 3);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(432, 211);
this.panel6.TabIndex = 10;
//
// label18
//
this.label18.AutoSize = true;
this.label18.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label18.Location = new System.Drawing.Point(156, 5);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(143, 33);
this.label18.TabIndex = 4;
this.label18.Text = "层切工位";
this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// pictureBox3
//
this.pictureBox3.Dock = System.Windows.Forms.DockStyle.Top;
this.pictureBox3.Image = global::RfidWeb.Properties.Resources.;
this.pictureBox3.Location = new System.Drawing.Point(0, 0);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(432, 44);
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox3.TabIndex = 3;
this.pictureBox3.TabStop = false;
//
// ucBtnExt6
//
this.ucBtnExt6.BackColor = System.Drawing.Color.White;
this.ucBtnExt6.BtnBackColor = System.Drawing.Color.White;
this.ucBtnExt6.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt6.BtnForeColor = System.Drawing.Color.White;
this.ucBtnExt6.BtnText = "首次上料";
this.ucBtnExt6.ConerRadius = 5;
this.ucBtnExt6.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt6.EnabledMouseEffect = false;
this.ucBtnExt6.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(79)))), ((int)(((byte)(13)))));
this.ucBtnExt6.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt6.IsRadius = true;
this.ucBtnExt6.IsShowRect = true;
this.ucBtnExt6.IsShowTips = false;
this.ucBtnExt6.Location = new System.Drawing.Point(150, 133);
this.ucBtnExt6.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt6.Name = "ucBtnExt6";
this.ucBtnExt6.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(79)))), ((int)(((byte)(13)))));
this.ucBtnExt6.RectWidth = 1;
this.ucBtnExt6.Size = new System.Drawing.Size(270, 55);
this.ucBtnExt6.TabIndex = 2;
this.ucBtnExt6.TabStop = false;
this.ucBtnExt6.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt6.TipsText = "";
//
// ucBtnExt8
//
this.ucBtnExt8.BackColor = System.Drawing.Color.White;
this.ucBtnExt8.BtnBackColor = System.Drawing.Color.White;
this.ucBtnExt8.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt8.BtnForeColor = System.Drawing.Color.White;
this.ucBtnExt8.BtnText = "启动";
this.ucBtnExt8.ConerRadius = 5;
this.ucBtnExt8.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt8.EnabledMouseEffect = false;
this.ucBtnExt8.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt8.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt8.IsRadius = true;
this.ucBtnExt8.IsShowRect = true;
this.ucBtnExt8.IsShowTips = false;
this.ucBtnExt8.Location = new System.Drawing.Point(150, 71);
this.ucBtnExt8.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt8.Name = "ucBtnExt8";
this.ucBtnExt8.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(83)))), ((int)(((byte)(171)))));
this.ucBtnExt8.RectWidth = 1;
this.ucBtnExt8.Size = new System.Drawing.Size(270, 55);
this.ucBtnExt8.TabIndex = 1;
this.ucBtnExt8.TabStop = false;
this.ucBtnExt8.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt8.TipsText = "";
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(243)))), ((int)(((byte)(248)))));
this.pictureBox1.Image = global::RfidWeb.Properties.Resources.;
this.pictureBox1.Location = new System.Drawing.Point(385, 755);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(134, 134);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox1.TabIndex = 11;
this.pictureBox1.TabStop = false;
//
// hslMoveTxt
//
this.hslMoveTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(243)))), ((int)(((byte)(248)))));
this.hslMoveTxt.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslMoveTxt.Location = new System.Drawing.Point(0, 335);
this.hslMoveTxt.MoveSpeed = 10F;
this.hslMoveTxt.Name = "hslMoveTxt";
this.hslMoveTxt.Size = new System.Drawing.Size(910, 98);
this.hslMoveTxt.TabIndex = 12;
this.hslMoveTxt.Text = "无报警信息";
//
// UserMain
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.Transparent;
this.Controls.Add(this.hslMoveTxt);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.panel6);
this.Controls.Add(this.panel5);
this.Controls.Add(this.panel4);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panel2);
this.Margin = new System.Windows.Forms.Padding(4, 30, 4, 4);
this.Name = "UserMain";
this.Size = new System.Drawing.Size(910, 935);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.panel5.ResumeLayout(false);
this.panel7.ResumeLayout(false);
this.panel7.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label7;
private HZH_Controls.Controls.UCBtnExt ucBtnExt1;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
private HZH_Controls.Controls.UCBtnExt ucBtnExt2;
private HZH_Controls.Controls.UCBtnExt ucBtnExt3;
private HZH_Controls.Controls.UCBtnExt ucBtnLogin;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Panel panel5;
private HZH_Controls.Controls.UCBtnExt ucBtnExt5;
private HZH_Controls.Controls.UCBtnExt ucBtnExt7;
private System.Windows.Forms.Panel panel6;
private HZH_Controls.Controls.UCBtnExt ucBtnExt6;
private HZH_Controls.Controls.UCBtnExt ucBtnExt8;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label18;
private HZH_Controls.Controls.UCBtnExt ucBtnExt9;
private HZH_Controls.Controls.UCBtnExt ucBtnExt10;
private HZH_Controls.Controls.UCBtnExt ucBtnExt15;
private HZH_Controls.Controls.UCBtnExt ucBtnExt14;
private HZH_Controls.Controls.UCBtnExt ucBtnExt13;
private HZH_Controls.Controls.UCBtnExt ucBtnExt12;
private HZH_Controls.Controls.UCBtnExt ucBtnExt11;
private HslControls.HslMoveText hslMoveTxt;
}
}

@ -0,0 +1,75 @@
using HZH_Controls.Forms;
using NewLife.Threading;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using NewLife;
namespace RfidWeb.Frm
{
public partial class UserMain : UserControl
{
TimerX _timer;
public UserMain()
{
InitializeComponent();
_timer = new TimerX(TimeState, null, 10, 1000);
}
private void ucBtnExt5_BtnClick(object sender, EventArgs e)
{
}
private void ucBtnLogin_BtnClick(object sender, EventArgs e)
{
FormLogin login = new FormLogin();
login.ShowDialog();
}
/// <summary>移除过期的缓存项</summary>
void TimeState(Object state)
{
bool isExit = UserManager.IsExit();
this.Invoke(() =>
{
//不存在
if (!isExit)
{
ucBtnLogin.BtnText = "登录";
ucBtnExt9.BtnText = "无";
}
else
{
var dto = UserManager.GetUser();
ucBtnLogin.BtnText = dto.UserName;
ucBtnExt9.BtnText = dto.RoleName;
}
});
}
protected override void OnHandleDestroyed(EventArgs e)
{
base.OnHandleDestroyed(e);
// 在此添加需要手动释放资源的代码
if (null != _timer)
{
_timer.TryDispose();
}
}
}
}

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

@ -0,0 +1,77 @@
namespace RfidWeb
{
partial class FromSQl
{
/// <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()
{
this.ucBtnExt1 = new HZH_Controls.Controls.UCBtnExt();
this.SuspendLayout();
//
// ucBtnExt1
//
this.ucBtnExt1.BackColor = System.Drawing.Color.Transparent;
this.ucBtnExt1.BtnBackColor = System.Drawing.Color.White;
this.ucBtnExt1.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt1.BtnForeColor = System.Drawing.Color.White;
this.ucBtnExt1.BtnText = "插入数据库用户表";
this.ucBtnExt1.ConerRadius = 5;
this.ucBtnExt1.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt1.EnabledMouseEffect = false;
this.ucBtnExt1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucBtnExt1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt1.IsRadius = true;
this.ucBtnExt1.IsShowRect = true;
this.ucBtnExt1.IsShowTips = false;
this.ucBtnExt1.Location = new System.Drawing.Point(31, 18);
this.ucBtnExt1.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt1.Name = "ucBtnExt1";
this.ucBtnExt1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(58)))));
this.ucBtnExt1.RectWidth = 1;
this.ucBtnExt1.Size = new System.Drawing.Size(213, 60);
this.ucBtnExt1.TabIndex = 0;
this.ucBtnExt1.TabStop = false;
this.ucBtnExt1.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.ucBtnExt1.TipsText = "";
this.ucBtnExt1.BtnClick += new System.EventHandler(this.ucBtnExt1_BtnClick);
//
// FromSQl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1093, 450);
this.Controls.Add(this.ucBtnExt1);
this.Name = "FromSQl";
this.Text = "FromSQl";
this.ResumeLayout(false);
}
#endregion
private HZH_Controls.Controls.UCBtnExt ucBtnExt1;
}
}

@ -0,0 +1,149 @@
using Chloe.PostgreSQL.DDL;
using Chloe.RDBMS.DDL;
using DB.Entity;
using DB;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.VisualBasic.ApplicationServices;
using Tool;
namespace RfidWeb
{
public partial class FromSQl : Form
{
public FromSQl()
{
InitializeComponent();
}
private void ucBtnExt1_BtnClick(object sender, EventArgs e)
{
//DbInfo.Init(typeof(RoleMapper).Assembly);
DbInfo.Init(typeof(UserInfo).Assembly);
var dbContext = DbFactory.GetContext;
// new PostgreSQLTableGenerator(dbContext).CreateTables(TableCreateMode.CreateIfNotExists);
//dbContext.Insert(new Role()
//{
// ID = SnowflakeFactory.NewId,
// RoleName = "管理层",
// RoleLevel = 1
//});
//dbContext.Insert(new Role()
//{
// ID = SnowflakeFactory.NewId,
// RoleName = "设备层",
// RoleLevel = 2
//});
//dbContext.Insert(new Role()
//{
// ID = SnowflakeFactory.NewId,
// RoleName = "使用层",
// RoleLevel = 3
//});
dbContext.Insert(new UserInfo()
{
ID = SnowflakeFactory.NewId,
RoleId =
7254091842295074816,
UserName = "管理员1",
Pwd = "E10ADC3949BA59ABBE56E057F20F883E",
});
dbContext.Insert(new UserInfo()
{
ID = SnowflakeFactory.NewId,
RoleId =
7254091842295074816,
UserName = "管理员2",
Pwd = "E10ADC3949BA59ABBE56E057F20F883E",
});
dbContext.Insert(new UserInfo()
{
ID = SnowflakeFactory.NewId,
RoleId =
7254091842295074816,
UserName = "管理员2",
Pwd = "E10ADC3949BA59ABBE56E057F20F883E",
});
dbContext.Insert(new UserInfo()
{
ID = SnowflakeFactory.NewId,
RoleId =
7254091842987134976,
UserName = "设备层1",
Pwd = "E10ADC3949BA59ABBE56E057F20F883E",
});
dbContext.Insert(new UserInfo()
{
ID = SnowflakeFactory.NewId,
RoleId =
7254091842987134976,
UserName = "设备层2",
Pwd = "E10ADC3949BA59ABBE56E057F20F883E",
});
dbContext.Insert(new UserInfo()
{
ID = SnowflakeFactory.NewId,
RoleId =
7254091842987134976,
UserName = "设备层2",
Pwd = "E10ADC3949BA59ABBE56E057F20F883E",
});
dbContext.Insert(new UserInfo()
{
ID = SnowflakeFactory.NewId,
RoleId =
7254091842999717888,
UserName = "使用层1",
Pwd = "E10ADC3949BA59ABBE56E057F20F883E",
});
dbContext.Insert(new UserInfo()
{
ID = SnowflakeFactory.NewId,
RoleId =
7254091842999717888,
UserName = "使用层2",
Pwd = "E10ADC3949BA59ABBE56E057F20F883E",
});
dbContext.Insert(new UserInfo()
{
ID = SnowflakeFactory.NewId,
RoleId =
7254091842999717888,
UserName = "使用层2",
Pwd = "E10ADC3949BA59ABBE56E057F20F883E",
});
// new PostgreSQLTableGenerator(dbContext).CreateTables(TableCreateMode.CreateNew);
}
}
}

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

@ -14,9 +14,16 @@ namespace RfidWeb
[STAThread]
static void Main()
{
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
//Application.Run(new FormLogin());
Application.Run(new FormMain());
}
}
}

@ -1,49 +1,44 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.42000
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// 对此文件的更改可能导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace RfidWeb.Properties
{
namespace RfidWeb.Properties {
using System;
/// <summary>
/// 强类型资源类,用于查找本地化字符串等。
/// 一个强类型资源类,用于查找本地化字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。
/// 返回此类使用的缓存 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("RfidWeb.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
@ -56,16 +51,163 @@ namespace RfidWeb.Properties
/// 使用此强类型资源类的所有资源查找执行重写。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set
{
set {
resourceCulture = value;
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap btn {
get {
object obj = ResourceManager.GetObject("btn", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap btn_sel1 {
get {
object obj = ResourceManager.GetObject("btn_sel1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap frm21 {
get {
object obj = ResourceManager.GetObject("frm21", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap frmBei {
get {
object obj = ResourceManager.GetObject("frmBei", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap frmMain {
get {
object obj = ResourceManager.GetObject("frmMain", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap log {
get {
object obj = ResourceManager.GetObject("log", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap mesnac {
get {
object obj = ResourceManager.GetObject("mesnac", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("右箭头", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("左箭头", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("海威图标在上", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("海威物联", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("消音开", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("照明关", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Byte[] 类型的本地化资源。
/// </summary>
internal static byte[] {
get {
object obj = ResourceManager.GetObject("照明开", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("脱机", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
@ -60,6 +60,7 @@
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
@ -68,9 +69,10 @@
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
@ -85,9 +87,10 @@
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
@ -109,9 +112,56 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="海威图标在上" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\海威图标在上.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="海威物联" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\海威物联.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="btn_sel1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\btn_sel1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="右箭头" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\右箭头.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="frmMain" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\frmMain.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="mesnac" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\mesnac1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="照明开" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\照明开.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<comment>照明开</comment>
</data>
<data name="frmBei" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\frmBei.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="脱机" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\脱机.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="左箭头" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\左箭头.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="消音开" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\消音开.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="btn" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\btn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="frm21" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\frm21.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="照明关" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\照明关.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="log" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\log.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -33,81 +33,79 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Chloe, Version=5.33.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Chloe.5.33.0\lib\net46\Chloe.dll</HintPath>
</Reference>
<Reference Include="Chloe.Extension, Version=5.33.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Chloe.Extension.5.33.0\lib\net46\Chloe.Extension.dll</HintPath>
</Reference>
<Reference Include="Chloe.PostgreSQL, Version=5.33.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Chloe.PostgreSQL.5.33.0\lib\net46\Chloe.PostgreSQL.dll</HintPath>
</Reference>
<PackageReference Include="Chloe">
<Version>5.38.0</Version>
</PackageReference>
<PackageReference Include="Chloe.Extension">
<Version>5.38.0</Version>
</PackageReference>
<PackageReference Include="Chloe.PostgreSQL">
<Version>5.38.0</Version>
</PackageReference>
<Reference Include="HslCommunication, Version=12.1.0.0, Culture=neutral, PublicKeyToken=3d72ad3b6b5ec0e3, processorArchitecture=MSIL">
<HintPath>..\packages\HslCommunication.12.1.0\lib\net451\HslCommunication.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Src\HslCommunication.dll</HintPath>
</Reference>
<Reference Include="HslControls">
<HintPath>..\Src\HslControls.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Bcl.HashCode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.HashCode.1.1.1\lib\net461\Microsoft.Bcl.HashCode.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.8.0.0\lib\net462\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.8.0.0\lib\net462\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
</Reference>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces">
<Version>8.0.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Bcl.HashCode">
<Version>1.1.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions">
<Version>8.0.2</Version>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions">
<Version>8.0.2</Version>
</PackageReference>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="NewLife.Core, Version=10.10.2024.902, Culture=neutral, PublicKeyToken=8343210f0b524456, processorArchitecture=MSIL">
<HintPath>..\packages\NewLife.Core.10.10.2024.902\lib\net461\NewLife.Core.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Npgsql, Version=8.0.3.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<HintPath>..\packages\Npgsql.8.0.3\lib\netstandard2.0\Npgsql.dll</HintPath>
</Reference>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.3</Version>
</PackageReference>
<PackageReference Include="Npgsql">
<Version>8.0.5</Version>
</PackageReference>
<Reference Include="System" />
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
</Reference>
<Reference Include="System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Collections.Immutable.8.0.0\lib\net462\System.Collections.Immutable.dll</HintPath>
</Reference>
<PackageReference Include="System.Buffers">
<Version>4.5.1</Version>
</PackageReference>
<PackageReference Include="System.Collections.Immutable">
<Version>8.0.0</Version>
</PackageReference>
<Reference Include="System.Core" />
<Reference Include="System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.8.0.0\lib\net462\System.Diagnostics.DiagnosticSource.dll</HintPath>
</Reference>
<PackageReference Include="System.Diagnostics.DiagnosticSource">
<Version>8.0.1</Version>
</PackageReference>
<Reference Include="System.IO.Compression" />
<Reference Include="System.Management" />
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
</Reference>
<PackageReference Include="System.Memory">
<Version>4.5.5</Version>
</PackageReference>
<Reference Include="System.Numerics" />
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Text.Encodings.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Text.Encodings.Web.8.0.0\lib\net462\System.Text.Encodings.Web.dll</HintPath>
</Reference>
<Reference Include="System.Text.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Text.Json.8.0.0\lib\net462\System.Text.Json.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Channels, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Channels.8.0.0\lib\net462\System.Threading.Channels.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
</Reference>
<PackageReference Include="System.Numerics.Vectors">
<Version>4.5.0</Version>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe">
<Version>6.0.0</Version>
</PackageReference>
<PackageReference Include="System.Text.Encodings.Web">
<Version>8.0.0</Version>
</PackageReference>
<PackageReference Include="System.Text.Json">
<Version>8.0.5</Version>
</PackageReference>
<PackageReference Include="System.Threading.Channels">
<Version>8.0.0</Version>
</PackageReference>
<PackageReference Include="System.Threading.Tasks.Extensions">
<Version>4.5.4</Version>
</PackageReference>
<PackageReference Include="System.ValueTuple">
<Version>4.5.0</Version>
</PackageReference>
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
@ -120,31 +118,77 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<Compile Include="FormLogin.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormLogin.Designer.cs">
<DependentUpon>FormLogin.cs</DependentUpon>
</Compile>
<Compile Include="FormMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormMain.Designer.cs">
<DependentUpon>FormMain.cs</DependentUpon>
</Compile>
<Compile Include="Frm\FormAccount.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Frm\FormAccount.Designer.cs">
<DependentUpon>FormAccount.cs</DependentUpon>
</Compile>
<Compile Include="Frm\FormRegister.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Frm\FormRegister.Designer.cs">
<DependentUpon>FormRegister.cs</DependentUpon>
</Compile>
<Compile Include="Frm\UserMain.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Frm\UserMain.Designer.cs">
<DependentUpon>UserMain.cs</DependentUpon>
</Compile>
<Compile Include="FromSQl.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
<Compile Include="FromSQl.Designer.cs">
<DependentUpon>FromSQl.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
<Compile Include="UserManager.cs" />
<EmbeddedResource Include="FormLogin.resx">
<DependentUpon>FormLogin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormMain.resx">
<DependentUpon>FormMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Frm\FormAccount.resx">
<DependentUpon>FormAccount.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Frm\FormRegister.resx">
<DependentUpon>FormRegister.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Frm\UserMain.resx">
<DependentUpon>UserMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FromSQl.resx">
<DependentUpon>FromSQl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
@ -168,5 +212,39 @@
<Name>Tool</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Resources\frmMain.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\mesnac1.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\frm21.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\frmBei.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\btn.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\btn_sel1.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\消音开.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\照明关.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\左箭头.png" />
<None Include="Resources\右箭头.png" />
<Content Include="read.txt" />
<None Include="Resources\海威物联.jpg" />
<None Include="Resources\海威图标在上.jpg" />
<None Include="Resources\log.png" />
<Content Include="Resources\照明开.png" />
<None Include="Resources\脱机.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

@ -0,0 +1,43 @@
using NewLife.Caching;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DB.Dto;
namespace RfidWeb
{
/// <summary>
/// 因为用户只有一个所有key是固定的
/// </summary>
public static class UserManager
{
private static readonly string key = "HaiWei";
private static ICache cache = Cache.Default;
public static void Add(UserDto dto)
{
cache.Set(key, dto, TimeSpan.FromMinutes(5));
}
public static UserDto GetUser()
{
return cache.Get<UserDto>(key);
}
public static bool IsExit()
{
return cache.ContainsKey(key);
}
public static void RestoreTime()
{
if (IsExit())
{
cache.SetExpire(key, TimeSpan.FromMinutes(5));
}
}
}
}

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Chloe" version="5.33.0" targetFramework="net48" />
<package id="Chloe.Extension" version="5.33.0" targetFramework="net48" />
<package id="Chloe.PostgreSQL" version="5.33.0" targetFramework="net48" />
<package id="HslCommunication" version="12.1.0" targetFramework="net48" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="8.0.0" targetFramework="net48" />
<package id="Microsoft.Bcl.HashCode" version="1.1.1" targetFramework="net48" />
<package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="8.0.0" targetFramework="net48" />
<package id="Microsoft.Extensions.Logging.Abstractions" version="8.0.0" targetFramework="net48" />
<package id="NewLife.Core" version="10.10.2024.902" targetFramework="net48" />
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net48" />
<package id="Npgsql" version="8.0.3" targetFramework="net48" />
<package id="System.Buffers" version="4.5.1" targetFramework="net48" />
<package id="System.Collections.Immutable" version="8.0.0" targetFramework="net48" />
<package id="System.Diagnostics.DiagnosticSource" version="8.0.0" targetFramework="net48" />
<package id="System.Memory" version="4.5.5" targetFramework="net48" />
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net48" />
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net48" />
<package id="System.Text.Encodings.Web" version="8.0.0" targetFramework="net48" />
<package id="System.Text.Json" version="8.0.0" targetFramework="net48" />
<package id="System.Threading.Channels" version="8.0.0" targetFramework="net48" />
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net48" />
</packages>

@ -0,0 +1,24 @@
 DbInfo.Init(typeof(RoleMapper).Assembly);
var dbContext = DbFactory.GetContext;
new PostgreSQLTableGenerator(dbContext).CreateTables(TableCreateMode.CreateNew);
dbContext.Insert(new Role()
{
ID = SnowflakeFactory.NewId,
RoleName = "管理层",
RoleLevel = 1
});
dbContext.Insert(new Role()
{
ID = SnowflakeFactory.NewId,
RoleName = "设备层",
RoleLevel = 2
});
dbContext.Insert(new Role()
{
ID = SnowflakeFactory.NewId,
RoleName = "使用层",
RoleLevel = 3
});

Binary file not shown.

File diff suppressed because it is too large Load Diff

@ -0,0 +1,40 @@
using System;
using System.Net.Http;
using NewLife.Http;
using RestSharp;
namespace Tool
{
public class HttpUtil
{
/// <summary>
/// 提交json字符
/// </summary>
/// <param name="url"></param>
/// <param name="obj"></param>
/// <returns></returns>
public static (bool b,string msg) PostJson(string url, object obj)
{
try
{
var client = new RestClient(url);
var request = new RestRequest();
request.AddHeader("Content-Type", "application/json");
request.Method = Method.Post;
request.Timeout = TimeSpan.FromMinutes(2);
request.AddBody(obj, ContentType.Json);
var response = client.Execute(request);
return (response.IsSuccessful, response.IsSuccessful ? response.Content : response.ErrorMessage);
}
catch (Exception e)
{
ILogNetFactory.GetLogNet.WriteError(e.Message);
return (false, e.Message);
}
}
}
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HslCommunication.LogNet;
namespace Tool
{
public static class ILogNetFactory
{
public static ILogNet GetLogNet { get; }= new LogNetDateTime( System.IO.Path.Combine( AppDomain.CurrentDomain.BaseDirectory, "Logs" ), GenerateMode.ByEveryDay, 30 );
}
}

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tool
{
public class PagedList<T>
{
public List<T> Items { get; private set; } // 存储当前页的元素
public int PageIndex { get; private set; } // 当前页码从0开始
public int PageSize { get; private set; } // 每页的元素数
public int TotalCount { get; private set; } // 总记录数
public int TotalPages => (int)Math.Ceiling((double)TotalCount / PageSize); // 总页数
public bool HasPreviousPage => PageIndex > 0;
public bool HasNextPage => PageIndex + 1 < TotalPages;
public PagedList(List<T> items, int count, int pageIndex, int pageSize)
{
Items = items;
TotalCount = count;
PageIndex = pageIndex;
PageSize = pageSize;
}
// 工厂方法,用于创建分页列表
public static PagedList<T> Create(IList<T> source, int pageIndex, int pageSize)
{
var count = source.Count; // 总记录数
var items = source.Skip(pageIndex * pageSize).Take(pageSize).ToList(); // 获取当前页的元素
return new PagedList<T>(items, count, pageIndex, pageSize);
}
}
}

@ -1,8 +1,10 @@
using System;
using HslCommunication;
using HslCommunication.LogNet;
using HslCommunication.Profinet.AllenBradley;
using HslCommunication.Profinet.Siemens;
using Newtonsoft.Json;
namespace Tool
{
@ -18,14 +20,28 @@ namespace Tool
private AllenBradleyNet CreateAb()
{
var rfidSetting = RfidSetting.Current;
AllenBradleyNet plc = new AllenBradleyNet();
plc.Slot = 0;
plc.CommunicationPipe = new HslCommunication.Core.Pipe.PipeTcpNet(rfidSetting.PlcIp, 44818)
{
ConnectTimeOut = 5000, // 连接超时时间,单位毫秒
ReceiveTimeOut = 10000, // 接收设备数据反馈的超时时间
SleepTime = 0,
SocketKeepAliveTime = -1,
IsPersistentConnection = true,
};
return plc;
}
AllenBradleyNet ab = new AllenBradleyNet();
ab.IpAddress = rfidSetting.PlcIp;
ab.Port = rfidSetting.Port;
ab.ConnectServer();
return ab;
public OperateResult Write(string db, string value)
{
return Instance.Write(db, value);
}
}
}

@ -13,10 +13,10 @@ namespace Tool
[Config("Core")]
public class RfidSetting : Config<RfidSetting>
{
public string Db { get; set; } = "server=127.0.0.1;database=postgres;uid=postgres;pwd=yangwei";
public string Db { get; set; } = "server=127.0.0.1;database=gaosu;uid=postgres;pwd=123456";
public string PlcIp { get; set; } = "127.0.0.1";
public string PlcIp { get; set; } = "192.168.1.100";
public int Port { get; set; }=44818;

@ -0,0 +1,11 @@
using NewLife.Data;
namespace Tool
{
public class SnowflakeFactory
{
private static readonly Snowflake GetInstance = new Snowflake();
public static long NewId => GetInstance.NewId();
}
}

@ -31,20 +31,24 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HslCommunication">
<Version>12.1.0</Version>
</PackageReference>
<Reference Include="HslCommunication, Version=12.1.0.0, Culture=neutral, PublicKeyToken=3d72ad3b6b5ec0e3, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Src\HslCommunication.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualBasic" />
<PackageReference Include="NewLife.Core">
<Version>10.10.2024.902</Version>
<Version>11.0.2024.1001</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.1</Version>
<Version>13.0.3</Version>
</PackageReference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Management" />
<PackageReference Include="RestSharp">
<Version>112.1.0</Version>
</PackageReference>
<PackageReference Include="System.ValueTuple">
<Version>4.5.0</Version>
</PackageReference>
@ -58,9 +62,13 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="HttpUtil.cs" />
<Compile Include="ILogNetFactory.cs" />
<Compile Include="PagedList.cs" />
<Compile Include="RfidSetting.cs" />
<Compile Include="PlcConnect.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SnowflakeFactory.cs" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

Loading…
Cancel
Save