1
0
Fork 0

add - 添加主界面

master
SoulStar 1 month ago
parent 308b7041b9
commit 69dd9bfc9d

@ -24,37 +24,38 @@
<logger name="plclog"> <logger name="plclog">
<level value="ALL" /> <level value="ALL" />
<appender-ref ref="PlcAppender" /> <appender-ref ref="PlcAppender" />
<appender-ref ref="ColoredConsoleAppender" /> <!--<appender-ref ref="ColoredConsoleAppender" />-->
</logger> </logger>
<!--RFID日志类--> <!--RFID日志类-->
<logger name="rfidlog"> <logger name="rfidlog">
<level value="ALL" /> <level value="ALL" />
<appender-ref ref="RfidAppender" /> <appender-ref ref="RfidAppender" />
<appender-ref ref="ColoredConsoleAppender" /> <!--<appender-ref ref="ColoredConsoleAppender" />-->
</logger> </logger>
<!--RFID日志类--> <!--RFID日志类-->
<logger name="viewlog"> <logger name="viewlog">
<level value="ALL" /> <level value="ALL" />
<appender-ref ref="ViewAppender" /> <appender-ref ref="ViewAppender" />
<appender-ref ref="ColoredConsoleAppender" /> <!--<appender-ref ref="ColoredConsoleAppender" />-->
</logger> </logger>
<!--Sql日志类--> <!--Sql日志类-->
<logger name="sqllog"> <logger name="sqllog">
<level value="ALL" /> <level value="ALL" />
<appender-ref ref="SqlAppender" /> <appender-ref ref="SqlAppender" />
<appender-ref ref="ColoredConsoleAppender" /> <!--<appender-ref ref="ColoredConsoleAppender" />-->
</logger> </logger>
<!--信号量日志类--> <!--信号量日志类-->
<logger name="semaphorelog"> <logger name="semaphorelog">
<level value="ALL" /> <level value="ALL" />
<appender-ref ref="SemaphoreAppender" /> <appender-ref ref="SemaphoreAppender" />
<appender-ref ref="ColoredConsoleAppender" /> <!--<appender-ref ref="ColoredConsoleAppender" />-->
</logger> </logger>
<!-- 将日志输出到控制台 --> <!-- 将日志输出到控制台 -->
<appender name="ColoredConsoleAppender" type="log4net.Appender.ColoredConsoleAppender"> <appender name="ColoredConsoleAppender" type="log4net.Appender.ColoredConsoleAppender">

@ -55,6 +55,8 @@
<Compile Include="domain\SysShiftTimeEntity.cs" /> <Compile Include="domain\SysShiftTimeEntity.cs" />
<Compile Include="domain\SysUserEntity.cs" /> <Compile Include="domain\SysUserEntity.cs" />
<Compile Include="domain\SysRoleEntity.cs" /> <Compile Include="domain\SysRoleEntity.cs" />
<Compile Include="domain\SysErrorLogEntity.cs" />
<Compile Include="domain\SysLogEntity.cs" />
<Compile Include="domain\WeightDataSourceEntity.cs" /> <Compile Include="domain\WeightDataSourceEntity.cs" />
<Compile Include="domain\ZxMaterialTypeEntity.cs" /> <Compile Include="domain\ZxMaterialTypeEntity.cs" />
<Compile Include="domain\ZxMaterialChildTypeEntity.cs" /> <Compile Include="domain\ZxMaterialChildTypeEntity.cs" />
@ -64,6 +66,8 @@
<Compile Include="domain\ZxWeightEntity.cs" /> <Compile Include="domain\ZxWeightEntity.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Repository.cs" /> <Compile Include="Repository.cs" />
<Compile Include="service\SysLogService.cs" />
<Compile Include="service\SysErrorLogService.cs" />
<Compile Include="service\ZxMaterialChildTypeService.cs" /> <Compile Include="service\ZxMaterialChildTypeService.cs" />
<Compile Include="service\ZxMaterialTypeService.cs" /> <Compile Include="service\ZxMaterialTypeService.cs" />
<Compile Include="service\ZxRecipeParaService.cs" /> <Compile Include="service\ZxRecipeParaService.cs" />

@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace HighWayIot.Repository.domain
{
/// <summary>
///
///</summary>
[SugarTable("sys_error_log")]
public class SysErrorLogEntity
{
/// <summary>
/// 备 注:
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 备 注:报警内容
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "text")]
public string Text { get; set; } = null;
/// <summary>
/// 备 注:日志时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "log_time")]
public DateTime? Log_time { get; set; }
/// <summary>
/// 备 注:操作者
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "operator")]
public string Operator { get; set; } = null;
/// <summary>
/// 备 注:
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "device_no")]
public int? Device_no { get; set; }
}
}

@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace HighWayIot.Repository.domain
{
/// <summary>
///
///</summary>
[SugarTable("sys_log")]
public class Sys_log
{
/// <summary>
/// 备 注:
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 备 注:日志文本
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "text")]
public string Text { get; set; } = null;
/// <summary>
/// 备 注:日志时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "log_time")]
public DateTime? Log_time { get; set; }
/// <summary>
/// 备 注:参数1
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "p1")]
public int? P1 { get; set; }
/// <summary>
/// 备 注:参数2
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "p2")]
public int? P2 { get; set; }
/// <summary>
/// 备 注:参数3
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "p3")]
public int? P3 { get; set; }
/// <summary>
/// 备 注:操作者
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "operator")]
public string Operator { get; set; } = null;
}
}

@ -0,0 +1,47 @@
using HighWayIot.Log4net;
using HighWayIot.Repository.domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace HighWayIot.Repository.service
{
public class SysErrorLogService
{
private static readonly Lazy<SysErrorLogService> lazy = new Lazy<SysErrorLogService>(() => new SysErrorLogService());
public static SysErrorLogService Instance
{
get
{
return lazy.Value;
}
}
private LogHelper log = LogHelper.Instance;
Repository<SysErrorLogEntity> _repository => new Repository<SysErrorLogEntity>("sqlserver");
/// <summary>
/// 查询所有班次信息
/// </summary>
/// <returns></returns>
public List<SysErrorLogEntity> GetShiftInfos()
{
try
{
List<SysErrorLogEntity> entity = _repository.GetList();
return entity;
}
catch (Exception ex)
{
log.Error("用户信息获取异常", ex);
return null;
}
}
}
}

@ -0,0 +1,47 @@
using HighWayIot.Log4net;
using HighWayIot.Repository.domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace HighWayIot.Repository.service
{
public class SysLogService
{
private static readonly Lazy<SysLogService> lazy = new Lazy<SysLogService>(() => new SysLogService());
public static SysLogService Instance
{
get
{
return lazy.Value;
}
}
private LogHelper log = LogHelper.Instance;
Repository<SysErrorLogEntity> _repository => new Repository<SysErrorLogEntity>("sqlserver");
/// <summary>
/// 查询所有班次信息
/// </summary>
/// <returns></returns>
public List<SysErrorLogEntity> GetShiftInfos()
{
try
{
List<SysErrorLogEntity> entity = _repository.GetList();
return entity;
}
catch (Exception ex)
{
log.Error("用户信息获取异常", ex);
return null;
}
}
}
}

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HighWayIot.Winform.Business
{
public class SqlLogHelper
{
}
}

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<root> <root>
<!--PageName是页面名称-->
<RoleConfig> <RoleConfig>
<Role PageName = "角色管理" RoleIndex = "0" /> <Role PageName = "角色管理" RoleIndex = "0" />
<Role PageName = "用户管理" RoleIndex = "1" /> <Role PageName = "用户管理" RoleIndex = "1" />
@ -9,11 +9,12 @@
<Role PageName = "报警日志" RoleIndex = "3" /> <Role PageName = "报警日志" RoleIndex = "3" />
<Role PageName = "监控主界面" RoleIndex = "4" /> <Role PageName = "监控主界面" RoleIndex = "4" />
<Role PageName = "班时间维护" RoleIndex = "5" /> <Role PageName = "班时间维护" RoleIndex = "5" />
<Role PageName = "原材料管理" RoleIndex = "6" /> <Role PageName = "物料管理" RoleIndex = "6" />
<Role PageName = "配方管理" RoleIndex = "7" /> <Role PageName = "物料类型管理" RoleIndex = "7" />
<Role PageName = "日报表" RoleIndex = "8" /> <Role PageName = "配方管理" RoleIndex = "8" />
<Role PageName = "机台物料信息绑定" RoleIndex = "9" /> <Role PageName = "日报表" RoleIndex = "9" />
<Role PageName = "生产排程" RoleIndex = "10" /> <Role PageName = "机台物料信息绑定" RoleIndex = "10" />
<Role PageName = "生产排程" RoleIndex = "11" />
</RoleConfig> </RoleConfig>
</root> </root>

@ -51,6 +51,7 @@
<ItemGroup> <ItemGroup>
<Compile Include="Business\GeneralUtils.cs" /> <Compile Include="Business\GeneralUtils.cs" />
<Compile Include="Business\RoleBusiness.cs" /> <Compile Include="Business\RoleBusiness.cs" />
<Compile Include="Business\SqlLogHelper.cs" />
<Compile Include="Business\XmlUtil.cs" /> <Compile Include="Business\XmlUtil.cs" />
<Compile Include="MainForm\BaseForm.cs"> <Compile Include="MainForm\BaseForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
@ -96,10 +97,10 @@
<Compile Include="UserControlPages\MaterialConfigPages\MaterialUpdateForm.Designer.cs"> <Compile Include="UserControlPages\MaterialConfigPages\MaterialUpdateForm.Designer.cs">
<DependentUpon>MaterialUpdateForm.cs</DependentUpon> <DependentUpon>MaterialUpdateForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="UserControlPages\MonitorMainPage.cs"> <Compile Include="UserControlPages\MonitorMainPages\MonitorMainPage.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
<Compile Include="UserControlPages\MonitorMainPage.Designer.cs"> <Compile Include="UserControlPages\MonitorMainPages\MonitorMainPage.Designer.cs">
<DependentUpon>MonitorMainPage.cs</DependentUpon> <DependentUpon>MonitorMainPage.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="UserControlPages\RecipeConfigPages\AddRecipeForm.cs"> <Compile Include="UserControlPages\RecipeConfigPages\AddRecipeForm.cs">
@ -223,7 +224,7 @@
<EmbeddedResource Include="UserControlPages\MaterialConfigPages\MaterialUpdateForm.resx"> <EmbeddedResource Include="UserControlPages\MaterialConfigPages\MaterialUpdateForm.resx">
<DependentUpon>MaterialUpdateForm.cs</DependentUpon> <DependentUpon>MaterialUpdateForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="UserControlPages\MonitorMainPage.resx"> <EmbeddedResource Include="UserControlPages\MonitorMainPages\MonitorMainPage.resx">
<DependentUpon>MonitorMainPage.cs</DependentUpon> <DependentUpon>MonitorMainPage.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="UserControlPages\RecipeConfigPages\AddRecipeForm.resx"> <EmbeddedResource Include="UserControlPages\RecipeConfigPages\AddRecipeForm.resx">

@ -48,6 +48,8 @@ namespace HighWayIot.Winform.MainForm
this.MonitorMainPageStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.MonitorMainPageStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ProductionSchedulingStripItem = new System.Windows.Forms.ToolStripMenuItem(); this.ProductionSchedulingStripItem = new System.Windows.Forms.ToolStripMenuItem();
this.MaterialMenuStripItem = new System.Windows.Forms.ToolStripMenuItem(); this.MaterialMenuStripItem = new System.Windows.Forms.ToolStripMenuItem();
this.MaterialConfigStripItem = new System.Windows.Forms.ToolStripMenuItem();
this.MaterialTypeConfigStripItem = new System.Windows.Forms.ToolStripMenuItem();
this.RecipeConfigStripItem = new System.Windows.Forms.ToolStripMenuItem(); this.RecipeConfigStripItem = new System.Windows.Forms.ToolStripMenuItem();
this.EquipMaterialBindingStripItem = new System.Windows.Forms.ToolStripMenuItem(); this.EquipMaterialBindingStripItem = new System.Windows.Forms.ToolStripMenuItem();
this.TestMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.TestMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -62,8 +64,6 @@ namespace HighWayIot.Winform.MainForm
this.StripLabel2 = new System.Windows.Forms.ToolStripStatusLabel(); this.StripLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
this.TimeStripLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.TimeStripLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.TimeDisplayTimer = new System.Windows.Forms.Timer(this.components); this.TimeDisplayTimer = new System.Windows.Forms.Timer(this.components);
this.MaterialConfigStripItem = new System.Windows.Forms.ToolStripMenuItem();
this.MaterialTypeConfigStripItem = new System.Windows.Forms.ToolStripMenuItem();
this.MainMenu.SuspendLayout(); this.MainMenu.SuspendLayout();
this.statusStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -82,7 +82,7 @@ namespace HighWayIot.Winform.MainForm
this.MainMenu.Location = new System.Drawing.Point(0, 0); this.MainMenu.Location = new System.Drawing.Point(0, 0);
this.MainMenu.Name = "MainMenu"; this.MainMenu.Name = "MainMenu";
this.MainMenu.Padding = new System.Windows.Forms.Padding(5, 1, 0, 1); this.MainMenu.Padding = new System.Windows.Forms.Padding(5, 1, 0, 1);
this.MainMenu.Size = new System.Drawing.Size(1600, 24); this.MainMenu.Size = new System.Drawing.Size(1904, 24);
this.MainMenu.TabIndex = 1; this.MainMenu.TabIndex = 1;
this.MainMenu.Text = "menuStrip1"; this.MainMenu.Text = "menuStrip1";
// //
@ -101,35 +101,35 @@ namespace HighWayIot.Winform.MainForm
// UserStripMenuItem // UserStripMenuItem
// //
this.UserStripMenuItem.Name = "UserStripMenuItem"; this.UserStripMenuItem.Name = "UserStripMenuItem";
this.UserStripMenuItem.Size = new System.Drawing.Size(136, 22); this.UserStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.UserStripMenuItem.Text = "用户管理"; this.UserStripMenuItem.Text = "用户管理";
this.UserStripMenuItem.Click += new System.EventHandler(this.StripMenuItemClick); this.UserStripMenuItem.Click += new System.EventHandler(this.StripMenuItemClick);
// //
// RoleStripMenuItem // RoleStripMenuItem
// //
this.RoleStripMenuItem.Name = "RoleStripMenuItem"; this.RoleStripMenuItem.Name = "RoleStripMenuItem";
this.RoleStripMenuItem.Size = new System.Drawing.Size(136, 22); this.RoleStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.RoleStripMenuItem.Text = "角色管理"; this.RoleStripMenuItem.Text = "角色管理";
this.RoleStripMenuItem.Click += new System.EventHandler(this.StripMenuItemClick); this.RoleStripMenuItem.Click += new System.EventHandler(this.StripMenuItemClick);
// //
// ShiftTimeConfigStripItem // ShiftTimeConfigStripItem
// //
this.ShiftTimeConfigStripItem.Name = "ShiftTimeConfigStripItem"; this.ShiftTimeConfigStripItem.Name = "ShiftTimeConfigStripItem";
this.ShiftTimeConfigStripItem.Size = new System.Drawing.Size(136, 22); this.ShiftTimeConfigStripItem.Size = new System.Drawing.Size(180, 22);
this.ShiftTimeConfigStripItem.Text = "班时间维护"; this.ShiftTimeConfigStripItem.Text = "班时间维护";
this.ShiftTimeConfigStripItem.Click += new System.EventHandler(this.StripMenuItemClick); this.ShiftTimeConfigStripItem.Click += new System.EventHandler(this.StripMenuItemClick);
// //
// LogoutStripMenuItem // LogoutStripMenuItem
// //
this.LogoutStripMenuItem.Name = "LogoutStripMenuItem"; this.LogoutStripMenuItem.Name = "LogoutStripMenuItem";
this.LogoutStripMenuItem.Size = new System.Drawing.Size(136, 22); this.LogoutStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.LogoutStripMenuItem.Text = "注销"; this.LogoutStripMenuItem.Text = "注销";
this.LogoutStripMenuItem.Click += new System.EventHandler(this.LogoutStripMenuItem_Click); this.LogoutStripMenuItem.Click += new System.EventHandler(this.LogoutStripMenuItem_Click);
// //
// SysQuitStripMenuItem // SysQuitStripMenuItem
// //
this.SysQuitStripMenuItem.Name = "SysQuitStripMenuItem"; this.SysQuitStripMenuItem.Name = "SysQuitStripMenuItem";
this.SysQuitStripMenuItem.Size = new System.Drawing.Size(136, 22); this.SysQuitStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.SysQuitStripMenuItem.Text = "退出系统"; this.SysQuitStripMenuItem.Text = "退出系统";
this.SysQuitStripMenuItem.Click += new System.EventHandler(this.SysQuitStripMenuItem_Click); this.SysQuitStripMenuItem.Click += new System.EventHandler(this.SysQuitStripMenuItem_Click);
// //
@ -146,21 +146,21 @@ namespace HighWayIot.Winform.MainForm
// DaliyReportStripItem // DaliyReportStripItem
// //
this.DaliyReportStripItem.Name = "DaliyReportStripItem"; this.DaliyReportStripItem.Name = "DaliyReportStripItem";
this.DaliyReportStripItem.Size = new System.Drawing.Size(124, 22); this.DaliyReportStripItem.Size = new System.Drawing.Size(180, 22);
this.DaliyReportStripItem.Text = "日报表"; this.DaliyReportStripItem.Text = "日报表";
this.DaliyReportStripItem.Click += new System.EventHandler(this.StripMenuItemClick); this.DaliyReportStripItem.Click += new System.EventHandler(this.StripMenuItemClick);
// //
// OperateLogStripMenuItem // OperateLogStripMenuItem
// //
this.OperateLogStripMenuItem.Name = "OperateLogStripMenuItem"; this.OperateLogStripMenuItem.Name = "OperateLogStripMenuItem";
this.OperateLogStripMenuItem.Size = new System.Drawing.Size(124, 22); this.OperateLogStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.OperateLogStripMenuItem.Text = "操作日志"; this.OperateLogStripMenuItem.Text = "操作日志";
this.OperateLogStripMenuItem.Click += new System.EventHandler(this.StripMenuItemClick); this.OperateLogStripMenuItem.Click += new System.EventHandler(this.StripMenuItemClick);
// //
// AlarmLogStripMenuItem // AlarmLogStripMenuItem
// //
this.AlarmLogStripMenuItem.Name = "AlarmLogStripMenuItem"; this.AlarmLogStripMenuItem.Name = "AlarmLogStripMenuItem";
this.AlarmLogStripMenuItem.Size = new System.Drawing.Size(124, 22); this.AlarmLogStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.AlarmLogStripMenuItem.Text = "报警日志"; this.AlarmLogStripMenuItem.Text = "报警日志";
this.AlarmLogStripMenuItem.Click += new System.EventHandler(this.StripMenuItemClick); this.AlarmLogStripMenuItem.Click += new System.EventHandler(this.StripMenuItemClick);
// //
@ -187,6 +187,20 @@ namespace HighWayIot.Winform.MainForm
this.MaterialMenuStripItem.Size = new System.Drawing.Size(80, 22); this.MaterialMenuStripItem.Size = new System.Drawing.Size(80, 22);
this.MaterialMenuStripItem.Text = "原材料管理"; this.MaterialMenuStripItem.Text = "原材料管理";
// //
// MaterialConfigStripItem
//
this.MaterialConfigStripItem.Name = "MaterialConfigStripItem";
this.MaterialConfigStripItem.Size = new System.Drawing.Size(180, 22);
this.MaterialConfigStripItem.Text = "物料管理";
this.MaterialConfigStripItem.Click += new System.EventHandler(this.StripMenuItemClick);
//
// MaterialTypeConfigStripItem
//
this.MaterialTypeConfigStripItem.Name = "MaterialTypeConfigStripItem";
this.MaterialTypeConfigStripItem.Size = new System.Drawing.Size(180, 22);
this.MaterialTypeConfigStripItem.Text = "物料类型管理";
this.MaterialTypeConfigStripItem.Click += new System.EventHandler(this.StripMenuItemClick);
//
// RecipeConfigStripItem // RecipeConfigStripItem
// //
this.RecipeConfigStripItem.Name = "RecipeConfigStripItem"; this.RecipeConfigStripItem.Name = "RecipeConfigStripItem";
@ -218,7 +232,7 @@ namespace HighWayIot.Winform.MainForm
this.UserControlTabs.Margin = new System.Windows.Forms.Padding(0); this.UserControlTabs.Margin = new System.Windows.Forms.Padding(0);
this.UserControlTabs.Name = "UserControlTabs"; this.UserControlTabs.Name = "UserControlTabs";
this.UserControlTabs.SelectedIndex = 0; this.UserControlTabs.SelectedIndex = 0;
this.UserControlTabs.Size = new System.Drawing.Size(1601, 875); this.UserControlTabs.Size = new System.Drawing.Size(1905, 995);
this.UserControlTabs.TabIndex = 3; this.UserControlTabs.TabIndex = 3;
// //
// ClosePageButton // ClosePageButton
@ -228,7 +242,7 @@ namespace HighWayIot.Winform.MainForm
this.ClosePageButton.Cursor = System.Windows.Forms.Cursors.Hand; this.ClosePageButton.Cursor = System.Windows.Forms.Cursors.Hand;
this.ClosePageButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.ClosePageButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ClosePageButton.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.ClosePageButton.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.ClosePageButton.Location = new System.Drawing.Point(1580, 1); this.ClosePageButton.Location = new System.Drawing.Point(1884, 1);
this.ClosePageButton.Name = "ClosePageButton"; this.ClosePageButton.Name = "ClosePageButton";
this.ClosePageButton.Size = new System.Drawing.Size(20, 20); this.ClosePageButton.Size = new System.Drawing.Size(20, 20);
this.ClosePageButton.TabIndex = 4; this.ClosePageButton.TabIndex = 4;
@ -246,9 +260,9 @@ namespace HighWayIot.Winform.MainForm
this.toolStripStatusLabel1, this.toolStripStatusLabel1,
this.StripLabel2, this.StripLabel2,
this.TimeStripLabel}); this.TimeStripLabel});
this.statusStrip1.Location = new System.Drawing.Point(0, 899); this.statusStrip1.Location = new System.Drawing.Point(0, 1019);
this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(1600, 22); this.statusStrip1.Size = new System.Drawing.Size(1904, 22);
this.statusStrip1.TabIndex = 5; this.statusStrip1.TabIndex = 5;
this.statusStrip1.Text = "statusStrip1"; this.statusStrip1.Text = "statusStrip1";
// //
@ -280,7 +294,7 @@ namespace HighWayIot.Winform.MainForm
// //
this.toolStripStatusLabel1.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right))); this.toolStripStatusLabel1.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right)));
this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
this.toolStripStatusLabel1.Size = new System.Drawing.Size(1157, 17); this.toolStripStatusLabel1.Size = new System.Drawing.Size(1461, 17);
this.toolStripStatusLabel1.Spring = true; this.toolStripStatusLabel1.Spring = true;
// //
// StripLabel2 // StripLabel2
@ -300,25 +314,11 @@ namespace HighWayIot.Winform.MainForm
this.TimeDisplayTimer.Interval = 1000; this.TimeDisplayTimer.Interval = 1000;
this.TimeDisplayTimer.Tick += new System.EventHandler(this.TimeDisplayTimer_Tick); this.TimeDisplayTimer.Tick += new System.EventHandler(this.TimeDisplayTimer_Tick);
// //
// MaterialConfigStripItem
//
this.MaterialConfigStripItem.Name = "MaterialConfigStripItem";
this.MaterialConfigStripItem.Size = new System.Drawing.Size(180, 22);
this.MaterialConfigStripItem.Text = "物料管理";
this.MaterialConfigStripItem.Click += new System.EventHandler(this.StripMenuItemClick);
//
// MaterialTypeConfigStripItem
//
this.MaterialTypeConfigStripItem.Name = "MaterialTypeConfigStripItem";
this.MaterialTypeConfigStripItem.Size = new System.Drawing.Size(180, 22);
this.MaterialTypeConfigStripItem.Text = "物料类型管理";
this.MaterialTypeConfigStripItem.Click += new System.EventHandler(this.StripMenuItemClick);
//
// BaseForm // BaseForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1600, 921); this.ClientSize = new System.Drawing.Size(1904, 1041);
this.Controls.Add(this.statusStrip1); this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.ClosePageButton); this.Controls.Add(this.ClosePageButton);
this.Controls.Add(this.UserControlTabs); this.Controls.Add(this.UserControlTabs);

@ -1,67 +0,0 @@
using System.Drawing;
using System.Windows.Forms;
namespace HighWayIot.Winform.UserControlPages
{
partial class MonitorMainPage
{
/// <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.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 50.25F);
this.label1.Location = new System.Drawing.Point(241, 211);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(372, 88);
this.label1.TabIndex = 0;
this.label1.Text = "主页面控件";
//
// MonitorMainPage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.AutoSize = true;
this.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.Controls.Add(this.label1);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "MonitorMainPage";
this.Size = new System.Drawing.Size(808, 525);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Label label1;
}
}

@ -1,20 +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;
namespace HighWayIot.Winform.UserControlPages
{
public partial class MonitorMainPage : UserControl
{
public MonitorMainPage()
{
InitializeComponent();
}
}
}

@ -0,0 +1,616 @@
using System.Drawing;
using System.Windows.Forms;
namespace HighWayIot.Winform.UserControlPages
{
partial class MonitorMainPage
{
/// <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.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.panel3 = new System.Windows.Forms.Panel();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.panel5 = new System.Windows.Forms.Panel();
this.NowDateProductNumTextBox = new System.Windows.Forms.TextBox();
this.NowDateProductNumLabel = new System.Windows.Forms.Label();
this.panel4 = new System.Windows.Forms.Panel();
this.NightProductNumTextBox = new System.Windows.Forms.TextBox();
this.DayProductNumTextBox = new System.Windows.Forms.TextBox();
this.NightTimeLabel = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.DayTimeLabel = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.SpecCodeLabel = new System.Windows.Forms.Label();
this.SpecNameLabel = new System.Windows.Forms.Label();
this.RecipeCodeLabel = 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.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DeviceNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.StartTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.RecipeCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SpecName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SpecCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.RgvNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.TireWeight = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BaseRubFinishTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MidRubFinishTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.RowTireFinishTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataRefresh = new System.Windows.Forms.Timer(this.components);
this.panel1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
this.panel3.SuspendLayout();
this.tableLayoutPanel3.SuspendLayout();
this.panel5.SuspendLayout();
this.panel4.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.tableLayoutPanel1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Margin = new System.Windows.Forms.Padding(0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1627, 231);
this.panel1.TabIndex = 0;
//
// 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.tableLayoutPanel2, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 231F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1627, 231);
this.tableLayoutPanel1.TabIndex = 0;
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.ColumnCount = 1;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel2.Controls.Add(this.panel3, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.tableLayoutPanel3, 0, 1);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel2.Location = new System.Drawing.Point(813, 0);
this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(0);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 60F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(814, 231);
this.tableLayoutPanel2.TabIndex = 1;
//
// panel3
//
this.panel3.BackColor = System.Drawing.SystemColors.ButtonShadow;
this.panel3.Controls.Add(this.label9);
this.panel3.Controls.Add(this.label10);
this.panel3.Controls.Add(this.label5);
this.panel3.Controls.Add(this.label6);
this.panel3.Controls.Add(this.label7);
this.panel3.Controls.Add(this.label8);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Margin = new System.Windows.Forms.Padding(0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(814, 138);
this.panel3.TabIndex = 3;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("微软雅黑", 18F);
this.label9.ForeColor = System.Drawing.Color.Khaki;
this.label9.Location = new System.Drawing.Point(480, 74);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(61, 31);
this.label9.TabIndex = 11;
this.label9.Text = "N/A";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("微软雅黑", 18F);
this.label10.ForeColor = System.Drawing.Color.Khaki;
this.label10.Location = new System.Drawing.Point(364, 74);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(110, 31);
this.label10.TabIndex = 10;
this.label10.Text = "小车号:";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 18F);
this.label5.ForeColor = System.Drawing.Color.Khaki;
this.label5.Location = new System.Drawing.Point(212, 74);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(61, 31);
this.label5.TabIndex = 9;
this.label5.Text = "N/A";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("微软雅黑", 18F);
this.label6.ForeColor = System.Drawing.Color.Khaki;
this.label6.Location = new System.Drawing.Point(181, 28);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(61, 31);
this.label6.TabIndex = 8;
this.label6.Text = "N/A";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("微软雅黑", 18F);
this.label7.ForeColor = System.Drawing.Color.Khaki;
this.label7.Location = new System.Drawing.Point(41, 74);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(165, 31);
this.label7.TabIndex = 7;
this.label7.Text = "生胎重量(g)";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("微软雅黑", 18F);
this.label8.ForeColor = System.Drawing.Color.Khaki;
this.label8.Location = new System.Drawing.Point(41, 28);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(134, 31);
this.label8.TabIndex = 6;
this.label8.Text = "当前规格:";
//
// tableLayoutPanel3
//
this.tableLayoutPanel3.ColumnCount = 2;
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 261F));
this.tableLayoutPanel3.Controls.Add(this.panel5, 1, 0);
this.tableLayoutPanel3.Controls.Add(this.panel4, 0, 0);
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 138);
this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(0);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 1;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(814, 93);
this.tableLayoutPanel3.TabIndex = 0;
//
// panel5
//
this.panel5.BackColor = System.Drawing.SystemColors.ControlLight;
this.panel5.Controls.Add(this.NowDateProductNumTextBox);
this.panel5.Controls.Add(this.NowDateProductNumLabel);
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(553, 0);
this.panel5.Margin = new System.Windows.Forms.Padding(0);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(261, 93);
this.panel5.TabIndex = 4;
//
// NowDateProductNumTextBox
//
this.NowDateProductNumTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.NowDateProductNumTextBox.Font = new System.Drawing.Font("宋体", 15F);
this.NowDateProductNumTextBox.Location = new System.Drawing.Point(67, 47);
this.NowDateProductNumTextBox.Name = "NowDateProductNumTextBox";
this.NowDateProductNumTextBox.Size = new System.Drawing.Size(122, 30);
this.NowDateProductNumTextBox.TabIndex = 18;
//
// NowDateProductNumLabel
//
this.NowDateProductNumLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.NowDateProductNumLabel.AutoSize = true;
this.NowDateProductNumLabel.Font = new System.Drawing.Font("微软雅黑", 15F);
this.NowDateProductNumLabel.ForeColor = System.Drawing.Color.Sienna;
this.NowDateProductNumLabel.Location = new System.Drawing.Point(48, 12);
this.NowDateProductNumLabel.Name = "NowDateProductNumLabel";
this.NowDateProductNumLabel.Size = new System.Drawing.Size(164, 27);
this.NowDateProductNumLabel.TabIndex = 13;
this.NowDateProductNumLabel.Text = "99 月 99 日 产量";
this.NowDateProductNumLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel4
//
this.panel4.BackColor = System.Drawing.SystemColors.ScrollBar;
this.panel4.Controls.Add(this.NightProductNumTextBox);
this.panel4.Controls.Add(this.DayProductNumTextBox);
this.panel4.Controls.Add(this.NightTimeLabel);
this.panel4.Controls.Add(this.label13);
this.panel4.Controls.Add(this.DayTimeLabel);
this.panel4.Controls.Add(this.label12);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(0, 0);
this.panel4.Margin = new System.Windows.Forms.Padding(0);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(553, 93);
this.panel4.TabIndex = 3;
//
// NightProductNumTextBox
//
this.NightProductNumTextBox.Font = new System.Drawing.Font("宋体", 15F);
this.NightProductNumTextBox.Location = new System.Drawing.Point(319, 47);
this.NightProductNumTextBox.Name = "NightProductNumTextBox";
this.NightProductNumTextBox.Size = new System.Drawing.Size(122, 30);
this.NightProductNumTextBox.TabIndex = 17;
//
// DayProductNumTextBox
//
this.DayProductNumTextBox.Font = new System.Drawing.Font("宋体", 15F);
this.DayProductNumTextBox.Location = new System.Drawing.Point(74, 47);
this.DayProductNumTextBox.Name = "DayProductNumTextBox";
this.DayProductNumTextBox.Size = new System.Drawing.Size(122, 30);
this.DayProductNumTextBox.TabIndex = 16;
//
// NightTimeLabel
//
this.NightTimeLabel.AutoSize = true;
this.NightTimeLabel.Font = new System.Drawing.Font("微软雅黑", 15F);
this.NightTimeLabel.ForeColor = System.Drawing.Color.SaddleBrown;
this.NightTimeLabel.Location = new System.Drawing.Point(347, 13);
this.NightTimeLabel.Name = "NightTimeLabel";
this.NightTimeLabel.Size = new System.Drawing.Size(127, 27);
this.NightTimeLabel.TabIndex = 15;
this.NightTimeLabel.Text = "99:99-99:99";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("微软雅黑", 15F);
this.label13.ForeColor = System.Drawing.Color.SaddleBrown;
this.label13.Location = new System.Drawing.Point(283, 13);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(72, 27);
this.label13.TabIndex = 14;
this.label13.Text = "夜班:";
//
// DayTimeLabel
//
this.DayTimeLabel.AutoSize = true;
this.DayTimeLabel.Font = new System.Drawing.Font("微软雅黑", 15F);
this.DayTimeLabel.ForeColor = System.Drawing.Color.SaddleBrown;
this.DayTimeLabel.Location = new System.Drawing.Point(105, 14);
this.DayTimeLabel.Name = "DayTimeLabel";
this.DayTimeLabel.Size = new System.Drawing.Size(127, 27);
this.DayTimeLabel.TabIndex = 13;
this.DayTimeLabel.Text = "99:99-99:99";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("微软雅黑", 15F);
this.label12.ForeColor = System.Drawing.Color.SaddleBrown;
this.label12.Location = new System.Drawing.Point(41, 14);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(72, 27);
this.label12.TabIndex = 12;
this.label12.Text = "白班:";
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.Gray;
this.panel2.Controls.Add(this.SpecCodeLabel);
this.panel2.Controls.Add(this.SpecNameLabel);
this.panel2.Controls.Add(this.RecipeCodeLabel);
this.panel2.Controls.Add(this.label4);
this.panel2.Controls.Add(this.label3);
this.panel2.Controls.Add(this.label2);
this.panel2.Controls.Add(this.label1);
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(0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(813, 231);
this.panel2.TabIndex = 2;
//
// SpecCodeLabel
//
this.SpecCodeLabel.AutoSize = true;
this.SpecCodeLabel.Font = new System.Drawing.Font("微软雅黑", 18F);
this.SpecCodeLabel.ForeColor = System.Drawing.Color.LightGoldenrodYellow;
this.SpecCodeLabel.Location = new System.Drawing.Point(181, 152);
this.SpecCodeLabel.Name = "SpecCodeLabel";
this.SpecCodeLabel.Size = new System.Drawing.Size(61, 31);
this.SpecCodeLabel.TabIndex = 6;
this.SpecCodeLabel.Text = "N/A";
//
// SpecNameLabel
//
this.SpecNameLabel.AutoSize = true;
this.SpecNameLabel.Font = new System.Drawing.Font("微软雅黑", 18F);
this.SpecNameLabel.ForeColor = System.Drawing.Color.LightGoldenrodYellow;
this.SpecNameLabel.Location = new System.Drawing.Point(181, 105);
this.SpecNameLabel.Name = "SpecNameLabel";
this.SpecNameLabel.Size = new System.Drawing.Size(61, 31);
this.SpecNameLabel.TabIndex = 5;
this.SpecNameLabel.Text = "N/A";
//
// RecipeCodeLabel
//
this.RecipeCodeLabel.AutoSize = true;
this.RecipeCodeLabel.Font = new System.Drawing.Font("微软雅黑", 18F);
this.RecipeCodeLabel.ForeColor = System.Drawing.Color.LightGoldenrodYellow;
this.RecipeCodeLabel.Location = new System.Drawing.Point(181, 59);
this.RecipeCodeLabel.Name = "RecipeCodeLabel";
this.RecipeCodeLabel.Size = new System.Drawing.Size(61, 31);
this.RecipeCodeLabel.TabIndex = 4;
this.RecipeCodeLabel.Text = "N/A";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("微软雅黑", 18F);
this.label4.ForeColor = System.Drawing.Color.LightGoldenrodYellow;
this.label4.Location = new System.Drawing.Point(45, 151);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(144, 31);
this.label4.TabIndex = 3;
this.label4.Text = "SPEC编号";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 18F);
this.label3.ForeColor = System.Drawing.Color.LightGoldenrodYellow;
this.label3.Location = new System.Drawing.Point(55, 104);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(134, 31);
this.label3.TabIndex = 2;
this.label3.Text = "标称尺度:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("微软雅黑", 18F);
this.label2.ForeColor = System.Drawing.Color.LightGoldenrodYellow;
this.label2.Location = new System.Drawing.Point(55, 58);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(134, 31);
this.label2.TabIndex = 1;
this.label2.Text = "配方编号:";
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 15F);
this.label1.ForeColor = System.Drawing.Color.Cyan;
this.label1.Location = new System.Drawing.Point(333, 14);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(129, 20);
this.label1.TabIndex = 0;
this.label1.Text = "运行中的计划";
//
// dataGridView1
//
this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Id,
this.DeviceNo,
this.StartTime,
this.RecipeCode,
this.SpecName,
this.SpecCode,
this.RgvNo,
this.TireWeight,
this.BaseRubFinishTime,
this.MidRubFinishTime,
this.RowTireFinishTime});
this.dataGridView1.Location = new System.Drawing.Point(0, 231);
this.dataGridView1.Margin = new System.Windows.Forms.Padding(0);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1627, 774);
this.dataGridView1.TabIndex = 1;
//
// Id
//
this.Id.HeaderText = "序号";
this.Id.Name = "Id";
this.Id.Width = 70;
//
// DeviceNo
//
this.DeviceNo.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.DeviceNo.HeaderText = "机位";
this.DeviceNo.Name = "DeviceNo";
//
// StartTime
//
this.StartTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.StartTime.HeaderText = "开始时间";
this.StartTime.Name = "StartTime";
//
// RecipeCode
//
this.RecipeCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.RecipeCode.HeaderText = "成品代号";
this.RecipeCode.Name = "RecipeCode";
//
// SpecName
//
this.SpecName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.SpecName.HeaderText = "标称尺度";
this.SpecName.Name = "SpecName";
//
// SpecCode
//
this.SpecCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.SpecCode.HeaderText = "SPEC编号";
this.SpecCode.Name = "SpecCode";
//
// RgvNo
//
this.RgvNo.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.RgvNo.HeaderText = "小车号";
this.RgvNo.Name = "RgvNo";
//
// TireWeight
//
this.TireWeight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.TireWeight.HeaderText = "轮胎重量";
this.TireWeight.Name = "TireWeight";
//
// BaseRubFinishTime
//
this.BaseRubFinishTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.BaseRubFinishTime.HeaderText = "基部胶完成时间";
this.BaseRubFinishTime.Name = "BaseRubFinishTime";
//
// MidRubFinishTime
//
this.MidRubFinishTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.MidRubFinishTime.HeaderText = "中层胶完成时间";
this.MidRubFinishTime.Name = "MidRubFinishTime";
//
// RowTireFinishTime
//
this.RowTireFinishTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.RowTireFinishTime.HeaderText = "生胎完成时间";
this.RowTireFinishTime.Name = "RowTireFinishTime";
//
// DataRefresh
//
this.DataRefresh.Enabled = true;
this.DataRefresh.Interval = 1000;
this.DataRefresh.Tick += new System.EventHandler(this.DataRefresh_Tick);
//
// MonitorMainPage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.AutoSize = true;
this.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.panel1);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "MonitorMainPage";
this.Size = new System.Drawing.Size(1627, 1005);
this.panel1.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel2.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.tableLayoutPanel3.ResumeLayout(false);
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private Panel panel1;
private TableLayoutPanel tableLayoutPanel1;
private TableLayoutPanel tableLayoutPanel2;
private TableLayoutPanel tableLayoutPanel3;
private Panel panel3;
private Panel panel5;
private Panel panel4;
private Panel panel2;
private DataGridView dataGridView1;
private Label label1;
private Label label2;
private Label SpecCodeLabel;
private Label SpecNameLabel;
private Label RecipeCodeLabel;
private Label label4;
private Label label3;
private Label label5;
private Label label6;
private Label label7;
private Label label8;
private Label label9;
private Label label10;
private Label DayTimeLabel;
private Label label12;
private Label NightTimeLabel;
private Label label13;
private Label NowDateProductNumLabel;
private TextBox NowDateProductNumTextBox;
private TextBox NightProductNumTextBox;
private TextBox DayProductNumTextBox;
private DataGridViewTextBoxColumn Id;
private DataGridViewTextBoxColumn DeviceNo;
private DataGridViewTextBoxColumn StartTime;
private DataGridViewTextBoxColumn RecipeCode;
private DataGridViewTextBoxColumn SpecName;
private DataGridViewTextBoxColumn SpecCode;
private DataGridViewTextBoxColumn RgvNo;
private DataGridViewTextBoxColumn TireWeight;
private DataGridViewTextBoxColumn BaseRubFinishTime;
private DataGridViewTextBoxColumn MidRubFinishTime;
private DataGridViewTextBoxColumn RowTireFinishTime;
private Timer DataRefresh;
}
}

@ -0,0 +1,60 @@
using HighWayIot.Log4net;
using HighWayIot.Repository.service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HighWayIot.Winform.UserControlPages
{
public partial class MonitorMainPage : UserControl
{
LogHelper logHelper = LogHelper.Instance;
SysShiftTimeService shiftTimeService = SysShiftTimeService.Instance;
public MonitorMainPage()
{
InitializeComponent();
}
/// <summary>
/// TImer事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void DataRefresh_Tick(object sender, EventArgs e)
{
DateTimeRefresh();
}
/// <summary>
/// 白夜班时间,现在时间控件刷新
/// </summary>
private void DateTimeRefresh()
{
var timeList = shiftTimeService.GetShiftInfos();
var morningShift = timeList.Where(x => x.ShiftName == "早").FirstOrDefault();
var midShift = timeList.Where(x => x.ShiftName == "中").FirstOrDefault();
var nightShift = timeList.Where(x => x.ShiftName == "夜").FirstOrDefault();
if(morningShift == null || midShift == null || nightShift == null)
{
logHelper.Error("检查班次数据库是否早中夜班配置齐全!");
return;
}
string dayString = morningShift.ShiftStartTime.Substring(0, 5) + "-" + midShift.ShiftEndTime.Substring(0, 5);
string nightString = nightShift.ShiftStartTime.Substring(0, 5) + "-" + nightShift.ShiftEndTime.Substring(0, 5);
DayTimeLabel.Text = dayString;
NightTimeLabel.Text = nightString;
NowDateProductNumLabel.Text = DateTime.Now.ToString("MM 月 dd 日 产量");
}
}
}

@ -117,4 +117,40 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.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> </resheader>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DeviceNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="StartTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="RecipeCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SpecName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SpecCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="RgvNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TireWeight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="BaseRubFinishTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MidRubFinishTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="RowTireFinishTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DataRefresh.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root> </root>

@ -435,6 +435,7 @@ namespace HighWayIot.Winform.UserControlPages
if (zxRecipeParaEntityCut == null) if (zxRecipeParaEntityCut == null)
{ {
MessageBox.Show("剪切板为空!"); MessageBox.Show("剪切板为空!");
return;
} }
SetParaValue(zxRecipeParaEntityCut); SetParaValue(zxRecipeParaEntityCut);
} }
@ -448,6 +449,11 @@ namespace HighWayIot.Winform.UserControlPages
{ {
zxRecipeParaEntityCut = null; zxRecipeParaEntityCut = null;
NowCopyLabel.Text = "N/A"; NowCopyLabel.Text = "N/A";
if (MessageBox.Show("是否要清空前端数据", "", MessageBoxButtons.YesNo) == DialogResult.OK)
{
SetParaValue(new ZxRecipeParaEntity());
}
} }
/// <summary> /// <summary>

Loading…
Cancel
Save