diff --git a/DB/DB.csproj b/DB/DB.csproj
index ac85ca3..f8d9931 100644
--- a/DB/DB.csproj
+++ b/DB/DB.csproj
@@ -104,6 +104,8 @@
+
+
@@ -115,6 +117,7 @@
+
diff --git a/DB/Entity/FromPlan.cs b/DB/Entity/FromPlan.cs
index db38e31..e98df2c 100644
--- a/DB/Entity/FromPlan.cs
+++ b/DB/Entity/FromPlan.cs
@@ -1,7 +1,17 @@
namespace DB.Entity
{
- public class FromPlan
+ public class FromPlan:BaseChimsDb
{
-
+ ///
+ /// 数量
+ ///
+ public int Num { get; set; }
+
+ ///
+ /// 编号
+ ///
+ public string Code { get; set; }
+
+ public string Status { get; set; }
}
}
\ No newline at end of file
diff --git a/DB/Service/FromPlanService.cs b/DB/Service/FromPlanService.cs
new file mode 100644
index 0000000..ccfe70f
--- /dev/null
+++ b/DB/Service/FromPlanService.cs
@@ -0,0 +1,88 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Numerics;
+using System.Text;
+using System.Threading.Tasks;
+using Chloe;
+
+using DB.Entity;
+
+using Tool;
+
+namespace DB.Service
+{
+ public class FromPlanService
+ {
+ public void Insert(FromPlan plan)
+ {
+ using (var dbContext = DbFactory.GetContext)
+ {
+ dbContext.Insert(plan);
+ }
+ }
+
+ public FromPlan Query(long id)
+ {
+ using (var dbContext = DbFactory.GetContext)
+ {
+ return dbContext.QueryByKey(id);
+ }
+ }
+
+ public void Update(FromPlan plan)
+ {
+ using (var dbContext = DbFactory.GetContext)
+ {
+ dbContext.Update(plan);
+ }
+ }
+
+ public void Del(long id)
+ {
+ using (var dbContext = DbFactory.GetContext)
+ {
+ dbContext.DeleteByKey(id);
+ }
+ }
+
+ public string GetMaxCode()
+ {
+ using (var dbContext = DbFactory.GetContext)
+ {
+ string dt = DateTime.Now.ToString("yyyyMMdd");
+ string code = dbContext.Query()
+ .Where(x => x.Code.StartsWith(dt)).OrderByDesc(x => x.ID)
+ .Select(x => x.Code).FirstOrDefault();
+
+ if (string.IsNullOrEmpty(code))
+ {
+ return dt + "001";
+ }
+
+ int s = code.Substring(8).ToInt() + 1;
+
+ return dt + s.ToString().PadLeft(3, '0');
+ }
+ }
+
+
+ public PagedList GetPagedList(int pageIndex, int pageSize)
+ {
+
+ using (var dbContext = DbFactory.GetContext)
+ {
+ var dao = dbContext.Query()
+ .OrderByDesc(x => x.ID)
+ .Paging(pageIndex, pageSize);
+
+
+ PagedList paged =
+ new PagedList(dao.DataList, dao.Totals.ToInt(), pageIndex, pageSize);
+ return paged;
+
+ }
+
+ }
+ }
+}
diff --git a/RfidWeb/FormMain.Designer.cs b/RfidWeb/FormMain.Designer.cs
index 6fa9f7d..d15b20c 100644
--- a/RfidWeb/FormMain.Designer.cs
+++ b/RfidWeb/FormMain.Designer.cs
@@ -207,6 +207,7 @@
this.btnMes.TabIndex = 4;
this.btnMes.Text = "生产计划";
this.btnMes.UseVisualStyleBackColor = false;
+ this.btnMes.Click += new System.EventHandler(this.btnMes_Click);
//
// btnAccount
//
diff --git a/RfidWeb/FormMain.cs b/RfidWeb/FormMain.cs
index 744ca08..64831a8 100644
--- a/RfidWeb/FormMain.cs
+++ b/RfidWeb/FormMain.cs
@@ -274,5 +274,19 @@ namespace RfidWeb
panContent.Controls.Add(new FromUploadLog());
CheckButton(buttonUpdateLog);
}
+
+ private void btnMes_Click(object sender, EventArgs e)
+ {
+ //
+ CheckLogin();
+
+ var isLogin = UserManager.IsExit();
+ if (isLogin)
+ {
+ panContent.Controls.Clear();
+ panContent.Controls.Add(new FrmPlan());
+ CheckButton(btnMes);
+ }
+ }
}
}
diff --git a/RfidWeb/Frm/FormAccount.Designer.cs b/RfidWeb/Frm/FormAccount.Designer.cs
index 9f85feb..3c7fe06 100644
--- a/RfidWeb/Frm/FormAccount.Designer.cs
+++ b/RfidWeb/Frm/FormAccount.Designer.cs
@@ -306,6 +306,7 @@
this.Controls.Add(this.panelTop);
this.Name = "FormAccount";
this.Size = new System.Drawing.Size(910, 935);
+ this.Load += new System.EventHandler(this.FormAccount_Load);
this.panelTop.ResumeLayout(false);
this.panelTop.PerformLayout();
this.panelBottom.ResumeLayout(false);
diff --git a/RfidWeb/Frm/FormAccount.cs b/RfidWeb/Frm/FormAccount.cs
index 445fc6b..7795ec1 100644
--- a/RfidWeb/Frm/FormAccount.cs
+++ b/RfidWeb/Frm/FormAccount.cs
@@ -143,5 +143,10 @@ namespace RfidWeb.Frm
ucPagerControl21_ShowSourceChanged(new object());
}
+
+ private void FormAccount_Load(object sender, EventArgs e)
+ {
+
+ }
}
}
diff --git a/RfidWeb/Frm/FormPlanAdd.Designer.cs b/RfidWeb/Frm/FormPlanAdd.Designer.cs
new file mode 100644
index 0000000..55e6e8e
--- /dev/null
+++ b/RfidWeb/Frm/FormPlanAdd.Designer.cs
@@ -0,0 +1,282 @@
+namespace RfidWeb.Frm
+{
+ partial class FormPlanAdd
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ 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.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.ucCode = new HZH_Controls.Controls.UCTextBoxEx();
+ this.ucNo = 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.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.lblTitle.Name = "lblTitle";
+ this.lblTitle.Size = new System.Drawing.Size(541, 40);
+ this.lblTitle.TabIndex = 7;
+ 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, 292);
+ this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(2);
+ 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, 67F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(541, 67);
+ this.tableLayoutPanel1.TabIndex = 8;
+ //
+ // 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(270, 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(271, 67);
+ 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(270, 67);
+ 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.ucNo);
+ this.panel1.Controls.Add(this.label2);
+ this.panel1.Controls.Add(this.label1);
+ this.panel1.Controls.Add(this.ucCode);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel1.Location = new System.Drawing.Point(0, 40);
+ this.panel1.Margin = new System.Windows.Forms.Padding(2);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(541, 252);
+ this.panel1.TabIndex = 9;
+ //
+ // 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(133, 89);
+ this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(106, 30);
+ 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(133, 39);
+ this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(106, 30);
+ this.label1.TabIndex = 8;
+ this.label1.Text = "计划编号:";
+ //
+ // ucCode
+ //
+ this.ucCode.BackColor = System.Drawing.Color.Transparent;
+ this.ucCode.ConerRadius = 5;
+ this.ucCode.Cursor = System.Windows.Forms.Cursors.IBeam;
+ this.ucCode.DecLength = 2;
+ this.ucCode.FillColor = System.Drawing.Color.Empty;
+ this.ucCode.FocusBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
+ this.ucCode.Font = new System.Drawing.Font("微软雅黑", 12F);
+ this.ucCode.InputText = "";
+ this.ucCode.InputType = HZH_Controls.TextInputType.NotControl;
+ this.ucCode.IsFocusColor = true;
+ this.ucCode.IsFouceShowKey = false;
+ this.ucCode.IsRadius = true;
+ this.ucCode.IsShowClearBtn = true;
+ this.ucCode.IsShowKeyboard = false;
+ this.ucCode.IsShowRect = true;
+ this.ucCode.IsShowSearchBtn = false;
+ this.ucCode.KeyBoardType = HZH_Controls.Controls.KeyBoardType.UCKeyBorderAll_EN;
+ this.ucCode.Location = new System.Drawing.Point(235, 39);
+ this.ucCode.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.ucCode.MaxValue = new decimal(new int[] {
+ 1000000,
+ 0,
+ 0,
+ 0});
+ this.ucCode.MinValue = new decimal(new int[] {
+ 1000000,
+ 0,
+ 0,
+ -2147483648});
+ this.ucCode.Name = "ucCode";
+ this.ucCode.Padding = new System.Windows.Forms.Padding(3);
+ this.ucCode.PasswordChar = '\0';
+ this.ucCode.PromptColor = System.Drawing.Color.Gray;
+ this.ucCode.PromptFont = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
+ this.ucCode.PromptText = "";
+ this.ucCode.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
+ this.ucCode.RectWidth = 1;
+ this.ucCode.RegexPattern = "";
+ this.ucCode.Size = new System.Drawing.Size(215, 28);
+ this.ucCode.TabIndex = 5;
+ this.ucCode.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
+ //
+ // ucNo
+ //
+ this.ucNo.BackColor = System.Drawing.Color.Transparent;
+ this.ucNo.ConerRadius = 5;
+ this.ucNo.Cursor = System.Windows.Forms.Cursors.IBeam;
+ this.ucNo.DecLength = 2;
+ this.ucNo.FillColor = System.Drawing.Color.Empty;
+ this.ucNo.FocusBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
+ this.ucNo.Font = new System.Drawing.Font("微软雅黑", 12F);
+ this.ucNo.InputText = "";
+ this.ucNo.InputType = HZH_Controls.TextInputType.NotControl;
+ this.ucNo.IsFocusColor = true;
+ this.ucNo.IsFouceShowKey = false;
+ this.ucNo.IsRadius = true;
+ this.ucNo.IsShowClearBtn = true;
+ this.ucNo.IsShowKeyboard = false;
+ this.ucNo.IsShowRect = true;
+ this.ucNo.IsShowSearchBtn = false;
+ this.ucNo.KeyBoardType = HZH_Controls.Controls.KeyBoardType.UCKeyBorderAll_EN;
+ this.ucNo.Location = new System.Drawing.Point(235, 91);
+ this.ucNo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.ucNo.MaxValue = new decimal(new int[] {
+ 1000000,
+ 0,
+ 0,
+ 0});
+ this.ucNo.MinValue = new decimal(new int[] {
+ 1000000,
+ 0,
+ 0,
+ -2147483648});
+ this.ucNo.Name = "ucNo";
+ this.ucNo.Padding = new System.Windows.Forms.Padding(3);
+ this.ucNo.PasswordChar = '\0';
+ this.ucNo.PromptColor = System.Drawing.Color.Gray;
+ this.ucNo.PromptFont = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
+ this.ucNo.PromptText = "";
+ this.ucNo.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
+ this.ucNo.RectWidth = 1;
+ this.ucNo.RegexPattern = "";
+ this.ucNo.Size = new System.Drawing.Size(215, 28);
+ this.ucNo.TabIndex = 10;
+ this.ucNo.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
+ //
+ // FormPlanAdd
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(541, 359);
+ this.Controls.Add(this.panel1);
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.Controls.Add(this.lblTitle);
+ this.Name = "FormPlanAdd";
+ this.Text = "FormPlanAdd";
+ 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 btnCancel;
+ private HZH_Controls.Controls.UCBtnExt btnOK;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ private HZH_Controls.Controls.UCTextBoxEx ucCode;
+ private HZH_Controls.Controls.UCTextBoxEx ucNo;
+ }
+}
\ No newline at end of file
diff --git a/RfidWeb/Frm/FormPlanAdd.cs b/RfidWeb/Frm/FormPlanAdd.cs
new file mode 100644
index 0000000..cf8c49c
--- /dev/null
+++ b/RfidWeb/Frm/FormPlanAdd.cs
@@ -0,0 +1,66 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using DB.Entity;
+using DB.Service;
+using Tool;
+
+namespace RfidWeb.Frm
+{
+ public partial class FormPlanAdd : Form
+ {
+ private FromPlanService fromPlanService = new FromPlanService();
+ private FromPlan fromPlan = null;
+
+ private long id = default;
+ public FormPlanAdd()
+ {
+ InitializeComponent();
+
+ this.ucCode.InputText = fromPlanService.GetMaxCode();
+ this.ucNo.InputText = "50";
+ fromPlan = new FromPlan();
+ fromPlan.ID = SnowflakeFactory.NewId;
+ }
+
+ public FormPlanAdd(long id)
+ {
+ InitializeComponent();
+ this.id = id;
+ fromPlan = fromPlanService.Query(id);
+ this.ucNo.InputText = fromPlan.Num.ToString();
+ this.ucCode.InputText=fromPlan.Code;
+ }
+
+ private void btnCancel_BtnClick(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+ private void btnOK_BtnClick(object sender, EventArgs e)
+ {
+
+ fromPlan.Num = ucNo.InputText.ToInt();
+ fromPlan.Code=ucCode.InputText.ToString();
+
+ if (id == 0)
+ {
+
+ fromPlanService.Insert(fromPlan);
+ }
+ else
+ {
+ fromPlanService.Update(fromPlan);
+ }
+
+ this.Close();
+ }
+ }
+}
diff --git a/RfidWeb/Frm/FormPlanAdd.resx b/RfidWeb/Frm/FormPlanAdd.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RfidWeb/Frm/FormPlanAdd.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/RfidWeb/Frm/FrmPlan.Designer.cs b/RfidWeb/Frm/FrmPlan.Designer.cs
new file mode 100644
index 0000000..8e0f133
--- /dev/null
+++ b/RfidWeb/Frm/FrmPlan.Designer.cs
@@ -0,0 +1,270 @@
+namespace RfidWeb.Frm
+{
+ partial class FrmPlan
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmPlan));
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ 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.ucPagerControl21 = new HZH_Controls.Controls.UCPagerControl2();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.UserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.RoleName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Status = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.CreateDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelTop.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelTop
+ //
+ this.panelTop.Controls.Add(this.ucBtnDel);
+ this.panelTop.Controls.Add(this.ucBtnUpdate);
+ this.panelTop.Controls.Add(this.ucBtnAdd);
+ 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 = 1;
+ //
+ // 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, 18);
+ 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, 35);
+ 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(515, 18);
+ 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, 35);
+ 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(374, 18);
+ 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, 35);
+ 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);
+ //
+ // ucPagerControl21
+ //
+ this.ucPagerControl21.BackColor = System.Drawing.Color.White;
+ this.ucPagerControl21.DataSource = ((System.Collections.Generic.List