Files
WC-CZGKJ/SCADA/MAIN_PAGE.Designer.cs
2026-05-11 11:09:04 +08:00

519 lines
32 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Windows.Forms;
namespace MesWork
{
partial class MesWorkForm : PlcLinkForm
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
// ── Timers ──
this.timer_OnLine_Show = new System.Windows.Forms.Timer(this.components);
this.timer_Clock = new System.Windows.Forms.Timer(this.components);
// ── Top Bar ──
this.pnl_TopBar = new System.Windows.Forms.Panel();
this.pnl_TopBarRight = new System.Windows.Forms.Panel();
this.lbl_SystemTitle = new System.Windows.Forms.Label();
this.lbl_DateTime = new System.Windows.Forms.Label();
this.lbl_UserName = new System.Windows.Forms.Label();
this.pnl_SqlIndicator = new System.Windows.Forms.Panel();
this.lbl_SqlStatus = new System.Windows.Forms.Label();
// ── Sidebar ──
this.pnl_Sidebar = new System.Windows.Forms.Panel();
this.pnl_SidebarScroll = new System.Windows.Forms.Panel();
this.pnl_NavWeighing = new System.Windows.Forms.Panel();
this.lbl_NavWeighing = new System.Windows.Forms.Label();
this.pnl_NavUserMgmt = new System.Windows.Forms.Panel();
this.lbl_NavUserMgmt = new System.Windows.Forms.Label();
this.pnl_NavWorkpiece = new System.Windows.Forms.Panel();
this.lbl_NavWorkpiece = new System.Windows.Forms.Label();
this.pnl_NavTool = new System.Windows.Forms.Panel();
this.lbl_NavTool = new System.Windows.Forms.Label();
this.pnl_NavReport = new System.Windows.Forms.Panel();
this.lbl_NavReport = new System.Windows.Forms.Label();
this.pnl_NavStation = new System.Windows.Forms.Panel();
this.lbl_NavStation = new System.Windows.Forms.Label();
this.pnl_NavStatistics = new System.Windows.Forms.Panel();
this.lbl_NavStatistics = new System.Windows.Forms.Label();
this.pnl_NavSettings = new System.Windows.Forms.Panel();
this.lbl_NavSettings = new System.Windows.Forms.Label();
this.pnl_NavLog = new System.Windows.Forms.Panel();
this.lbl_NavLog = new System.Windows.Forms.Label();
this.pnl_NavPLC = new System.Windows.Forms.Panel();
this.lbl_NavPLC = new System.Windows.Forms.Label();
this.pnl_NavFullscreen = new System.Windows.Forms.Panel();
this.lbl_NavFullscreen = new System.Windows.Forms.Label();
this.pnl_NavClose = new System.Windows.Forms.Panel();
this.lbl_NavClose = new System.Windows.Forms.Label();
this.pnl_NavActiveIndicator = new System.Windows.Forms.Panel();
// ── Alarm Bar ──
this.panel_Alarm = new System.Windows.Forms.Panel();
this.label_Alarm = new System.Windows.Forms.Label();
this.lbl_AlarmIcon = new System.Windows.Forms.Label();
// ── Content ──
this.pnl_Content = new System.Windows.Forms.Panel();
this.pnl_TopBar.SuspendLayout();
this.pnl_TopBarRight.SuspendLayout();
this.pnl_Sidebar.SuspendLayout();
this.pnl_SidebarScroll.SuspendLayout();
this.panel_Alarm.SuspendLayout();
this.SuspendLayout();
// ====================================================================
// timer_OnLine_Show — 框架心跳/SQL检测
// ====================================================================
this.timer_OnLine_Show.Interval = 1000;
this.timer_OnLine_Show.Tick += new System.EventHandler(this.timer_OnLine_Show_Tick);
// ====================================================================
// timer_Clock — 时钟刷新
// ====================================================================
this.timer_Clock.Interval = 1000;
this.timer_Clock.Tick += new System.EventHandler(this.timer_Clock_Tick);
// ====================================================================
// pnl_TopBar — 顶部标题栏 (48px)
// ====================================================================
this.pnl_TopBar.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_TopBar.Dock = System.Windows.Forms.DockStyle.Top;
this.pnl_TopBar.Height = 48;
this.pnl_TopBar.Name = "pnl_TopBar";
this.pnl_TopBar.Controls.Add(this.lbl_SystemTitle);
this.pnl_TopBar.Controls.Add(this.pnl_TopBarRight);
// lbl_SystemTitle
this.lbl_SystemTitle.AutoSize = false;
this.lbl_SystemTitle.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold);
this.lbl_SystemTitle.ForeColor = System.Drawing.Color.White;
this.lbl_SystemTitle.Location = new System.Drawing.Point(92, 0);
this.lbl_SystemTitle.Size = new System.Drawing.Size(400, 48);
this.lbl_SystemTitle.Name = "lbl_SystemTitle";
this.lbl_SystemTitle.Text = "⚖ 称重数据采集分析管理系统";
this.lbl_SystemTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// ── pnl_TopBarRight — 右侧控件容器Dock=Right确保任何分辨率可见──
this.pnl_TopBarRight.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_TopBarRight.Dock = System.Windows.Forms.DockStyle.Right;
this.pnl_TopBarRight.Width = 420;
this.pnl_TopBarRight.Name = "pnl_TopBarRight";
this.pnl_TopBarRight.Controls.Add(this.pnl_SqlIndicator);
this.pnl_TopBarRight.Controls.Add(this.lbl_SqlStatus);
this.pnl_TopBarRight.Controls.Add(this.lbl_UserName);
this.pnl_TopBarRight.Controls.Add(this.lbl_DateTime);
// pnl_SqlIndicator — 数据库在线指示灯
this.pnl_SqlIndicator.BackColor = System.Drawing.Color.FromArgb(209, 213, 219);
this.pnl_SqlIndicator.Location = new System.Drawing.Point(10, 17);
this.pnl_SqlIndicator.Size = new System.Drawing.Size(14, 14);
this.pnl_SqlIndicator.Name = "pnl_SqlIndicator";
// lbl_SqlStatus — 数据库状态标签
this.lbl_SqlStatus.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_SqlStatus.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_SqlStatus.Location = new System.Drawing.Point(28, 0);
this.lbl_SqlStatus.Size = new System.Drawing.Size(55, 48);
this.lbl_SqlStatus.Name = "lbl_SqlStatus";
this.lbl_SqlStatus.Text = "数据库";
this.lbl_SqlStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// lbl_UserName
this.lbl_UserName.Font = new System.Drawing.Font("微软雅黑", 10F);
this.lbl_UserName.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_UserName.Location = new System.Drawing.Point(90, 0);
this.lbl_UserName.Size = new System.Drawing.Size(160, 48);
this.lbl_UserName.Name = "lbl_UserName";
this.lbl_UserName.Text = "操作员:";
this.lbl_UserName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// lbl_DateTime
this.lbl_DateTime.Font = new System.Drawing.Font("微软雅黑", 10F);
this.lbl_DateTime.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_DateTime.Location = new System.Drawing.Point(250, 0);
this.lbl_DateTime.Size = new System.Drawing.Size(165, 48);
this.lbl_DateTime.Name = "lbl_DateTime";
this.lbl_DateTime.Text = "2026-04-07 20:00:00";
this.lbl_DateTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// ====================================================================
// pnl_Sidebar — 左侧导航栏 (80px, Navy背景)
// ====================================================================
this.pnl_Sidebar.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_Sidebar.Dock = System.Windows.Forms.DockStyle.Left;
this.pnl_Sidebar.Width = 80;
this.pnl_Sidebar.Name = "pnl_Sidebar";
// 全屏+退出 固定在侧栏底部
this.pnl_NavFullscreen.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pnl_NavFullscreen.Size = new System.Drawing.Size(80, 44);
this.pnl_NavClose.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pnl_NavClose.Size = new System.Drawing.Size(80, 44);
this.pnl_Sidebar.Controls.Add(this.pnl_SidebarScroll);
this.pnl_Sidebar.Controls.Add(this.pnl_NavFullscreen);
this.pnl_Sidebar.Controls.Add(this.pnl_NavClose);
// pnl_SidebarScroll — 内部滚动容器
this.pnl_SidebarScroll.AutoScroll = true;
this.pnl_SidebarScroll.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_SidebarScroll.Dock = System.Windows.Forms.DockStyle.Fill;
this.pnl_SidebarScroll.Name = "pnl_SidebarScroll";
// ── 导航项:称重作业 ──
this.pnl_NavWeighing.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavWeighing.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavWeighing.Location = new System.Drawing.Point(1, 8);
this.pnl_NavWeighing.Size = new System.Drawing.Size(78, 64);
this.pnl_NavWeighing.Name = "pnl_NavWeighing";
this.pnl_NavWeighing.Tag = "⚖\n称重作业";
this.lbl_NavWeighing.AutoSize = false;
this.lbl_NavWeighing.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavWeighing.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavWeighing.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavWeighing.Text = "⚖\n称重作业";
this.lbl_NavWeighing.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavWeighing.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavWeighing.Controls.Add(this.lbl_NavWeighing);
// ── 导航项:用户管理 ──
this.pnl_NavUserMgmt.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavUserMgmt.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavUserMgmt.Location = new System.Drawing.Point(1, 74);
this.pnl_NavUserMgmt.Size = new System.Drawing.Size(78, 64);
this.pnl_NavUserMgmt.Name = "pnl_NavUserMgmt";
this.pnl_NavUserMgmt.Tag = "👤\n用户管理";
this.lbl_NavUserMgmt.AutoSize = false;
this.lbl_NavUserMgmt.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavUserMgmt.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavUserMgmt.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavUserMgmt.Text = "👤\n用户管理";
this.lbl_NavUserMgmt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavUserMgmt.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavUserMgmt.Controls.Add(this.lbl_NavUserMgmt);
// ── 导航项:工件管理 ──
this.pnl_NavWorkpiece.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavWorkpiece.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavWorkpiece.Location = new System.Drawing.Point(1, 140);
this.pnl_NavWorkpiece.Size = new System.Drawing.Size(78, 64);
this.pnl_NavWorkpiece.Name = "pnl_NavWorkpiece";
this.pnl_NavWorkpiece.Tag = "⚙\n工件管理";
this.lbl_NavWorkpiece.AutoSize = false;
this.lbl_NavWorkpiece.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavWorkpiece.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavWorkpiece.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavWorkpiece.Text = "⚙\n工件管理";
this.lbl_NavWorkpiece.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavWorkpiece.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavWorkpiece.Controls.Add(this.lbl_NavWorkpiece);
// ── 导航项:工具管理 ──
this.pnl_NavTool.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavTool.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavTool.Location = new System.Drawing.Point(1, 206);
this.pnl_NavTool.Size = new System.Drawing.Size(78, 64);
this.pnl_NavTool.Name = "pnl_NavTool";
this.pnl_NavTool.Tag = "🔧\n工具管理";
this.lbl_NavTool.AutoSize = false;
this.lbl_NavTool.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavTool.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavTool.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavTool.Text = "🔧\n工具管理";
this.lbl_NavTool.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavTool.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavTool.Controls.Add(this.lbl_NavTool);
// ── 导航项:报告查询 ──
this.pnl_NavReport.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavReport.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavReport.Location = new System.Drawing.Point(1, 272);
this.pnl_NavReport.Size = new System.Drawing.Size(78, 64);
this.pnl_NavReport.Name = "pnl_NavReport";
this.pnl_NavReport.Tag = "📋\n报告查询";
this.lbl_NavReport.AutoSize = false;
this.lbl_NavReport.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavReport.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavReport.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavReport.Text = "📋\n报告查询";
this.lbl_NavReport.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavReport.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavReport.Controls.Add(this.lbl_NavReport);
// ── 导航项:过站记录 ──
this.pnl_NavStation.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavStation.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavStation.Location = new System.Drawing.Point(1, 338);
this.pnl_NavStation.Size = new System.Drawing.Size(78, 64);
this.pnl_NavStation.Name = "pnl_NavStation";
this.pnl_NavStation.Tag = "📦\n过站记录";
this.lbl_NavStation.AutoSize = false;
this.lbl_NavStation.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavStation.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavStation.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavStation.Text = "📦\n过站记录";
this.lbl_NavStation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavStation.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavStation.Controls.Add(this.lbl_NavStation);
// ── 导航项:统计分析 ──
this.pnl_NavStatistics.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavStatistics.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavStatistics.Location = new System.Drawing.Point(1, 404);
this.pnl_NavStatistics.Size = new System.Drawing.Size(78, 64);
this.pnl_NavStatistics.Name = "pnl_NavStatistics";
this.pnl_NavStatistics.Tag = "📊\n统计分析";
this.lbl_NavStatistics.AutoSize = false;
this.lbl_NavStatistics.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavStatistics.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavStatistics.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavStatistics.Text = "📊\n统计分析";
this.lbl_NavStatistics.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavStatistics.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavStatistics.Controls.Add(this.lbl_NavStatistics);
// ── 导航项:系统设置 ──
this.pnl_NavSettings.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavSettings.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavSettings.Location = new System.Drawing.Point(1, 470);
this.pnl_NavSettings.Size = new System.Drawing.Size(78, 64);
this.pnl_NavSettings.Name = "pnl_NavSettings";
this.pnl_NavSettings.Tag = "⚙\n系统设置";
this.lbl_NavSettings.AutoSize = false;
this.lbl_NavSettings.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavSettings.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavSettings.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavSettings.Text = "⚙\n系统设置";
this.lbl_NavSettings.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavSettings.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavSettings.Controls.Add(this.lbl_NavSettings);
// ── 导航项:日志查询 ──
this.pnl_NavLog.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavLog.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavLog.Location = new System.Drawing.Point(1, 536);
this.pnl_NavLog.Size = new System.Drawing.Size(78, 64);
this.pnl_NavLog.Name = "pnl_NavLog";
this.pnl_NavLog.Tag = "📝\n日志查询";
this.lbl_NavLog.AutoSize = false;
this.lbl_NavLog.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavLog.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavLog.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavLog.Text = "📝\n日志查询";
this.lbl_NavLog.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavLog.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavLog.Controls.Add(this.lbl_NavLog);
// ── 导航项PLC监控 ──
this.pnl_NavPLC.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavPLC.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavPLC.Location = new System.Drawing.Point(1, 602);
this.pnl_NavPLC.Size = new System.Drawing.Size(78, 64);
this.pnl_NavPLC.Name = "pnl_NavPLC";
this.pnl_NavPLC.Tag = "📡\nPLC监控";
this.lbl_NavPLC.AutoSize = false;
this.lbl_NavPLC.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavPLC.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavPLC.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavPLC.Text = "📡\nPLC监控";
this.lbl_NavPLC.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavPLC.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavPLC.Controls.Add(this.lbl_NavPLC);
// ── 全屏按钮(固定在侧栏底部,退出按钮上方) ──
this.pnl_NavFullscreen.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavFullscreen.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavFullscreen.Name = "pnl_NavFullscreen";
this.lbl_NavFullscreen.AutoSize = false;
this.lbl_NavFullscreen.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavFullscreen.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavFullscreen.ForeColor = System.Drawing.Color.FromArgb(148, 163, 184);
this.lbl_NavFullscreen.Text = "▣\n全屏";
this.lbl_NavFullscreen.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavFullscreen.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavFullscreen.Controls.Add(this.lbl_NavFullscreen);
// ── 退出按钮(固定在侧栏底部) ──
this.pnl_NavClose.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.pnl_NavClose.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavClose.Name = "pnl_NavClose";
this.pnl_NavClose.Tag = "✕\n退出";
this.lbl_NavClose.AutoSize = false;
this.lbl_NavClose.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_NavClose.Font = new System.Drawing.Font("微软雅黑", 9F);
this.lbl_NavClose.ForeColor = System.Drawing.Color.FromArgb(239, 68, 68);
this.lbl_NavClose.Text = "✕\n退出";
this.lbl_NavClose.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NavClose.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnl_NavClose.Controls.Add(this.lbl_NavClose);
// 导航Active指示条4px宽蓝色条初始隐藏后续代码定位
this.pnl_NavActiveIndicator.BackColor = System.Drawing.Color.FromArgb(74, 144, 217);
this.pnl_NavActiveIndicator.Location = new System.Drawing.Point(0, 8);
this.pnl_NavActiveIndicator.Size = new System.Drawing.Size(4, 64);
this.pnl_NavActiveIndicator.Name = "pnl_NavActiveIndicator";
// 添加导航项到滚动容器(从下往上加,确保绘制顺序)
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavActiveIndicator);
// pnl_NavClose 已从滚动容器移出到pnl_Sidebar底部
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavPLC);
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavLog);
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavSettings);
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavStatistics);
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavStation);
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavReport);
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavTool);
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavWorkpiece);
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavUserMgmt);
this.pnl_SidebarScroll.Controls.Add(this.pnl_NavWeighing);
// 绑定导航点击事件
this.pnl_NavWeighing.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavWeighing.Click += new System.EventHandler(this.Nav_Click);
this.pnl_NavUserMgmt.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavUserMgmt.Click += new System.EventHandler(this.Nav_Click);
this.pnl_NavWorkpiece.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavWorkpiece.Click += new System.EventHandler(this.Nav_Click);
this.pnl_NavTool.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavTool.Click += new System.EventHandler(this.Nav_Click);
this.pnl_NavReport.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavReport.Click += new System.EventHandler(this.Nav_Click);
this.pnl_NavStation.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavStation.Click += new System.EventHandler(this.Nav_Click);
this.pnl_NavStatistics.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavStatistics.Click += new System.EventHandler(this.Nav_Click);
this.pnl_NavSettings.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavSettings.Click += new System.EventHandler(this.Nav_Click);
this.pnl_NavLog.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavLog.Click += new System.EventHandler(this.Nav_Click);
this.pnl_NavPLC.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavPLC.Click += new System.EventHandler(this.Nav_Click);
this.pnl_NavFullscreen.Click += new System.EventHandler(this.btn_ToggleFullscreen_Click);
this.lbl_NavFullscreen.Click += new System.EventHandler(this.btn_ToggleFullscreen_Click);
this.pnl_NavClose.Click += new System.EventHandler(this.Nav_Click);
this.lbl_NavClose.Click += new System.EventHandler(this.Nav_Click);
// ====================================================================
// panel_Alarm — 底部报警栏 (32px)
// ====================================================================
this.panel_Alarm.BackColor = System.Drawing.Color.FromArgb(30, 58, 95);
this.panel_Alarm.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel_Alarm.Height = 32;
this.panel_Alarm.Name = "panel_Alarm";
this.panel_Alarm.Controls.Add(this.label_Alarm);
this.panel_Alarm.Controls.Add(this.lbl_AlarmIcon);
// lbl_AlarmIcon
this.lbl_AlarmIcon.Font = new System.Drawing.Font("微软雅黑", 10F);
this.lbl_AlarmIcon.ForeColor = System.Drawing.Color.White;
this.lbl_AlarmIcon.Location = new System.Drawing.Point(4, 0);
this.lbl_AlarmIcon.Size = new System.Drawing.Size(80, 32);
this.lbl_AlarmIcon.Name = "lbl_AlarmIcon";
this.lbl_AlarmIcon.Text = "🔔 报警";
this.lbl_AlarmIcon.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// label_Alarm — 保持原名以兼容 AppConfig.cs 中的引用
this.label_Alarm.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top;
this.label_Alarm.Font = new System.Drawing.Font("微软雅黑", 10F);
this.label_Alarm.ForeColor = System.Drawing.Color.White;
this.label_Alarm.Location = new System.Drawing.Point(88, 0);
this.label_Alarm.Size = new System.Drawing.Size(1800, 32);
this.label_Alarm.Name = "label_Alarm";
this.label_Alarm.Text = "";
this.label_Alarm.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// ====================================================================
// pnl_Content — 主内容区域 (动态加载UserControl)
// ====================================================================
this.pnl_Content.BackColor = System.Drawing.Color.FromArgb(245, 247, 250);
this.pnl_Content.Dock = System.Windows.Forms.DockStyle.Fill;
this.pnl_Content.Name = "pnl_Content";
this.pnl_Content.Padding = new System.Windows.Forms.Padding(8);
// ====================================================================
// MesWorkForm — 主窗口
// ====================================================================
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.ClientSize = new System.Drawing.Size(1920, 1080);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Name = "MesWorkForm";
this.Text = "称重数据采集分析管理系统";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
// 添加顺序先Dock的后AddFill最后被添加但先占位
// 正确顺序Content(Fill) → Sidebar(Left) → Alarm(Bottom) → TopBar(Top)
this.Controls.Add(this.pnl_Content);
this.Controls.Add(this.pnl_Sidebar);
this.Controls.Add(this.panel_Alarm);
this.Controls.Add(this.pnl_TopBar);
this.Load += new System.EventHandler(this.MesWorkForm_Load);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MesWorkForm_FormClosing);
this.pnl_TopBar.ResumeLayout(false);
this.pnl_TopBarRight.ResumeLayout(false);
this.pnl_Sidebar.ResumeLayout(false);
this.pnl_SidebarScroll.ResumeLayout(false);
this.panel_Alarm.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
// ── Timers ──
private System.Windows.Forms.Timer timer_OnLine_Show;
private System.Windows.Forms.Timer timer_Clock;
// ── Top Bar ──
private System.Windows.Forms.Panel pnl_TopBar;
private System.Windows.Forms.Panel pnl_TopBarRight;
private System.Windows.Forms.Label lbl_SystemTitle;
private System.Windows.Forms.Label lbl_DateTime;
private System.Windows.Forms.Label lbl_UserName;
private System.Windows.Forms.Panel pnl_SqlIndicator;
private System.Windows.Forms.Label lbl_SqlStatus;
// ── Sidebar ──
private System.Windows.Forms.Panel pnl_Sidebar;
private System.Windows.Forms.Panel pnl_SidebarScroll;
private System.Windows.Forms.Panel pnl_NavWeighing;
private System.Windows.Forms.Label lbl_NavWeighing;
private System.Windows.Forms.Panel pnl_NavUserMgmt;
private System.Windows.Forms.Label lbl_NavUserMgmt;
private System.Windows.Forms.Panel pnl_NavWorkpiece;
private System.Windows.Forms.Label lbl_NavWorkpiece;
private System.Windows.Forms.Panel pnl_NavTool;
private System.Windows.Forms.Label lbl_NavTool;
private System.Windows.Forms.Panel pnl_NavReport;
private System.Windows.Forms.Label lbl_NavReport;
private System.Windows.Forms.Panel pnl_NavStation;
private System.Windows.Forms.Label lbl_NavStation;
private System.Windows.Forms.Panel pnl_NavStatistics;
private System.Windows.Forms.Label lbl_NavStatistics;
private System.Windows.Forms.Panel pnl_NavSettings;
private System.Windows.Forms.Label lbl_NavSettings;
private System.Windows.Forms.Panel pnl_NavLog;
private System.Windows.Forms.Label lbl_NavLog;
private System.Windows.Forms.Panel pnl_NavPLC;
private System.Windows.Forms.Label lbl_NavPLC;
private System.Windows.Forms.Panel pnl_NavFullscreen;
private System.Windows.Forms.Label lbl_NavFullscreen;
private System.Windows.Forms.Panel pnl_NavClose;
private System.Windows.Forms.Label lbl_NavClose;
private System.Windows.Forms.Panel pnl_NavActiveIndicator;
// ── Alarm Bar ──
private System.Windows.Forms.Panel panel_Alarm;
private System.Windows.Forms.Label label_Alarm;
private System.Windows.Forms.Label lbl_AlarmIcon;
// ── Content ──
private System.Windows.Forms.Panel pnl_Content;
}
}